0s autopkgtest [08:34:37]: starting date and time: 2025-05-02 08:34:37+0000 0s autopkgtest [08:34:37]: git checkout: 9986aa8c Merge branch 'skia/fix_network_interface' into 'ubuntu/production' 0s autopkgtest [08:34:37]: host juju-7f2275-prod-proposed-migration-environment-15; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.tycsn7wm/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:python3.13 --apt-upgrade glib2.0 --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=python3.13/3.13.3-2 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-15@bos03-arm64-2.secgroup --name adt-questing-arm64-glib2.0-20250502-083437-juju-7f2275-prod-proposed-migration-environment-15-29425c28-cbee-4476-966b-1b2f2f477710 --image adt/ubuntu-questing-arm64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-15 --net-id=net_prod-proposed-migration -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/ 135s autopkgtest [08:36:52]: testbed dpkg architecture: arm64 136s autopkgtest [08:36:53]: testbed apt version: 3.0.0 136s autopkgtest [08:36:53]: @@@@@@@@@@@@@@@@@@@@ test bed setup 136s autopkgtest [08:36:53]: testbed release detected to be: None 137s autopkgtest [08:36:54]: updating testbed package index (apt update) 137s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [110 kB] 137s Hit:2 http://ftpmaster.internal/ubuntu questing InRelease 138s Hit:3 http://ftpmaster.internal/ubuntu questing-updates InRelease 138s Hit:4 http://ftpmaster.internal/ubuntu questing-security InRelease 138s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [175 kB] 138s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [44.4 kB] 138s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [2076 kB] 138s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/main arm64 Packages [219 kB] 138s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/universe arm64 Packages [1509 kB] 138s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/multiverse arm64 Packages [15.4 kB] 138s Fetched 4149 kB in 1s (3461 kB/s) 139s Reading package lists... 140s autopkgtest [08:36:57]: upgrading testbed (apt dist-upgrade and autopurge) 140s Reading package lists... 140s Building dependency tree... 140s Reading state information... 141s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 141s Starting 2 pkgProblemResolver with broken count: 0 141s Done 142s Entering ResolveByKeep 142s 142s Calculating upgrade... 143s The following packages will be upgraded: 143s htop libpython3.13 libpython3.13-minimal libpython3.13-stdlib mtd-utils nano 143s python3.13 python3.13-gdbm python3.13-minimal 143s 9 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 143s Need to get 9181 kB of archives. 143s After this operation, 727 kB of additional disk space will be used. 143s Get:1 http://ftpmaster.internal/ubuntu questing-proposed/main arm64 python3.13 arm64 3.13.3-2 [739 kB] 143s Get:2 http://ftpmaster.internal/ubuntu questing-proposed/main arm64 libpython3.13 arm64 3.13.3-2 [2281 kB] 144s Get:3 http://ftpmaster.internal/ubuntu questing-proposed/main arm64 libpython3.13-stdlib arm64 3.13.3-2 [2038 kB] 144s Get:4 http://ftpmaster.internal/ubuntu questing-proposed/main arm64 python3.13-minimal arm64 3.13.3-2 [2273 kB] 145s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/main arm64 libpython3.13-minimal arm64 3.13.3-2 [881 kB] 145s Get:6 http://ftpmaster.internal/ubuntu questing/main arm64 nano arm64 8.4-1 [290 kB] 145s Get:7 http://ftpmaster.internal/ubuntu questing/main arm64 htop arm64 3.4.1-4 [177 kB] 145s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/main arm64 python3.13-gdbm arm64 3.13.3-2 [31.5 kB] 145s Get:9 http://ftpmaster.internal/ubuntu questing/main arm64 mtd-utils arm64 1:2.3.0-1ubuntu1 [469 kB] 145s Fetched 9181 kB in 2s (4187 kB/s) 146s (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 ... 117820 files and directories currently installed.) 146s Preparing to unpack .../0-python3.13_3.13.3-2_arm64.deb ... 146s Unpacking python3.13 (3.13.3-2) over (3.13.3-1) ... 146s Preparing to unpack .../1-libpython3.13_3.13.3-2_arm64.deb ... 146s Unpacking libpython3.13:arm64 (3.13.3-2) over (3.13.3-1) ... 146s Preparing to unpack .../2-libpython3.13-stdlib_3.13.3-2_arm64.deb ... 146s Unpacking libpython3.13-stdlib:arm64 (3.13.3-2) over (3.13.3-1) ... 146s Preparing to unpack .../3-python3.13-minimal_3.13.3-2_arm64.deb ... 146s Unpacking python3.13-minimal (3.13.3-2) over (3.13.3-1) ... 146s Preparing to unpack .../4-libpython3.13-minimal_3.13.3-2_arm64.deb ... 146s Unpacking libpython3.13-minimal:arm64 (3.13.3-2) over (3.13.3-1) ... 146s Preparing to unpack .../5-nano_8.4-1_arm64.deb ... 146s Unpacking nano (8.4-1) over (8.3-1) ... 147s Preparing to unpack .../6-htop_3.4.1-4_arm64.deb ... 147s Unpacking htop (3.4.1-4) over (3.4.0-2) ... 147s Preparing to unpack .../7-python3.13-gdbm_3.13.3-2_arm64.deb ... 147s Unpacking python3.13-gdbm (3.13.3-2) over (3.13.3-1) ... 147s Preparing to unpack .../8-mtd-utils_1%3a2.3.0-1ubuntu1_arm64.deb ... 147s Unpacking mtd-utils (1:2.3.0-1ubuntu1) over (1:2.2.0-2ubuntu2) ... 147s Setting up htop (3.4.1-4) ... 147s Setting up mtd-utils (1:2.3.0-1ubuntu1) ... 147s Setting up libpython3.13-minimal:arm64 (3.13.3-2) ... 147s Setting up nano (8.4-1) ... 147s Installing new version of config file /etc/nanorc ... 147s Setting up python3.13-minimal (3.13.3-2) ... 148s Setting up libpython3.13-stdlib:arm64 (3.13.3-2) ... 148s Setting up python3.13-gdbm (3.13.3-2) ... 148s Setting up libpython3.13:arm64 (3.13.3-2) ... 148s Setting up python3.13 (3.13.3-2) ... 149s Processing triggers for systemd (257.4-1ubuntu3) ... 149s Processing triggers for man-db (2.13.0-1) ... 150s Processing triggers for install-info (7.1.1-1) ... 150s Processing triggers for libc-bin (2.41-6ubuntu1) ... 151s Reading package lists... 151s Building dependency tree... 151s Reading state information... 152s Starting pkgProblemResolver with broken count: 0 152s Starting 2 pkgProblemResolver with broken count: 0 152s Done 152s Solving dependencies... 153s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 155s autopkgtest [08:37:12]: testbed running kernel: Linux 6.14.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Sun Apr 6 14:37:51 UTC 2025 155s autopkgtest [08:37:12]: @@@@@@@@@@@@@@@@@@@@ apt-source glib2.0 167s Get:1 http://ftpmaster.internal/ubuntu questing/main glib2.0 2.84.1-1 (dsc) [4812 B] 167s Get:2 http://ftpmaster.internal/ubuntu questing/main glib2.0 2.84.1-1 (tar) [661 kB] 167s Get:3 http://ftpmaster.internal/ubuntu questing/main glib2.0 2.84.1-1 (tar) [5615 kB] 167s Get:4 http://ftpmaster.internal/ubuntu questing/main glib2.0 2.84.1-1 (diff) [136 kB] 167s gpgv: Signature made Fri Apr 4 19:02:25 2025 UTC 167s gpgv: using RSA key 4D0BE12F0E4776D8AACE9696E66C775AEBFE6C7D 167s gpgv: Can't check signature: No public key 167s dpkg-source: warning: cannot verify inline signature for ./glib2.0_2.84.1-1.dsc: no acceptable signature found 168s autopkgtest [08:37:25]: testing package glib2.0 version 2.84.1-1 174s autopkgtest [08:37:31]: build not needed 182s autopkgtest [08:37:39]: test build: preparing testbed 182s Reading package lists... 182s Building dependency tree... 182s Reading state information... 182s Starting pkgProblemResolver with broken count: 0 183s Starting 2 pkgProblemResolver with broken count: 0 183s Done 183s The following NEW packages will be installed: 183s build-essential cpp cpp-14 cpp-14-aarch64-linux-gnu cpp-aarch64-linux-gnu 183s g++ g++-14 g++-14-aarch64-linux-gnu g++-aarch64-linux-gnu gcc gcc-14 183s gcc-14-aarch64-linux-gnu gcc-aarch64-linux-gnu libasan8 libblkid-dev 183s libcc1-0 libffi-dev libgcc-14-dev libgio-2.0-dev libgomp1 libhwasan0 183s libisl23 libitm1 liblsan0 libmount-dev libmpc3 libpcre2-16-0 libpcre2-32-0 183s libpcre2-dev libpcre2-posix3 libpkgconf3 libselinux1-dev libsepol-dev 183s libstdc++-14-dev libsysprof-capture-4-dev libtsan2 libubsan1 pkgconf 183s pkgconf-bin uuid-dev zlib1g-dev 184s 0 upgraded, 41 newly installed, 0 to remove and 0 not upgraded. 184s Need to get 65.1 MB of archives. 184s After this operation, 229 MB of additional disk space will be used. 184s Get:1 http://ftpmaster.internal/ubuntu questing/main arm64 libisl23 arm64 0.27-1 [676 kB] 184s Get:2 http://ftpmaster.internal/ubuntu questing/main arm64 libmpc3 arm64 1.3.1-1build2 [56.8 kB] 184s Get:3 http://ftpmaster.internal/ubuntu questing/main arm64 cpp-14-aarch64-linux-gnu arm64 14.2.0-19ubuntu2 [10.6 MB] 185s Get:4 http://ftpmaster.internal/ubuntu questing/main arm64 cpp-14 arm64 14.2.0-19ubuntu2 [1026 B] 185s Get:5 http://ftpmaster.internal/ubuntu questing/main arm64 cpp-aarch64-linux-gnu arm64 4:14.2.0-1ubuntu1 [5558 B] 185s Get:6 http://ftpmaster.internal/ubuntu questing/main arm64 cpp arm64 4:14.2.0-1ubuntu1 [22.4 kB] 185s Get:7 http://ftpmaster.internal/ubuntu questing/main arm64 libcc1-0 arm64 15-20250404-0ubuntu1 [49.1 kB] 185s Get:8 http://ftpmaster.internal/ubuntu questing/main arm64 libgomp1 arm64 15-20250404-0ubuntu1 [147 kB] 185s Get:9 http://ftpmaster.internal/ubuntu questing/main arm64 libitm1 arm64 15-20250404-0ubuntu1 [27.8 kB] 185s Get:10 http://ftpmaster.internal/ubuntu questing/main arm64 libasan8 arm64 15-20250404-0ubuntu1 [2922 kB] 186s Get:11 http://ftpmaster.internal/ubuntu questing/main arm64 liblsan0 arm64 15-20250404-0ubuntu1 [1318 kB] 186s Get:12 http://ftpmaster.internal/ubuntu questing/main arm64 libtsan2 arm64 15-20250404-0ubuntu1 [2692 kB] 186s Get:13 http://ftpmaster.internal/ubuntu questing/main arm64 libubsan1 arm64 15-20250404-0ubuntu1 [1177 kB] 186s Get:14 http://ftpmaster.internal/ubuntu questing/main arm64 libhwasan0 arm64 15-20250404-0ubuntu1 [1640 kB] 186s Get:15 http://ftpmaster.internal/ubuntu questing/main arm64 libgcc-14-dev arm64 14.2.0-19ubuntu2 [2593 kB] 186s Get:16 http://ftpmaster.internal/ubuntu questing/main arm64 gcc-14-aarch64-linux-gnu arm64 14.2.0-19ubuntu2 [20.9 MB] 187s Get:17 http://ftpmaster.internal/ubuntu questing/main arm64 gcc-14 arm64 14.2.0-19ubuntu2 [529 kB] 187s Get:18 http://ftpmaster.internal/ubuntu questing/main arm64 gcc-aarch64-linux-gnu arm64 4:14.2.0-1ubuntu1 [1200 B] 187s Get:19 http://ftpmaster.internal/ubuntu questing/main arm64 gcc arm64 4:14.2.0-1ubuntu1 [4998 B] 187s Get:20 http://ftpmaster.internal/ubuntu questing/main arm64 libstdc++-14-dev arm64 14.2.0-19ubuntu2 [2501 kB] 187s Get:21 http://ftpmaster.internal/ubuntu questing/main arm64 g++-14-aarch64-linux-gnu arm64 14.2.0-19ubuntu2 [12.1 MB] 187s Get:22 http://ftpmaster.internal/ubuntu questing/main arm64 g++-14 arm64 14.2.0-19ubuntu2 [23.0 kB] 187s Get:23 http://ftpmaster.internal/ubuntu questing/main arm64 g++-aarch64-linux-gnu arm64 4:14.2.0-1ubuntu1 [956 B] 187s Get:24 http://ftpmaster.internal/ubuntu questing/main arm64 g++ arm64 4:14.2.0-1ubuntu1 [1080 B] 187s Get:25 http://ftpmaster.internal/ubuntu questing/main arm64 build-essential arm64 12.12ubuntu1 [5082 B] 187s Get:26 http://ftpmaster.internal/ubuntu questing/main arm64 libffi-dev arm64 3.4.7-1 [59.5 kB] 187s Get:27 http://ftpmaster.internal/ubuntu questing/main arm64 uuid-dev arm64 2.40.2-14ubuntu1 [55.2 kB] 187s Get:28 http://ftpmaster.internal/ubuntu questing/main arm64 libblkid-dev arm64 2.40.2-14ubuntu1 [243 kB] 187s Get:29 http://ftpmaster.internal/ubuntu questing/main arm64 libsepol-dev arm64 3.7-1 [416 kB] 187s Get:30 http://ftpmaster.internal/ubuntu questing/main arm64 libpcre2-16-0 arm64 10.45-1 [222 kB] 187s Get:31 http://ftpmaster.internal/ubuntu questing/main arm64 libpcre2-32-0 arm64 10.45-1 [210 kB] 187s Get:32 http://ftpmaster.internal/ubuntu questing/main arm64 libpcre2-posix3 arm64 10.45-1 [7084 B] 187s Get:33 http://ftpmaster.internal/ubuntu questing/main arm64 libpcre2-dev arm64 10.45-1 [768 kB] 187s Get:34 http://ftpmaster.internal/ubuntu questing/main arm64 libselinux1-dev arm64 3.7-3ubuntu3 [174 kB] 187s Get:35 http://ftpmaster.internal/ubuntu questing/main arm64 libmount-dev arm64 2.40.2-14ubuntu1 [34.6 kB] 187s Get:36 http://ftpmaster.internal/ubuntu questing/main arm64 libsysprof-capture-4-dev arm64 48.0-2 [55.1 kB] 187s Get:37 http://ftpmaster.internal/ubuntu questing/main arm64 libpkgconf3 arm64 1.8.1-4 [31.4 kB] 187s Get:38 http://ftpmaster.internal/ubuntu questing/main arm64 pkgconf-bin arm64 1.8.1-4 [20.9 kB] 187s Get:39 http://ftpmaster.internal/ubuntu questing/main arm64 pkgconf arm64 1.8.1-4 [16.7 kB] 187s Get:40 http://ftpmaster.internal/ubuntu questing/main arm64 zlib1g-dev arm64 1:1.3.dfsg+really1.3.1-1ubuntu1 [894 kB] 188s Get:41 http://ftpmaster.internal/ubuntu questing/main arm64 libgio-2.0-dev arm64 2.84.1-1 [1917 kB] 188s Fetched 65.1 MB in 4s (15.3 MB/s) 188s Selecting previously unselected package libisl23:arm64. 188s (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 ... 117821 files and directories currently installed.) 189s Preparing to unpack .../00-libisl23_0.27-1_arm64.deb ... 189s Unpacking libisl23:arm64 (0.27-1) ... 189s Selecting previously unselected package libmpc3:arm64. 189s Preparing to unpack .../01-libmpc3_1.3.1-1build2_arm64.deb ... 189s Unpacking libmpc3:arm64 (1.3.1-1build2) ... 189s Selecting previously unselected package cpp-14-aarch64-linux-gnu. 189s Preparing to unpack .../02-cpp-14-aarch64-linux-gnu_14.2.0-19ubuntu2_arm64.deb ... 189s Unpacking cpp-14-aarch64-linux-gnu (14.2.0-19ubuntu2) ... 189s Selecting previously unselected package cpp-14. 189s Preparing to unpack .../03-cpp-14_14.2.0-19ubuntu2_arm64.deb ... 189s Unpacking cpp-14 (14.2.0-19ubuntu2) ... 189s Selecting previously unselected package cpp-aarch64-linux-gnu. 189s Preparing to unpack .../04-cpp-aarch64-linux-gnu_4%3a14.2.0-1ubuntu1_arm64.deb ... 189s Unpacking cpp-aarch64-linux-gnu (4:14.2.0-1ubuntu1) ... 189s Selecting previously unselected package cpp. 189s Preparing to unpack .../05-cpp_4%3a14.2.0-1ubuntu1_arm64.deb ... 189s Unpacking cpp (4:14.2.0-1ubuntu1) ... 189s Selecting previously unselected package libcc1-0:arm64. 189s Preparing to unpack .../06-libcc1-0_15-20250404-0ubuntu1_arm64.deb ... 189s Unpacking libcc1-0:arm64 (15-20250404-0ubuntu1) ... 189s Selecting previously unselected package libgomp1:arm64. 189s Preparing to unpack .../07-libgomp1_15-20250404-0ubuntu1_arm64.deb ... 189s Unpacking libgomp1:arm64 (15-20250404-0ubuntu1) ... 189s Selecting previously unselected package libitm1:arm64. 189s Preparing to unpack .../08-libitm1_15-20250404-0ubuntu1_arm64.deb ... 189s Unpacking libitm1:arm64 (15-20250404-0ubuntu1) ... 189s Selecting previously unselected package libasan8:arm64. 189s Preparing to unpack .../09-libasan8_15-20250404-0ubuntu1_arm64.deb ... 189s Unpacking libasan8:arm64 (15-20250404-0ubuntu1) ... 189s Selecting previously unselected package liblsan0:arm64. 189s Preparing to unpack .../10-liblsan0_15-20250404-0ubuntu1_arm64.deb ... 189s Unpacking liblsan0:arm64 (15-20250404-0ubuntu1) ... 189s Selecting previously unselected package libtsan2:arm64. 189s Preparing to unpack .../11-libtsan2_15-20250404-0ubuntu1_arm64.deb ... 189s Unpacking libtsan2:arm64 (15-20250404-0ubuntu1) ... 189s Selecting previously unselected package libubsan1:arm64. 189s Preparing to unpack .../12-libubsan1_15-20250404-0ubuntu1_arm64.deb ... 189s Unpacking libubsan1:arm64 (15-20250404-0ubuntu1) ... 190s Selecting previously unselected package libhwasan0:arm64. 190s Preparing to unpack .../13-libhwasan0_15-20250404-0ubuntu1_arm64.deb ... 190s Unpacking libhwasan0:arm64 (15-20250404-0ubuntu1) ... 190s Selecting previously unselected package libgcc-14-dev:arm64. 190s Preparing to unpack .../14-libgcc-14-dev_14.2.0-19ubuntu2_arm64.deb ... 190s Unpacking libgcc-14-dev:arm64 (14.2.0-19ubuntu2) ... 190s Selecting previously unselected package gcc-14-aarch64-linux-gnu. 190s Preparing to unpack .../15-gcc-14-aarch64-linux-gnu_14.2.0-19ubuntu2_arm64.deb ... 190s Unpacking gcc-14-aarch64-linux-gnu (14.2.0-19ubuntu2) ... 190s Selecting previously unselected package gcc-14. 190s Preparing to unpack .../16-gcc-14_14.2.0-19ubuntu2_arm64.deb ... 190s Unpacking gcc-14 (14.2.0-19ubuntu2) ... 190s Selecting previously unselected package gcc-aarch64-linux-gnu. 190s Preparing to unpack .../17-gcc-aarch64-linux-gnu_4%3a14.2.0-1ubuntu1_arm64.deb ... 190s Unpacking gcc-aarch64-linux-gnu (4:14.2.0-1ubuntu1) ... 190s Selecting previously unselected package gcc. 190s Preparing to unpack .../18-gcc_4%3a14.2.0-1ubuntu1_arm64.deb ... 190s Unpacking gcc (4:14.2.0-1ubuntu1) ... 190s Selecting previously unselected package libstdc++-14-dev:arm64. 190s Preparing to unpack .../19-libstdc++-14-dev_14.2.0-19ubuntu2_arm64.deb ... 190s Unpacking libstdc++-14-dev:arm64 (14.2.0-19ubuntu2) ... 191s Selecting previously unselected package g++-14-aarch64-linux-gnu. 191s Preparing to unpack .../20-g++-14-aarch64-linux-gnu_14.2.0-19ubuntu2_arm64.deb ... 191s Unpacking g++-14-aarch64-linux-gnu (14.2.0-19ubuntu2) ... 191s Selecting previously unselected package g++-14. 191s Preparing to unpack .../21-g++-14_14.2.0-19ubuntu2_arm64.deb ... 191s Unpacking g++-14 (14.2.0-19ubuntu2) ... 191s Selecting previously unselected package g++-aarch64-linux-gnu. 191s Preparing to unpack .../22-g++-aarch64-linux-gnu_4%3a14.2.0-1ubuntu1_arm64.deb ... 191s Unpacking g++-aarch64-linux-gnu (4:14.2.0-1ubuntu1) ... 191s Selecting previously unselected package g++. 191s Preparing to unpack .../23-g++_4%3a14.2.0-1ubuntu1_arm64.deb ... 191s Unpacking g++ (4:14.2.0-1ubuntu1) ... 191s Selecting previously unselected package build-essential. 191s Preparing to unpack .../24-build-essential_12.12ubuntu1_arm64.deb ... 191s Unpacking build-essential (12.12ubuntu1) ... 191s Selecting previously unselected package libffi-dev:arm64. 191s Preparing to unpack .../25-libffi-dev_3.4.7-1_arm64.deb ... 191s Unpacking libffi-dev:arm64 (3.4.7-1) ... 191s Selecting previously unselected package uuid-dev:arm64. 191s Preparing to unpack .../26-uuid-dev_2.40.2-14ubuntu1_arm64.deb ... 191s Unpacking uuid-dev:arm64 (2.40.2-14ubuntu1) ... 191s Selecting previously unselected package libblkid-dev:arm64. 191s Preparing to unpack .../27-libblkid-dev_2.40.2-14ubuntu1_arm64.deb ... 191s Unpacking libblkid-dev:arm64 (2.40.2-14ubuntu1) ... 191s Selecting previously unselected package libsepol-dev:arm64. 191s Preparing to unpack .../28-libsepol-dev_3.7-1_arm64.deb ... 191s Unpacking libsepol-dev:arm64 (3.7-1) ... 191s Selecting previously unselected package libpcre2-16-0:arm64. 191s Preparing to unpack .../29-libpcre2-16-0_10.45-1_arm64.deb ... 191s Unpacking libpcre2-16-0:arm64 (10.45-1) ... 191s Selecting previously unselected package libpcre2-32-0:arm64. 191s Preparing to unpack .../30-libpcre2-32-0_10.45-1_arm64.deb ... 191s Unpacking libpcre2-32-0:arm64 (10.45-1) ... 191s Selecting previously unselected package libpcre2-posix3:arm64. 191s Preparing to unpack .../31-libpcre2-posix3_10.45-1_arm64.deb ... 191s Unpacking libpcre2-posix3:arm64 (10.45-1) ... 191s Selecting previously unselected package libpcre2-dev:arm64. 191s Preparing to unpack .../32-libpcre2-dev_10.45-1_arm64.deb ... 191s Unpacking libpcre2-dev:arm64 (10.45-1) ... 191s Selecting previously unselected package libselinux1-dev:arm64. 192s Preparing to unpack .../33-libselinux1-dev_3.7-3ubuntu3_arm64.deb ... 192s Unpacking libselinux1-dev:arm64 (3.7-3ubuntu3) ... 192s Selecting previously unselected package libmount-dev:arm64. 192s Preparing to unpack .../34-libmount-dev_2.40.2-14ubuntu1_arm64.deb ... 192s Unpacking libmount-dev:arm64 (2.40.2-14ubuntu1) ... 192s Selecting previously unselected package libsysprof-capture-4-dev:arm64. 192s Preparing to unpack .../35-libsysprof-capture-4-dev_48.0-2_arm64.deb ... 192s Unpacking libsysprof-capture-4-dev:arm64 (48.0-2) ... 192s Selecting previously unselected package libpkgconf3:arm64. 192s Preparing to unpack .../36-libpkgconf3_1.8.1-4_arm64.deb ... 192s Unpacking libpkgconf3:arm64 (1.8.1-4) ... 192s Selecting previously unselected package pkgconf-bin. 192s Preparing to unpack .../37-pkgconf-bin_1.8.1-4_arm64.deb ... 192s Unpacking pkgconf-bin (1.8.1-4) ... 192s Selecting previously unselected package pkgconf:arm64. 192s Preparing to unpack .../38-pkgconf_1.8.1-4_arm64.deb ... 192s Unpacking pkgconf:arm64 (1.8.1-4) ... 192s Selecting previously unselected package zlib1g-dev:arm64. 192s Preparing to unpack .../39-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1ubuntu1_arm64.deb ... 192s Unpacking zlib1g-dev:arm64 (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 192s Selecting previously unselected package libgio-2.0-dev:arm64. 192s Preparing to unpack .../40-libgio-2.0-dev_2.84.1-1_arm64.deb ... 192s Unpacking libgio-2.0-dev:arm64 (2.84.1-1) ... 192s Setting up libgomp1:arm64 (15-20250404-0ubuntu1) ... 192s Setting up libffi-dev:arm64 (3.4.7-1) ... 192s Setting up libpcre2-16-0:arm64 (10.45-1) ... 192s Setting up libsysprof-capture-4-dev:arm64 (48.0-2) ... 192s Setting up libpcre2-32-0:arm64 (10.45-1) ... 192s Setting up libpkgconf3:arm64 (1.8.1-4) ... 192s Setting up uuid-dev:arm64 (2.40.2-14ubuntu1) ... 192s Setting up libmpc3:arm64 (1.3.1-1build2) ... 192s Setting up libsepol-dev:arm64 (3.7-1) ... 192s Setting up pkgconf-bin (1.8.1-4) ... 192s Setting up libubsan1:arm64 (15-20250404-0ubuntu1) ... 192s Setting up zlib1g-dev:arm64 (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 192s Setting up libpcre2-posix3:arm64 (10.45-1) ... 192s Setting up libhwasan0:arm64 (15-20250404-0ubuntu1) ... 192s Setting up libasan8:arm64 (15-20250404-0ubuntu1) ... 192s Setting up libtsan2:arm64 (15-20250404-0ubuntu1) ... 192s Setting up libisl23:arm64 (0.27-1) ... 192s Setting up libcc1-0:arm64 (15-20250404-0ubuntu1) ... 192s Setting up liblsan0:arm64 (15-20250404-0ubuntu1) ... 192s Setting up libitm1:arm64 (15-20250404-0ubuntu1) ... 192s Setting up libblkid-dev:arm64 (2.40.2-14ubuntu1) ... 192s Setting up libpcre2-dev:arm64 (10.45-1) ... 192s Setting up libselinux1-dev:arm64 (3.7-3ubuntu3) ... 192s Setting up pkgconf:arm64 (1.8.1-4) ... 192s Setting up cpp-14-aarch64-linux-gnu (14.2.0-19ubuntu2) ... 192s Setting up libgcc-14-dev:arm64 (14.2.0-19ubuntu2) ... 192s Setting up libstdc++-14-dev:arm64 (14.2.0-19ubuntu2) ... 192s Setting up libmount-dev:arm64 (2.40.2-14ubuntu1) ... 192s Setting up libgio-2.0-dev:arm64 (2.84.1-1) ... 192s Setting up cpp-aarch64-linux-gnu (4:14.2.0-1ubuntu1) ... 192s Setting up cpp-14 (14.2.0-19ubuntu2) ... 192s Setting up cpp (4:14.2.0-1ubuntu1) ... 192s Setting up gcc-14-aarch64-linux-gnu (14.2.0-19ubuntu2) ... 192s Setting up gcc-aarch64-linux-gnu (4:14.2.0-1ubuntu1) ... 192s Setting up g++-14-aarch64-linux-gnu (14.2.0-19ubuntu2) ... 192s Setting up gcc-14 (14.2.0-19ubuntu2) ... 192s Setting up g++-aarch64-linux-gnu (4:14.2.0-1ubuntu1) ... 192s Setting up g++-14 (14.2.0-19ubuntu2) ... 192s Setting up gcc (4:14.2.0-1ubuntu1) ... 192s Setting up g++ (4:14.2.0-1ubuntu1) ... 192s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 192s Setting up build-essential (12.12ubuntu1) ... 192s Processing triggers for libc-bin (2.41-6ubuntu1) ... 192s Processing triggers for man-db (2.13.0-1) ... 193s Processing triggers for libglib2.0-0t64:arm64 (2.84.1-1) ... 193s No schema files found: doing nothing. 193s Processing triggers for install-info (7.1.1-1) ... 194s autopkgtest [08:37:51]: test build: [----------------------- 194s + mode=dynamic 194s + getopt -o --long static -n debian/tests/build -- 194s + getopt_temp= -- 194s + eval set -- -- 194s + set -- -- 194s + true 194s + shift 194s + break 194s + mktemp -d 194s + WORKDIR=/tmp/tmp.4i5feM8N5n 194s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 194s + cd /tmp/tmp.4i5feM8N5n 194s + [ -n ] 194s + CROSS_COMPILE= 194s + cat 194s + cat 194s + cat 194s + cat 194s + cat 194s + cat 194s + cflags= 194s + pcflags= 194s + packages=glib-2.0 194s + pkg-config --cflags --libs glib-2.0 194s + gcc -o glib-dynamic glib.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 194s build (glib, dynamic): OK 194s + echo build (glib, dynamic): OK 194s + [ -x glib-dynamic ] 194s + foo=bar ./glib-dynamic 194s + echo run (glib, dynamic): OK 194s + cflags= 194s + pcflags= 194s + packages=gobject-2.0 194s + pkg-config --cflags --libs gobject-2.0 194s + gcc -o gobject-dynamic gobject.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 194s run (glib, dynamic): OK 195s build (gobject, dynamic): OK 195s run (gobject, dynamic): OK 195s + echo build (gobject, dynamic): OK 195s + [ -x gobject-dynamic ] 195s + foo=bar ./gobject-dynamic 195s + echo run (gobject, dynamic): OK 195s + cflags= 195s + pcflags= 195s + packages=gio-2.0 195s + pkg-config --cflags --libs gio-2.0 195s + gcc -o gio-dynamic gio.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-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 195s build (gio, dynamic): OK 195s + echo build (gio, dynamic): OK 195s + [ -x gio-dynamic ] 195s + foo=bar ./gio-dynamic 195s + echo run (gio, dynamic): OK 195s + cflags= 195s + pcflags= 195s + packages=gio-unix-2.0 195s + pkg-config --cflags --libs gio-unix-2.0 195s run (gio, dynamic): OK 195s + gcc -o gio-unix-dynamic gio-unix.c -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib/aarch64-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 195s build (gio-unix, dynamic): OK 195s + echo build (gio-unix, dynamic): OK 195s + [ -x gio-unix-dynamic ] 195s + foo=bar ./gio-unix-dynamic 195s + run (gio-unix, dynamic): OK 195s echo run (gio-unix, dynamic): OK 195s + cflags= 195s + pcflags= 195s + packages=gmodule-2.0 195s + pkg-config --cflags --libs gmodule-2.0 195s + gcc -o gmodule-dynamic gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-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 195s build (gmodule, dynamic): OK 195s + echo build (gmodule, dynamic): OK 195s + [ -x gmodule-dynamic ] 195s + foo=bar ./gmodule-dynamic 195s run (gmodule, dynamic): OK 195s + echo run (gmodule, dynamic): OK 195s + cflags= 195s + pcflags= 195s + packages=gthread-2.0 195s + pkg-config --cflags --libs gthread-2.0 195s + gcc -o gthread-dynamic gthread.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 195s + build (gthread, dynamic): OK 195s run (gthread, dynamic): OK 195s echo build (gthread, dynamic): OK 195s + [ -x gthread-dynamic ] 195s + foo=bar ./gthread-dynamic 195s + echo run (gthread, dynamic): OK 195s + rm -rf /tmp/tmp.4i5feM8N5n 196s autopkgtest [08:37:53]: test build: -----------------------] 196s build PASS (superficial) 196s autopkgtest [08:37:53]: test build: - - - - - - - - - - results - - - - - - - - - - 196s autopkgtest [08:37:53]: test build-static: preparing testbed 197s Reading package lists... 197s Building dependency tree... 197s Reading state information... 197s Starting pkgProblemResolver with broken count: 0 197s Starting 2 pkgProblemResolver with broken count: 0 197s Done 198s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 199s autopkgtest [08:37:56]: test build-static: [----------------------- 199s + mode=dynamic 199s + getopt -o --long static -n debian/tests/build -- --static 199s + getopt_temp= --static -- 199s + eval set -- --static -- 199s + set -- --static -- 199s + true 199s + mode=static 199s + shift 199s + continue 199s + true 199s + shift 199s + break 199s + mktemp -d 199s + WORKDIR=/tmp/tmp.my0qi1Y1dl 199s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 199s + cd /tmp/tmp.my0qi1Y1dl 199s + [ -n ] 199s + CROSS_COMPILE= 199s + cat 199s + cat 199s + cat 199s + cat 199s + cat 199s + cat 199s + cflags= 199s + pcflags= 199s + packages=glib-2.0 199s + cflags=-static 199s + pcflags=--static 199s + pkg-config --static --cflags --libs glib-2.0 199s + gcc -static -o glib-static glib.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 199s /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/14/../../../aarch64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 199s (.text+0xf8): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 199s /usr/bin/ld: (.text+0x2a0): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 199s /usr/bin/ld: (.text+0x12c): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 199s build (glib, static): OK 199s + echo build (glib, static): OK 199s + [ -x glib-static ] 199s + foo=bar ./glib-static 199s run (glib, static): OK 199s + echo run (glib, static): OK 199s + cflags= 199s + pcflags= 199s + packages=gobject-2.0 199s + cflags=-static 199s + pcflags=--static 199s + pkg-config --static --cflags --libs gobject-2.0 199s + gcc -static -o gobject-static gobject.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-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 200s /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/14/../../../aarch64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 200s (.text+0xf8): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 200s /usr/bin/ld: (.text+0x2a0): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 200s /usr/bin/ld: (.text+0x12c): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 200s build (gobject, static): OK 200s + echo build (gobject, static): OK 200s + [ -x gobject-static ] 200s + foo=bar ./gobject-static 200s + echo run (gobject, static): OK 200s + cflags= 200s + pcflags= 200s + packages=gio-2.0 200s + cflags=-static 200s + pcflags=--static 200s + continue 200s + cflags= 200s + pcflags= 200s + packages=gio-unix-2.0 200s + cflags=-static 200s + pcflags=--static 200s + continue 200s + cflags= 200s + pcflags= 200s + packages=gmodule-2.0 200s + cflags=-static 200s + pcflags=--static 200s run (gobject, static): OK 200s + pkg-config --static --cflags --libs gmodule-2.0 200s + gcc -static -o gmodule-static gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-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 200s /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/14/../../../aarch64-linux-gnu/libgmodule-2.0.a(gmodule.c.o): in function `g_module_open_full': 200s (.text+0x604): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 200s /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/14/../../../aarch64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 200s (.text+0xf8): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 200s /usr/bin/ld: (.text+0x2a0): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 200s /usr/bin/ld: (.text+0x12c): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 200s build (gmodule, static): OK 200s + echo build (gmodule, static): OK 200s + [ -x gmodule-static ] 200s + foo=bar ./gmodule-static 200s + echo run (gmodule, static): OK 200s + cflags= 200s + pcflags= 200s + packages=gthread-2.0 200s + cflags=-static 200s + pcflags=--static 200s run (gmodule, static): OK 200s + pkg-config --static --cflags --libs gthread-2.0 200s + gcc -static -o gthread-static gthread.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-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 200s /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/14/../../../aarch64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 200s (.text+0xf8): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 200s /usr/bin/ld: (.text+0x2a0): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 200s /usr/bin/ld: (.text+0x12c): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 200s + build (gthread, static): OK 200s echo build (gthread, static): OK 200s + [ -x gthread-static ] 200s + foo=bar ./gthread-static 200s + run (gthread, static): OK 200s echo run (gthread, static): OK 200s + rm -rf /tmp/tmp.my0qi1Y1dl 200s autopkgtest [08:37:57]: test build-static: -----------------------] 201s autopkgtest [08:37:58]: test build-static: - - - - - - - - - - results - - - - - - - - - - 201s build-static PASS (superficial) 201s autopkgtest [08:37:58]: test girepository-tools: preparing testbed 314s autopkgtest [08:39:51]: testbed dpkg architecture: arm64 314s autopkgtest [08:39:51]: testbed apt version: 3.0.0 314s autopkgtest [08:39:51]: @@@@@@@@@@@@@@@@@@@@ test bed setup 314s autopkgtest [08:39:51]: testbed release detected to be: questing 315s autopkgtest [08:39:52]: updating testbed package index (apt update) 315s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [110 kB] 316s Hit:2 http://ftpmaster.internal/ubuntu questing InRelease 316s Hit:3 http://ftpmaster.internal/ubuntu questing-updates InRelease 316s Hit:4 http://ftpmaster.internal/ubuntu questing-security InRelease 316s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [175 kB] 316s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [2076 kB] 316s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [44.4 kB] 316s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/main arm64 Packages [219 kB] 316s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/universe arm64 Packages [1509 kB] 316s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/multiverse arm64 Packages [15.4 kB] 317s Fetched 4149 kB in 1s (3201 kB/s) 318s Reading package lists... 318s autopkgtest [08:39:55]: upgrading testbed (apt dist-upgrade and autopurge) 318s Reading package lists... 319s Building dependency tree... 319s Reading state information... 319s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 320s Starting 2 pkgProblemResolver with broken count: 0 320s Done 320s Entering ResolveByKeep 321s 321s Calculating upgrade... 321s The following packages will be upgraded: 321s htop libpython3.13 libpython3.13-minimal libpython3.13-stdlib mtd-utils nano 321s python3.13 python3.13-gdbm python3.13-minimal 322s 9 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 322s Need to get 9181 kB of archives. 322s After this operation, 727 kB of additional disk space will be used. 322s Get:1 http://ftpmaster.internal/ubuntu questing-proposed/main arm64 python3.13 arm64 3.13.3-2 [739 kB] 322s Get:2 http://ftpmaster.internal/ubuntu questing-proposed/main arm64 libpython3.13 arm64 3.13.3-2 [2281 kB] 322s Get:3 http://ftpmaster.internal/ubuntu questing-proposed/main arm64 libpython3.13-stdlib arm64 3.13.3-2 [2038 kB] 322s Get:4 http://ftpmaster.internal/ubuntu questing-proposed/main arm64 python3.13-minimal arm64 3.13.3-2 [2273 kB] 322s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/main arm64 libpython3.13-minimal arm64 3.13.3-2 [881 kB] 322s Get:6 http://ftpmaster.internal/ubuntu questing/main arm64 nano arm64 8.4-1 [290 kB] 322s Get:7 http://ftpmaster.internal/ubuntu questing/main arm64 htop arm64 3.4.1-4 [177 kB] 322s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/main arm64 python3.13-gdbm arm64 3.13.3-2 [31.5 kB] 322s Get:9 http://ftpmaster.internal/ubuntu questing/main arm64 mtd-utils arm64 1:2.3.0-1ubuntu1 [469 kB] 323s Fetched 9181 kB in 1s (10.5 MB/s) 323s (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 ... 117820 files and directories currently installed.) 323s Preparing to unpack .../0-python3.13_3.13.3-2_arm64.deb ... 323s Unpacking python3.13 (3.13.3-2) over (3.13.3-1) ... 323s Preparing to unpack .../1-libpython3.13_3.13.3-2_arm64.deb ... 323s Unpacking libpython3.13:arm64 (3.13.3-2) over (3.13.3-1) ... 323s Preparing to unpack .../2-libpython3.13-stdlib_3.13.3-2_arm64.deb ... 323s Unpacking libpython3.13-stdlib:arm64 (3.13.3-2) over (3.13.3-1) ... 323s Preparing to unpack .../3-python3.13-minimal_3.13.3-2_arm64.deb ... 324s Unpacking python3.13-minimal (3.13.3-2) over (3.13.3-1) ... 324s Preparing to unpack .../4-libpython3.13-minimal_3.13.3-2_arm64.deb ... 324s Unpacking libpython3.13-minimal:arm64 (3.13.3-2) over (3.13.3-1) ... 324s Preparing to unpack .../5-nano_8.4-1_arm64.deb ... 324s Unpacking nano (8.4-1) over (8.3-1) ... 324s Preparing to unpack .../6-htop_3.4.1-4_arm64.deb ... 324s Unpacking htop (3.4.1-4) over (3.4.0-2) ... 324s Preparing to unpack .../7-python3.13-gdbm_3.13.3-2_arm64.deb ... 324s Unpacking python3.13-gdbm (3.13.3-2) over (3.13.3-1) ... 324s Preparing to unpack .../8-mtd-utils_1%3a2.3.0-1ubuntu1_arm64.deb ... 324s Unpacking mtd-utils (1:2.3.0-1ubuntu1) over (1:2.2.0-2ubuntu2) ... 324s Setting up htop (3.4.1-4) ... 324s Setting up mtd-utils (1:2.3.0-1ubuntu1) ... 324s Setting up libpython3.13-minimal:arm64 (3.13.3-2) ... 324s Setting up nano (8.4-1) ... 324s Installing new version of config file /etc/nanorc ... 324s Setting up python3.13-minimal (3.13.3-2) ... 325s Setting up libpython3.13-stdlib:arm64 (3.13.3-2) ... 325s Setting up python3.13-gdbm (3.13.3-2) ... 325s Setting up libpython3.13:arm64 (3.13.3-2) ... 325s Setting up python3.13 (3.13.3-2) ... 326s Processing triggers for systemd (257.4-1ubuntu3) ... 326s Processing triggers for man-db (2.13.0-1) ... 328s Processing triggers for install-info (7.1.1-1) ... 328s Processing triggers for libc-bin (2.41-6ubuntu1) ... 328s Reading package lists... 328s Building dependency tree... 328s Reading state information... 329s Starting pkgProblemResolver with broken count: 0 329s Starting 2 pkgProblemResolver with broken count: 0 329s Done 329s Solving dependencies... 330s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 332s Reading package lists... 333s Building dependency tree... 333s Reading state information... 333s Starting pkgProblemResolver with broken count: 0 333s Starting 2 pkgProblemResolver with broken count: 0 333s Done 334s The following NEW packages will be installed: 334s gir1.2-glib-2.0-dev girepository-tools libgirepository-2.0-0 334s native-architecture 334s 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. 334s Need to get 1044 kB of archives. 334s After this operation, 12.8 MB of additional disk space will be used. 334s Get:1 http://ftpmaster.internal/ubuntu questing/main arm64 gir1.2-glib-2.0-dev arm64 2.84.1-1 [862 kB] 335s Get:2 http://ftpmaster.internal/ubuntu questing/main arm64 native-architecture all 0.2.6 [2140 B] 335s Get:3 http://ftpmaster.internal/ubuntu questing/main arm64 libgirepository-2.0-0 arm64 2.84.1-1 [73.2 kB] 335s Get:4 http://ftpmaster.internal/ubuntu questing/main arm64 girepository-tools arm64 2.84.1-1 [106 kB] 335s Fetched 1044 kB in 1s (1742 kB/s) 335s Selecting previously unselected package gir1.2-glib-2.0-dev:arm64. 335s (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 ... 117821 files and directories currently installed.) 335s Preparing to unpack .../gir1.2-glib-2.0-dev_2.84.1-1_arm64.deb ... 335s Unpacking gir1.2-glib-2.0-dev:arm64 (2.84.1-1) ... 335s Selecting previously unselected package native-architecture. 335s Preparing to unpack .../native-architecture_0.2.6_all.deb ... 335s Unpacking native-architecture (0.2.6) ... 335s Selecting previously unselected package libgirepository-2.0-0:arm64. 335s Preparing to unpack .../libgirepository-2.0-0_2.84.1-1_arm64.deb ... 335s Unpacking libgirepository-2.0-0:arm64 (2.84.1-1) ... 335s Selecting previously unselected package girepository-tools:arm64. 336s Preparing to unpack .../girepository-tools_2.84.1-1_arm64.deb ... 336s Unpacking girepository-tools:arm64 (2.84.1-1) ... 336s Setting up native-architecture (0.2.6) ... 336s Setting up libgirepository-2.0-0:arm64 (2.84.1-1) ... 336s Setting up gir1.2-glib-2.0-dev:arm64 (2.84.1-1) ... 336s Setting up girepository-tools:arm64 (2.84.1-1) ... 336s Processing triggers for man-db (2.13.0-1) ... 336s Processing triggers for libc-bin (2.41-6ubuntu1) ... 352s autopkgtest [08:40:29]: test girepository-tools: [----------------------- 353s + cd /tmp/autopkgtest.s3NNs2/autopkgtest_tmp 353s + dpkg-architecture -qDEB_HOST_GNU_TYPE 353s dpkg-architecture: warning: cannot determine CC system type, falling back to default (native compilation) 353s + DEB_HOST_GNU_TYPE=aarch64-linux-gnu 353s + dpkg-architecture -qDEB_HOST_MULTIARCH 353s dpkg-architecture: warning: cannot determine CC system type, falling back to default (native compilation) 353s + DEB_HOST_MULTIARCH=aarch64-linux-gnu 353s + aarch64-linux-gnu-gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 353s typelib: GLib-2.0 353s + aarch64-linux-gnu-gi-compile-repository -o GLib.typelib /usr/lib/aarch64-linux-gnu/gir-1.0/GLib-2.0.gir 353s + aarch64-linux-gnu-gi-decompile-typelib -o GLib.gir GLib.typelib 353s autopkgtest [08:40:30]: test girepository-tools: -----------------------] 354s autopkgtest [08:40:31]: test girepository-tools: - - - - - - - - - - results - - - - - - - - - - 354s girepository-tools PASS (superficial) 354s autopkgtest [08:40:31]: test libgio-2.0-dev-bin: preparing testbed 454s autopkgtest [08:42:11]: testbed dpkg architecture: arm64 454s autopkgtest [08:42:11]: testbed apt version: 3.0.0 454s autopkgtest [08:42:11]: @@@@@@@@@@@@@@@@@@@@ test bed setup 455s autopkgtest [08:42:12]: testbed release detected to be: questing 455s autopkgtest [08:42:12]: updating testbed package index (apt update) 456s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [110 kB] 456s Hit:2 http://ftpmaster.internal/ubuntu questing InRelease 456s Hit:3 http://ftpmaster.internal/ubuntu questing-updates InRelease 456s Hit:4 http://ftpmaster.internal/ubuntu questing-security InRelease 456s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [175 kB] 456s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [2076 kB] 456s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [44.4 kB] 456s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/main arm64 Packages [219 kB] 456s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/universe arm64 Packages [1509 kB] 456s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/multiverse arm64 Packages [15.4 kB] 457s Fetched 4149 kB in 1s (3360 kB/s) 458s Reading package lists... 458s autopkgtest [08:42:15]: upgrading testbed (apt dist-upgrade and autopurge) 459s Reading package lists... 459s Building dependency tree... 459s Reading state information... 460s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 460s Starting 2 pkgProblemResolver with broken count: 0 460s Done 460s Entering ResolveByKeep 461s 461s Calculating upgrade... 461s The following packages will be upgraded: 461s htop libpython3.13 libpython3.13-minimal libpython3.13-stdlib mtd-utils nano 461s python3.13 python3.13-gdbm python3.13-minimal 462s 9 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 462s Need to get 9181 kB of archives. 462s After this operation, 727 kB of additional disk space will be used. 462s Get:1 http://ftpmaster.internal/ubuntu questing-proposed/main arm64 python3.13 arm64 3.13.3-2 [739 kB] 462s Get:2 http://ftpmaster.internal/ubuntu questing-proposed/main arm64 libpython3.13 arm64 3.13.3-2 [2281 kB] 462s Get:3 http://ftpmaster.internal/ubuntu questing-proposed/main arm64 libpython3.13-stdlib arm64 3.13.3-2 [2038 kB] 462s Get:4 http://ftpmaster.internal/ubuntu questing-proposed/main arm64 python3.13-minimal arm64 3.13.3-2 [2273 kB] 462s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/main arm64 libpython3.13-minimal arm64 3.13.3-2 [881 kB] 462s Get:6 http://ftpmaster.internal/ubuntu questing/main arm64 nano arm64 8.4-1 [290 kB] 462s Get:7 http://ftpmaster.internal/ubuntu questing/main arm64 htop arm64 3.4.1-4 [177 kB] 462s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/main arm64 python3.13-gdbm arm64 3.13.3-2 [31.5 kB] 462s Get:9 http://ftpmaster.internal/ubuntu questing/main arm64 mtd-utils arm64 1:2.3.0-1ubuntu1 [469 kB] 463s Fetched 9181 kB in 1s (10.2 MB/s) 463s (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 ... 117820 files and directories currently installed.) 463s Preparing to unpack .../0-python3.13_3.13.3-2_arm64.deb ... 463s Unpacking python3.13 (3.13.3-2) over (3.13.3-1) ... 463s Preparing to unpack .../1-libpython3.13_3.13.3-2_arm64.deb ... 463s Unpacking libpython3.13:arm64 (3.13.3-2) over (3.13.3-1) ... 463s Preparing to unpack .../2-libpython3.13-stdlib_3.13.3-2_arm64.deb ... 463s Unpacking libpython3.13-stdlib:arm64 (3.13.3-2) over (3.13.3-1) ... 464s Preparing to unpack .../3-python3.13-minimal_3.13.3-2_arm64.deb ... 464s Unpacking python3.13-minimal (3.13.3-2) over (3.13.3-1) ... 464s Preparing to unpack .../4-libpython3.13-minimal_3.13.3-2_arm64.deb ... 464s Unpacking libpython3.13-minimal:arm64 (3.13.3-2) over (3.13.3-1) ... 464s Preparing to unpack .../5-nano_8.4-1_arm64.deb ... 464s Unpacking nano (8.4-1) over (8.3-1) ... 464s Preparing to unpack .../6-htop_3.4.1-4_arm64.deb ... 464s Unpacking htop (3.4.1-4) over (3.4.0-2) ... 464s Preparing to unpack .../7-python3.13-gdbm_3.13.3-2_arm64.deb ... 464s Unpacking python3.13-gdbm (3.13.3-2) over (3.13.3-1) ... 464s Preparing to unpack .../8-mtd-utils_1%3a2.3.0-1ubuntu1_arm64.deb ... 464s Unpacking mtd-utils (1:2.3.0-1ubuntu1) over (1:2.2.0-2ubuntu2) ... 464s Setting up htop (3.4.1-4) ... 464s Setting up mtd-utils (1:2.3.0-1ubuntu1) ... 464s Setting up libpython3.13-minimal:arm64 (3.13.3-2) ... 464s Setting up nano (8.4-1) ... 464s Installing new version of config file /etc/nanorc ... 464s Setting up python3.13-minimal (3.13.3-2) ... 465s Setting up libpython3.13-stdlib:arm64 (3.13.3-2) ... 465s Setting up python3.13-gdbm (3.13.3-2) ... 465s Setting up libpython3.13:arm64 (3.13.3-2) ... 465s Setting up python3.13 (3.13.3-2) ... 466s Processing triggers for systemd (257.4-1ubuntu3) ... 467s Processing triggers for man-db (2.13.0-1) ... 468s Processing triggers for install-info (7.1.1-1) ... 468s Processing triggers for libc-bin (2.41-6ubuntu1) ... 468s Reading package lists... 469s Building dependency tree... 469s Reading state information... 469s Starting pkgProblemResolver with broken count: 0 469s Starting 2 pkgProblemResolver with broken count: 0 469s Done 470s Solving dependencies... 470s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 474s Reading package lists... 474s Building dependency tree... 474s Reading state information... 475s Starting pkgProblemResolver with broken count: 0 475s Starting 2 pkgProblemResolver with broken count: 0 475s Done 476s The following NEW packages will be installed: 476s libgio-2.0-dev-bin python3-packaging 476s 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. 476s Need to get 180 kB of archives. 476s After this operation, 1068 kB of additional disk space will be used. 476s Get:1 http://ftpmaster.internal/ubuntu questing/main arm64 python3-packaging all 24.2-1 [51.5 kB] 476s Get:2 http://ftpmaster.internal/ubuntu questing/main arm64 libgio-2.0-dev-bin arm64 2.84.1-1 [129 kB] 476s Fetched 180 kB in 0s (415 kB/s) 476s Selecting previously unselected package python3-packaging. 477s (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 ... 117821 files and directories currently installed.) 477s Preparing to unpack .../python3-packaging_24.2-1_all.deb ... 477s Unpacking python3-packaging (24.2-1) ... 477s Selecting previously unselected package libgio-2.0-dev-bin. 477s Preparing to unpack .../libgio-2.0-dev-bin_2.84.1-1_arm64.deb ... 477s Unpacking libgio-2.0-dev-bin (2.84.1-1) ... 477s Setting up python3-packaging (24.2-1) ... 477s Setting up libgio-2.0-dev-bin (2.84.1-1) ... 477s Processing triggers for man-db (2.13.0-1) ... 490s autopkgtest [08:42:47]: test libgio-2.0-dev-bin: [----------------------- 491s + gdbus-codegen --help 491s usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 491s [--c-namespace NAMESPACE] [--c-generate-object-manager] 491s [--c-generate-autocleanup {none,objects,all}] 491s [--generate-docbook OUTFILES] [--generate-md OUTFILES] 491s [--generate-rst OUTFILES] [--pragma-once] 491s [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 491s [--glib-min-required VERSION] 491s [--glib-max-allowed VERSION] 491s [--symbol-decorator SYMBOL_DECORATOR] 491s [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 491s [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 491s [--generate-c-code OUTFILES | --header | --body | 491s --interface-info-header | --interface-info-body] 491s [--output FILE | --output-directory OUTDIR] 491s FILE [FILE ...] 491s 491s D-Bus code and documentation generator 491s 491s positional arguments: 491s FILE D-Bus introspection XML file 491s 491s options: 491s -h, --help show this help message and exit 491s --interface-prefix PREFIX 491s String to strip from D-Bus interface names for code 491s and docs 491s --c-namespace NAMESPACE 491s The namespace to use for generated C code 491s --c-generate-object-manager 491s Generate a GDBusObjectManagerClient subclass when 491s generating C code 491s --c-generate-autocleanup {none,objects,all} 491s Generate autocleanup support 491s --generate-docbook OUTFILES 491s Generate Docbook in OUTFILES-org.Project.IFace.xml 491s --generate-md OUTFILES 491s Generate Markdown in OUTFILES-org.Project.IFace.md 491s --generate-rst OUTFILES 491s Generate reStructuredText in OUTFILES- 491s org.Project.IFace.rst 491s --pragma-once Use "pragma once" as the inclusion guard 491s --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 491s Add annotation (may be used several times) 491s --glib-min-required VERSION 491s Minimum version of GLib to be supported by the 491s outputted code (default: 2.30) 491s --glib-max-allowed VERSION 491s Maximum version of GLib to be used by the outputted 491s code (default: current GLib version) 491s --symbol-decorator SYMBOL_DECORATOR 491s Macro used to decorate a symbol in the outputted 491s header, possibly to export symbols 491s --symbol-decorator-header SYMBOL_DECORATOR_HEADER 491s Additional header required for decorator specified by 491s --symbol-decorator 491s --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 491s Additional define required for decorator specified by 491s --symbol-decorator 491s --generate-c-code OUTFILES 491s Generate C code in OUTFILES.[ch] 491s --header Generate C headers 491s --body Generate C code 491s --interface-info-header 491s Generate GDBusInterfaceInfo C header 491s --interface-info-body 491s Generate GDBusInterfaceInfo C code 491s --output FILE Write output into the specified file 491s --output-directory OUTDIR 491s Location to output generated files 491s + glib-compile-resources --version 491s + glib-genmarshal --version 491s 2.84.1 491s glib-genmarshal version 2.84.1 491s glib-genmarshal comes with ABSOLUTELY NO WARRANTY. 491s You may redistribute copies of glib-genmarshal under the terms of 491s the GNU General Public License which can be found in the 491s GLib source package. Sources, examples and contact 491s information are available at http://www.gtk.org 491s + glib-gettextize --version 491s /usr/bin/glib-gettextize (GNU glib) 2.84.1 491s Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc. 491s This is free software; see the source for copying conditions. There is NO 491s warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 491s Written by Ulrich Drepper 491s + glib-mkenums --version 491s glib-mkenums version 2.84.1 491s glib-mkenums comes with ABSOLUTELY NO WARRANTY. 491s You may redistribute copies of glib-mkenums under the terms of 491s the GNU General Public License which can be found in the 491s GLib source package. Sources, examples and contact 491s information are available at http://www.gtk.org 491s + gobject-query tree 491s GObject 491s + gtester --version 491s gtester version 2.84.1 491s + gtester-report --version 491s gtester-report (GLib utils) version 2.84.1. 491s autopkgtest [08:42:48]: test libgio-2.0-dev-bin: -----------------------] 492s autopkgtest [08:42:49]: test libgio-2.0-dev-bin: - - - - - - - - - - results - - - - - - - - - - 492s libgio-2.0-dev-bin PASS (superficial) 492s autopkgtest [08:42:49]: test libglib2.0-dev: preparing testbed 640s autopkgtest [08:45:17]: testbed dpkg architecture: arm64 640s autopkgtest [08:45:17]: testbed apt version: 3.0.0 640s autopkgtest [08:45:17]: @@@@@@@@@@@@@@@@@@@@ test bed setup 641s autopkgtest [08:45:18]: testbed release detected to be: questing 641s autopkgtest [08:45:18]: updating testbed package index (apt update) 642s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [110 kB] 642s Hit:2 http://ftpmaster.internal/ubuntu questing InRelease 642s Hit:3 http://ftpmaster.internal/ubuntu questing-updates InRelease 642s Hit:4 http://ftpmaster.internal/ubuntu questing-security InRelease 642s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [2076 kB] 643s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [44.4 kB] 643s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [175 kB] 643s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/main arm64 Packages [219 kB] 643s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/universe arm64 Packages [1509 kB] 643s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/multiverse arm64 Packages [15.4 kB] 643s Fetched 4149 kB in 1s (3221 kB/s) 644s Reading package lists... 645s autopkgtest [08:45:22]: upgrading testbed (apt dist-upgrade and autopurge) 645s Reading package lists... 645s Building dependency tree... 645s Reading state information... 646s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 646s Starting 2 pkgProblemResolver with broken count: 0 646s Done 647s Entering ResolveByKeep 648s 648s Calculating upgrade... 648s The following packages will be upgraded: 648s htop libpython3.13 libpython3.13-minimal libpython3.13-stdlib mtd-utils nano 648s python3.13 python3.13-gdbm python3.13-minimal 648s 9 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 648s Need to get 9181 kB of archives. 648s After this operation, 727 kB of additional disk space will be used. 648s Get:1 http://ftpmaster.internal/ubuntu questing-proposed/main arm64 python3.13 arm64 3.13.3-2 [739 kB] 648s Get:2 http://ftpmaster.internal/ubuntu questing-proposed/main arm64 libpython3.13 arm64 3.13.3-2 [2281 kB] 648s Get:3 http://ftpmaster.internal/ubuntu questing-proposed/main arm64 libpython3.13-stdlib arm64 3.13.3-2 [2038 kB] 648s Get:4 http://ftpmaster.internal/ubuntu questing-proposed/main arm64 python3.13-minimal arm64 3.13.3-2 [2273 kB] 648s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/main arm64 libpython3.13-minimal arm64 3.13.3-2 [881 kB] 648s Get:6 http://ftpmaster.internal/ubuntu questing/main arm64 nano arm64 8.4-1 [290 kB] 648s Get:7 http://ftpmaster.internal/ubuntu questing/main arm64 htop arm64 3.4.1-4 [177 kB] 648s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/main arm64 python3.13-gdbm arm64 3.13.3-2 [31.5 kB] 648s Get:9 http://ftpmaster.internal/ubuntu questing/main arm64 mtd-utils arm64 1:2.3.0-1ubuntu1 [469 kB] 649s Fetched 9181 kB in 1s (10.4 MB/s) 649s (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 ... 117820 files and directories currently installed.) 649s Preparing to unpack .../0-python3.13_3.13.3-2_arm64.deb ... 650s Unpacking python3.13 (3.13.3-2) over (3.13.3-1) ... 650s Preparing to unpack .../1-libpython3.13_3.13.3-2_arm64.deb ... 650s Unpacking libpython3.13:arm64 (3.13.3-2) over (3.13.3-1) ... 650s Preparing to unpack .../2-libpython3.13-stdlib_3.13.3-2_arm64.deb ... 650s Unpacking libpython3.13-stdlib:arm64 (3.13.3-2) over (3.13.3-1) ... 650s Preparing to unpack .../3-python3.13-minimal_3.13.3-2_arm64.deb ... 650s Unpacking python3.13-minimal (3.13.3-2) over (3.13.3-1) ... 650s Preparing to unpack .../4-libpython3.13-minimal_3.13.3-2_arm64.deb ... 650s Unpacking libpython3.13-minimal:arm64 (3.13.3-2) over (3.13.3-1) ... 650s Preparing to unpack .../5-nano_8.4-1_arm64.deb ... 650s Unpacking nano (8.4-1) over (8.3-1) ... 650s Preparing to unpack .../6-htop_3.4.1-4_arm64.deb ... 650s Unpacking htop (3.4.1-4) over (3.4.0-2) ... 650s Preparing to unpack .../7-python3.13-gdbm_3.13.3-2_arm64.deb ... 650s Unpacking python3.13-gdbm (3.13.3-2) over (3.13.3-1) ... 650s Preparing to unpack .../8-mtd-utils_1%3a2.3.0-1ubuntu1_arm64.deb ... 650s Unpacking mtd-utils (1:2.3.0-1ubuntu1) over (1:2.2.0-2ubuntu2) ... 650s Setting up htop (3.4.1-4) ... 650s Setting up mtd-utils (1:2.3.0-1ubuntu1) ... 650s Setting up libpython3.13-minimal:arm64 (3.13.3-2) ... 650s Setting up nano (8.4-1) ... 650s Installing new version of config file /etc/nanorc ... 650s Setting up python3.13-minimal (3.13.3-2) ... 651s Setting up libpython3.13-stdlib:arm64 (3.13.3-2) ... 651s Setting up python3.13-gdbm (3.13.3-2) ... 651s Setting up libpython3.13:arm64 (3.13.3-2) ... 651s Setting up python3.13 (3.13.3-2) ... 652s Processing triggers for systemd (257.4-1ubuntu3) ... 653s Processing triggers for man-db (2.13.0-1) ... 654s Processing triggers for install-info (7.1.1-1) ... 654s Processing triggers for libc-bin (2.41-6ubuntu1) ... 654s Reading package lists... 655s Building dependency tree... 655s Reading state information... 655s Starting pkgProblemResolver with broken count: 0 655s Starting 2 pkgProblemResolver with broken count: 0 655s Done 656s Solving dependencies... 656s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 659s Reading package lists... 660s Building dependency tree... 660s Reading state information... 660s Starting pkgProblemResolver with broken count: 0 660s Starting 2 pkgProblemResolver with broken count: 0 660s Done 661s The following NEW packages will be installed: 661s build-essential cpp cpp-14 cpp-14-aarch64-linux-gnu cpp-aarch64-linux-gnu 661s g++ g++-14 g++-14-aarch64-linux-gnu g++-aarch64-linux-gnu gcc gcc-14 661s gcc-14-aarch64-linux-gnu gcc-aarch64-linux-gnu gir1.2-glib-2.0-dev 661s girepository-tools libasan8 libblkid-dev libcc1-0 libffi-dev libgcc-14-dev 661s libgio-2.0-dev libgio-2.0-dev-bin libgirepository-2.0-0 libglib2.0-bin 661s libglib2.0-dev libglib2.0-dev-bin libgomp1 libhwasan0 libisl23 libitm1 661s liblsan0 libmount-dev libmpc3 libpcre2-16-0 libpcre2-32-0 libpcre2-dev 661s libpcre2-posix3 libpkgconf3 libselinux1-dev libsepol-dev libstdc++-14-dev 661s libsysprof-capture-4-dev libtsan2 libubsan1 native-architecture pkgconf 661s pkgconf-bin python3-packaging uuid-dev zlib1g-dev 661s 0 upgraded, 50 newly installed, 0 to remove and 0 not upgraded. 661s Need to get 66.5 MB of archives. 661s After this operation, 244 MB of additional disk space will be used. 661s Get:1 http://ftpmaster.internal/ubuntu questing/main arm64 libisl23 arm64 0.27-1 [676 kB] 662s Get:2 http://ftpmaster.internal/ubuntu questing/main arm64 libmpc3 arm64 1.3.1-1build2 [56.8 kB] 662s Get:3 http://ftpmaster.internal/ubuntu questing/main arm64 cpp-14-aarch64-linux-gnu arm64 14.2.0-19ubuntu2 [10.6 MB] 662s Get:4 http://ftpmaster.internal/ubuntu questing/main arm64 cpp-14 arm64 14.2.0-19ubuntu2 [1026 B] 662s Get:5 http://ftpmaster.internal/ubuntu questing/main arm64 cpp-aarch64-linux-gnu arm64 4:14.2.0-1ubuntu1 [5558 B] 662s Get:6 http://ftpmaster.internal/ubuntu questing/main arm64 cpp arm64 4:14.2.0-1ubuntu1 [22.4 kB] 662s Get:7 http://ftpmaster.internal/ubuntu questing/main arm64 libcc1-0 arm64 15-20250404-0ubuntu1 [49.1 kB] 662s Get:8 http://ftpmaster.internal/ubuntu questing/main arm64 libgomp1 arm64 15-20250404-0ubuntu1 [147 kB] 662s Get:9 http://ftpmaster.internal/ubuntu questing/main arm64 libitm1 arm64 15-20250404-0ubuntu1 [27.8 kB] 662s Get:10 http://ftpmaster.internal/ubuntu questing/main arm64 libasan8 arm64 15-20250404-0ubuntu1 [2922 kB] 662s Get:11 http://ftpmaster.internal/ubuntu questing/main arm64 liblsan0 arm64 15-20250404-0ubuntu1 [1318 kB] 662s Get:12 http://ftpmaster.internal/ubuntu questing/main arm64 libtsan2 arm64 15-20250404-0ubuntu1 [2692 kB] 662s Get:13 http://ftpmaster.internal/ubuntu questing/main arm64 libubsan1 arm64 15-20250404-0ubuntu1 [1177 kB] 662s Get:14 http://ftpmaster.internal/ubuntu questing/main arm64 libhwasan0 arm64 15-20250404-0ubuntu1 [1640 kB] 662s Get:15 http://ftpmaster.internal/ubuntu questing/main arm64 libgcc-14-dev arm64 14.2.0-19ubuntu2 [2593 kB] 662s Get:16 http://ftpmaster.internal/ubuntu questing/main arm64 gcc-14-aarch64-linux-gnu arm64 14.2.0-19ubuntu2 [20.9 MB] 663s Get:17 http://ftpmaster.internal/ubuntu questing/main arm64 gcc-14 arm64 14.2.0-19ubuntu2 [529 kB] 663s Get:18 http://ftpmaster.internal/ubuntu questing/main arm64 gcc-aarch64-linux-gnu arm64 4:14.2.0-1ubuntu1 [1200 B] 663s Get:19 http://ftpmaster.internal/ubuntu questing/main arm64 gcc arm64 4:14.2.0-1ubuntu1 [4998 B] 663s Get:20 http://ftpmaster.internal/ubuntu questing/main arm64 libstdc++-14-dev arm64 14.2.0-19ubuntu2 [2501 kB] 663s Get:21 http://ftpmaster.internal/ubuntu questing/main arm64 g++-14-aarch64-linux-gnu arm64 14.2.0-19ubuntu2 [12.1 MB] 664s Get:22 http://ftpmaster.internal/ubuntu questing/main arm64 g++-14 arm64 14.2.0-19ubuntu2 [23.0 kB] 664s Get:23 http://ftpmaster.internal/ubuntu questing/main arm64 g++-aarch64-linux-gnu arm64 4:14.2.0-1ubuntu1 [956 B] 664s Get:24 http://ftpmaster.internal/ubuntu questing/main arm64 g++ arm64 4:14.2.0-1ubuntu1 [1080 B] 664s Get:25 http://ftpmaster.internal/ubuntu questing/main arm64 build-essential arm64 12.12ubuntu1 [5082 B] 664s Get:26 http://ftpmaster.internal/ubuntu questing/main arm64 gir1.2-glib-2.0-dev arm64 2.84.1-1 [862 kB] 664s Get:27 http://ftpmaster.internal/ubuntu questing/main arm64 native-architecture all 0.2.6 [2140 B] 664s Get:28 http://ftpmaster.internal/ubuntu questing/main arm64 libgirepository-2.0-0 arm64 2.84.1-1 [73.2 kB] 664s Get:29 http://ftpmaster.internal/ubuntu questing/main arm64 girepository-tools arm64 2.84.1-1 [106 kB] 664s Get:30 http://ftpmaster.internal/ubuntu questing/main arm64 libffi-dev arm64 3.4.7-1 [59.5 kB] 664s Get:31 http://ftpmaster.internal/ubuntu questing/main arm64 uuid-dev arm64 2.40.2-14ubuntu1 [55.2 kB] 664s Get:32 http://ftpmaster.internal/ubuntu questing/main arm64 libblkid-dev arm64 2.40.2-14ubuntu1 [243 kB] 664s Get:33 http://ftpmaster.internal/ubuntu questing/main arm64 libsepol-dev arm64 3.7-1 [416 kB] 664s Get:34 http://ftpmaster.internal/ubuntu questing/main arm64 libpcre2-16-0 arm64 10.45-1 [222 kB] 664s Get:35 http://ftpmaster.internal/ubuntu questing/main arm64 libpcre2-32-0 arm64 10.45-1 [210 kB] 664s Get:36 http://ftpmaster.internal/ubuntu questing/main arm64 libpcre2-posix3 arm64 10.45-1 [7084 B] 664s Get:37 http://ftpmaster.internal/ubuntu questing/main arm64 libpcre2-dev arm64 10.45-1 [768 kB] 664s Get:38 http://ftpmaster.internal/ubuntu questing/main arm64 libselinux1-dev arm64 3.7-3ubuntu3 [174 kB] 664s Get:39 http://ftpmaster.internal/ubuntu questing/main arm64 libmount-dev arm64 2.40.2-14ubuntu1 [34.6 kB] 664s Get:40 http://ftpmaster.internal/ubuntu questing/main arm64 libsysprof-capture-4-dev arm64 48.0-2 [55.1 kB] 664s Get:41 http://ftpmaster.internal/ubuntu questing/main arm64 libpkgconf3 arm64 1.8.1-4 [31.4 kB] 664s Get:42 http://ftpmaster.internal/ubuntu questing/main arm64 pkgconf-bin arm64 1.8.1-4 [20.9 kB] 664s Get:43 http://ftpmaster.internal/ubuntu questing/main arm64 pkgconf arm64 1.8.1-4 [16.7 kB] 664s Get:44 http://ftpmaster.internal/ubuntu questing/main arm64 zlib1g-dev arm64 1:1.3.dfsg+really1.3.1-1ubuntu1 [894 kB] 664s Get:45 http://ftpmaster.internal/ubuntu questing/main arm64 libgio-2.0-dev arm64 2.84.1-1 [1917 kB] 664s Get:46 http://ftpmaster.internal/ubuntu questing/main arm64 python3-packaging all 24.2-1 [51.5 kB] 664s Get:47 http://ftpmaster.internal/ubuntu questing/main arm64 libgio-2.0-dev-bin arm64 2.84.1-1 [129 kB] 664s Get:48 http://ftpmaster.internal/ubuntu questing/main arm64 libglib2.0-bin arm64 2.84.1-1 [98.1 kB] 664s Get:49 http://ftpmaster.internal/ubuntu questing/main arm64 libglib2.0-dev-bin arm64 2.84.1-1 [18.1 kB] 664s Get:50 http://ftpmaster.internal/ubuntu questing/main arm64 libglib2.0-dev arm64 2.84.1-1 [18.9 kB] 664s Fetched 66.5 MB in 3s (21.8 MB/s) 664s Selecting previously unselected package libisl23:arm64. 665s (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 ... 117821 files and directories currently installed.) 665s Preparing to unpack .../00-libisl23_0.27-1_arm64.deb ... 665s Unpacking libisl23:arm64 (0.27-1) ... 665s Selecting previously unselected package libmpc3:arm64. 665s Preparing to unpack .../01-libmpc3_1.3.1-1build2_arm64.deb ... 665s Unpacking libmpc3:arm64 (1.3.1-1build2) ... 665s Selecting previously unselected package cpp-14-aarch64-linux-gnu. 665s Preparing to unpack .../02-cpp-14-aarch64-linux-gnu_14.2.0-19ubuntu2_arm64.deb ... 665s Unpacking cpp-14-aarch64-linux-gnu (14.2.0-19ubuntu2) ... 665s Selecting previously unselected package cpp-14. 665s Preparing to unpack .../03-cpp-14_14.2.0-19ubuntu2_arm64.deb ... 665s Unpacking cpp-14 (14.2.0-19ubuntu2) ... 665s Selecting previously unselected package cpp-aarch64-linux-gnu. 665s Preparing to unpack .../04-cpp-aarch64-linux-gnu_4%3a14.2.0-1ubuntu1_arm64.deb ... 665s Unpacking cpp-aarch64-linux-gnu (4:14.2.0-1ubuntu1) ... 665s Selecting previously unselected package cpp. 665s Preparing to unpack .../05-cpp_4%3a14.2.0-1ubuntu1_arm64.deb ... 665s Unpacking cpp (4:14.2.0-1ubuntu1) ... 665s Selecting previously unselected package libcc1-0:arm64. 665s Preparing to unpack .../06-libcc1-0_15-20250404-0ubuntu1_arm64.deb ... 665s Unpacking libcc1-0:arm64 (15-20250404-0ubuntu1) ... 665s Selecting previously unselected package libgomp1:arm64. 665s Preparing to unpack .../07-libgomp1_15-20250404-0ubuntu1_arm64.deb ... 665s Unpacking libgomp1:arm64 (15-20250404-0ubuntu1) ... 665s Selecting previously unselected package libitm1:arm64. 665s Preparing to unpack .../08-libitm1_15-20250404-0ubuntu1_arm64.deb ... 665s Unpacking libitm1:arm64 (15-20250404-0ubuntu1) ... 665s Selecting previously unselected package libasan8:arm64. 665s Preparing to unpack .../09-libasan8_15-20250404-0ubuntu1_arm64.deb ... 665s Unpacking libasan8:arm64 (15-20250404-0ubuntu1) ... 665s Selecting previously unselected package liblsan0:arm64. 665s Preparing to unpack .../10-liblsan0_15-20250404-0ubuntu1_arm64.deb ... 665s Unpacking liblsan0:arm64 (15-20250404-0ubuntu1) ... 665s Selecting previously unselected package libtsan2:arm64. 665s Preparing to unpack .../11-libtsan2_15-20250404-0ubuntu1_arm64.deb ... 665s Unpacking libtsan2:arm64 (15-20250404-0ubuntu1) ... 665s Selecting previously unselected package libubsan1:arm64. 665s Preparing to unpack .../12-libubsan1_15-20250404-0ubuntu1_arm64.deb ... 665s Unpacking libubsan1:arm64 (15-20250404-0ubuntu1) ... 665s Selecting previously unselected package libhwasan0:arm64. 666s Preparing to unpack .../13-libhwasan0_15-20250404-0ubuntu1_arm64.deb ... 666s Unpacking libhwasan0:arm64 (15-20250404-0ubuntu1) ... 666s Selecting previously unselected package libgcc-14-dev:arm64. 666s Preparing to unpack .../14-libgcc-14-dev_14.2.0-19ubuntu2_arm64.deb ... 666s Unpacking libgcc-14-dev:arm64 (14.2.0-19ubuntu2) ... 666s Selecting previously unselected package gcc-14-aarch64-linux-gnu. 666s Preparing to unpack .../15-gcc-14-aarch64-linux-gnu_14.2.0-19ubuntu2_arm64.deb ... 666s Unpacking gcc-14-aarch64-linux-gnu (14.2.0-19ubuntu2) ... 666s Selecting previously unselected package gcc-14. 666s Preparing to unpack .../16-gcc-14_14.2.0-19ubuntu2_arm64.deb ... 666s Unpacking gcc-14 (14.2.0-19ubuntu2) ... 666s Selecting previously unselected package gcc-aarch64-linux-gnu. 666s Preparing to unpack .../17-gcc-aarch64-linux-gnu_4%3a14.2.0-1ubuntu1_arm64.deb ... 666s Unpacking gcc-aarch64-linux-gnu (4:14.2.0-1ubuntu1) ... 666s Selecting previously unselected package gcc. 666s Preparing to unpack .../18-gcc_4%3a14.2.0-1ubuntu1_arm64.deb ... 666s Unpacking gcc (4:14.2.0-1ubuntu1) ... 666s Selecting previously unselected package libstdc++-14-dev:arm64. 666s Preparing to unpack .../19-libstdc++-14-dev_14.2.0-19ubuntu2_arm64.deb ... 666s Unpacking libstdc++-14-dev:arm64 (14.2.0-19ubuntu2) ... 666s Selecting previously unselected package g++-14-aarch64-linux-gnu. 666s Preparing to unpack .../20-g++-14-aarch64-linux-gnu_14.2.0-19ubuntu2_arm64.deb ... 666s Unpacking g++-14-aarch64-linux-gnu (14.2.0-19ubuntu2) ... 667s Selecting previously unselected package g++-14. 667s Preparing to unpack .../21-g++-14_14.2.0-19ubuntu2_arm64.deb ... 667s Unpacking g++-14 (14.2.0-19ubuntu2) ... 667s Selecting previously unselected package g++-aarch64-linux-gnu. 667s Preparing to unpack .../22-g++-aarch64-linux-gnu_4%3a14.2.0-1ubuntu1_arm64.deb ... 667s Unpacking g++-aarch64-linux-gnu (4:14.2.0-1ubuntu1) ... 667s Selecting previously unselected package g++. 667s Preparing to unpack .../23-g++_4%3a14.2.0-1ubuntu1_arm64.deb ... 667s Unpacking g++ (4:14.2.0-1ubuntu1) ... 667s Selecting previously unselected package build-essential. 667s Preparing to unpack .../24-build-essential_12.12ubuntu1_arm64.deb ... 667s Unpacking build-essential (12.12ubuntu1) ... 667s Selecting previously unselected package gir1.2-glib-2.0-dev:arm64. 667s Preparing to unpack .../25-gir1.2-glib-2.0-dev_2.84.1-1_arm64.deb ... 667s Unpacking gir1.2-glib-2.0-dev:arm64 (2.84.1-1) ... 667s Selecting previously unselected package native-architecture. 667s Preparing to unpack .../26-native-architecture_0.2.6_all.deb ... 667s Unpacking native-architecture (0.2.6) ... 667s Selecting previously unselected package libgirepository-2.0-0:arm64. 667s Preparing to unpack .../27-libgirepository-2.0-0_2.84.1-1_arm64.deb ... 667s Unpacking libgirepository-2.0-0:arm64 (2.84.1-1) ... 667s Selecting previously unselected package girepository-tools:arm64. 667s Preparing to unpack .../28-girepository-tools_2.84.1-1_arm64.deb ... 667s Unpacking girepository-tools:arm64 (2.84.1-1) ... 667s Selecting previously unselected package libffi-dev:arm64. 667s Preparing to unpack .../29-libffi-dev_3.4.7-1_arm64.deb ... 667s Unpacking libffi-dev:arm64 (3.4.7-1) ... 667s Selecting previously unselected package uuid-dev:arm64. 667s Preparing to unpack .../30-uuid-dev_2.40.2-14ubuntu1_arm64.deb ... 667s Unpacking uuid-dev:arm64 (2.40.2-14ubuntu1) ... 667s Selecting previously unselected package libblkid-dev:arm64. 667s Preparing to unpack .../31-libblkid-dev_2.40.2-14ubuntu1_arm64.deb ... 667s Unpacking libblkid-dev:arm64 (2.40.2-14ubuntu1) ... 667s Selecting previously unselected package libsepol-dev:arm64. 667s Preparing to unpack .../32-libsepol-dev_3.7-1_arm64.deb ... 667s Unpacking libsepol-dev:arm64 (3.7-1) ... 667s Selecting previously unselected package libpcre2-16-0:arm64. 667s Preparing to unpack .../33-libpcre2-16-0_10.45-1_arm64.deb ... 667s Unpacking libpcre2-16-0:arm64 (10.45-1) ... 667s Selecting previously unselected package libpcre2-32-0:arm64. 667s Preparing to unpack .../34-libpcre2-32-0_10.45-1_arm64.deb ... 667s Unpacking libpcre2-32-0:arm64 (10.45-1) ... 667s Selecting previously unselected package libpcre2-posix3:arm64. 667s Preparing to unpack .../35-libpcre2-posix3_10.45-1_arm64.deb ... 667s Unpacking libpcre2-posix3:arm64 (10.45-1) ... 667s Selecting previously unselected package libpcre2-dev:arm64. 668s Preparing to unpack .../36-libpcre2-dev_10.45-1_arm64.deb ... 668s Unpacking libpcre2-dev:arm64 (10.45-1) ... 668s Selecting previously unselected package libselinux1-dev:arm64. 668s Preparing to unpack .../37-libselinux1-dev_3.7-3ubuntu3_arm64.deb ... 668s Unpacking libselinux1-dev:arm64 (3.7-3ubuntu3) ... 668s Selecting previously unselected package libmount-dev:arm64. 668s Preparing to unpack .../38-libmount-dev_2.40.2-14ubuntu1_arm64.deb ... 668s Unpacking libmount-dev:arm64 (2.40.2-14ubuntu1) ... 668s Selecting previously unselected package libsysprof-capture-4-dev:arm64. 668s Preparing to unpack .../39-libsysprof-capture-4-dev_48.0-2_arm64.deb ... 668s Unpacking libsysprof-capture-4-dev:arm64 (48.0-2) ... 668s Selecting previously unselected package libpkgconf3:arm64. 668s Preparing to unpack .../40-libpkgconf3_1.8.1-4_arm64.deb ... 668s Unpacking libpkgconf3:arm64 (1.8.1-4) ... 668s Selecting previously unselected package pkgconf-bin. 668s Preparing to unpack .../41-pkgconf-bin_1.8.1-4_arm64.deb ... 668s Unpacking pkgconf-bin (1.8.1-4) ... 668s Selecting previously unselected package pkgconf:arm64. 668s Preparing to unpack .../42-pkgconf_1.8.1-4_arm64.deb ... 668s Unpacking pkgconf:arm64 (1.8.1-4) ... 668s Selecting previously unselected package zlib1g-dev:arm64. 668s Preparing to unpack .../43-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1ubuntu1_arm64.deb ... 668s Unpacking zlib1g-dev:arm64 (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 668s Selecting previously unselected package libgio-2.0-dev:arm64. 668s Preparing to unpack .../44-libgio-2.0-dev_2.84.1-1_arm64.deb ... 668s Unpacking libgio-2.0-dev:arm64 (2.84.1-1) ... 668s Selecting previously unselected package python3-packaging. 668s Preparing to unpack .../45-python3-packaging_24.2-1_all.deb ... 668s Unpacking python3-packaging (24.2-1) ... 668s Selecting previously unselected package libgio-2.0-dev-bin. 668s Preparing to unpack .../46-libgio-2.0-dev-bin_2.84.1-1_arm64.deb ... 668s Unpacking libgio-2.0-dev-bin (2.84.1-1) ... 668s Selecting previously unselected package libglib2.0-bin. 668s Preparing to unpack .../47-libglib2.0-bin_2.84.1-1_arm64.deb ... 668s Unpacking libglib2.0-bin (2.84.1-1) ... 668s Selecting previously unselected package libglib2.0-dev-bin. 668s Preparing to unpack .../48-libglib2.0-dev-bin_2.84.1-1_arm64.deb ... 668s Unpacking libglib2.0-dev-bin (2.84.1-1) ... 668s Selecting previously unselected package libglib2.0-dev:arm64. 668s Preparing to unpack .../49-libglib2.0-dev_2.84.1-1_arm64.deb ... 668s Unpacking libglib2.0-dev:arm64 (2.84.1-1) ... 668s Setting up native-architecture (0.2.6) ... 668s Setting up libgirepository-2.0-0:arm64 (2.84.1-1) ... 668s Setting up libglib2.0-bin (2.84.1-1) ... 668s Setting up libgomp1:arm64 (15-20250404-0ubuntu1) ... 668s Setting up libffi-dev:arm64 (3.4.7-1) ... 668s Setting up libpcre2-16-0:arm64 (10.45-1) ... 668s Setting up libsysprof-capture-4-dev:arm64 (48.0-2) ... 668s Setting up libpcre2-32-0:arm64 (10.45-1) ... 668s Setting up python3-packaging (24.2-1) ... 668s Setting up libpkgconf3:arm64 (1.8.1-4) ... 668s Setting up uuid-dev:arm64 (2.40.2-14ubuntu1) ... 668s Setting up libmpc3:arm64 (1.3.1-1build2) ... 668s Setting up libsepol-dev:arm64 (3.7-1) ... 668s Setting up pkgconf-bin (1.8.1-4) ... 668s Setting up libubsan1:arm64 (15-20250404-0ubuntu1) ... 668s Setting up zlib1g-dev:arm64 (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 668s Setting up libpcre2-posix3:arm64 (10.45-1) ... 668s Setting up gir1.2-glib-2.0-dev:arm64 (2.84.1-1) ... 668s Setting up libhwasan0:arm64 (15-20250404-0ubuntu1) ... 668s Setting up libasan8:arm64 (15-20250404-0ubuntu1) ... 668s Setting up libtsan2:arm64 (15-20250404-0ubuntu1) ... 668s Setting up libisl23:arm64 (0.27-1) ... 668s Setting up libcc1-0:arm64 (15-20250404-0ubuntu1) ... 668s Setting up liblsan0:arm64 (15-20250404-0ubuntu1) ... 668s Setting up libitm1:arm64 (15-20250404-0ubuntu1) ... 668s Setting up libblkid-dev:arm64 (2.40.2-14ubuntu1) ... 668s Setting up libgio-2.0-dev-bin (2.84.1-1) ... 669s Setting up girepository-tools:arm64 (2.84.1-1) ... 669s Setting up libpcre2-dev:arm64 (10.45-1) ... 669s Setting up libselinux1-dev:arm64 (3.7-3ubuntu3) ... 669s Setting up pkgconf:arm64 (1.8.1-4) ... 669s Setting up cpp-14-aarch64-linux-gnu (14.2.0-19ubuntu2) ... 669s Setting up libgcc-14-dev:arm64 (14.2.0-19ubuntu2) ... 669s Setting up libstdc++-14-dev:arm64 (14.2.0-19ubuntu2) ... 669s Setting up libmount-dev:arm64 (2.40.2-14ubuntu1) ... 669s Setting up libglib2.0-dev-bin (2.84.1-1) ... 669s Setting up libgio-2.0-dev:arm64 (2.84.1-1) ... 669s Setting up cpp-aarch64-linux-gnu (4:14.2.0-1ubuntu1) ... 669s Setting up cpp-14 (14.2.0-19ubuntu2) ... 669s Setting up cpp (4:14.2.0-1ubuntu1) ... 669s Setting up gcc-14-aarch64-linux-gnu (14.2.0-19ubuntu2) ... 669s Setting up gcc-aarch64-linux-gnu (4:14.2.0-1ubuntu1) ... 669s Setting up g++-14-aarch64-linux-gnu (14.2.0-19ubuntu2) ... 669s Setting up gcc-14 (14.2.0-19ubuntu2) ... 669s Setting up g++-aarch64-linux-gnu (4:14.2.0-1ubuntu1) ... 669s Setting up g++-14 (14.2.0-19ubuntu2) ... 669s Setting up gcc (4:14.2.0-1ubuntu1) ... 669s Setting up g++ (4:14.2.0-1ubuntu1) ... 669s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 669s Setting up build-essential (12.12ubuntu1) ... 669s Processing triggers for install-info (7.1.1-1) ... 669s Processing triggers for libc-bin (2.41-6ubuntu1) ... 669s Processing triggers for man-db (2.13.0-1) ... 670s Processing triggers for libglib2.0-0t64:arm64 (2.84.1-1) ... 670s No schema files found: doing nothing. 670s Setting up libglib2.0-dev:arm64 (2.84.1-1) ... 675s autopkgtest [08:45:52]: test libglib2.0-dev: [----------------------- 675s + debian/tests/build 675s + mode=dynamic 675s + getopt -o --long static -n debian/tests/build -- 675s + getopt_temp= -- 675s + eval set -- -- 675s + set -- -- 675s + true 675s + shift 675s + break 675s + mktemp -d 675s + WORKDIR=/tmp/tmp.FF7B6FGgic 675s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 675s + cd /tmp/tmp.FF7B6FGgic 675s + [ -n ] 675s + CROSS_COMPILE= 675s + cat 675s + cat 675s + cat 675s + cat 675s + cat 675s + cat 675s + cflags= 675s + pcflags= 675s + packages=glib-2.0 675s + pkg-config --cflags --libs glib-2.0 675s + gcc -o glib-dynamic glib.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 676s + echo build (glib, dynamic): OK 676s + [ -x glib-dynamic ] 676s + foo=bar ./glib-dynamic 676s build (glib, dynamic): OK 676s + echo run (glib, dynamic): OK 676s + cflags= 676s + pcflags= 676s + packages=gobject-2.0 676s + pkg-config --cflags --libs gobject-2.0 676s run (glib, dynamic): OK 676s + gcc -o gobject-dynamic gobject.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 676s build (gobject, dynamic): OK 676s + echo build (gobject, dynamic): OK 676s + [ -x gobject-dynamic ] 676s + foo=bar ./gobject-dynamic 676s run (gobject, dynamic): OK 676s + echo run (gobject, dynamic): OK 676s + cflags= 676s + pcflags= 676s + packages=gio-2.0 676s + pkg-config --cflags --libs gio-2.0 676s + gcc -o gio-dynamic gio.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-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 676s build (gio, dynamic): OK 676s run (gio, dynamic): OK 676s + echo build (gio, dynamic): OK 676s + [ -x gio-dynamic ] 676s + foo=bar ./gio-dynamic 676s + echo run (gio, dynamic): OK 676s + cflags= 676s + pcflags= 676s + packages=gio-unix-2.0 676s + pkg-config --cflags --libs gio-unix-2.0 676s + gcc -o gio-unix-dynamic gio-unix.c -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib/aarch64-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 676s build (gio-unix, dynamic): OK 676s + echo build (gio-unix, dynamic): OK 676s + [ -x gio-unix-dynamic ] 676s + foo=bar ./gio-unix-dynamic 676s run (gio-unix, dynamic): OK 676s + echo run (gio-unix, dynamic): OK 676s + cflags= 676s + pcflags= 676s + packages=gmodule-2.0 676s + pkg-config --cflags --libs gmodule-2.0 676s + gcc -o gmodule-dynamic gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-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 676s build (gmodule, dynamic): OK 676s + echo build (gmodule, dynamic): OK 676s + [ -x gmodule-dynamic ] 676s + foo=bar ./gmodule-dynamic 676s run (gmodule, dynamic): OK 676s + echo run (gmodule, dynamic): OK 676s + cflags= 676s + pcflags= 676s + packages=gthread-2.0 676s + pkg-config --cflags --libs gthread-2.0 676s + gcc -o gthread-dynamic gthread.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 676s build (gthread, dynamic): OK 676s run (gthread, dynamic): OK 676s + echo build (gthread, dynamic): OK 676s + [ -x gthread-dynamic ] 676s + foo=bar ./gthread-dynamic 676s + echo run (gthread, dynamic): OK 676s + rm -rf /tmp/tmp.FF7B6FGgic 676s + debian/tests/build-static 676s + mode=dynamic 676s + getopt -o --long static -n debian/tests/build -- --static 676s + getopt_temp= --static -- 676s + eval set -- --static -- 676s + set -- --static -- 676s + true 676s + mode=static 676s + shift 676s + continue 676s + true 676s + shift 676s + break 676s + mktemp -d 676s + WORKDIR=/tmp/tmp.r3p0qoqNnm 676s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 676s + cd /tmp/tmp.r3p0qoqNnm 676s + [ -n ] 676s + CROSS_COMPILE= 676s + cat 676s + cat 676s + cat 676s + cat 676s + cat 676s + cat 676s + cflags= 676s + pcflags= 676s + packages=glib-2.0 676s + cflags=-static 676s + pcflags=--static 676s + pkg-config --static --cflags --libs glib-2.0 676s + gcc -static -o glib-static glib.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 677s /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/14/../../../aarch64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 677s (.text+0xf8): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 677s /usr/bin/ld: (.text+0x2a0): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 677s /usr/bin/ld: (.text+0x12c): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 677s build (glib, static): OK 677s + echo build (glib, static): OK 677s + [ -x glib-static ] 677s + foo=bar ./glib-static 677s + echo run (glib, static): OK 677s + cflags= 677s + pcflags= 677s + packages=gobject-2.0 677s + cflags=-static 677s + pcflags=--static 677s + pkg-config --static --cflags --libs gobject-2.0 677s run (glib, static): OK 677s + gcc -static -o gobject-static gobject.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-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 677s /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/14/../../../aarch64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 677s (.text+0xf8): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 677s /usr/bin/ld: (.text+0x2a0): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 677s /usr/bin/ld: (.text+0x12c): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 677s build (gobject, static): OK 677s + echo build (gobject, static): OK 677s + [ -x gobject-static ] 677s + foo=bar ./gobject-static 677s + echo run (gobject, static): OK 677s + cflags= 677s + pcflags= 677s + packages=gio-2.0 677s + cflags=-static 677s + pcflags=--static 677s + continue 677s + cflags= 677s + pcflags= 677s + packages=gio-unix-2.0 677s + cflags=-static 677s + pcflags=--static 677s + continue 677s + cflags= 677s + pcflags= 677s + packages=gmodule-2.0 677s + cflags=-static 677s + pcflags=--static 677s + pkg-config --static --cflags --libs gmodule-2.0 677s run (gobject, static): OK 677s + gcc -static -o gmodule-static gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-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 677s /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/14/../../../aarch64-linux-gnu/libgmodule-2.0.a(gmodule.c.o): in function `g_module_open_full': 677s (.text+0x604): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 677s /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/14/../../../aarch64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 677s (.text+0xf8): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 677s /usr/bin/ld: (.text+0x2a0): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 677s /usr/bin/ld: (.text+0x12c): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 677s build (gmodule, static): OK 677s + echo build (gmodule, static): OK 677s + [ -x gmodule-static ] 677s + foo=bar ./gmodule-static 677s + echo run (gmodule, static): OK 677s + cflags= 677s + pcflags= 677s + packages=gthread-2.0 677s + cflags=-static 677s + pcflags=--static 677s run (gmodule, static): OK 677s + pkg-config --static --cflags --libs gthread-2.0 677s + gcc -static -o gthread-static gthread.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-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 677s /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/14/../../../aarch64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 677s (.text+0xf8): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 677s /usr/bin/ld: (.text+0x2a0): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 677s /usr/bin/ld: (.text+0x12c): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 677s build (gthread, static): OK 677s + echo build (gthread, static): OK 677s + [ -x gthread-static ] 677s + foo=bar ./gthread-static 677s run (gthread, static): OK 677s + echo run (gthread, static): OK 677s + rm -rf /tmp/tmp.r3p0qoqNnm 677s + debian/tests/girepository-tools 677s + cd /tmp/autopkgtest.s3NNs2/autopkgtest_tmp 677s + dpkg-architecture -qDEB_HOST_GNU_TYPE 677s + DEB_HOST_GNU_TYPE=aarch64-linux-gnu 677s + dpkg-architecture -qDEB_HOST_MULTIARCH 677s + DEB_HOST_MULTIARCH=aarch64-linux-gnu 677s + aarch64-linux-gnu-gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 677s typelib: GLib-2.0 677s + aarch64-linux-gnu-gi-compile-repository -o GLib.typelib /usr/lib/aarch64-linux-gnu/gir-1.0/GLib-2.0.gir 678s + aarch64-linux-gnu-gi-decompile-typelib -o GLib.gir GLib.typelib 678s + debian/tests/libgio-2.0-dev-bin 678s + gdbus-codegen --help 678s usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 678s [--c-namespace NAMESPACE] [--c-generate-object-manager] 678s [--c-generate-autocleanup {none,objects,all}] 678s [--generate-docbook OUTFILES] [--generate-md OUTFILES] 678s [--generate-rst OUTFILES] [--pragma-once] 678s [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 678s [--glib-min-required VERSION] 678s [--glib-max-allowed VERSION] 678s [--symbol-decorator SYMBOL_DECORATOR] 678s [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 678s [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 678s [--generate-c-code OUTFILES | --header | --body | 678s --interface-info-header | --interface-info-body] 678s [--output FILE | --output-directory OUTDIR] 678s FILE [FILE ...] 678s 678s D-Bus code and documentation generator 678s 678s positional arguments: 678s FILE D-Bus introspection XML file 678s 678s options: 678s -h, --help show this help message and exit 678s --interface-prefix PREFIX 678s String to strip from D-Bus interface names for code 678s and docs 678s --c-namespace NAMESPACE 678s The namespace to use for generated C code 678s --c-generate-object-manager 678s Generate a GDBusObjectManagerClient subclass when 678s generating C code 678s --c-generate-autocleanup {none,objects,all} 678s Generate autocleanup support 678s --generate-docbook OUTFILES 678s Generate Docbook in OUTFILES-org.Project.IFace.xml 678s --generate-md OUTFILES 678s Generate Markdown in OUTFILES-org.Project.IFace.md 678s --generate-rst OUTFILES 678s Generate reStructuredText in OUTFILES- 678s org.Project.IFace.rst 678s --pragma-once Use "pragma once" as the inclusion guard 678s --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 678s Add annotation (may be used several times) 678s --glib-min-required VERSION 678s Minimum version of GLib to be supported by the 678s outputted code (default: 2.30) 678s --glib-max-allowed VERSION 678s Maximum version of GLib to be used by the outputted 678s code (default: current GLib version) 678s --symbol-decorator SYMBOL_DECORATOR 678s Macro used to decorate a symbol in the outputted 678s header, possibly to export symbols 678s --symbol-decorator-header SYMBOL_DECORATOR_HEADER 678s Additional header required for decorator specified by 678s --symbol-decorator 678s --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 678s Additional define required for decorator specified by 678s --symbol-decorator 678s --generate-c-code OUTFILES 678s Generate C code in OUTFILES.[ch] 678s --header Generate C headers 678s --body Generate C code 678s --interface-info-header 678s Generate GDBusInterfaceInfo C header 678s --interface-info-body 678s Generate GDBusInterfaceInfo C code 678s --output FILE Write output into the specified file 678s --output-directory OUTDIR 678s Location to output generated files 678s + glib-compile-resources --version 678s 2.84.1 678s + glib-genmarshal --version 678s glib-genmarshal version 2.84.1 678s glib-genmarshal comes with ABSOLUTELY NO WARRANTY. 678s You may redistribute copies of glib-genmarshal under the terms of 678s the GNU General Public License which can be found in the 678s GLib source package. Sources, examples and contact 678s information are available at http://www.gtk.org 678s + glib-gettextize --version 678s + glib-mkenums --version 678s /usr/bin/glib-gettextize (GNU glib) 2.84.1 678s Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc. 678s This is free software; see the source for copying conditions. There is NO 678s warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 678s Written by Ulrich Drepper 678s glib-mkenums version 2.84.1 678s glib-mkenums comes with ABSOLUTELY NO WARRANTY. 678s You may redistribute copies of glib-mkenums under the terms of 678s the GNU General Public License which can be found in the 678s GLib source package. Sources, examples and contact 678s information are available at http://www.gtk.org 678s + gobject-query tree 678s GObject 678s + gtester --version 678s gtester version 2.84.1 678s + gtester-report --version 678s gtester-report (GLib utils) version 2.84.1. 678s + cd /tmp/autopkgtest.s3NNs2/autopkgtest_tmp 678s + dpkg-architecture -qDEB_HOST_MULTIARCH 678s + DEB_HOST_MULTIARCH=aarch64-linux-gnu 678s + gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 678s typelib: GLib-2.0 678s + gi-compile-repository -o GLib.typelib /usr/lib/aarch64-linux-gnu/gir-1.0/GLib-2.0.gir 678s + gi-decompile-typelib -o GLib.gir GLib.typelib 678s autopkgtest [08:45:55]: test libglib2.0-dev: -----------------------] 679s autopkgtest [08:45:56]: test libglib2.0-dev: - - - - - - - - - - results - - - - - - - - - - 679s libglib2.0-dev PASS (superficial) 679s autopkgtest [08:45:56]: test installed-tests: preparing testbed 805s autopkgtest [08:48:02]: testbed dpkg architecture: arm64 806s autopkgtest [08:48:03]: testbed apt version: 3.0.0 806s autopkgtest [08:48:03]: @@@@@@@@@@@@@@@@@@@@ test bed setup 806s autopkgtest [08:48:03]: testbed release detected to be: questing 807s autopkgtest [08:48:04]: updating testbed package index (apt update) 808s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [110 kB] 808s Hit:2 http://ftpmaster.internal/ubuntu questing InRelease 808s Hit:3 http://ftpmaster.internal/ubuntu questing-updates InRelease 808s Hit:4 http://ftpmaster.internal/ubuntu questing-security InRelease 808s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [175 kB] 808s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [44.4 kB] 808s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [2076 kB] 808s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/main arm64 Packages [219 kB] 808s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/universe arm64 Packages [1509 kB] 808s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/multiverse arm64 Packages [15.4 kB] 809s Fetched 4149 kB in 1s (3383 kB/s) 810s Reading package lists... 810s autopkgtest [08:48:07]: upgrading testbed (apt dist-upgrade and autopurge) 810s Reading package lists... 811s Building dependency tree... 811s Reading state information... 811s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 811s Starting 2 pkgProblemResolver with broken count: 0 811s Done 812s Entering ResolveByKeep 813s 813s Calculating upgrade... 813s The following packages will be upgraded: 813s htop libpython3.13 libpython3.13-minimal libpython3.13-stdlib mtd-utils nano 813s python3.13 python3.13-gdbm python3.13-minimal 813s 9 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 813s Need to get 9181 kB of archives. 813s After this operation, 727 kB of additional disk space will be used. 813s Get:1 http://ftpmaster.internal/ubuntu questing-proposed/main arm64 python3.13 arm64 3.13.3-2 [739 kB] 814s Get:2 http://ftpmaster.internal/ubuntu questing-proposed/main arm64 libpython3.13 arm64 3.13.3-2 [2281 kB] 814s Get:3 http://ftpmaster.internal/ubuntu questing-proposed/main arm64 libpython3.13-stdlib arm64 3.13.3-2 [2038 kB] 814s Get:4 http://ftpmaster.internal/ubuntu questing-proposed/main arm64 python3.13-minimal arm64 3.13.3-2 [2273 kB] 814s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/main arm64 libpython3.13-minimal arm64 3.13.3-2 [881 kB] 814s Get:6 http://ftpmaster.internal/ubuntu questing/main arm64 nano arm64 8.4-1 [290 kB] 814s Get:7 http://ftpmaster.internal/ubuntu questing/main arm64 htop arm64 3.4.1-4 [177 kB] 814s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/main arm64 python3.13-gdbm arm64 3.13.3-2 [31.5 kB] 814s Get:9 http://ftpmaster.internal/ubuntu questing/main arm64 mtd-utils arm64 1:2.3.0-1ubuntu1 [469 kB] 815s Fetched 9181 kB in 1s (8060 kB/s) 815s (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 ... 117820 files and directories currently installed.) 815s Preparing to unpack .../0-python3.13_3.13.3-2_arm64.deb ... 815s Unpacking python3.13 (3.13.3-2) over (3.13.3-1) ... 816s Preparing to unpack .../1-libpython3.13_3.13.3-2_arm64.deb ... 816s Unpacking libpython3.13:arm64 (3.13.3-2) over (3.13.3-1) ... 816s Preparing to unpack .../2-libpython3.13-stdlib_3.13.3-2_arm64.deb ... 816s Unpacking libpython3.13-stdlib:arm64 (3.13.3-2) over (3.13.3-1) ... 816s Preparing to unpack .../3-python3.13-minimal_3.13.3-2_arm64.deb ... 816s Unpacking python3.13-minimal (3.13.3-2) over (3.13.3-1) ... 816s Preparing to unpack .../4-libpython3.13-minimal_3.13.3-2_arm64.deb ... 816s Unpacking libpython3.13-minimal:arm64 (3.13.3-2) over (3.13.3-1) ... 816s Preparing to unpack .../5-nano_8.4-1_arm64.deb ... 816s Unpacking nano (8.4-1) over (8.3-1) ... 816s Preparing to unpack .../6-htop_3.4.1-4_arm64.deb ... 816s Unpacking htop (3.4.1-4) over (3.4.0-2) ... 816s Preparing to unpack .../7-python3.13-gdbm_3.13.3-2_arm64.deb ... 816s Unpacking python3.13-gdbm (3.13.3-2) over (3.13.3-1) ... 816s Preparing to unpack .../8-mtd-utils_1%3a2.3.0-1ubuntu1_arm64.deb ... 816s Unpacking mtd-utils (1:2.3.0-1ubuntu1) over (1:2.2.0-2ubuntu2) ... 816s Setting up htop (3.4.1-4) ... 816s Setting up mtd-utils (1:2.3.0-1ubuntu1) ... 816s Setting up libpython3.13-minimal:arm64 (3.13.3-2) ... 816s Setting up nano (8.4-1) ... 816s Installing new version of config file /etc/nanorc ... 816s Setting up python3.13-minimal (3.13.3-2) ... 817s Setting up libpython3.13-stdlib:arm64 (3.13.3-2) ... 817s Setting up python3.13-gdbm (3.13.3-2) ... 817s Setting up libpython3.13:arm64 (3.13.3-2) ... 818s Setting up python3.13 (3.13.3-2) ... 819s Processing triggers for systemd (257.4-1ubuntu3) ... 819s Processing triggers for man-db (2.13.0-1) ... 820s Processing triggers for install-info (7.1.1-1) ... 820s Processing triggers for libc-bin (2.41-6ubuntu1) ... 821s Reading package lists... 821s Building dependency tree... 821s Reading state information... 821s Starting pkgProblemResolver with broken count: 0 821s Starting 2 pkgProblemResolver with broken count: 0 821s Done 822s Solving dependencies... 822s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 825s Reading package lists... 826s Building dependency tree... 826s Reading state information... 826s Starting pkgProblemResolver with broken count: 0 826s Starting 2 pkgProblemResolver with broken count: 0 826s Done 827s The following NEW packages will be installed: 827s dbus-x11 desktop-file-utils gir1.2-glib-2.0-dev girepository-tools 827s gnome-desktop-testing libfontenc1 libgbm1 libgio-2.0-dev-bin 827s libgirepository-2.0-0 libgl1 libgl1-mesa-dri libglib2.0-bin 827s libglib2.0-dev-bin libglib2.0-tests libglvnd0 libglx-mesa0 libglx0 libice6 827s libpixman-1-0 libsm6 libvulkan1 libwayland-server0 libx11-xcb1 libxaw7 827s libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-randr0 libxcb-shm0 827s libxcb-sync1 libxcb-xfixes0 libxfont2 libxkbfile1 libxmu6 libxpm4 libxrandr2 827s libxrender1 libxshmfence1 libxt6t64 libxxf86vm1 mesa-libgallium 827s native-architecture python3-dbusmock python3-packaging tzdata-legacy 827s x11-common x11-xkb-utils xserver-common xvfb 827s 0 upgraded, 49 newly installed, 0 to remove and 0 not upgraded. 827s Need to get 15.9 MB of archives. 827s After this operation, 94.8 MB of additional disk space will be used. 827s Get:1 http://ftpmaster.internal/ubuntu questing/main arm64 dbus-x11 arm64 1.16.2-2ubuntu1 [23.1 kB] 828s Get:2 http://ftpmaster.internal/ubuntu questing/main arm64 desktop-file-utils arm64 0.28-1 [53.6 kB] 828s Get:3 http://ftpmaster.internal/ubuntu questing/main arm64 gir1.2-glib-2.0-dev arm64 2.84.1-1 [862 kB] 828s Get:4 http://ftpmaster.internal/ubuntu questing/main arm64 native-architecture all 0.2.6 [2140 B] 828s Get:5 http://ftpmaster.internal/ubuntu questing/main arm64 libgirepository-2.0-0 arm64 2.84.1-1 [73.2 kB] 828s Get:6 http://ftpmaster.internal/ubuntu questing/main arm64 girepository-tools arm64 2.84.1-1 [106 kB] 828s Get:7 http://ftpmaster.internal/ubuntu questing/universe arm64 gnome-desktop-testing arm64 2021.1-4 [16.2 kB] 828s Get:8 http://ftpmaster.internal/ubuntu questing/main arm64 libfontenc1 arm64 1:1.1.8-1build1 [13.9 kB] 828s Get:9 http://ftpmaster.internal/ubuntu questing/main arm64 libwayland-server0 arm64 1.23.1-3 [36.1 kB] 828s Get:10 http://ftpmaster.internal/ubuntu questing/main arm64 libx11-xcb1 arm64 2:1.8.10-2 [8020 B] 828s Get:11 http://ftpmaster.internal/ubuntu questing/main arm64 libxcb-dri3-0 arm64 1.17.0-2 [7606 B] 828s Get:12 http://ftpmaster.internal/ubuntu questing/main arm64 libxcb-present0 arm64 1.17.0-2 [6224 B] 828s Get:13 http://ftpmaster.internal/ubuntu questing/main arm64 libxcb-randr0 arm64 1.17.0-2 [18.5 kB] 828s Get:14 http://ftpmaster.internal/ubuntu questing/main arm64 libxcb-sync1 arm64 1.17.0-2 [9688 B] 828s Get:15 http://ftpmaster.internal/ubuntu questing/main arm64 libxcb-xfixes0 arm64 1.17.0-2 [10.6 kB] 828s Get:16 http://ftpmaster.internal/ubuntu questing/main arm64 libxshmfence1 arm64 1.3-1build5 [4938 B] 828s Get:17 http://ftpmaster.internal/ubuntu questing/main arm64 mesa-libgallium arm64 25.0.3-1ubuntu2 [9455 kB] 828s Get:18 http://ftpmaster.internal/ubuntu questing/main arm64 libgbm1 arm64 25.0.3-1ubuntu2 [33.7 kB] 828s Get:19 http://ftpmaster.internal/ubuntu questing/main arm64 python3-packaging all 24.2-1 [51.5 kB] 828s Get:20 http://ftpmaster.internal/ubuntu questing/main arm64 libgio-2.0-dev-bin arm64 2.84.1-1 [129 kB] 828s Get:21 http://ftpmaster.internal/ubuntu questing/main arm64 libvulkan1 arm64 1.4.304.0-1 [158 kB] 828s Get:22 http://ftpmaster.internal/ubuntu questing/main arm64 libgl1-mesa-dri arm64 25.0.3-1ubuntu2 [35.4 kB] 828s Get:23 http://ftpmaster.internal/ubuntu questing/main arm64 libglib2.0-bin arm64 2.84.1-1 [98.1 kB] 828s Get:24 http://ftpmaster.internal/ubuntu questing/main arm64 libglib2.0-dev-bin arm64 2.84.1-1 [18.1 kB] 828s Get:25 http://ftpmaster.internal/ubuntu questing/universe arm64 python3-dbusmock all 0.34.3-1 [92.4 kB] 828s Get:26 http://ftpmaster.internal/ubuntu questing/main arm64 tzdata-legacy all 2025b-1ubuntu1 [99.2 kB] 828s Get:27 http://ftpmaster.internal/ubuntu questing/universe arm64 libglib2.0-tests arm64 2.84.1-1 [2124 kB] 828s Get:28 http://ftpmaster.internal/ubuntu questing/main arm64 libxcb-glx0 arm64 1.17.0-2 [25.5 kB] 828s Get:29 http://ftpmaster.internal/ubuntu questing/main arm64 libxcb-shm0 arm64 1.17.0-2 [5884 B] 828s Get:30 http://ftpmaster.internal/ubuntu questing/main arm64 libxxf86vm1 arm64 1:1.1.4-1build4 [9130 B] 828s Get:31 http://ftpmaster.internal/ubuntu questing/main arm64 libglx-mesa0 arm64 25.0.3-1ubuntu2 [151 kB] 828s Get:32 http://ftpmaster.internal/ubuntu questing/main arm64 x11-common all 1:7.7+23ubuntu4 [21.8 kB] 828s Get:33 http://ftpmaster.internal/ubuntu questing/main arm64 libice6 arm64 2:1.1.1-1 [42.3 kB] 828s Get:34 http://ftpmaster.internal/ubuntu questing/main arm64 libpixman-1-0 arm64 0.44.0-3 [197 kB] 828s Get:35 http://ftpmaster.internal/ubuntu questing/main arm64 libsm6 arm64 2:1.2.4-1 [16.4 kB] 828s Get:36 http://ftpmaster.internal/ubuntu questing/main arm64 libxt6t64 arm64 1:1.2.1-1.2build1 [168 kB] 829s Get:37 http://ftpmaster.internal/ubuntu questing/main arm64 libxmu6 arm64 2:1.1.3-3build2 [47.5 kB] 829s Get:38 http://ftpmaster.internal/ubuntu questing/main arm64 libxpm4 arm64 1:3.5.17-1build2 [35.1 kB] 829s Get:39 http://ftpmaster.internal/ubuntu questing/main arm64 libxaw7 arm64 2:1.0.16-1 [184 kB] 829s Get:40 http://ftpmaster.internal/ubuntu questing/main arm64 libxfont2 arm64 1:2.0.6-1build1 [88.7 kB] 829s Get:41 http://ftpmaster.internal/ubuntu questing/main arm64 libxkbfile1 arm64 1:1.1.0-1build4 [69.4 kB] 829s Get:42 http://ftpmaster.internal/ubuntu questing/main arm64 libxrender1 arm64 1:0.9.10-1.1build1 [18.8 kB] 829s Get:43 http://ftpmaster.internal/ubuntu questing/main arm64 libxrandr2 arm64 2:1.5.4-1 [19.6 kB] 829s Get:44 http://ftpmaster.internal/ubuntu questing/main arm64 x11-xkb-utils arm64 7.7+9 [165 kB] 829s Get:45 http://ftpmaster.internal/ubuntu questing/main arm64 xserver-common all 2:21.1.16-1ubuntu1 [34.4 kB] 829s Get:46 http://ftpmaster.internal/ubuntu questing/main arm64 libglvnd0 arm64 1.7.0-1build1 [60.6 kB] 829s Get:47 http://ftpmaster.internal/ubuntu questing/main arm64 libglx0 arm64 1.7.0-1build1 [33.2 kB] 829s Get:48 http://ftpmaster.internal/ubuntu questing/main arm64 libgl1 arm64 1.7.0-1build1 [106 kB] 829s Get:49 http://ftpmaster.internal/ubuntu questing/universe arm64 xvfb arm64 2:21.1.16-1ubuntu1 [870 kB] 829s Fetched 15.9 MB in 1s (10.9 MB/s) 829s Selecting previously unselected package dbus-x11. 829s (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 ... 117821 files and directories currently installed.) 829s Preparing to unpack .../00-dbus-x11_1.16.2-2ubuntu1_arm64.deb ... 829s Unpacking dbus-x11 (1.16.2-2ubuntu1) ... 829s Selecting previously unselected package desktop-file-utils. 829s Preparing to unpack .../01-desktop-file-utils_0.28-1_arm64.deb ... 829s Unpacking desktop-file-utils (0.28-1) ... 829s Selecting previously unselected package gir1.2-glib-2.0-dev:arm64. 829s Preparing to unpack .../02-gir1.2-glib-2.0-dev_2.84.1-1_arm64.deb ... 829s Unpacking gir1.2-glib-2.0-dev:arm64 (2.84.1-1) ... 829s Selecting previously unselected package native-architecture. 829s Preparing to unpack .../03-native-architecture_0.2.6_all.deb ... 829s Unpacking native-architecture (0.2.6) ... 830s Selecting previously unselected package libgirepository-2.0-0:arm64. 830s Preparing to unpack .../04-libgirepository-2.0-0_2.84.1-1_arm64.deb ... 830s Unpacking libgirepository-2.0-0:arm64 (2.84.1-1) ... 830s Selecting previously unselected package girepository-tools:arm64. 830s Preparing to unpack .../05-girepository-tools_2.84.1-1_arm64.deb ... 830s Unpacking girepository-tools:arm64 (2.84.1-1) ... 830s Selecting previously unselected package gnome-desktop-testing. 830s Preparing to unpack .../06-gnome-desktop-testing_2021.1-4_arm64.deb ... 830s Unpacking gnome-desktop-testing (2021.1-4) ... 830s Selecting previously unselected package libfontenc1:arm64. 830s Preparing to unpack .../07-libfontenc1_1%3a1.1.8-1build1_arm64.deb ... 830s Unpacking libfontenc1:arm64 (1:1.1.8-1build1) ... 830s Selecting previously unselected package libwayland-server0:arm64. 830s Preparing to unpack .../08-libwayland-server0_1.23.1-3_arm64.deb ... 830s Unpacking libwayland-server0:arm64 (1.23.1-3) ... 830s Selecting previously unselected package libx11-xcb1:arm64. 830s Preparing to unpack .../09-libx11-xcb1_2%3a1.8.10-2_arm64.deb ... 830s Unpacking libx11-xcb1:arm64 (2:1.8.10-2) ... 830s Selecting previously unselected package libxcb-dri3-0:arm64. 830s Preparing to unpack .../10-libxcb-dri3-0_1.17.0-2_arm64.deb ... 830s Unpacking libxcb-dri3-0:arm64 (1.17.0-2) ... 830s Selecting previously unselected package libxcb-present0:arm64. 830s Preparing to unpack .../11-libxcb-present0_1.17.0-2_arm64.deb ... 830s Unpacking libxcb-present0:arm64 (1.17.0-2) ... 830s Selecting previously unselected package libxcb-randr0:arm64. 830s Preparing to unpack .../12-libxcb-randr0_1.17.0-2_arm64.deb ... 830s Unpacking libxcb-randr0:arm64 (1.17.0-2) ... 830s Selecting previously unselected package libxcb-sync1:arm64. 830s Preparing to unpack .../13-libxcb-sync1_1.17.0-2_arm64.deb ... 830s Unpacking libxcb-sync1:arm64 (1.17.0-2) ... 830s Selecting previously unselected package libxcb-xfixes0:arm64. 830s Preparing to unpack .../14-libxcb-xfixes0_1.17.0-2_arm64.deb ... 830s Unpacking libxcb-xfixes0:arm64 (1.17.0-2) ... 830s Selecting previously unselected package libxshmfence1:arm64. 830s Preparing to unpack .../15-libxshmfence1_1.3-1build5_arm64.deb ... 830s Unpacking libxshmfence1:arm64 (1.3-1build5) ... 830s Selecting previously unselected package mesa-libgallium:arm64. 830s Preparing to unpack .../16-mesa-libgallium_25.0.3-1ubuntu2_arm64.deb ... 830s Unpacking mesa-libgallium:arm64 (25.0.3-1ubuntu2) ... 830s Selecting previously unselected package libgbm1:arm64. 830s Preparing to unpack .../17-libgbm1_25.0.3-1ubuntu2_arm64.deb ... 830s Unpacking libgbm1:arm64 (25.0.3-1ubuntu2) ... 830s Selecting previously unselected package python3-packaging. 830s Preparing to unpack .../18-python3-packaging_24.2-1_all.deb ... 830s Unpacking python3-packaging (24.2-1) ... 830s Selecting previously unselected package libgio-2.0-dev-bin. 830s Preparing to unpack .../19-libgio-2.0-dev-bin_2.84.1-1_arm64.deb ... 830s Unpacking libgio-2.0-dev-bin (2.84.1-1) ... 831s Selecting previously unselected package libvulkan1:arm64. 831s Preparing to unpack .../20-libvulkan1_1.4.304.0-1_arm64.deb ... 831s Unpacking libvulkan1:arm64 (1.4.304.0-1) ... 831s Selecting previously unselected package libgl1-mesa-dri:arm64. 831s Preparing to unpack .../21-libgl1-mesa-dri_25.0.3-1ubuntu2_arm64.deb ... 831s Unpacking libgl1-mesa-dri:arm64 (25.0.3-1ubuntu2) ... 831s Selecting previously unselected package libglib2.0-bin. 831s Preparing to unpack .../22-libglib2.0-bin_2.84.1-1_arm64.deb ... 831s Unpacking libglib2.0-bin (2.84.1-1) ... 831s Selecting previously unselected package libglib2.0-dev-bin. 831s Preparing to unpack .../23-libglib2.0-dev-bin_2.84.1-1_arm64.deb ... 831s Unpacking libglib2.0-dev-bin (2.84.1-1) ... 831s Selecting previously unselected package python3-dbusmock. 831s Preparing to unpack .../24-python3-dbusmock_0.34.3-1_all.deb ... 831s Unpacking python3-dbusmock (0.34.3-1) ... 831s Selecting previously unselected package tzdata-legacy. 831s Preparing to unpack .../25-tzdata-legacy_2025b-1ubuntu1_all.deb ... 831s Unpacking tzdata-legacy (2025b-1ubuntu1) ... 831s Selecting previously unselected package libglib2.0-tests. 831s Preparing to unpack .../26-libglib2.0-tests_2.84.1-1_arm64.deb ... 831s Unpacking libglib2.0-tests (2.84.1-1) ... 831s Selecting previously unselected package libxcb-glx0:arm64. 831s Preparing to unpack .../27-libxcb-glx0_1.17.0-2_arm64.deb ... 831s Unpacking libxcb-glx0:arm64 (1.17.0-2) ... 831s Selecting previously unselected package libxcb-shm0:arm64. 831s Preparing to unpack .../28-libxcb-shm0_1.17.0-2_arm64.deb ... 831s Unpacking libxcb-shm0:arm64 (1.17.0-2) ... 831s Selecting previously unselected package libxxf86vm1:arm64. 831s Preparing to unpack .../29-libxxf86vm1_1%3a1.1.4-1build4_arm64.deb ... 831s Unpacking libxxf86vm1:arm64 (1:1.1.4-1build4) ... 831s Selecting previously unselected package libglx-mesa0:arm64. 831s Preparing to unpack .../30-libglx-mesa0_25.0.3-1ubuntu2_arm64.deb ... 831s Unpacking libglx-mesa0:arm64 (25.0.3-1ubuntu2) ... 831s Selecting previously unselected package x11-common. 831s Preparing to unpack .../31-x11-common_1%3a7.7+23ubuntu4_all.deb ... 831s Unpacking x11-common (1:7.7+23ubuntu4) ... 832s Selecting previously unselected package libice6:arm64. 832s Preparing to unpack .../32-libice6_2%3a1.1.1-1_arm64.deb ... 832s Unpacking libice6:arm64 (2:1.1.1-1) ... 832s Selecting previously unselected package libpixman-1-0:arm64. 832s Preparing to unpack .../33-libpixman-1-0_0.44.0-3_arm64.deb ... 832s Unpacking libpixman-1-0:arm64 (0.44.0-3) ... 832s Selecting previously unselected package libsm6:arm64. 832s Preparing to unpack .../34-libsm6_2%3a1.2.4-1_arm64.deb ... 832s Unpacking libsm6:arm64 (2:1.2.4-1) ... 832s Selecting previously unselected package libxt6t64:arm64. 832s Preparing to unpack .../35-libxt6t64_1%3a1.2.1-1.2build1_arm64.deb ... 832s Unpacking libxt6t64:arm64 (1:1.2.1-1.2build1) ... 832s Selecting previously unselected package libxmu6:arm64. 832s Preparing to unpack .../36-libxmu6_2%3a1.1.3-3build2_arm64.deb ... 832s Unpacking libxmu6:arm64 (2:1.1.3-3build2) ... 832s Selecting previously unselected package libxpm4:arm64. 832s Preparing to unpack .../37-libxpm4_1%3a3.5.17-1build2_arm64.deb ... 832s Unpacking libxpm4:arm64 (1:3.5.17-1build2) ... 832s Selecting previously unselected package libxaw7:arm64. 832s Preparing to unpack .../38-libxaw7_2%3a1.0.16-1_arm64.deb ... 832s Unpacking libxaw7:arm64 (2:1.0.16-1) ... 832s Selecting previously unselected package libxfont2:arm64. 832s Preparing to unpack .../39-libxfont2_1%3a2.0.6-1build1_arm64.deb ... 832s Unpacking libxfont2:arm64 (1:2.0.6-1build1) ... 832s Selecting previously unselected package libxkbfile1:arm64. 832s Preparing to unpack .../40-libxkbfile1_1%3a1.1.0-1build4_arm64.deb ... 832s Unpacking libxkbfile1:arm64 (1:1.1.0-1build4) ... 832s Selecting previously unselected package libxrender1:arm64. 832s Preparing to unpack .../41-libxrender1_1%3a0.9.10-1.1build1_arm64.deb ... 832s Unpacking libxrender1:arm64 (1:0.9.10-1.1build1) ... 832s Selecting previously unselected package libxrandr2:arm64. 832s Preparing to unpack .../42-libxrandr2_2%3a1.5.4-1_arm64.deb ... 832s Unpacking libxrandr2:arm64 (2:1.5.4-1) ... 832s Selecting previously unselected package x11-xkb-utils. 832s Preparing to unpack .../43-x11-xkb-utils_7.7+9_arm64.deb ... 832s Unpacking x11-xkb-utils (7.7+9) ... 832s Selecting previously unselected package xserver-common. 832s Preparing to unpack .../44-xserver-common_2%3a21.1.16-1ubuntu1_all.deb ... 832s Unpacking xserver-common (2:21.1.16-1ubuntu1) ... 832s Selecting previously unselected package libglvnd0:arm64. 832s Preparing to unpack .../45-libglvnd0_1.7.0-1build1_arm64.deb ... 832s Unpacking libglvnd0:arm64 (1.7.0-1build1) ... 832s Selecting previously unselected package libglx0:arm64. 832s Preparing to unpack .../46-libglx0_1.7.0-1build1_arm64.deb ... 832s Unpacking libglx0:arm64 (1.7.0-1build1) ... 832s Selecting previously unselected package libgl1:arm64. 833s Preparing to unpack .../47-libgl1_1.7.0-1build1_arm64.deb ... 833s Unpacking libgl1:arm64 (1.7.0-1build1) ... 833s Selecting previously unselected package xvfb. 833s Preparing to unpack .../48-xvfb_2%3a21.1.16-1ubuntu1_arm64.deb ... 833s Unpacking xvfb (2:21.1.16-1ubuntu1) ... 833s Setting up gnome-desktop-testing (2021.1-4) ... 833s Setting up libxcb-dri3-0:arm64 (1.17.0-2) ... 833s Setting up libpixman-1-0:arm64 (0.44.0-3) ... 833s Setting up libwayland-server0:arm64 (1.23.1-3) ... 833s Setting up libx11-xcb1:arm64 (2:1.8.10-2) ... 833s Setting up native-architecture (0.2.6) ... 833s Setting up libxcb-xfixes0:arm64 (1.17.0-2) ... 833s Setting up desktop-file-utils (0.28-1) ... 833s Setting up libxpm4:arm64 (1:3.5.17-1build2) ... 833s Setting up libxrender1:arm64 (1:0.9.10-1.1build1) ... 833s Setting up libgirepository-2.0-0:arm64 (2.84.1-1) ... 833s Setting up libglvnd0:arm64 (1.7.0-1build1) ... 833s Setting up libxcb-glx0:arm64 (1.17.0-2) ... 833s Setting up x11-common (1:7.7+23ubuntu4) ... 833s Setting up libglib2.0-bin (2.84.1-1) ... 833s Setting up libxcb-shm0:arm64 (1.17.0-2) ... 833s Setting up python3-dbusmock (0.34.3-1) ... 834s Setting up tzdata-legacy (2025b-1ubuntu1) ... 834s Setting up libxxf86vm1:arm64 (1:1.1.4-1build4) ... 834s Setting up libxcb-present0:arm64 (1.17.0-2) ... 834s Setting up libfontenc1:arm64 (1:1.1.8-1build1) ... 834s Setting up python3-packaging (24.2-1) ... 834s Setting up libxcb-sync1:arm64 (1.17.0-2) ... 834s Setting up libxrandr2:arm64 (2:1.5.4-1) ... 834s Setting up libvulkan1:arm64 (1.4.304.0-1) ... 834s Setting up gir1.2-glib-2.0-dev:arm64 (2.84.1-1) ... 834s Setting up libxshmfence1:arm64 (1.3-1build5) ... 834s Setting up dbus-x11 (1.16.2-2ubuntu1) ... 834s Setting up libxcb-randr0:arm64 (1.17.0-2) ... 834s Setting up libxkbfile1:arm64 (1:1.1.0-1build4) ... 834s Setting up libxfont2:arm64 (1:2.0.6-1build1) ... 834s Setting up libice6:arm64 (2:1.1.1-1) ... 834s Setting up mesa-libgallium:arm64 (25.0.3-1ubuntu2) ... 834s Setting up libgio-2.0-dev-bin (2.84.1-1) ... 834s Setting up girepository-tools:arm64 (2.84.1-1) ... 834s Setting up libgbm1:arm64 (25.0.3-1ubuntu2) ... 834s Setting up libgl1-mesa-dri:arm64 (25.0.3-1ubuntu2) ... 834s Setting up libsm6:arm64 (2:1.2.4-1) ... 834s Setting up libglib2.0-dev-bin (2.84.1-1) ... 834s Setting up libglx-mesa0:arm64 (25.0.3-1ubuntu2) ... 834s Setting up libglx0:arm64 (1.7.0-1build1) ... 834s Setting up libgl1:arm64 (1.7.0-1build1) ... 834s Setting up libxt6t64:arm64 (1:1.2.1-1.2build1) ... 834s Setting up libglib2.0-tests (2.84.1-1) ... 834s Setting up libxmu6:arm64 (2:1.1.3-3build2) ... 834s Setting up libxaw7:arm64 (2:1.0.16-1) ... 834s Setting up x11-xkb-utils (7.7+9) ... 834s Setting up xserver-common (2:21.1.16-1ubuntu1) ... 834s Setting up xvfb (2:21.1.16-1ubuntu1) ... 834s Processing triggers for man-db (2.13.0-1) ... 835s Processing triggers for libc-bin (2.41-6ubuntu1) ... 845s autopkgtest [08:48:42]: test installed-tests: [----------------------- 846s Running as: uid=1000(ubuntu) gid=1000(ubuntu) groups=1000(ubuntu),4(adm),24(cdrom),27(sudo),30(dip),103(lxd) 846s passwd entry: ubuntu:x:1000:1000:Ubuntu:/home/ubuntu:/bin/bash 846s group entry: ubuntu:x:1000: 846s Environment: 846s ADTTMP=/tmp/autopkgtest.s3NNs2/autopkgtest_tmp 846s ADT_ARTIFACTS=/tmp/autopkgtest.s3NNs2/installed-tests-artifacts 846s ADT_TEST_TRIGGERS=python3.13/3.13.3-2 846s AUTOPKGTEST_ARTIFACTS=/tmp/autopkgtest.s3NNs2/installed-tests-artifacts 846s AUTOPKGTEST_TESTBED_ARCH=arm64 846s AUTOPKGTEST_TEST_ARCH=arm64 846s AUTOPKGTEST_TMP=/tmp/autopkgtest.s3NNs2/autopkgtest_tmp 846s DEBIAN_FRONTEND=noninteractive 846s DEBUGINFOD_URLS=https://debuginfod.ubuntu.com 846s DEB_BUILD_OPTIONS=parallel=2 846s GIO_USE_VFS=local 846s GIO_USE_VOLUME_MONITOR=unix 846s HOME=/home/ubuntu 846s LANG=C.UTF-8 846s LOGNAME=ubuntu 846s MAIL=/var/mail/ubuntu 846s OLDPWD=/home/ubuntu 846s PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin 846s PWD=/tmp/autopkgtest.s3NNs2/build.swq/src 846s SHELL=/bin/bash 846s SHLVL=1 846s SUDO_COMMAND=/var/tmp/autopkgtest-run-wrapper su -s /bin/bash ubuntu -c set -e; exec /tmp/autopkgtest.s3NNs2/wrapper.sh --artifacts=/tmp/autopkgtest.s3NNs2/installed-tests-artifacts --chdir=/tmp/autopkgtest.s3NNs2/build.swq/src --env=AUTOPKGTEST_TESTBED_ARCH=arm64 --env=AUTOPKGTEST_TEST_ARCH=arm64 --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.s3NNs2/installed-tests-stderr --stdout=/tmp/autopkgtest.s3NNs2/installed-tests-stdout --tmp=/tmp/autopkgtest.s3NNs2/autopkgtest_tmp --env=ADT_TEST_TRIGGERS=python3.13/3.13.3-2 --make-executable=/tmp/autopkgtest.s3NNs2/build.swq/src/debian/tests/installed-tests -- /tmp/autopkgtest.s3NNs2/build.swq/src/debian/tests/installed-tests 846s SUDO_GID=1000 846s SUDO_HOME=/home/ubuntu 846s SUDO_UID=1000 846s SUDO_USER=ubuntu 846s TERM=linux 846s USER=ubuntu 846s XDG_RUNTIME_DIR=/tmp/autopkgtest.s3NNs2/autopkgtest_tmp 846s http_proxy=http://squid.internal:3128/ 846s https_proxy=http://squid.internal:3128/ 846s 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 846s run-with-locales: de_DE=ISO-8859-1... 846s Character set: ISO-8859-1 846s Source file: de_DE 846s Output: /tmp/tmp.zvxBdpaxUl/de_DE 846s run-with-locales: de_DE.utf8... 846s Character set: UTF-8 846s Source file: de_DE 846s Output: /tmp/tmp.zvxBdpaxUl/de_DE.utf8 848s run-with-locales: de_DE@euro.utf8... 848s Character set: UTF-8 848s Source file: de_DE@euro 848s Output: /tmp/tmp.zvxBdpaxUl/de_DE@euro.utf8 850s run-with-locales: el_GR.utf8... 850s Character set: UTF-8 850s Source file: el_GR 850s Output: /tmp/tmp.zvxBdpaxUl/el_GR.utf8 852s run-with-locales: en_GB=ISO-8859-1... 852s Character set: ISO-8859-1 852s Source file: en_GB 852s Output: /tmp/tmp.zvxBdpaxUl/en_GB 853s run-with-locales: en_GB.utf8... 853s Character set: UTF-8 853s Source file: en_GB 853s Output: /tmp/tmp.zvxBdpaxUl/en_GB.utf8 855s run-with-locales: en_US=ISO-8859-1... 855s Character set: ISO-8859-1 855s Source file: en_US 855s Output: /tmp/tmp.zvxBdpaxUl/en_US 855s run-with-locales: en_US.utf8... 855s Character set: UTF-8 855s Source file: en_US 855s Output: /tmp/tmp.zvxBdpaxUl/en_US.utf8 857s run-with-locales: es_ES.utf8... 857s Character set: UTF-8 857s Source file: es_ES 857s Output: /tmp/tmp.zvxBdpaxUl/es_ES.utf8 860s run-with-locales: fa_IR=UTF-8... 860s Character set: UTF-8 860s Source file: fa_IR 860s Output: /tmp/tmp.zvxBdpaxUl/fa_IR 862s run-with-locales: fa_IR.utf8... 862s Character set: UTF-8 862s Source file: fa_IR 862s Output: /tmp/tmp.zvxBdpaxUl/fa_IR.utf8 864s run-with-locales: fr_FR.utf8... 864s Character set: UTF-8 864s Source file: fr_FR 864s Output: /tmp/tmp.zvxBdpaxUl/fr_FR.utf8 866s run-with-locales: hr_HR.utf8... 866s Character set: UTF-8 866s Source file: hr_HR 866s Output: /tmp/tmp.zvxBdpaxUl/hr_HR.utf8 869s run-with-locales: ja_JP.utf8... 869s Character set: UTF-8 869s Source file: ja_JP 869s Output: /tmp/tmp.zvxBdpaxUl/ja_JP.utf8 870s run-with-locales: ja_JP.EUC-JP... 870s Character set: EUC-JP 870s Source file: ja_JP 870s Output: /tmp/tmp.zvxBdpaxUl/ja_JP.eucjp 870s run-with-locales: lt_LT.utf8... 870s Character set: UTF-8 870s Source file: lt_LT 870s Output: /tmp/tmp.zvxBdpaxUl/lt_LT.utf8 872s run-with-locales: pl_PL=ISO-8859-2... 872s Character set: ISO-8859-2 872s Source file: pl_PL 872s Output: /tmp/tmp.zvxBdpaxUl/pl_PL 873s run-with-locales: pl_PL.ISO-8859-2... 873s Character set: ISO-8859-2 873s Source file: pl_PL 873s Output: /tmp/tmp.zvxBdpaxUl/pl_PL.iso88592 873s run-with-locales: pl_PL.utf8... 873s Character set: UTF-8 873s Source file: pl_PL 873s Output: /tmp/tmp.zvxBdpaxUl/pl_PL.utf8 875s run-with-locales: ru_RU=ISO-8859-5... 875s Character set: ISO-8859-5 875s Source file: ru_RU 875s Output: /tmp/tmp.zvxBdpaxUl/ru_RU 876s run-with-locales: ru_RU.utf8... 876s Character set: UTF-8 876s Source file: ru_RU 876s Output: /tmp/tmp.zvxBdpaxUl/ru_RU.utf8 878s run-with-locales: sr_RS=UTF-8... 878s Character set: UTF-8 878s Source file: sr_RS 878s Output: /tmp/tmp.zvxBdpaxUl/sr_RS 880s run-with-locales: sr_RS@latin=UTF-8... 880s Character set: UTF-8 880s Source file: sr_RS@latin 880s Output: /tmp/tmp.zvxBdpaxUl/sr_RS@latin 882s run-with-locales: sv_SE=ISO-8859-1... 882s Character set: ISO-8859-1 882s Source file: sv_SE 882s Output: /tmp/tmp.zvxBdpaxUl/sv_SE 883s run-with-locales: sv_SE.utf8... 883s Character set: UTF-8 883s Source file: sv_SE 883s Output: /tmp/tmp.zvxBdpaxUl/sv_SE.utf8 888s run-with-locales: tr_TR=ISO-8859-9... 888s Character set: ISO-8859-9 888s Source file: tr_TR 888s Output: /tmp/tmp.zvxBdpaxUl/tr_TR 888s run-with-locales: tr_TR.utf8... 888s Character set: UTF-8 888s Source file: tr_TR 888s Output: /tmp/tmp.zvxBdpaxUl/tr_TR.utf8 890s run-with-locales: tt_RU=UTF-8... 890s Character set: UTF-8 890s Source file: tt_RU 890s Output: /tmp/tmp.zvxBdpaxUl/tt_RU 892s run-with-locales: tt_RU.utf8... 892s Character set: UTF-8 892s Source file: tt_RU 892s Output: /tmp/tmp.zvxBdpaxUl/tt_RU.utf8 894s run-with-locales: tt_RU@iqtelif=UTF-8... 894s Character set: UTF-8 894s Source file: tt_RU@iqtelif 894s Output: /tmp/tmp.zvxBdpaxUl/tt_RU@iqtelif 896s /tmp/tmp.zvxBdpaxUl 896s /tmp/tmp.zvxBdpaxUl/ru_RU.utf8 896s /tmp/tmp.zvxBdpaxUl/ru_RU.utf8/LC_MEASUREMENT 896s /tmp/tmp.zvxBdpaxUl/ru_RU.utf8/LC_CTYPE 896s /tmp/tmp.zvxBdpaxUl/ru_RU.utf8/LC_ADDRESS 896s /tmp/tmp.zvxBdpaxUl/ru_RU.utf8/LC_MONETARY 896s /tmp/tmp.zvxBdpaxUl/ru_RU.utf8/LC_NUMERIC 896s /tmp/tmp.zvxBdpaxUl/ru_RU.utf8/LC_COLLATE 896s /tmp/tmp.zvxBdpaxUl/ru_RU.utf8/LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/ru_RU.utf8/LC_MESSAGES/SYS_LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/ru_RU.utf8/LC_NAME 896s /tmp/tmp.zvxBdpaxUl/ru_RU.utf8/LC_IDENTIFICATION 896s /tmp/tmp.zvxBdpaxUl/ru_RU.utf8/LC_PAPER 896s /tmp/tmp.zvxBdpaxUl/ru_RU.utf8/LC_TIME 896s /tmp/tmp.zvxBdpaxUl/ru_RU.utf8/LC_TELEPHONE 896s /tmp/tmp.zvxBdpaxUl/tt_RU 896s /tmp/tmp.zvxBdpaxUl/tt_RU/LC_MEASUREMENT 896s /tmp/tmp.zvxBdpaxUl/tt_RU/LC_CTYPE 896s /tmp/tmp.zvxBdpaxUl/tt_RU/LC_ADDRESS 896s /tmp/tmp.zvxBdpaxUl/tt_RU/LC_MONETARY 896s /tmp/tmp.zvxBdpaxUl/tt_RU/LC_NUMERIC 896s /tmp/tmp.zvxBdpaxUl/tt_RU/LC_COLLATE 896s /tmp/tmp.zvxBdpaxUl/tt_RU/LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/tt_RU/LC_MESSAGES/SYS_LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/tt_RU/LC_NAME 896s /tmp/tmp.zvxBdpaxUl/tt_RU/LC_IDENTIFICATION 896s /tmp/tmp.zvxBdpaxUl/tt_RU/LC_PAPER 896s /tmp/tmp.zvxBdpaxUl/tt_RU/LC_TIME 896s /tmp/tmp.zvxBdpaxUl/tt_RU/LC_TELEPHONE 896s /tmp/tmp.zvxBdpaxUl/de_DE 896s /tmp/tmp.zvxBdpaxUl/de_DE/LC_MEASUREMENT 896s /tmp/tmp.zvxBdpaxUl/de_DE/LC_CTYPE 896s /tmp/tmp.zvxBdpaxUl/de_DE/LC_ADDRESS 896s /tmp/tmp.zvxBdpaxUl/de_DE/LC_MONETARY 896s /tmp/tmp.zvxBdpaxUl/de_DE/LC_NUMERIC 896s /tmp/tmp.zvxBdpaxUl/de_DE/LC_COLLATE 896s /tmp/tmp.zvxBdpaxUl/de_DE/LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/de_DE/LC_MESSAGES/SYS_LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/de_DE/LC_NAME 896s /tmp/tmp.zvxBdpaxUl/de_DE/LC_IDENTIFICATION 896s /tmp/tmp.zvxBdpaxUl/de_DE/LC_PAPER 896s /tmp/tmp.zvxBdpaxUl/de_DE/LC_TIME 896s /tmp/tmp.zvxBdpaxUl/de_DE/LC_TELEPHONE 896s /tmp/tmp.zvxBdpaxUl/pl_PL.utf8 896s /tmp/tmp.zvxBdpaxUl/pl_PL.utf8/LC_MEASUREMENT 896s /tmp/tmp.zvxBdpaxUl/pl_PL.utf8/LC_CTYPE 896s /tmp/tmp.zvxBdpaxUl/pl_PL.utf8/LC_ADDRESS 896s /tmp/tmp.zvxBdpaxUl/pl_PL.utf8/LC_MONETARY 896s /tmp/tmp.zvxBdpaxUl/pl_PL.utf8/LC_NUMERIC 896s /tmp/tmp.zvxBdpaxUl/pl_PL.utf8/LC_COLLATE 896s /tmp/tmp.zvxBdpaxUl/pl_PL.utf8/LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/pl_PL.utf8/LC_MESSAGES/SYS_LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/pl_PL.utf8/LC_NAME 896s /tmp/tmp.zvxBdpaxUl/pl_PL.utf8/LC_IDENTIFICATION 896s /tmp/tmp.zvxBdpaxUl/pl_PL.utf8/LC_PAPER 896s /tmp/tmp.zvxBdpaxUl/pl_PL.utf8/LC_TIME 896s /tmp/tmp.zvxBdpaxUl/pl_PL.utf8/LC_TELEPHONE 896s /tmp/tmp.zvxBdpaxUl/en_US.utf8 896s /tmp/tmp.zvxBdpaxUl/en_US.utf8/LC_MEASUREMENT 896s /tmp/tmp.zvxBdpaxUl/en_US.utf8/LC_CTYPE 896s /tmp/tmp.zvxBdpaxUl/en_US.utf8/LC_ADDRESS 896s /tmp/tmp.zvxBdpaxUl/en_US.utf8/LC_MONETARY 896s /tmp/tmp.zvxBdpaxUl/en_US.utf8/LC_NUMERIC 896s /tmp/tmp.zvxBdpaxUl/en_US.utf8/LC_COLLATE 896s /tmp/tmp.zvxBdpaxUl/en_US.utf8/LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/en_US.utf8/LC_NAME 896s /tmp/tmp.zvxBdpaxUl/en_US.utf8/LC_IDENTIFICATION 896s /tmp/tmp.zvxBdpaxUl/en_US.utf8/LC_PAPER 896s /tmp/tmp.zvxBdpaxUl/en_US.utf8/LC_TIME 896s /tmp/tmp.zvxBdpaxUl/en_US.utf8/LC_TELEPHONE 896s /tmp/tmp.zvxBdpaxUl/ru_RU 896s /tmp/tmp.zvxBdpaxUl/ru_RU/LC_MEASUREMENT 896s /tmp/tmp.zvxBdpaxUl/ru_RU/LC_CTYPE 896s /tmp/tmp.zvxBdpaxUl/ru_RU/LC_ADDRESS 896s /tmp/tmp.zvxBdpaxUl/ru_RU/LC_MONETARY 896s /tmp/tmp.zvxBdpaxUl/ru_RU/LC_NUMERIC 896s /tmp/tmp.zvxBdpaxUl/ru_RU/LC_COLLATE 896s /tmp/tmp.zvxBdpaxUl/ru_RU/LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/ru_RU/LC_MESSAGES/SYS_LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/ru_RU/LC_NAME 896s /tmp/tmp.zvxBdpaxUl/ru_RU/LC_IDENTIFICATION 896s /tmp/tmp.zvxBdpaxUl/ru_RU/LC_PAPER 896s /tmp/tmp.zvxBdpaxUl/ru_RU/LC_TIME 896s /tmp/tmp.zvxBdpaxUl/ru_RU/LC_TELEPHONE 896s /tmp/tmp.zvxBdpaxUl/tr_TR.utf8 896s /tmp/tmp.zvxBdpaxUl/tr_TR.utf8/LC_MEASUREMENT 896s /tmp/tmp.zvxBdpaxUl/tr_TR.utf8/LC_CTYPE 896s /tmp/tmp.zvxBdpaxUl/tr_TR.utf8/LC_ADDRESS 896s /tmp/tmp.zvxBdpaxUl/tr_TR.utf8/LC_MONETARY 896s /tmp/tmp.zvxBdpaxUl/tr_TR.utf8/LC_NUMERIC 896s /tmp/tmp.zvxBdpaxUl/tr_TR.utf8/LC_COLLATE 896s /tmp/tmp.zvxBdpaxUl/tr_TR.utf8/LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/tr_TR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/tr_TR.utf8/LC_NAME 896s /tmp/tmp.zvxBdpaxUl/tr_TR.utf8/LC_IDENTIFICATION 896s /tmp/tmp.zvxBdpaxUl/tr_TR.utf8/LC_PAPER 896s /tmp/tmp.zvxBdpaxUl/tr_TR.utf8/LC_TIME 896s /tmp/tmp.zvxBdpaxUl/tr_TR.utf8/LC_TELEPHONE 896s /tmp/tmp.zvxBdpaxUl/pl_PL.iso88592 896s /tmp/tmp.zvxBdpaxUl/pl_PL.iso88592/LC_MEASUREMENT 896s /tmp/tmp.zvxBdpaxUl/pl_PL.iso88592/LC_CTYPE 896s /tmp/tmp.zvxBdpaxUl/pl_PL.iso88592/LC_ADDRESS 896s /tmp/tmp.zvxBdpaxUl/pl_PL.iso88592/LC_MONETARY 896s /tmp/tmp.zvxBdpaxUl/pl_PL.iso88592/LC_NUMERIC 896s /tmp/tmp.zvxBdpaxUl/pl_PL.iso88592/LC_COLLATE 896s /tmp/tmp.zvxBdpaxUl/pl_PL.iso88592/LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/pl_PL.iso88592/LC_MESSAGES/SYS_LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/pl_PL.iso88592/LC_NAME 896s /tmp/tmp.zvxBdpaxUl/pl_PL.iso88592/LC_IDENTIFICATION 896s /tmp/tmp.zvxBdpaxUl/pl_PL.iso88592/LC_PAPER 896s /tmp/tmp.zvxBdpaxUl/pl_PL.iso88592/LC_TIME 896s /tmp/tmp.zvxBdpaxUl/pl_PL.iso88592/LC_TELEPHONE 896s /tmp/tmp.zvxBdpaxUl/en_GB.utf8 896s /tmp/tmp.zvxBdpaxUl/en_GB.utf8/LC_MEASUREMENT 896s /tmp/tmp.zvxBdpaxUl/en_GB.utf8/LC_CTYPE 896s /tmp/tmp.zvxBdpaxUl/en_GB.utf8/LC_ADDRESS 896s /tmp/tmp.zvxBdpaxUl/en_GB.utf8/LC_MONETARY 896s /tmp/tmp.zvxBdpaxUl/en_GB.utf8/LC_NUMERIC 896s /tmp/tmp.zvxBdpaxUl/en_GB.utf8/LC_COLLATE 896s /tmp/tmp.zvxBdpaxUl/en_GB.utf8/LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/en_GB.utf8/LC_MESSAGES/SYS_LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/en_GB.utf8/LC_NAME 896s /tmp/tmp.zvxBdpaxUl/en_GB.utf8/LC_IDENTIFICATION 896s /tmp/tmp.zvxBdpaxUl/en_GB.utf8/LC_PAPER 896s /tmp/tmp.zvxBdpaxUl/en_GB.utf8/LC_TIME 896s /tmp/tmp.zvxBdpaxUl/en_GB.utf8/LC_TELEPHONE 896s /tmp/tmp.zvxBdpaxUl/tt_RU.utf8 896s /tmp/tmp.zvxBdpaxUl/tt_RU.utf8/LC_MEASUREMENT 896s /tmp/tmp.zvxBdpaxUl/tt_RU.utf8/LC_CTYPE 896s /tmp/tmp.zvxBdpaxUl/tt_RU.utf8/LC_ADDRESS 896s /tmp/tmp.zvxBdpaxUl/tt_RU.utf8/LC_MONETARY 896s /tmp/tmp.zvxBdpaxUl/tt_RU.utf8/LC_NUMERIC 896s /tmp/tmp.zvxBdpaxUl/tt_RU.utf8/LC_COLLATE 896s /tmp/tmp.zvxBdpaxUl/tt_RU.utf8/LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/tt_RU.utf8/LC_MESSAGES/SYS_LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/tt_RU.utf8/LC_NAME 896s /tmp/tmp.zvxBdpaxUl/tt_RU.utf8/LC_IDENTIFICATION 896s /tmp/tmp.zvxBdpaxUl/tt_RU.utf8/LC_PAPER 896s /tmp/tmp.zvxBdpaxUl/tt_RU.utf8/LC_TIME 896s /tmp/tmp.zvxBdpaxUl/tt_RU.utf8/LC_TELEPHONE 896s /tmp/tmp.zvxBdpaxUl/hr_HR.utf8 896s /tmp/tmp.zvxBdpaxUl/hr_HR.utf8/LC_MEASUREMENT 896s /tmp/tmp.zvxBdpaxUl/hr_HR.utf8/LC_CTYPE 896s /tmp/tmp.zvxBdpaxUl/hr_HR.utf8/LC_ADDRESS 896s /tmp/tmp.zvxBdpaxUl/hr_HR.utf8/LC_MONETARY 896s /tmp/tmp.zvxBdpaxUl/hr_HR.utf8/LC_NUMERIC 896s /tmp/tmp.zvxBdpaxUl/hr_HR.utf8/LC_COLLATE 896s /tmp/tmp.zvxBdpaxUl/hr_HR.utf8/LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/hr_HR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/hr_HR.utf8/LC_NAME 896s /tmp/tmp.zvxBdpaxUl/hr_HR.utf8/LC_IDENTIFICATION 896s /tmp/tmp.zvxBdpaxUl/hr_HR.utf8/LC_PAPER 896s /tmp/tmp.zvxBdpaxUl/hr_HR.utf8/LC_TIME 896s /tmp/tmp.zvxBdpaxUl/hr_HR.utf8/LC_TELEPHONE 896s /tmp/tmp.zvxBdpaxUl/es_ES.utf8 896s /tmp/tmp.zvxBdpaxUl/es_ES.utf8/LC_MEASUREMENT 896s /tmp/tmp.zvxBdpaxUl/es_ES.utf8/LC_CTYPE 896s /tmp/tmp.zvxBdpaxUl/es_ES.utf8/LC_ADDRESS 896s /tmp/tmp.zvxBdpaxUl/es_ES.utf8/LC_MONETARY 896s /tmp/tmp.zvxBdpaxUl/es_ES.utf8/LC_NUMERIC 896s /tmp/tmp.zvxBdpaxUl/es_ES.utf8/LC_COLLATE 896s /tmp/tmp.zvxBdpaxUl/es_ES.utf8/LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/es_ES.utf8/LC_MESSAGES/SYS_LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/es_ES.utf8/LC_NAME 896s /tmp/tmp.zvxBdpaxUl/es_ES.utf8/LC_IDENTIFICATION 896s /tmp/tmp.zvxBdpaxUl/es_ES.utf8/LC_PAPER 896s /tmp/tmp.zvxBdpaxUl/es_ES.utf8/LC_TIME 896s /tmp/tmp.zvxBdpaxUl/es_ES.utf8/LC_TELEPHONE 896s /tmp/tmp.zvxBdpaxUl/en_US 896s /tmp/tmp.zvxBdpaxUl/en_US/LC_MEASUREMENT 896s /tmp/tmp.zvxBdpaxUl/en_US/LC_CTYPE 896s /tmp/tmp.zvxBdpaxUl/en_US/LC_ADDRESS 896s /tmp/tmp.zvxBdpaxUl/en_US/LC_MONETARY 896s /tmp/tmp.zvxBdpaxUl/en_US/LC_NUMERIC 896s /tmp/tmp.zvxBdpaxUl/en_US/LC_COLLATE 896s /tmp/tmp.zvxBdpaxUl/en_US/LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/en_US/LC_MESSAGES/SYS_LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/en_US/LC_NAME 896s /tmp/tmp.zvxBdpaxUl/en_US/LC_IDENTIFICATION 896s /tmp/tmp.zvxBdpaxUl/en_US/LC_PAPER 896s /tmp/tmp.zvxBdpaxUl/en_US/LC_TIME 896s /tmp/tmp.zvxBdpaxUl/en_US/LC_TELEPHONE 896s /tmp/tmp.zvxBdpaxUl/fa_IR.utf8 896s /tmp/tmp.zvxBdpaxUl/fa_IR.utf8/LC_MEASUREMENT 896s /tmp/tmp.zvxBdpaxUl/fa_IR.utf8/LC_CTYPE 896s /tmp/tmp.zvxBdpaxUl/fa_IR.utf8/LC_ADDRESS 896s /tmp/tmp.zvxBdpaxUl/fa_IR.utf8/LC_MONETARY 896s /tmp/tmp.zvxBdpaxUl/fa_IR.utf8/LC_NUMERIC 896s /tmp/tmp.zvxBdpaxUl/fa_IR.utf8/LC_COLLATE 896s /tmp/tmp.zvxBdpaxUl/fa_IR.utf8/LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/fa_IR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/fa_IR.utf8/LC_NAME 896s /tmp/tmp.zvxBdpaxUl/fa_IR.utf8/LC_IDENTIFICATION 896s /tmp/tmp.zvxBdpaxUl/fa_IR.utf8/LC_PAPER 896s /tmp/tmp.zvxBdpaxUl/fa_IR.utf8/LC_TIME 896s /tmp/tmp.zvxBdpaxUl/fa_IR.utf8/LC_TELEPHONE 896s /tmp/tmp.zvxBdpaxUl/lt_LT.utf8 896s /tmp/tmp.zvxBdpaxUl/lt_LT.utf8/LC_MEASUREMENT 896s /tmp/tmp.zvxBdpaxUl/lt_LT.utf8/LC_CTYPE 896s /tmp/tmp.zvxBdpaxUl/lt_LT.utf8/LC_ADDRESS 896s /tmp/tmp.zvxBdpaxUl/lt_LT.utf8/LC_MONETARY 896s /tmp/tmp.zvxBdpaxUl/lt_LT.utf8/LC_NUMERIC 896s /tmp/tmp.zvxBdpaxUl/lt_LT.utf8/LC_COLLATE 896s /tmp/tmp.zvxBdpaxUl/lt_LT.utf8/LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/lt_LT.utf8/LC_MESSAGES/SYS_LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/lt_LT.utf8/LC_NAME 896s /tmp/tmp.zvxBdpaxUl/lt_LT.utf8/LC_IDENTIFICATION 896s /tmp/tmp.zvxBdpaxUl/lt_LT.utf8/LC_PAPER 896s /tmp/tmp.zvxBdpaxUl/lt_LT.utf8/LC_TIME 896s /tmp/tmp.zvxBdpaxUl/lt_LT.utf8/LC_TELEPHONE 896s /tmp/tmp.zvxBdpaxUl/tt_RU@iqtelif 896s /tmp/tmp.zvxBdpaxUl/tt_RU@iqtelif/LC_MEASUREMENT 896s /tmp/tmp.zvxBdpaxUl/tt_RU@iqtelif/LC_CTYPE 896s /tmp/tmp.zvxBdpaxUl/tt_RU@iqtelif/LC_ADDRESS 896s /tmp/tmp.zvxBdpaxUl/tt_RU@iqtelif/LC_MONETARY 896s /tmp/tmp.zvxBdpaxUl/tt_RU@iqtelif/LC_NUMERIC 896s /tmp/tmp.zvxBdpaxUl/tt_RU@iqtelif/LC_COLLATE 896s /tmp/tmp.zvxBdpaxUl/tt_RU@iqtelif/LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/tt_RU@iqtelif/LC_MESSAGES/SYS_LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/tt_RU@iqtelif/LC_NAME 896s /tmp/tmp.zvxBdpaxUl/tt_RU@iqtelif/LC_IDENTIFICATION 896s /tmp/tmp.zvxBdpaxUl/tt_RU@iqtelif/LC_PAPER 896s /tmp/tmp.zvxBdpaxUl/tt_RU@iqtelif/LC_TIME 896s /tmp/tmp.zvxBdpaxUl/tt_RU@iqtelif/LC_TELEPHONE 896s /tmp/tmp.zvxBdpaxUl/el_GR.utf8 896s /tmp/tmp.zvxBdpaxUl/el_GR.utf8/LC_MEASUREMENT 896s /tmp/tmp.zvxBdpaxUl/el_GR.utf8/LC_CTYPE 896s /tmp/tmp.zvxBdpaxUl/el_GR.utf8/LC_ADDRESS 896s /tmp/tmp.zvxBdpaxUl/el_GR.utf8/LC_MONETARY 896s /tmp/tmp.zvxBdpaxUl/el_GR.utf8/LC_NUMERIC 896s /tmp/tmp.zvxBdpaxUl/el_GR.utf8/LC_COLLATE 896s /tmp/tmp.zvxBdpaxUl/el_GR.utf8/LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/el_GR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/el_GR.utf8/LC_NAME 896s /tmp/tmp.zvxBdpaxUl/el_GR.utf8/LC_IDENTIFICATION 896s /tmp/tmp.zvxBdpaxUl/el_GR.utf8/LC_PAPER 896s /tmp/tmp.zvxBdpaxUl/el_GR.utf8/LC_TIME 896s /tmp/tmp.zvxBdpaxUl/el_GR.utf8/LC_TELEPHONE 896s /tmp/tmp.zvxBdpaxUl/de_DE@euro.utf8 896s /tmp/tmp.zvxBdpaxUl/de_DE@euro.utf8/LC_MEASUREMENT 896s /tmp/tmp.zvxBdpaxUl/de_DE@euro.utf8/LC_CTYPE 896s /tmp/tmp.zvxBdpaxUl/de_DE@euro.utf8/LC_ADDRESS 896s /tmp/tmp.zvxBdpaxUl/de_DE@euro.utf8/LC_MONETARY 896s /tmp/tmp.zvxBdpaxUl/de_DE@euro.utf8/LC_NUMERIC 896s /tmp/tmp.zvxBdpaxUl/de_DE@euro.utf8/LC_COLLATE 896s /tmp/tmp.zvxBdpaxUl/de_DE@euro.utf8/LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/de_DE@euro.utf8/LC_MESSAGES/SYS_LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/de_DE@euro.utf8/LC_NAME 896s /tmp/tmp.zvxBdpaxUl/de_DE@euro.utf8/LC_IDENTIFICATION 896s /tmp/tmp.zvxBdpaxUl/de_DE@euro.utf8/LC_PAPER 896s /tmp/tmp.zvxBdpaxUl/de_DE@euro.utf8/LC_TIME 896s /tmp/tmp.zvxBdpaxUl/de_DE@euro.utf8/LC_TELEPHONE 896s /tmp/tmp.zvxBdpaxUl/sr_RS@latin 896s /tmp/tmp.zvxBdpaxUl/sr_RS@latin/LC_MEASUREMENT 896s /tmp/tmp.zvxBdpaxUl/sr_RS@latin/LC_CTYPE 896s /tmp/tmp.zvxBdpaxUl/sr_RS@latin/LC_ADDRESS 896s /tmp/tmp.zvxBdpaxUl/sr_RS@latin/LC_MONETARY 896s /tmp/tmp.zvxBdpaxUl/sr_RS@latin/LC_NUMERIC 896s /tmp/tmp.zvxBdpaxUl/sr_RS@latin/LC_COLLATE 896s /tmp/tmp.zvxBdpaxUl/sr_RS@latin/LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/sr_RS@latin/LC_MESSAGES/SYS_LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/sr_RS@latin/LC_NAME 896s /tmp/tmp.zvxBdpaxUl/sr_RS@latin/LC_IDENTIFICATION 896s /tmp/tmp.zvxBdpaxUl/sr_RS@latin/LC_PAPER 896s /tmp/tmp.zvxBdpaxUl/sr_RS@latin/LC_TIME 896s /tmp/tmp.zvxBdpaxUl/sr_RS@latin/LC_TELEPHONE 896s /tmp/tmp.zvxBdpaxUl/en_GB 896s /tmp/tmp.zvxBdpaxUl/en_GB/LC_MEASUREMENT 896s /tmp/tmp.zvxBdpaxUl/en_GB/LC_CTYPE 896s /tmp/tmp.zvxBdpaxUl/en_GB/LC_ADDRESS 896s /tmp/tmp.zvxBdpaxUl/en_GB/LC_MONETARY 896s /tmp/tmp.zvxBdpaxUl/en_GB/LC_NUMERIC 896s /tmp/tmp.zvxBdpaxUl/en_GB/LC_COLLATE 896s /tmp/tmp.zvxBdpaxUl/en_GB/LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/en_GB/LC_MESSAGES/SYS_LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/en_GB/LC_NAME 896s /tmp/tmp.zvxBdpaxUl/en_GB/LC_IDENTIFICATION 896s /tmp/tmp.zvxBdpaxUl/en_GB/LC_PAPER 896s /tmp/tmp.zvxBdpaxUl/en_GB/LC_TIME 896s /tmp/tmp.zvxBdpaxUl/en_GB/LC_TELEPHONE 896s /tmp/tmp.zvxBdpaxUl/tr_TR 896s /tmp/tmp.zvxBdpaxUl/tr_TR/LC_MEASUREMENT 896s /tmp/tmp.zvxBdpaxUl/tr_TR/LC_CTYPE 896s /tmp/tmp.zvxBdpaxUl/tr_TR/LC_ADDRESS 896s /tmp/tmp.zvxBdpaxUl/tr_TR/LC_MONETARY 896s /tmp/tmp.zvxBdpaxUl/tr_TR/LC_NUMERIC 896s /tmp/tmp.zvxBdpaxUl/tr_TR/LC_COLLATE 896s /tmp/tmp.zvxBdpaxUl/tr_TR/LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/tr_TR/LC_MESSAGES/SYS_LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/tr_TR/LC_NAME 896s /tmp/tmp.zvxBdpaxUl/tr_TR/LC_IDENTIFICATION 896s /tmp/tmp.zvxBdpaxUl/tr_TR/LC_PAPER 896s /tmp/tmp.zvxBdpaxUl/tr_TR/LC_TIME 896s /tmp/tmp.zvxBdpaxUl/tr_TR/LC_TELEPHONE 896s /tmp/tmp.zvxBdpaxUl/fr_FR.utf8 896s /tmp/tmp.zvxBdpaxUl/fr_FR.utf8/LC_MEASUREMENT 896s /tmp/tmp.zvxBdpaxUl/fr_FR.utf8/LC_CTYPE 896s /tmp/tmp.zvxBdpaxUl/fr_FR.utf8/LC_ADDRESS 896s /tmp/tmp.zvxBdpaxUl/fr_FR.utf8/LC_MONETARY 896s /tmp/tmp.zvxBdpaxUl/fr_FR.utf8/LC_NUMERIC 896s /tmp/tmp.zvxBdpaxUl/fr_FR.utf8/LC_COLLATE 896s /tmp/tmp.zvxBdpaxUl/fr_FR.utf8/LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/fr_FR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/fr_FR.utf8/LC_NAME 896s /tmp/tmp.zvxBdpaxUl/fr_FR.utf8/LC_IDENTIFICATION 896s /tmp/tmp.zvxBdpaxUl/fr_FR.utf8/LC_PAPER 896s /tmp/tmp.zvxBdpaxUl/fr_FR.utf8/LC_TIME 896s /tmp/tmp.zvxBdpaxUl/fr_FR.utf8/LC_TELEPHONE 896s /tmp/tmp.zvxBdpaxUl/ja_JP.eucjp 896s /tmp/tmp.zvxBdpaxUl/ja_JP.eucjp/LC_MEASUREMENT 896s /tmp/tmp.zvxBdpaxUl/ja_JP.eucjp/LC_CTYPE 896s /tmp/tmp.zvxBdpaxUl/ja_JP.eucjp/LC_ADDRESS 896s /tmp/tmp.zvxBdpaxUl/ja_JP.eucjp/LC_MONETARY 896s /tmp/tmp.zvxBdpaxUl/ja_JP.eucjp/LC_NUMERIC 896s /tmp/tmp.zvxBdpaxUl/ja_JP.eucjp/LC_COLLATE 896s /tmp/tmp.zvxBdpaxUl/ja_JP.eucjp/LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/ja_JP.eucjp/LC_MESSAGES/SYS_LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/ja_JP.eucjp/LC_NAME 896s /tmp/tmp.zvxBdpaxUl/ja_JP.eucjp/LC_IDENTIFICATION 896s /tmp/tmp.zvxBdpaxUl/ja_JP.eucjp/LC_PAPER 896s /tmp/tmp.zvxBdpaxUl/ja_JP.eucjp/LC_TIME 896s /tmp/tmp.zvxBdpaxUl/ja_JP.eucjp/LC_TELEPHONE 896s /tmp/tmp.zvxBdpaxUl/fa_IR 896s /tmp/tmp.zvxBdpaxUl/fa_IR/LC_MEASUREMENT 896s /tmp/tmp.zvxBdpaxUl/fa_IR/LC_CTYPE 896s /tmp/tmp.zvxBdpaxUl/fa_IR/LC_ADDRESS 896s /tmp/tmp.zvxBdpaxUl/fa_IR/LC_MONETARY 896s /tmp/tmp.zvxBdpaxUl/fa_IR/LC_NUMERIC 896s /tmp/tmp.zvxBdpaxUl/fa_IR/LC_COLLATE 896s /tmp/tmp.zvxBdpaxUl/fa_IR/LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/fa_IR/LC_MESSAGES/SYS_LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/fa_IR/LC_NAME 896s /tmp/tmp.zvxBdpaxUl/fa_IR/LC_IDENTIFICATION 896s /tmp/tmp.zvxBdpaxUl/fa_IR/LC_PAPER 896s /tmp/tmp.zvxBdpaxUl/fa_IR/LC_TIME 896s /tmp/tmp.zvxBdpaxUl/fa_IR/LC_TELEPHONE 896s /tmp/tmp.zvxBdpaxUl/pl_PL 896s /tmp/tmp.zvxBdpaxUl/pl_PL/LC_MEASUREMENT 896s /tmp/tmp.zvxBdpaxUl/pl_PL/LC_CTYPE 896s /tmp/tmp.zvxBdpaxUl/pl_PL/LC_ADDRESS 896s /tmp/tmp.zvxBdpaxUl/pl_PL/LC_MONETARY 896s /tmp/tmp.zvxBdpaxUl/pl_PL/LC_NUMERIC 896s /tmp/tmp.zvxBdpaxUl/pl_PL/LC_COLLATE 896s /tmp/tmp.zvxBdpaxUl/pl_PL/LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/pl_PL/LC_MESSAGES/SYS_LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/pl_PL/LC_NAME 896s /tmp/tmp.zvxBdpaxUl/pl_PL/LC_IDENTIFICATION 896s /tmp/tmp.zvxBdpaxUl/pl_PL/LC_PAPER 896s /tmp/tmp.zvxBdpaxUl/pl_PL/LC_TIME 896s /tmp/tmp.zvxBdpaxUl/pl_PL/LC_TELEPHONE 896s /tmp/tmp.zvxBdpaxUl/ja_JP.utf8 896s /tmp/tmp.zvxBdpaxUl/ja_JP.utf8/LC_MEASUREMENT 896s /tmp/tmp.zvxBdpaxUl/ja_JP.utf8/LC_CTYPE 896s /tmp/tmp.zvxBdpaxUl/ja_JP.utf8/LC_ADDRESS 896s /tmp/tmp.zvxBdpaxUl/ja_JP.utf8/LC_MONETARY 896s /tmp/tmp.zvxBdpaxUl/ja_JP.utf8/LC_NUMERIC 896s /tmp/tmp.zvxBdpaxUl/ja_JP.utf8/LC_COLLATE 896s /tmp/tmp.zvxBdpaxUl/ja_JP.utf8/LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/ja_JP.utf8/LC_MESSAGES/SYS_LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/ja_JP.utf8/LC_NAME 896s /tmp/tmp.zvxBdpaxUl/ja_JP.utf8/LC_IDENTIFICATION 896s /tmp/tmp.zvxBdpaxUl/ja_JP.utf8/LC_PAPER 896s /tmp/tmp.zvxBdpaxUl/ja_JP.utf8/LC_TIME 896s /tmp/tmp.zvxBdpaxUl/ja_JP.utf8/LC_TELEPHONE 896s /tmp/tmp.zvxBdpaxUl/sv_SE.utf8 896s /tmp/tmp.zvxBdpaxUl/sv_SE.utf8/LC_MEASUREMENT 896s /tmp/tmp.zvxBdpaxUl/sv_SE.utf8/LC_CTYPE 896s /tmp/tmp.zvxBdpaxUl/sv_SE.utf8/LC_ADDRESS 896s /tmp/tmp.zvxBdpaxUl/sv_SE.utf8/LC_MONETARY 896s /tmp/tmp.zvxBdpaxUl/sv_SE.utf8/LC_NUMERIC 896s /tmp/tmp.zvxBdpaxUl/sv_SE.utf8/LC_COLLATE 896s /tmp/tmp.zvxBdpaxUl/sv_SE.utf8/LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/sv_SE.utf8/LC_MESSAGES/SYS_LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/sv_SE.utf8/LC_NAME 896s /tmp/tmp.zvxBdpaxUl/sv_SE.utf8/LC_IDENTIFICATION 896s /tmp/tmp.zvxBdpaxUl/sv_SE.utf8/LC_PAPER 896s /tmp/tmp.zvxBdpaxUl/sv_SE.utf8/LC_TIME 896s /tmp/tmp.zvxBdpaxUl/sv_SE.utf8/LC_TELEPHONE 896s /tmp/tmp.zvxBdpaxUl/de_DE.utf8 896s /tmp/tmp.zvxBdpaxUl/de_DE.utf8/LC_MEASUREMENT 896s /tmp/tmp.zvxBdpaxUl/de_DE.utf8/LC_CTYPE 896s /tmp/tmp.zvxBdpaxUl/de_DE.utf8/LC_ADDRESS 896s /tmp/tmp.zvxBdpaxUl/de_DE.utf8/LC_MONETARY 896s /tmp/tmp.zvxBdpaxUl/de_DE.utf8/LC_NUMERIC 896s /tmp/tmp.zvxBdpaxUl/de_DE.utf8/LC_COLLATE 896s /tmp/tmp.zvxBdpaxUl/de_DE.utf8/LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/de_DE.utf8/LC_MESSAGES/SYS_LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/de_DE.utf8/LC_NAME 896s /tmp/tmp.zvxBdpaxUl/de_DE.utf8/LC_IDENTIFICATION 896s /tmp/tmp.zvxBdpaxUl/de_DE.utf8/LC_PAPER 896s /tmp/tmp.zvxBdpaxUl/de_DE.utf8/LC_TIME 896s /tmp/tmp.zvxBdpaxUl/de_DE.utf8/LC_TELEPHONE 896s /tmp/tmp.zvxBdpaxUl/sr_RS 896s /tmp/tmp.zvxBdpaxUl/sr_RS/LC_MEASUREMENT 896s /tmp/tmp.zvxBdpaxUl/sr_RS/LC_CTYPE 896s /tmp/tmp.zvxBdpaxUl/sr_RS/LC_ADDRESS 896s /tmp/tmp.zvxBdpaxUl/sr_RS/LC_MONETARY 896s /tmp/tmp.zvxBdpaxUl/sr_RS/LC_NUMERIC 896s /tmp/tmp.zvxBdpaxUl/sr_RS/LC_COLLATE 896s /tmp/tmp.zvxBdpaxUl/sr_RS/LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/sr_RS/LC_MESSAGES/SYS_LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/sr_RS/LC_NAME 896s /tmp/tmp.zvxBdpaxUl/sr_RS/LC_IDENTIFICATION 896s /tmp/tmp.zvxBdpaxUl/sr_RS/LC_PAPER 896s /tmp/tmp.zvxBdpaxUl/sr_RS/LC_TIME 896s /tmp/tmp.zvxBdpaxUl/sr_RS/LC_TELEPHONE 896s /tmp/tmp.zvxBdpaxUl/sv_SE 896s /tmp/tmp.zvxBdpaxUl/sv_SE/LC_MEASUREMENT 896s /tmp/tmp.zvxBdpaxUl/sv_SE/LC_CTYPE 896s /tmp/tmp.zvxBdpaxUl/sv_SE/LC_ADDRESS 896s /tmp/tmp.zvxBdpaxUl/sv_SE/LC_MONETARY 896s /tmp/tmp.zvxBdpaxUl/sv_SE/LC_NUMERIC 896s /tmp/tmp.zvxBdpaxUl/sv_SE/LC_COLLATE 896s /tmp/tmp.zvxBdpaxUl/sv_SE/LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/sv_SE/LC_MESSAGES/SYS_LC_MESSAGES 896s /tmp/tmp.zvxBdpaxUl/sv_SE/LC_NAME 896s /tmp/tmp.zvxBdpaxUl/sv_SE/LC_IDENTIFICATION 896s /tmp/tmp.zvxBdpaxUl/sv_SE/LC_PAPER 896s /tmp/tmp.zvxBdpaxUl/sv_SE/LC_TIME 896s /tmp/tmp.zvxBdpaxUl/sv_SE/LC_TELEPHONE 896s TAP version 14 896s # random seed: R02Sb90b3446dbd278e0516fb314551d6b64 896s 1..1 896s # Start of gdbus tests 896s # Start of method-invocation tests 896s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-method-invocation_RGH352/gdbus/method-invocation/return/.dirs/home 896s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-method-invocation_RGH352/gdbus/method-invocation/return/.dirs/cache 896s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-method-invocation_RGH352/gdbus/method-invocation/return/.dirs/system-config1:/tmp/test_gdbus-method-invocation_RGH352/gdbus/method-invocation/return/.dirs/system-config2 896s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-method-invocation_RGH352/gdbus/method-invocation/return/.dirs/config 896s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-method-invocation_RGH352/gdbus/method-invocation/return/.dirs/system-data1:/tmp/test_gdbus-method-invocation_RGH352/gdbus/method-invocation/return/.dirs/system-data2 896s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-method-invocation_RGH352/gdbus/method-invocation/return/.dirs/data 896s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-method-invocation_RGH352/gdbus/method-invocation/return/.dirs/state 896s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-method-invocation_RGH352/gdbus/method-invocation/return/.dirs/runtime 896s # /gdbus/method-invocation/return summary: Test calling g_dbus_method_invocation_return_*() in various ways 896s # Calling org.freedesktop.DBus.Properties.Get 896s # Calling org.freedesktop.DBus.Properties.Get 896s # Calling org.freedesktop.DBus.Properties.Get 896s # Calling org.freedesktop.DBus.Properties.Set 896s # Calling org.freedesktop.DBus.Properties.GetAll 896s # Calling org.example.Foo.WrongReturnType 896s # Calling org.example.Foo.GetFDs 896s # Calling org.example.Foo.GetFDs 896s # Calling org.example.Foo.ReturnError 896s # Calling org.example.Foo.CloseBeforeReturning 896s ok 1 /gdbus/method-invocation/return 896s # End of method-invocation tests 896s # End of gdbus tests 896s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 896s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 896s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 896s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 896s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 896s TAP version 14 896s # random seed: R02S083d9d6be65635929714f9433dab1ef0 896s 1..14 896s # Start of glib tests 896s # Start of markup tests 896s # Start of subparser tests 896s # Start of success tests 896s ok 1 /glib/markup/subparser/success/0 896s ok 2 /glib/markup/subparser/success/1 896s ok 3 /glib/markup/subparser/success/2 896s ok 4 /glib/markup/subparser/success/3 896s ok 5 /glib/markup/subparser/success/4 896s ok 6 /glib/markup/subparser/success/5 896s ok 7 /glib/markup/subparser/success/6 896s # End of success tests 896s # Start of failure tests 896s ok 8 /glib/markup/subparser/failure/0 896s ok 9 /glib/markup/subparser/failure/1 896s ok 10 /glib/markup/subparser/failure/2 896s ok 11 /glib/markup/subparser/failure/3 896s ok 12 /glib/markup/subparser/failure/4 896s ok 13 /glib/markup/subparser/failure/5 896s ok 14 /glib/markup/subparser/failure/6 896s # End of failure tests 896s # End of subparser tests 896s # End of markup tests 896s # End of glib tests 896s TAP version 14 896s # random seed: R02S9d50fbb88767a6237a511e8fa4676c67 896s 1..1 896s # Start of portal-support tests 896s ok 1 /portal-support/none 896s # End of portal-support tests 896s TAP version 14 896s # random seed: R02S788b5e734eebcebe5494376eeb87de0e 896s 1..3 896s # Start of deprecated-properties tests 896s ok 1 /deprecated-properties/construct 896s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2748 896s ok 2 /deprecated-properties/default-construct 896s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2748 896s ok 3 /deprecated-properties/set 896s # End of deprecated-properties tests 896s TAP version 14 896s # random seed: R02S1dc6cc639b3e4b49e1d552f17fba14ab 896s 1..3 896s # Start of unicode tests 896s # Processing Part0 # Specific cases 896s # Processing Part1 # Character by character test 896s 1..323 896s # Running test: glib/gdbus-method-invocation.test 896s ok - glib/gdbus-method-invocation.test 896s # Running test: glib/markup-subparser.test 896s ok - glib/markup-subparser.test 896s # Running test: glib/portal-support-none.test 896s ok - glib/portal-support-none.test 896s # Running test: glib/deprecated-properties.test 896s ok - glib/deprecated-properties.test 896s # Running test: glib/unicode-normalize.test 897s # Processing Part2 # Canonical Order Test 897s # Processing Part3 # PRI #29 Test 897s # Processing Part4 # Canonical closures (excluding Hangul) 897s # Processing Part5 # Chained primary composites 897s ok 1 /unicode/normalize 897s # Invalid UTF-8 vector 0 897s # Invalid UTF-8 vector 1 897s # Invalid UTF-8 vector 2 897s # Invalid UTF-8 vector 3 897s # Invalid UTF-8 vector 4 897s # Invalid UTF-8 vector 5 897s # Invalid UTF-8 vector 6 897s # Invalid UTF-8 vector 7 897s # Invalid UTF-8 vector 8 897s # Invalid UTF-8 vector 9 897s # Invalid UTF-8 vector 10 897s # Invalid UTF-8 vector 11 897s # Invalid UTF-8 vector 12 897s ok 2 /unicode/normalize-invalid 897s # Start of normalize tests 897s ok 3 /unicode/normalize/bad-length 897s # End of normalize tests 897s # End of unicode tests 897s ok - glib/unicode-normalize.test 897s # Running test: glib/data-output-stream.test 897s TAP version 14 897s # random seed: R02S40aece9f81b22cfa539179dc25e0ba89 897s 1..7 897s # Start of data-output-stream tests 897s ok 1 /data-output-stream/basic 897s ok 2 /data-output-stream/write-lines-LF 897s ok 3 /data-output-stream/write-lines-CR 897s ok 4 /data-output-stream/write-lines-CR-LF 897s ok 5 /data-output-stream/write-int 897s ok 6 /data-output-stream/seek 897s ok 7 /data-output-stream/truncate 897s # End of data-output-stream tests 897s ok - glib/data-output-stream.test 897s # Running test: glib/gdbus-test-codegen.test 897s TAP version 14 897s # random seed: R02Sd9abe8cdab97344d722cc4f9367bfea2 897s 1..8 897s # Start of gdbus tests 897s # Start of codegen tests 897s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/annotations/.dirs/home 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/annotations/.dirs/cache 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/annotations/.dirs/system-config1:/tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/annotations/.dirs/system-config2 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/annotations/.dirs/config 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/annotations/.dirs/system-data1:/tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/annotations/.dirs/system-data2 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/annotations/.dirs/data 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/annotations/.dirs/state 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/annotations/.dirs/runtime 897s ok 1 /gdbus/codegen/annotations 897s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/interface_stability/.dirs/home 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/interface_stability/.dirs/cache 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/interface_stability/.dirs/system-config1:/tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/interface_stability/.dirs/system-config2 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/interface_stability/.dirs/config 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/interface_stability/.dirs/system-data1:/tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/interface_stability/.dirs/system-data2 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/interface_stability/.dirs/data 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/interface_stability/.dirs/state 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/interface_stability/.dirs/runtime 897s ok 2 /gdbus/codegen/interface_stability 897s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/object-manager/.dirs/home 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/object-manager/.dirs/cache 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/object-manager/.dirs/system-config1:/tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/object-manager/.dirs/system-config2 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/object-manager/.dirs/config 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/object-manager/.dirs/system-data1:/tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/object-manager/.dirs/system-data2 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/object-manager/.dirs/data 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/object-manager/.dirs/state 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/object-manager/.dirs/runtime 897s ok 3 /gdbus/codegen/object-manager 897s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/property-naming/.dirs/home 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/property-naming/.dirs/cache 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/property-naming/.dirs/system-config1:/tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/property-naming/.dirs/system-config2 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/property-naming/.dirs/config 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/property-naming/.dirs/system-data1:/tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/property-naming/.dirs/system-data2 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/property-naming/.dirs/data 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/property-naming/.dirs/state 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/property-naming/.dirs/runtime 897s ok 4 /gdbus/codegen/property-naming 897s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/autocleanups/.dirs/home 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/autocleanups/.dirs/cache 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/autocleanups/.dirs/system-config1:/tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/autocleanups/.dirs/system-config2 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/autocleanups/.dirs/config 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/autocleanups/.dirs/system-data1:/tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/autocleanups/.dirs/system-data2 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/autocleanups/.dirs/data 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/autocleanups/.dirs/state 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/autocleanups/.dirs/runtime 897s ok 5 /gdbus/codegen/autocleanups 897s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/deprecations/.dirs/home 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/deprecations/.dirs/cache 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/deprecations/.dirs/system-config1:/tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/deprecations/.dirs/system-config2 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/deprecations/.dirs/config 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/deprecations/.dirs/system-data1:/tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/deprecations/.dirs/system-data2 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/deprecations/.dirs/data 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/deprecations/.dirs/state 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/deprecations/.dirs/runtime 897s ok 6 /gdbus/codegen/deprecations 897s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/standalone-interface-info/.dirs/home 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/standalone-interface-info/.dirs/cache 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/standalone-interface-info/.dirs/system-config1:/tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/standalone-interface-info/.dirs/system-config2 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/standalone-interface-info/.dirs/config 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/standalone-interface-info/.dirs/system-data1:/tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/standalone-interface-info/.dirs/system-data2 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/standalone-interface-info/.dirs/data 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/standalone-interface-info/.dirs/state 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/standalone-interface-info/.dirs/runtime 897s ok 7 /gdbus/codegen/standalone-interface-info 897s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/unix-fd-list/.dirs/home 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/unix-fd-list/.dirs/cache 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/unix-fd-list/.dirs/system-config1:/tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/unix-fd-list/.dirs/system-config2 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/unix-fd-list/.dirs/config 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/unix-fd-list/.dirs/system-data1:/tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/unix-fd-list/.dirs/system-data2 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/unix-fd-list/.dirs/data 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/unix-fd-list/.dirs/state 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_9IVZ52/gdbus/codegen/unix-fd-list/.dirs/runtime 897s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1726 897s ok 8 /gdbus/codegen/unix-fd-list 897s # End of codegen tests 897s # End of gdbus tests 897s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 897s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 897s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 897s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 897s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 897s ok - glib/gdbus-test-codegen.test 897s # Running test: glib/dbus-appinfo.test 897s TAP version 14 897s # random seed: R02S6b3b95956e3af2ef1ed7b85497748120 897s 1..7 897s # Start of appinfo tests 897s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_4EMZ52/appinfo/dbusappinfo/.dirs/home 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_4EMZ52/appinfo/dbusappinfo/.dirs/cache 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_4EMZ52/appinfo/dbusappinfo/.dirs/system-config1:/tmp/test_dbus-appinfo_4EMZ52/appinfo/dbusappinfo/.dirs/system-config2 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_4EMZ52/appinfo/dbusappinfo/.dirs/config 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_4EMZ52/appinfo/dbusappinfo/.dirs/system-data1:/tmp/test_dbus-appinfo_4EMZ52/appinfo/dbusappinfo/.dirs/system-data2 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_4EMZ52/appinfo/dbusappinfo/.dirs/data 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_4EMZ52/appinfo/dbusappinfo/.dirs/state 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_4EMZ52/appinfo/dbusappinfo/.dirs/runtime 897s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 897s ok 1 /appinfo/dbusappinfo 897s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_4EMZ52/appinfo/flatpak-doc-export/.dirs/home 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_4EMZ52/appinfo/flatpak-doc-export/.dirs/cache 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_4EMZ52/appinfo/flatpak-doc-export/.dirs/system-config1:/tmp/test_dbus-appinfo_4EMZ52/appinfo/flatpak-doc-export/.dirs/system-config2 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_4EMZ52/appinfo/flatpak-doc-export/.dirs/config 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_4EMZ52/appinfo/flatpak-doc-export/.dirs/system-data1:/tmp/test_dbus-appinfo_4EMZ52/appinfo/flatpak-doc-export/.dirs/system-data2 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_4EMZ52/appinfo/flatpak-doc-export/.dirs/data 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_4EMZ52/appinfo/flatpak-doc-export/.dirs/state 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_4EMZ52/appinfo/flatpak-doc-export/.dirs/runtime 897s # /appinfo/flatpak-doc-export summary: Test that files launched via Flatpak apps are made available via the document portal. 897s # Acquired a message bus connection 897s # Acquired the name org.freedesktop.portal.Documents 897s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_4EMZ52/appinfo/dbusappinfo/.dirs/config to /tmp/test_dbus-appinfo_4EMZ52/appinfo/flatpak-doc-export/.dirs/config 897s # on_flatpak_open received file '/document-portal/document-id/org.gtk.test.dbusappinfo.flatpak.desktop' 897s # fake-document-portal cancelled 897s ok 2 /appinfo/flatpak-doc-export 897s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_4EMZ52/appinfo/flatpak-missing-doc-export/.dirs/home 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_4EMZ52/appinfo/flatpak-missing-doc-export/.dirs/cache 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_4EMZ52/appinfo/flatpak-missing-doc-export/.dirs/system-config1:/tmp/test_dbus-appinfo_4EMZ52/appinfo/flatpak-missing-doc-export/.dirs/system-config2 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_4EMZ52/appinfo/flatpak-missing-doc-export/.dirs/config 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_4EMZ52/appinfo/flatpak-missing-doc-export/.dirs/system-data1:/tmp/test_dbus-appinfo_4EMZ52/appinfo/flatpak-missing-doc-export/.dirs/system-data2 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_4EMZ52/appinfo/flatpak-missing-doc-export/.dirs/data 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_4EMZ52/appinfo/flatpak-missing-doc-export/.dirs/state 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_4EMZ52/appinfo/flatpak-missing-doc-export/.dirs/runtime 897s # /appinfo/flatpak-missing-doc-export summary: Test that files launched via Flatpak apps are made available via the document portal. 897s # Acquired a message bus connection 897s # Acquired the name org.freedesktop.portal.Documents 897s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_4EMZ52/appinfo/flatpak-doc-export/.dirs/config to /tmp/test_dbus-appinfo_4EMZ52/appinfo/flatpak-missing-doc-export/.dirs/config 897s # on_flatpak_open received file '/hopefully/an/invalid/path.desktop' 897s # fake-document-portal cancelled 897s ok 3 /appinfo/flatpak-missing-doc-export 897s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-file/.dirs/home 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-file/.dirs/cache 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-file/.dirs/system-config1:/tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-file/.dirs/system-config2 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-file/.dirs/config 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-file/.dirs/system-data1:/tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-file/.dirs/system-data2 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-file/.dirs/data 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-file/.dirs/state 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-file/.dirs/runtime 897s # Acquired a message bus connection 897s # Acquired the name org.freedesktop.portal.Desktop 897s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_4EMZ52/appinfo/flatpak-missing-doc-export/.dirs/config to /tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-file/.dirs/config 897s # Got open file request for file:///usr/libexec/installed-tests/glib/org.gtk.test.dbusappinfo.flatpak.desktop 897s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_5/t 897s # Response emitted 897s # fake-desktop-portal cancelled 897s ok 4 /appinfo/portal-open-file 897s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-uri/.dirs/home 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-uri/.dirs/cache 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-uri/.dirs/system-config1:/tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-uri/.dirs/system-config2 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-uri/.dirs/config 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-uri/.dirs/system-data1:/tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-uri/.dirs/system-data2 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-uri/.dirs/data 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-uri/.dirs/state 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-uri/.dirs/runtime 897s # Acquired a message bus connection 897s # Acquired the name org.freedesktop.portal.Desktop 897s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-file/.dirs/config to /tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-uri/.dirs/config 897s # Got open file request for http://example.com 897s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_7/t 897s # Response emitted 897s # fake-desktop-portal cancelled 897s ok 5 /appinfo/portal-open-uri 897s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-file-async/.dirs/home 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-file-async/.dirs/cache 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-file-async/.dirs/system-config1:/tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-file-async/.dirs/system-config2 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-file-async/.dirs/config 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-file-async/.dirs/system-data1:/tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-file-async/.dirs/system-data2 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-file-async/.dirs/data 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-file-async/.dirs/state 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-file-async/.dirs/runtime 897s # Acquired a message bus connection 897s # Acquired the name org.freedesktop.portal.Desktop 897s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-uri/.dirs/config to /tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-file-async/.dirs/config 897s # Got open file request for file:///usr/libexec/installed-tests/glib/org.gtk.test.dbusappinfo.flatpak.desktop 897s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_9/gio1022125207 897s # Response emitted 897s # fake-desktop-portal cancelled 897s ok 6 /appinfo/portal-open-file-async 897s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-uri-async/.dirs/home 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-uri-async/.dirs/cache 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-uri-async/.dirs/system-config1:/tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-uri-async/.dirs/system-config2 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-uri-async/.dirs/config 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-uri-async/.dirs/system-data1:/tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-uri-async/.dirs/system-data2 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-uri-async/.dirs/data 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-uri-async/.dirs/state 897s ok - glib/dbus-appinfo.test 897s # Running test: glib/null-settings-backend.test 897s ok - glib/null-settings-backend.test 897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-uri-async/.dirs/runtime 897s # Acquired a message bus connection 897s # Acquired the name org.freedesktop.portal.Desktop 897s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-file-async/.dirs/config to /tmp/test_dbus-appinfo_4EMZ52/appinfo/portal-open-uri-async/.dirs/config 897s # Got open file request for http://example.com 897s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_11/gio2016432171 897s # Response emitted 897s # fake-desktop-portal cancelled 897s ok 7 /appinfo/portal-open-uri-async 897s # End of appinfo tests 897s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 897s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 897s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 897s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 897s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 897s TAP version 14 897s # random seed: R02Saebd7ae522ece51e0117421bb69b55b4 897s 1..1 897s # Start of null-settings-backend tests 897s ok 1 /null-settings-backend/extension-point-registered 897s # End of null-settings-backend tests 897s # Running test: glib/module-test-plugin.test 897s TAP version 14 897s # random seed: R02Sdef3c6b735e9c4d6a889dc0a1fb0c0d0 897s 1..3 897s # Start of module tests 897s ok 1 /module/basics 897s # /module/invalid-libtool-archive summary: Test that opening an invalid .la file fails 897s ok 2 /module/invalid-libtool-archive 897s # /module/local-binding summary: Test that binding a library's symbols locally does not add them globally 897s ok 3 /module/local-binding 897s # End of module tests 897s ok - glib/module-test-plugin.test 897s # Running test: glib/mutex.test 897s TAP version 14 897s # random seed: R02S8446a9dc44da1bb697145b6be381024f 897s 1..17 897s # Start of thread tests 897s ok 1 /thread/mutex1 897s ok 2 /thread/mutex2 897s ok 3 /thread/mutex3 897s ok 4 /thread/mutex4 901s ok 5 /thread/mutex5 901s # slow test /thread/mutex5 executed in 4.35 secs 901s # Start of mutex tests 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # /thread/mutex/errno summary: Validates that errno is not touched upon return 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 901s ok 6 /thread/mutex/errno 901s # Start of perf tests 901s # max perf: inf mips 901s ok 7 /thread/mutex/perf/uncontended 901s # Start of contended tests 901s # max perf: inf mips 901s ok 8 /thread/mutex/perf/contended/1 901s # max perf: 3.000000 mips 901s ok 9 /thread/mutex/perf/contended/2 901s # max perf: inf mips 901s ok 10 /thread/mutex/perf/contended/3 901s # max perf: 2.500000 mips 901s ok 11 /thread/mutex/perf/contended/4 901s # max perf: 3.000000 mips 901s ok 12 /thread/mutex/perf/contended/5 901s # max perf: 2.333333 mips 901s ok 13 /thread/mutex/perf/contended/6 901s # max perf: 2.666667 mips 901s ok 14 /thread/mutex/perf/contended/7 901s # max perf: 4.500000 mips 901s ok 15 /thread/mutex/perf/contended/8 901s # max perf: 3.333333 mips 901s ok 16 /thread/mutex/perf/contended/9 901s # max perf: 3.666667 mips 901s ok 17 /thread/mutex/perf/contended/10 901s # End of contended tests 901s # End of perf tests 901s # End of mutex tests 901s # End of thread tests 901s ok - glib/mutex.test 901s # Running test: glib/portal-support-flatpak-gsettings-only.test 901s TAP version 14 901s ok - glib/portal-support-flatpak-gsettings-only.test 901s # random seed: R02S940304d976af6c685b1cfa6b84ba76a2 901s 1..1 901s # Start of portal-support tests 901s # Start of flatpak tests 901s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-gsettings-only_ITQ552/portal-support/flatpak/gsettings/.dirs/home 901s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-gsettings-only_ITQ552/portal-support/flatpak/gsettings/.dirs/cache 901s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-gsettings-only_ITQ552/portal-support/flatpak/gsettings/.dirs/system-config1:/tmp/test_portal-support-flatpak-gsettings-only_ITQ552/portal-support/flatpak/gsettings/.dirs/system-config2 901s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-gsettings-only_ITQ552/portal-support/flatpak/gsettings/.dirs/config 901s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-gsettings-only_ITQ552/portal-support/flatpak/gsettings/.dirs/system-data1:/tmp/test_portal-support-flatpak-gsettings-only_ITQ552/portal-support/flatpak/gsettings/.dirs/system-data2 901s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-gsettings-only_ITQ552/portal-support/flatpak/gsettings/.dirs/data 901s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-gsettings-only_ITQ552/portal-support/flatpak/gsettings/.dirs/state 901s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-gsettings-only_ITQ552/portal-support/flatpak/gsettings/.dirs/runtime 901s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-gsettings-only_ITQ552/portal-support/flatpak/gsettings/.dirs/runtime/.flatpak-info 901s ok 1 /portal-support/flatpak/gsettings 901s # End of flatpak tests 901s # End of portal-support tests 901s # Running test: glib/completion.test 901s ok - glib/completion.test 901s # Running test: glib/gdbus-connection-loss.test 901s TAP version 14 901s # random seed: R02Sd4f402614f9476526fa02456cac48814 901s 1..1 901s # Start of completion tests 901s ok 1 /completion/test-completion 901s # End of completion tests 901s TAP version 14 901s # random seed: R02S1ead85ed7f2ad123b5e3bf7051e224d4 901s 1..1 901s # Start of gdbus tests 901s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-loss_NIL452/gdbus/connection-loss/.dirs/home 901s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-loss_NIL452/gdbus/connection-loss/.dirs/cache 901s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-loss_NIL452/gdbus/connection-loss/.dirs/system-config1:/tmp/test_gdbus-connection-loss_NIL452/gdbus/connection-loss/.dirs/system-config2 901s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-loss_NIL452/gdbus/connection-loss/.dirs/config 901s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-loss_NIL452/gdbus/connection-loss/.dirs/system-data1:/tmp/test_gdbus-connection-loss_NIL452/gdbus/connection-loss/.dirs/system-data2 901s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-loss_NIL452/gdbus/connection-loss/.dirs/data 901s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-loss_NIL452/gdbus/connection-loss/.dirs/state 901s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-loss_NIL452/gdbus/connection-loss/.dirs/runtime 902s # Executing: glib/gdbus-connection-loss.test 902s ok 1 /gdbus/connection-loss 902s # End of gdbus tests 902s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 902s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 902s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 902s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 902s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 902s ok - glib/gdbus-connection-loss.test 902s # Running test: glib/file-thumbnail.test 902s TAP version 14 902s # random seed: R02S70782b029f07f79ddc59a57a1f27c273 902s 1..7 902s # Start of file-thumbnail tests 902s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/fail/.dirs/home 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/fail/.dirs/cache 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/fail/.dirs/system-config1:/tmp/test_file-thumbnail_I1GY52/file-thumbnail/fail/.dirs/system-config2 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/fail/.dirs/config 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/fail/.dirs/system-data1:/tmp/test_file-thumbnail_I1GY52/file-thumbnail/fail/.dirs/system-data2 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/fail/.dirs/data 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/fail/.dirs/state 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/fail/.dirs/runtime 902s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 902s # Created test thumbnail at /tmp/test_file-thumbnail_I1GY52/file-thumbnail/fail/.dirs/cache/thumbnails/fail/gnome-thumbnail-factory/f098bcae74f8241ee3835bded7284cdd.png 902s ok 1 /file-thumbnail/fail 902s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/size-priority/.dirs/home 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/size-priority/.dirs/cache 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/size-priority/.dirs/system-config1:/tmp/test_file-thumbnail_I1GY52/file-thumbnail/size-priority/.dirs/system-config2 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/size-priority/.dirs/config 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/size-priority/.dirs/system-data1:/tmp/test_file-thumbnail_I1GY52/file-thumbnail/size-priority/.dirs/system-data2 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/size-priority/.dirs/data 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/size-priority/.dirs/state 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/size-priority/.dirs/runtime 902s # Created test thumbnail at /tmp/test_file-thumbnail_I1GY52/file-thumbnail/size-priority/.dirs/cache/thumbnails/fail/gnome-thumbnail-factory/f098bcae74f8241ee3835bded7284cdd.png 902s # Created test thumbnail at /tmp/test_file-thumbnail_I1GY52/file-thumbnail/size-priority/.dirs/cache/thumbnails/normal/f098bcae74f8241ee3835bded7284cdd.png 902s # Created test thumbnail at /tmp/test_file-thumbnail_I1GY52/file-thumbnail/size-priority/.dirs/cache/thumbnails/large/f098bcae74f8241ee3835bded7284cdd.png 902s # Created test thumbnail at /tmp/test_file-thumbnail_I1GY52/file-thumbnail/size-priority/.dirs/cache/thumbnails/x-large/f098bcae74f8241ee3835bded7284cdd.png 902s # Created test thumbnail at /tmp/test_file-thumbnail_I1GY52/file-thumbnail/size-priority/.dirs/cache/thumbnails/xx-large/f098bcae74f8241ee3835bded7284cdd.png 902s ok 2 /file-thumbnail/size-priority 902s # Start of valid tests 902s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/normal/.dirs/home 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/normal/.dirs/cache 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/normal/.dirs/system-config1:/tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/normal/.dirs/system-config2 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/normal/.dirs/config 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/normal/.dirs/system-data1:/tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/normal/.dirs/system-data2 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/normal/.dirs/data 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/normal/.dirs/state 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/normal/.dirs/runtime 902s # Created test thumbnail at /tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/normal/.dirs/cache/thumbnails/normal/f098bcae74f8241ee3835bded7284cdd.png 902s ok 3 /file-thumbnail/valid/normal 902s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/large/.dirs/home 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/large/.dirs/cache 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/large/.dirs/system-config1:/tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/large/.dirs/system-config2 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/large/.dirs/config 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/large/.dirs/system-data1:/tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/large/.dirs/system-data2 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/large/.dirs/data 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/large/.dirs/state 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/large/.dirs/runtime 902s # Created test thumbnail at /tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/large/.dirs/cache/thumbnails/large/f098bcae74f8241ee3835bded7284cdd.png 902s ok 4 /file-thumbnail/valid/large 902s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/x-large/.dirs/home 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/x-large/.dirs/cache 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/x-large/.dirs/system-config1:/tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/x-large/.dirs/system-config2 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/x-large/.dirs/config 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/x-large/.dirs/system-data1:/tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/x-large/.dirs/system-data2 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/x-large/.dirs/data 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/x-large/.dirs/state 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/x-large/.dirs/runtime 902s # Created test thumbnail at /tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/x-large/.dirs/cache/thumbnails/x-large/f098bcae74f8241ee3835bded7284cdd.png 902s ok 5 /file-thumbnail/valid/x-large 902s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/xx-large/.dirs/home 902s ok - glib/file-thumbnail.test 902s # Running test: glib/memory-monitor-dbus.test 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/xx-large/.dirs/cache 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/xx-large/.dirs/system-config1:/tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/xx-large/.dirs/system-config2 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/xx-large/.dirs/config 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/xx-large/.dirs/system-data1:/tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/xx-large/.dirs/system-data2 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/xx-large/.dirs/data 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/xx-large/.dirs/state 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/xx-large/.dirs/runtime 902s # Created test thumbnail at /tmp/test_file-thumbnail_I1GY52/file-thumbnail/valid/xx-large/.dirs/cache/thumbnails/xx-large/f098bcae74f8241ee3835bded7284cdd.png 902s ok 6 /file-thumbnail/valid/xx-large 902s # End of valid tests 902s # Start of unknown tests 902s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/unknown/super-large/.dirs/home 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/unknown/super-large/.dirs/cache 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/unknown/super-large/.dirs/system-config1:/tmp/test_file-thumbnail_I1GY52/file-thumbnail/unknown/super-large/.dirs/system-config2 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/unknown/super-large/.dirs/config 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/unknown/super-large/.dirs/system-data1:/tmp/test_file-thumbnail_I1GY52/file-thumbnail/unknown/super-large/.dirs/system-data2 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/unknown/super-large/.dirs/data 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/unknown/super-large/.dirs/state 902s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_I1GY52/file-thumbnail/unknown/super-large/.dirs/runtime 902s # Created test thumbnail at /tmp/test_file-thumbnail_I1GY52/file-thumbnail/unknown/super-large/.dirs/cache/thumbnails/super-large/f098bcae74f8241ee3835bded7284cdd.png 902s ok 7 /file-thumbnail/unknown/super-large 902s # End of unknown tests 902s # End of file-thumbnail tests 902s TAP version 13 902s ok 1 __main__.TestLowMemoryMonitor.test_low_memory_warning_signal # SKIP https://bugs.debian.org/995178 902s 1..1 902s ok - glib/memory-monitor-dbus.test 902s # Running test: glib/cxx-17.test 902s TAP version 14 902s # random seed: R02S7a747f9d446e6624c32e384ff0cbc0d8 902s 1..2 902s # Start of gtask tests 902s # 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. 902s ok 1 /gtask/name 902s # Start of name tests 902s # 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. 902s ok 2 /gtask/name/macro-wrapper 902s # End of name tests 902s # End of gtask tests 902s ok - glib/cxx-17.test 902s # Running test: glib/rwlock.test 902s TAP version 14 902s # random seed: R02Se46c26ce7a3faedd83092a14fe0987c1 902s 1..8 902s # Start of thread tests 902s ok 1 /thread/rwlock1 902s ok 2 /thread/rwlock2 902s ok 3 /thread/rwlock3 902s ok 4 /thread/rwlock4 902s ok 5 /thread/rwlock5 902s ok 6 /thread/rwlock6 907s # Executing: glib/rwlock.test 907s ok 7 /thread/rwlock7 907s # slow test /thread/rwlock7 executed in 5.13 secs 907s ok 8 /thread/rwlock8 907s # End of thread tests 907s ok - glib/rwlock.test 907s # Running test: glib/sort.test 907s TAP version 14 907s # random seed: R02Sbabc13095ef541cd97cff3d84e748314 907s 1..5 907s # Start of sort tests 907s ok 1 /sort/basic 907s ok 2 /sort/zero-elements 907s ok 3 /sort/stable 907s ok 4 /sort/big 907s ok 5 /sort/deprecated 907s ok - glib/sort.test 907s # Running test: glib/gdbus-addresses.test 907s # End of sort tests 907s TAP version 14 907s # random seed: R02S74be5a5f25f311e51db3da931fc36dd0 907s 1..9 907s # Start of gdbus tests 907s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/empty-address/.dirs/home 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/empty-address/.dirs/cache 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_QJZC62/gdbus/empty-address/.dirs/system-config1:/tmp/test_gdbus-addresses_QJZC62/gdbus/empty-address/.dirs/system-config2 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/empty-address/.dirs/config 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_QJZC62/gdbus/empty-address/.dirs/system-data1:/tmp/test_gdbus-addresses_QJZC62/gdbus/empty-address/.dirs/system-data2 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/empty-address/.dirs/data 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/empty-address/.dirs/state 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_QJZC62/gdbus/empty-address/.dirs/runtime 907s ok 1 /gdbus/empty-address 907s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/unsupported-address/.dirs/home 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/unsupported-address/.dirs/cache 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_QJZC62/gdbus/unsupported-address/.dirs/system-config1:/tmp/test_gdbus-addresses_QJZC62/gdbus/unsupported-address/.dirs/system-config2 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/unsupported-address/.dirs/config 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_QJZC62/gdbus/unsupported-address/.dirs/system-data1:/tmp/test_gdbus-addresses_QJZC62/gdbus/unsupported-address/.dirs/system-data2 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/unsupported-address/.dirs/data 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/unsupported-address/.dirs/state 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_QJZC62/gdbus/unsupported-address/.dirs/runtime 907s ok 2 /gdbus/unsupported-address 907s ok - glib/gdbus-addresses.test 907s # Running test: glib/permission.test 907s ok - glib/permission.test 907s # Running test: glib/notify-init2.test 907s ok - glib/notify-init2.test 907s # Running test: glib/memory-settings-backend.test 907s ok - glib/memory-settings-backend.test 907s # Running test: glib/gobject-private.test 907s ok - glib/gobject-private.test 907s # Running test: glib/thread.test 907s ok - glib/thread.test 907s # Running test: glib/relation.test 907s ok - glib/relation.test 907s # Running test: glib/gdbus-proxy.test 907s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/address-parsing/.dirs/home 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/address-parsing/.dirs/cache 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_QJZC62/gdbus/address-parsing/.dirs/system-config1:/tmp/test_gdbus-addresses_QJZC62/gdbus/address-parsing/.dirs/system-config2 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/address-parsing/.dirs/config 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_QJZC62/gdbus/address-parsing/.dirs/system-data1:/tmp/test_gdbus-addresses_QJZC62/gdbus/address-parsing/.dirs/system-data2 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/address-parsing/.dirs/data 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/address-parsing/.dirs/state 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_QJZC62/gdbus/address-parsing/.dirs/runtime 907s ok 3 /gdbus/address-parsing 907s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/unix-address/.dirs/home 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/unix-address/.dirs/cache 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_QJZC62/gdbus/unix-address/.dirs/system-config1:/tmp/test_gdbus-addresses_QJZC62/gdbus/unix-address/.dirs/system-config2 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/unix-address/.dirs/config 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_QJZC62/gdbus/unix-address/.dirs/system-data1:/tmp/test_gdbus-addresses_QJZC62/gdbus/unix-address/.dirs/system-data2 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/unix-address/.dirs/data 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/unix-address/.dirs/state 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_QJZC62/gdbus/unix-address/.dirs/runtime 907s ok 4 /gdbus/unix-address 907s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/nonce-tcp-address/.dirs/home 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/nonce-tcp-address/.dirs/cache 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_QJZC62/gdbus/nonce-tcp-address/.dirs/system-config1:/tmp/test_gdbus-addresses_QJZC62/gdbus/nonce-tcp-address/.dirs/system-config2 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/nonce-tcp-address/.dirs/config 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_QJZC62/gdbus/nonce-tcp-address/.dirs/system-data1:/tmp/test_gdbus-addresses_QJZC62/gdbus/nonce-tcp-address/.dirs/system-data2 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/nonce-tcp-address/.dirs/data 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/nonce-tcp-address/.dirs/state 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_QJZC62/gdbus/nonce-tcp-address/.dirs/runtime 907s ok 5 /gdbus/nonce-tcp-address 907s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/tcp-address/.dirs/home 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/tcp-address/.dirs/cache 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_QJZC62/gdbus/tcp-address/.dirs/system-config1:/tmp/test_gdbus-addresses_QJZC62/gdbus/tcp-address/.dirs/system-config2 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/tcp-address/.dirs/config 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_QJZC62/gdbus/tcp-address/.dirs/system-data1:/tmp/test_gdbus-addresses_QJZC62/gdbus/tcp-address/.dirs/system-data2 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/tcp-address/.dirs/data 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/tcp-address/.dirs/state 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_QJZC62/gdbus/tcp-address/.dirs/runtime 907s ok 6 /gdbus/tcp-address 907s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/autolaunch-address/.dirs/home 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/autolaunch-address/.dirs/cache 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_QJZC62/gdbus/autolaunch-address/.dirs/system-config1:/tmp/test_gdbus-addresses_QJZC62/gdbus/autolaunch-address/.dirs/system-config2 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/autolaunch-address/.dirs/config 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_QJZC62/gdbus/autolaunch-address/.dirs/system-data1:/tmp/test_gdbus-addresses_QJZC62/gdbus/autolaunch-address/.dirs/system-data2 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/autolaunch-address/.dirs/data 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/autolaunch-address/.dirs/state 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_QJZC62/gdbus/autolaunch-address/.dirs/runtime 907s ok 7 /gdbus/autolaunch-address 907s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/mixed-address/.dirs/home 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/mixed-address/.dirs/cache 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_QJZC62/gdbus/mixed-address/.dirs/system-config1:/tmp/test_gdbus-addresses_QJZC62/gdbus/mixed-address/.dirs/system-config2 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/mixed-address/.dirs/config 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_QJZC62/gdbus/mixed-address/.dirs/system-data1:/tmp/test_gdbus-addresses_QJZC62/gdbus/mixed-address/.dirs/system-data2 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/mixed-address/.dirs/data 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/mixed-address/.dirs/state 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_QJZC62/gdbus/mixed-address/.dirs/runtime 907s ok 8 /gdbus/mixed-address 907s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/escape-address/.dirs/home 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/escape-address/.dirs/cache 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_QJZC62/gdbus/escape-address/.dirs/system-config1:/tmp/test_gdbus-addresses_QJZC62/gdbus/escape-address/.dirs/system-config2 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/escape-address/.dirs/config 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_QJZC62/gdbus/escape-address/.dirs/system-data1:/tmp/test_gdbus-addresses_QJZC62/gdbus/escape-address/.dirs/system-data2 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/escape-address/.dirs/data 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_QJZC62/gdbus/escape-address/.dirs/state 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_QJZC62/gdbus/escape-address/.dirs/runtime 907s ok 9 /gdbus/escape-address 907s # End of gdbus tests 907s TAP version 14 907s # random seed: R02S7436b5229b9777a7d8037a74a444a90c 907s 1..1 907s # Start of permission tests 907s ok 1 /permission/simple 907s # End of permission tests 907s TAP version 14 907s # random seed: R02Sb0d9bfbcb91ef5ec58d1edbea0f7abf9 907s 1..1 907s # Start of properties tests 907s # /properties/notify-in-init2 summary: Test that notify freezing during construction of objects with custom constructor works 907s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2665 907s ok 1 /properties/notify-in-init2 907s # End of properties tests 907s TAP version 14 907s # random seed: R02S4202d945cff4cadf255c24bde84ce65f 907s 1..1 907s # Start of memory-settings-backend tests 907s ok 1 /memory-settings-backend/extension-point-registered 907s # End of memory-settings-backend tests 907s TAP version 14 907s # random seed: R02S0021ef51166c6b7538a8142f8acd3f73 907s 1..3 907s # Start of private tests 907s ok 1 /private/instance 907s ok 2 /private/derived-instance 907s ok 3 /private/mixed-derived-instance 907s # End of private tests 907s TAP version 14 907s # random seed: R02S24a1db91a1c06d71194163afa168c5cd 907s 1..7 907s # Start of thread tests 907s ok 1 /thread/thread1 907s ok 2 /thread/thread2 907s ok 3 /thread/thread3 907s ok 4 /thread/thread4 907s ok 5 /thread/thread5 907s ok 6 /thread/thread6 907s ok 7 /thread/thread7 907s # End of thread tests 907s TAP version 14 907s # random seed: R02Sdc98d4bde60713939b9660b3af47895e 907s 1..1 907s # Start of glib tests 907s ok 1 /glib/relation 907s # End of glib tests 907s TAP version 14 907s # random seed: R02S03987881aef0093b47fc60492169f038 907s 1..5 907s # Start of gdbus tests 907s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_HEV252/gdbus/proxy/.dirs/home 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_HEV252/gdbus/proxy/.dirs/cache 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_HEV252/gdbus/proxy/.dirs/system-config1:/tmp/test_gdbus-proxy_HEV252/gdbus/proxy/.dirs/system-config2 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_HEV252/gdbus/proxy/.dirs/config 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_HEV252/gdbus/proxy/.dirs/system-data1:/tmp/test_gdbus-proxy_HEV252/gdbus/proxy/.dirs/system-data2 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_HEV252/gdbus/proxy/.dirs/data 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_HEV252/gdbus/proxy/.dirs/state 907s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_HEV252/gdbus/proxy/.dirs/runtime 909s ok 1 /gdbus/proxy 909s # slow test /gdbus/proxy executed in 1.73 secs 909s # Start of proxy tests 909s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_HEV252/gdbus/proxy/no-properties/.dirs/home 909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_HEV252/gdbus/proxy/no-properties/.dirs/cache 909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_HEV252/gdbus/proxy/no-properties/.dirs/system-config1:/tmp/test_gdbus-proxy_HEV252/gdbus/proxy/no-properties/.dirs/system-config2 909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_HEV252/gdbus/proxy/no-properties/.dirs/config 909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_HEV252/gdbus/proxy/no-properties/.dirs/system-data1:/tmp/test_gdbus-proxy_HEV252/gdbus/proxy/no-properties/.dirs/system-data2 909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_HEV252/gdbus/proxy/no-properties/.dirs/data 909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_HEV252/gdbus/proxy/no-properties/.dirs/state 909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_HEV252/gdbus/proxy/no-properties/.dirs/runtime 909s ok 2 /gdbus/proxy/no-properties 909s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_HEV252/gdbus/proxy/wellknown-noauto/.dirs/home 909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_HEV252/gdbus/proxy/wellknown-noauto/.dirs/cache 909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_HEV252/gdbus/proxy/wellknown-noauto/.dirs/system-config1:/tmp/test_gdbus-proxy_HEV252/gdbus/proxy/wellknown-noauto/.dirs/system-config2 909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_HEV252/gdbus/proxy/wellknown-noauto/.dirs/config 909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_HEV252/gdbus/proxy/wellknown-noauto/.dirs/system-data1:/tmp/test_gdbus-proxy_HEV252/gdbus/proxy/wellknown-noauto/.dirs/system-data2 909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_HEV252/gdbus/proxy/wellknown-noauto/.dirs/data 909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_HEV252/gdbus/proxy/wellknown-noauto/.dirs/state 909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_HEV252/gdbus/proxy/wellknown-noauto/.dirs/runtime 909s ok 3 /gdbus/proxy/wellknown-noauto 909s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_HEV252/gdbus/proxy/async/.dirs/home 909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_HEV252/gdbus/proxy/async/.dirs/cache 909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_HEV252/gdbus/proxy/async/.dirs/system-config1:/tmp/test_gdbus-proxy_HEV252/gdbus/proxy/async/.dirs/system-config2 909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_HEV252/gdbus/proxy/async/.dirs/config 909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_HEV252/gdbus/proxy/async/.dirs/system-data1:/tmp/test_gdbus-proxy_HEV252/gdbus/proxy/async/.dirs/system-data2 909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_HEV252/gdbus/proxy/async/.dirs/data 909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_HEV252/gdbus/proxy/async/.dirs/state 909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_HEV252/gdbus/proxy/async/.dirs/runtime 911s ok 4 /gdbus/proxy/async 911s # slow test /gdbus/proxy/async executed in 1.73 secs 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_HEV252/gdbus/proxy/no-match-rule/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_HEV252/gdbus/proxy/no-match-rule/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_HEV252/gdbus/proxy/no-match-rule/.dirs/system-config1:/tmp/test_gdbus-proxy_HEV252/gdbus/proxy/no-match-rule/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_HEV252/gdbus/proxy/no-match-rule/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_HEV252/gdbus/proxy/no-match-rule/.dirs/system-data1:/tmp/test_gdbus-proxy_HEV252/gdbus/proxy/no-match-rule/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_HEV252/gdbus/proxy/no-match-rule/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_HEV252/gdbus/proxy/no-match-rule/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_HEV252/gdbus/proxy/no-match-rule/.dirs/runtime 911s # /gdbus/proxy/no-match-rule summary: Test that G_DBUS_PROXY_FLAGS_NO_MATCH_RULE works 911s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1109 912s # Executing: glib/gdbus-proxy.test 913s ok 5 /gdbus/proxy/no-match-rule 913s # slow test /gdbus/proxy/no-match-rule executed in 1.74 secs 913s # End of proxy tests 913s # End of gdbus tests 913s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 913s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 913s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 913s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 913s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 913s ok - glib/gdbus-proxy.test 913s # Running test: glib/gdbus-proxy-unique-name.test 913s TAP version 14 913s # random seed: R02S44cc216e8b27b274db65a89192b41355 913s 1..1 913s # Start of gdbus tests 913s ok - glib/gdbus-proxy-unique-name.test 913s # Running test: glib/node.test 913s ok - glib/node.test 913s # Running test: glib/cancellable.test 913s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy-unique-name_9PAX52/gdbus/proxy-unique-name/.dirs/home 913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy-unique-name_9PAX52/gdbus/proxy-unique-name/.dirs/cache 913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy-unique-name_9PAX52/gdbus/proxy-unique-name/.dirs/system-config1:/tmp/test_gdbus-proxy-unique-name_9PAX52/gdbus/proxy-unique-name/.dirs/system-config2 913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy-unique-name_9PAX52/gdbus/proxy-unique-name/.dirs/config 913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy-unique-name_9PAX52/gdbus/proxy-unique-name/.dirs/system-data1:/tmp/test_gdbus-proxy-unique-name_9PAX52/gdbus/proxy-unique-name/.dirs/system-data2 913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy-unique-name_9PAX52/gdbus/proxy-unique-name/.dirs/data 913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy-unique-name_9PAX52/gdbus/proxy-unique-name/.dirs/state 913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy-unique-name_9PAX52/gdbus/proxy-unique-name/.dirs/runtime 913s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 913s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 913s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 913s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 913s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 913s ok 1 /gdbus/proxy-unique-name 913s # End of gdbus tests 913s TAP version 14 913s # random seed: R02Sc9b8f4306a5da16231fdea4630682749 913s 1..6 913s # Start of node tests 913s ok 1 /node/allocation 913s ok 2 /node/construction 913s ok 3 /node/traversal 913s ok 4 /node/misc 913s ok 5 /node/unlink 913s ok 6 /node/copy 913s # End of node tests 913s TAP version 14 913s # random seed: R02S5dd143759779170dc4f120d4624bf90a 913s 1..18 913s # Start of cancellable tests 913s ok 1 /cancellable/multiple-concurrent # SKIP Not running timing heavy test 913s ok 2 /cancellable/null 913s ok 3 /cancellable/connect-data-is-destroyed-on-disconnect-and-dispose 913s # /cancellable/connect-to-disposing-callback summary: A cancellable signal callback can unref the cancellable 913s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3643 913s ok 4 /cancellable/connect-to-disposing-callback 913s ok 5 /cancellable/connect-cancelled-data-is-destroyed 913s # Toggle reference callback for GCancellable (0xaeebfbf30cd0), last: 1 913s # Toggle reference callback for GCancellable (0xaeebfbf30cd0), last: 0 913s # Toggle reference callback for GCancellable (0xaeebfbf30cd0), last: 1 913s ok 6 /cancellable/connect-to-disposing-callback-with-toggle-reference 913s # /cancellable/connect-cancelled-to-disposing-callback summary: A cancellable signal callback can unref the cancellable 913s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3643 913s ok 7 /cancellable/connect-cancelled-to-disposing-callback 913s ok 8 /cancellable/connect-cancelled-with-destroy-func-disposing-cancellable 913s # Toggle reference callback for GCancellable (0xaeebfbf30cd0), last: 1 913s # Toggle reference callback for GCancellable (0xaeebfbf30cd0), last: 0 913s # Toggle reference callback for GCancellable (0xaeebfbf30cd0), last: 1 913s # Toggle reference callback for GCancellable (0xaeebfbf30cd0), last: 0 913s # Toggle reference callback for GCancellable (0xaeebfbf30cd0), last: 1 913s ok 9 /cancellable/connect-cancelled-to-disposing-callback-with-toggle-reference 913s # /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 913s ok 10 /cancellable/disconnect-on-cancelled-callback-hangs 913s # /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 913s ok 11 /cancellable/resets-on-cancel-callback-hangs 913s ok 12 /cancellable/poll-fd 913s # /cancellable/poll-fd-cancelled summary: Tests that cancellation wakes up a pollable FD on creation 913s ok 13 /cancellable/poll-fd-cancelled 913s # /cancellable/poll-fd-cancelled-threaded summary: Tests that a cancellation wakes up a pollable FD 913s ok 14 /cancellable/poll-fd-cancelled-threaded 913s # /cancellable/cancel-reset-races summary: Tests threads racing for cancelling and resetting a GCancellable 913s ok 15 /cancellable/cancel-reset-races 913s # /cancellable/cancel-reset-connect-races summary: Tests threads racing for cancelling, connecting and disconnecting and resetting a GCancellable 913s ok 16 /cancellable/cancel-reset-connect-races 913s # End of cancellable tests 913s # Start of cancellable-source tests 913s # /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) 913s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1841 914s ok 17 /cancellable-source/threaded-dispose 914s # slow test /cancellable-source/threaded-dispose executed in 0.80 secs 914s # /cancellable-source/can-be-fired-multiple-times summary: Test a cancellable source callback can be called multiple times 914s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/774 914s ok 18 /cancellable-source/can-be-fired-multiple-times 914s # End of cancellable-source tests 914s ok - glib/cancellable.test 914s # Running test: glib/unix.test 914s TAP version 14 914s # random seed: R02Sf0ec0ee30499f498ff180d018262af0d 914s 1..20 914s # Start of glib-unix tests 914s # /glib-unix/closefrom summary: Test g_closefrom(), g_fdwalk_set_cloexec() 914s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3247 914s ok 1 /glib-unix/closefrom 914s ok 2 /glib-unix/pipe 914s # /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 914s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2795 914s ok 3 /glib-unix/pipe-stdio-overwrite 914s # /glib-unix/pipe-struct summary: Test GUnixPipe structure 914s ok 4 /glib-unix/pipe-struct 914s # /glib-unix/pipe-struct-auto summary: Test g_auto(GUnixPipe) 914s ok 5 /glib-unix/pipe-struct-auto 914s ok 6 /glib-unix/error 914s ok 7 /glib-unix/nonblocking 914s ok 8 /glib-unix/sighup 914s # slow test /glib-unix/sighup executed in 0.50 secs 915s ok 9 /glib-unix/sigterm 915s # slow test /glib-unix/sigterm executed in 0.50 secs 915s ok 10 /glib-unix/sighup_again 915s # slow test /glib-unix/sighup_again executed in 0.50 secs 915s ok 11 /glib-unix/sighup_add_remove 915s ok 12 /glib-unix/sighup_nested 917s # Executing: glib/unix.test 917s ok 13 /glib-unix/callback_after_signal 917s # slow test /glib-unix/callback_after_signal executed in 2.00 secs 917s ok 14 /glib-unix/child-wait 917s # Start of closefrom tests 917s # Start of subprocess tests 917s # End of subprocess tests 917s # End of closefrom tests 917s # Start of pipe tests 917s # /glib-unix/pipe/fd-cloexec summary: Test that FD_CLOEXEC is still accepted as an argument to g_unix_open_pipe() 917s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3459 917s # GLib-DEBUG: g_unix_open_pipe() called with FD_CLOEXEC; please migrate to using O_CLOEXEC instead 917s ok 15 /glib-unix/pipe/fd-cloexec 917s # End of pipe tests 917s # Start of sighup tests 918s ok 16 /glib-unix/sighup/alternate-stack 918s # slow test /glib-unix/sighup/alternate-stack executed in 1.00 secs 918s # End of sighup tests 918s # Start of sigterm tests 919s ok 17 /glib-unix/sigterm/alternate-stack 919s # slow test /glib-unix/sigterm/alternate-stack executed in 1.00 secs 919s # End of sigterm tests 919s # Start of sighup_again tests 920s ok 18 /glib-unix/sighup_again/alternate-stack 920s # slow test /glib-unix/sighup_again/alternate-stack executed in 1.00 secs 920s # End of sighup_again tests 920s # Start of get-passwd-entry tests 920s # /glib-unix/get-passwd-entry/root summary: Tests that g_unix_get_passwd_entry() works for a known-existing username. 920s ok 19 /glib-unix/get-passwd-entry/root 920s # /glib-unix/get-passwd-entry/nonexistent summary: Tests that g_unix_get_passwd_entry() returns an error for a nonexistent username. 920s ok 20 /glib-unix/get-passwd-entry/nonexistent 920s # End of get-passwd-entry tests 920s # End of glib-unix tests 920s ok - glib/unix.test 920s # Running test: glib/socket-listener.test 920s TAP version 14 920s # random seed: R02Sad95fc23e2c40c9fb44fc000061b160e 920s 1..1 920s # Start of socket-listener tests 920s ok 1 /socket-listener/event-signal 920s # End of socket-listener tests 920s TAP version 14 920s # random seed: R02S2afa2ff9455db2bb9147f37368727a29 920s 1..14 920s # Start of slist tests 920s ok 1 /slist/sort 920s ok 2 /slist/sort-with-data 920s ok 3 /slist/insert-sorted 920s ok 4 /slist/insert-sorted-with-data 920s ok 5 /slist/reverse 920s ok 6 /slist/nth 920s ok 7 /slist/remove 920s ok 8 /slist/remove-all 920s ok 9 /slist/insert 920s ok 10 /slist/position 920s ok 11 /slist/concat 920s ok 12 /slist/copy 920s # Start of sort tests 920s ok 13 /slist/sort/stable 920s # End of sort tests 920s # Start of copy tests 920s ok 14 /slist/copy/deep 920s # End of copy tests 920s # End of slist tests 920s TAP version 14 920s # random seed: R02S5b591673875f8bf92cb26b1cb21f3f23 920s 1..6 920s # Start of icons tests 920s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 920s ok 1 /icons/to-string 920s ok 2 /icons/serialize 920s ok 3 /icons/themed 920s ok 4 /icons/emblemed 920s ok 5 /icons/file 920s ok 6 /icons/bytes 920s # End of icons tests 920s TAP version 14 920s # random seed: R02S658982a64692b73ec3742969e1095b98 920s 1..24 920s # Start of gdbus tests 920s # Start of subscribe tests 920s # Start of conn tests 920s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/simple/.dirs/home 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/simple/.dirs/cache 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/simple/.dirs/system-config1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/simple/.dirs/system-config2 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/simple/.dirs/config 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/simple/.dirs/system-data1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/simple/.dirs/system-data2 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/simple/.dirs/data 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/simple/.dirs/state 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/simple/.dirs/runtime 920s # subscriber is :1.0 920s # service is :1.1 920s # service 2 is :1.2 920s # attacker is :1.3 920s # Waiting for AddMatch to be processed 920s # /gdbus/subscribe/conn/simple summary: A broadcast is only received after subscribing to it 920s # Step 0: emitting signal 920s # Sender: service 920s # Destination: (broadcast) 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Waiting for signal to reach message bus 920s # Step 1: adding subscription 920s # Sender: (any) 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: (any) 920s # String argument 0: (any) 920s # Flags: 0 920s # Subscribing via connection 920s # Waiting for AddMatch to be processed 920s # Step 2: emitting signal 920s # Sender: service 920s # Destination: (broadcast) 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Waiting for signal to reach message bus 920s # Signal received from service :1.1 920s # Signal received from service :1.1 via connection 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Sent in step: 2 920s # Received Finished signal from subscriber :1.0 920s # Received Finished signal from service :1.1 920s # Received Finished signal from service 2 :1.2 920s # Received Finished signal from attacker :1.3 920s # Signal from step 0 was received 0 times by GDBusConnection, expected 0 920s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s ok 1 /gdbus/subscribe/conn/simple 920s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/home 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/cache 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-config1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-config2 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/config 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-data1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-data2 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/data 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/state 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/runtime 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 920s # subscriber is :1.0 920s # service is :1.1 920s # service 2 is :1.2 920s # attacker is :1.3 920s # Waiting for AddMatch to be processed 920s ok - glib/socket-listener.test 920s # Running test: glib/slist.test 920s ok - glib/slist.test 920s # Running test: glib/g-icon.test 920s ok - glib/g-icon.test 920s # Running test: glib/gdbus-subscribe.test 920s # /gdbus/subscribe/conn/broadcast_from_anyone summary: A subscription with NULL sender accepts broadcast and unicast 920s # Step 0: adding subscription 920s # Sender: (any) 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: (any) 920s # String argument 0: (any) 920s # Flags: 0 920s # Subscribing via connection 920s # Waiting for AddMatch to be processed 920s # Step 1: emitting signal 920s # Sender: service 920s # Destination: (broadcast) 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Waiting for signal to reach message bus 920s # Step 2: emitting signal 920s # Sender: service 2 920s # Destination: (broadcast) 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Waiting for signal to reach message bus 920s # Step 3: emitting signal 920s # Sender: service 920s # Destination: subscriber :1.0 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Waiting for signal to reach message bus 920s # Step 4: emitting signal 920s # Sender: service 2 920s # Destination: subscriber :1.0 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Waiting for signal to reach message bus 920s # Signal received from service :1.1 920s # Signal received from service :1.1 via connection 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Sent in step: 1 920s # Signal received from service 2 :1.2 920s # Signal received from service 2 :1.2 via connection 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Sent in step: 2 920s # Signal received from service :1.1 920s # Signal received from service :1.1 via connection 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Sent in step: 3 920s # Signal received from service 2 :1.2 920s # Signal received from service 2 :1.2 via connection 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Sent in step: 4 920s # Received Finished signal from subscriber :1.0 920s # Received Finished signal from service :1.1 920s # Received Finished signal from service 2 :1.2 920s # Received Finished signal from attacker :1.3 920s # Signal from step 1 was received 1 times by GDBusConnection, expected 1 920s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 920s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 920s # Signal from step 4 was received 1 times by GDBusConnection, expected 1 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s ok 2 /gdbus/subscribe/conn/broadcast_from_anyone 920s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/match_twice/.dirs/home 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/match_twice/.dirs/cache 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/match_twice/.dirs/system-config1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/match_twice/.dirs/system-config2 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/match_twice/.dirs/config 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/match_twice/.dirs/system-data1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/match_twice/.dirs/system-data2 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/match_twice/.dirs/data 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/match_twice/.dirs/state 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/match_twice/.dirs/runtime 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 920s # subscriber is :1.0 920s # service is :1.1 920s # service 2 is :1.2 920s # attacker is :1.3 920s # Waiting for AddMatch to be processed 920s # /gdbus/subscribe/conn/match_twice summary: A message matching more than one subscription is received once per subscription 920s # Step 0: adding subscription 920s # Sender: service :1.1 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: (any) 920s # String argument 0: (any) 920s # Flags: 0 920s # Subscribing via connection 920s # Waiting for AddMatch to be processed 920s # Step 1: adding subscription 920s # Sender: (any) 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: (any) 920s # Member: (any) 920s # String argument 0: (any) 920s # Flags: 0 920s # Subscribing via connection 920s # Waiting for AddMatch to be processed 920s # Step 2: adding subscription 920s # Sender: (any) 920s # Path: (any) 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: (any) 920s # String argument 0: (any) 920s # Flags: 0 920s # Subscribing via connection 920s # Waiting for AddMatch to be processed 920s # Step 3: adding subscription 920s # Sender: service :1.1 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: (any) 920s # String argument 0: (any) 920s # Flags: 0 920s # Subscribing via connection 920s # Waiting for AddMatch to be processed 920s # Step 4: emitting signal 920s # Sender: service 920s # Destination: (broadcast) 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Waiting for signal to reach message bus 920s # Signal received from service :1.1 920s # Signal received from service :1.1 via connection 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Sent in step: 4 920s # Signal received from service :1.1 920s # Signal received from service :1.1 via connection 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Sent in step: 4 920s # Signal received from service :1.1 920s # Signal received from service :1.1 via connection 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Sent in step: 4 920s # Signal received from service :1.1 920s # Signal received from service :1.1 via connection 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Sent in step: 4 920s # Received Finished signal from subscriber :1.0 920s # Received Finished signal from service :1.1 920s # Received Finished signal from service 2 :1.2 920s # Received Finished signal from attacker :1.3 920s # Signal from step 4 was received 4 times by GDBusConnection, expected 4 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s ok 3 /gdbus/subscribe/conn/match_twice 920s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/limit_by_unique_name/.dirs/home 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/limit_by_unique_name/.dirs/cache 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-config2 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/limit_by_unique_name/.dirs/config 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-data2 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/limit_by_unique_name/.dirs/data 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/limit_by_unique_name/.dirs/state 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/limit_by_unique_name/.dirs/runtime 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 920s # subscriber is :1.0 920s # service is :1.1 920s # service 2 is :1.2 920s # attacker is :1.3 920s # Waiting for AddMatch to be processed 920s # /gdbus/subscribe/conn/limit_by_unique_name summary: A subscription via a unique name only accepts messages sent by that same unique name 920s # Step 0: adding subscription 920s # Sender: service :1.1 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: (any) 920s # String argument 0: (any) 920s # Flags: 0 920s # Subscribing via connection 920s # Waiting for AddMatch to be processed 920s # Step 1: emitting signal 920s # Sender: attacker 920s # Destination: (broadcast) 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Waiting for signal to reach message bus 920s # Step 2: emitting signal 920s # Sender: attacker 920s # Destination: subscriber :1.0 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Waiting for signal to reach message bus 920s # Step 3: emitting signal 920s # Sender: service 920s # Destination: (broadcast) 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Waiting for signal to reach message bus 920s # Signal received from service :1.1 920s # Signal received from service :1.1 via connection 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Sent in step: 3 920s # Received Finished signal from subscriber :1.0 920s # Received Finished signal from service :1.1 920s # Received Finished signal from service 2 :1.2 920s # Received Finished signal from attacker :1.3 920s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 920s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 920s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s ok 4 /gdbus/subscribe/conn/limit_by_unique_name 920s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/home 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/cache 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-config2 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/config 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-data2 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/data 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/state 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/runtime 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 920s # subscriber is :1.0 920s # service is :1.1 920s # service 2 is :1.2 920s # attacker is :1.3 920s # Waiting for AddMatch to be processed 920s # /gdbus/subscribe/conn/nonexistent_unique_name summary: A subscription via a unique name that doesn't exist accepts no messages 920s # Step 0: adding subscription 920s # Sender: :0.this.had.better.not.exist 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: (any) 920s # String argument 0: (any) 920s # Flags: 0 920s # Subscribing via connection 920s # Waiting for AddMatch to be processed 920s # Step 1: emitting signal 920s # Sender: attacker 920s # Destination: (broadcast) 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Waiting for signal to reach message bus 920s # Step 2: emitting signal 920s # Sender: attacker 920s # Destination: subscriber :1.0 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Waiting for signal to reach message bus 920s # Received Finished signal from subscriber :1.0 920s # Received Finished signal from service :1.1 920s # Received Finished signal from service 2 :1.2 920s # Received Finished signal from attacker :1.3 920s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 920s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s ok 5 /gdbus/subscribe/conn/nonexistent_unique_name 920s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/home 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/cache 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-config2 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/config 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-data2 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/data 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/state 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/runtime 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 920s # subscriber is :1.0 920s # service is :1.1 920s # service 2 is :1.2 920s # attacker is :1.3 920s # Waiting for AddMatch to be processed 920s # /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 920s # Step 0: claiming bus name 920s # Name: org.gtk.Test.AlreadyOwned 920s # Owner: service 920s # Step 1: adding subscription 920s # Sender: org.gtk.Test.AlreadyOwned 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: (any) 920s # String argument 0: (any) 920s # Flags: 0 920s # Subscribing via connection 920s # Waiting for AddMatch to be processed 920s # Step 2: adding subscription 920s # Sender: org.gtk.Test.OwnedLater 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: (any) 920s # String argument 0: (any) 920s # Flags: 0 920s # Subscribing via connection 920s # Waiting for AddMatch to be processed 920s # Step 3: emitting signal 920s # Sender: attacker 920s # Destination: (broadcast) 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Waiting for signal to reach message bus 920s # Step 4: emitting signal 920s # Sender: attacker 920s # Destination: subscriber :1.0 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Waiting for signal to reach message bus 920s # Step 5: emitting signal 920s # Sender: service 920s # Destination: (broadcast) 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Waiting for signal to reach message bus 920s # Step 6: claiming bus name 920s # Name: org.gtk.Test.OwnedLater 920s # Owner: service 920s # Step 7: emitting signal 920s # Sender: service 920s # Destination: (broadcast) 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Waiting for signal to reach message bus 920s # Signal received from service :1.1 920s # Signal received from service :1.1 via connection 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Sent in step: 5 920s # Signal received from service :1.1 920s # Signal received from service :1.1 via connection 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Sent in step: 7 920s # Signal received from service :1.1 920s # Signal received from service :1.1 via connection 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Sent in step: 7 920s # Received Finished signal from subscriber :1.0 920s # Received Finished signal from service :1.1 920s # Received Finished signal from service 2 :1.2 920s # Received Finished signal from attacker :1.3 920s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 920s # Signal from step 3 was received 0 times by GDBusConnection, expected 0 920s # Signal from step 4 was received 0 times by GDBusConnection, expected 0 920s # Signal from step 5 was received 1 times by GDBusConnection, expected 1 920s # NameOwnerChanged from step 6 was received 0 times by GDBusConnection, expected 0 920s # Signal from step 7 was received 2 times by GDBusConnection, expected 2 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s ok 6 /gdbus/subscribe/conn/limit_by_well_known_name 920s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/limit_to_message_bus/.dirs/home 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/limit_to_message_bus/.dirs/cache 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-config1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-config2 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/limit_to_message_bus/.dirs/config 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-data1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-data2 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/limit_to_message_bus/.dirs/data 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/limit_to_message_bus/.dirs/state 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/limit_to_message_bus/.dirs/runtime 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 920s # subscriber is :1.0 920s # service is :1.1 920s # service 2 is :1.2 920s # attacker is :1.3 920s # Waiting for AddMatch to be processed 920s # /gdbus/subscribe/conn/limit_to_message_bus summary: A subscription to the message bus only accepts messages from the message bus 920s # Step 0: adding subscription 920s # Sender: org.freedesktop.DBus 920s # Path: /org/freedesktop/DBus 920s # Interface: org.freedesktop.DBus 920s # Member: (any) 920s # String argument 0: (any) 920s # Flags: 0 920s # Subscribing via connection 920s # Waiting for AddMatch to be processed 920s # Step 1: emitting signal 920s # Sender: attacker 920s # Destination: (broadcast) 920s # Path: /org/freedesktop/DBus 920s # Interface: org.freedesktop.DBus 920s # Member: NameOwnerChanged 920s # String argument 0: would I lie to you? 920s # Waiting for signal to reach message bus 920s # Step 2: emitting signal 920s # Sender: attacker 920s # Destination: subscriber :1.0 920s # Path: /org/freedesktop/DBus 920s # Interface: org.freedesktop.DBus 920s # Member: NameOwnerChanged 920s # Waiting for signal to reach message bus 920s # Step 3: claiming bus name 920s # Name: org.gtk.Test.OwnedLater 920s # Owner: service 920s # Signal received from message bus org.freedesktop.DBus 920s # Signal received from (unused) org.freedesktop.DBus via connection 920s # Path: /org/freedesktop/DBus 920s # Interface: org.freedesktop.DBus 920s # Member: NameOwnerChanged 920s # Received Finished signal from subscriber :1.0 920s # Received Finished signal from service :1.1 920s # Received Finished signal from service 2 :1.2 920s # Received Finished signal from attacker :1.3 920s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 920s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 920s # NameOwnerChanged from step 3 was received 1 times by GDBusConnection, expected 1 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s ok 7 /gdbus/subscribe/conn/limit_to_message_bus 920s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/home 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/cache 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-config1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-config2 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/config 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-data1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-data2 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/data 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/state 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/runtime 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 920s # subscriber is :1.0 920s # service is :1.1 920s # service 2 is :1.2 920s # attacker is :1.3 920s # Waiting for AddMatch to be processed 920s # /gdbus/subscribe/conn/unsubscribe_immediately summary: Unsubscribing before GetNameOwner can return doesn't result in a crash 920s # Step 0: claiming bus name 920s # Name: org.gtk.Test.AlreadyOwned 920s # Owner: service 920s # Step 1: adding subscription 920s # Sender: org.gtk.Test.AlreadyOwned 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: (any) 920s # String argument 0: (any) 920s # Flags: 0 920s # Subscribing via connection 920s # Immediately unsubscribing 920s # Waiting for AddMatch to be processed 920s # Step 2: emitting signal 920s # Sender: service 920s # Destination: (broadcast) 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Waiting for signal to reach message bus 920s # Received Finished signal from subscriber :1.0 920s # Received Finished signal from service :1.1 920s # Received Finished signal from service 2 :1.2 920s # Received Finished signal from attacker :1.3 920s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 920s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s ok 8 /gdbus/subscribe/conn/unsubscribe_immediately 920s # End of conn tests 920s # Start of proxy tests 920s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/simple/.dirs/home 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/simple/.dirs/cache 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/simple/.dirs/system-config1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/simple/.dirs/system-config2 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/simple/.dirs/config 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/simple/.dirs/system-data1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/simple/.dirs/system-data2 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/simple/.dirs/data 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/simple/.dirs/state 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/simple/.dirs/runtime 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 920s # subscriber is :1.0 920s # service is :1.1 920s # service 2 is :1.2 920s # attacker is :1.3 920s # Waiting for AddMatch to be processed 920s # /gdbus/subscribe/proxy/simple summary: A broadcast is only received after subscribing to it 920s # Step 0: emitting signal 920s # Sender: service 920s # Destination: (broadcast) 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Waiting for signal to reach message bus 920s # Step 1: adding subscription 920s # Sender: (any) 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: (any) 920s # String argument 0: (any) 920s # Flags: 0 920s # Cannot subscribe via proxy: no bus name 920s # Waiting for AddMatch to be processed 920s # Step 2: emitting signal 920s # Sender: service 920s # Destination: (broadcast) 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Waiting for signal to reach message bus 920s # Received Finished signal from subscriber :1.0 920s # Received Finished signal from service :1.1 920s # Received Finished signal from service 2 :1.2 920s # Received Finished signal from attacker :1.3 920s # Signal from step 0 was received 0 times by GDBusProxy, expected 0 920s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s ok 9 /gdbus/subscribe/proxy/simple 920s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/home 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/cache 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-config1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-config2 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/config 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-data1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-data2 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/data 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/state 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/runtime 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 920s # subscriber is :1.0 920s # service is :1.1 920s # service 2 is :1.2 920s # attacker is :1.3 920s # Waiting for AddMatch to be processed 920s # /gdbus/subscribe/proxy/broadcast_from_anyone summary: A subscription with NULL sender accepts broadcast and unicast 920s # Step 0: adding subscription 920s # Sender: (any) 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: (any) 920s # String argument 0: (any) 920s # Flags: 0 920s # Cannot subscribe via proxy: no bus name 920s # Waiting for AddMatch to be processed 920s # Step 1: emitting signal 920s # Sender: service 920s # Destination: (broadcast) 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Waiting for signal to reach message bus 920s # Step 2: emitting signal 920s # Sender: service 2 920s # Destination: (broadcast) 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Waiting for signal to reach message bus 920s # Step 3: emitting signal 920s # Sender: service 920s # Destination: subscriber :1.0 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Waiting for signal to reach message bus 920s # Step 4: emitting signal 920s # Sender: service 2 920s # Destination: subscriber :1.0 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Waiting for signal to reach message bus 920s # Received Finished signal from subscriber :1.0 920s # Received Finished signal from service :1.1 920s # Received Finished signal from service 2 :1.2 920s # Received Finished signal from attacker :1.3 920s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 920s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 920s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 920s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s ok 10 /gdbus/subscribe/proxy/broadcast_from_anyone 920s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/match_twice/.dirs/home 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/match_twice/.dirs/cache 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/match_twice/.dirs/system-config1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/match_twice/.dirs/system-config2 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/match_twice/.dirs/config 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/match_twice/.dirs/system-data1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/match_twice/.dirs/system-data2 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/match_twice/.dirs/data 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/match_twice/.dirs/state 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/match_twice/.dirs/runtime 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 920s # subscriber is :1.0 920s # service is :1.1 920s # service 2 is :1.2 920s # attacker is :1.3 920s # Waiting for AddMatch to be processed 920s # /gdbus/subscribe/proxy/match_twice summary: A message matching more than one subscription is received once per subscription 920s # Step 0: adding subscription 920s # Sender: service :1.1 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: (any) 920s # String argument 0: (any) 920s # Flags: 0 920s # Subscribing via proxy 920s # Waiting for AddMatch to be processed 920s # Step 1: adding subscription 920s # Sender: (any) 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: (any) 920s # Member: (any) 920s # String argument 0: (any) 920s # Flags: 0 920s # Cannot subscribe via proxy: no bus name 920s # Waiting for AddMatch to be processed 920s # Step 2: adding subscription 920s # Sender: (any) 920s # Path: (any) 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: (any) 920s # String argument 0: (any) 920s # Flags: 0 920s # Cannot subscribe via proxy: no bus name 920s # Waiting for AddMatch to be processed 920s # Step 3: adding subscription 920s # Sender: service :1.1 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: (any) 920s # String argument 0: (any) 920s # Flags: 0 920s # Subscribing via proxy 920s # Waiting for AddMatch to be processed 920s # Step 4: emitting signal 920s # Sender: service 920s # Destination: (broadcast) 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Waiting for signal to reach message bus 920s # Signal received from service :1.1 920s # Signal received from service :1.1 via proxy 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Sent in step: 4 920s # Signal received from service :1.1 920s # Signal received from service :1.1 via proxy 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Sent in step: 4 920s # Received Finished signal from subscriber :1.0 920s # Received Finished signal from service :1.1 920s # Received Finished signal from service 2 :1.2 920s # Received Finished signal from attacker :1.3 920s # Signal from step 4 was received 2 times by GDBusProxy, expected 2 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s ok 11 /gdbus/subscribe/proxy/match_twice 920s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/home 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/cache 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-config2 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/config 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-data2 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/data 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/state 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/runtime 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 920s # subscriber is :1.0 920s # service is :1.1 920s # service 2 is :1.2 920s # attacker is :1.3 920s # Waiting for AddMatch to be processed 920s # /gdbus/subscribe/proxy/limit_by_unique_name summary: A subscription via a unique name only accepts messages sent by that same unique name 920s # Step 0: adding subscription 920s # Sender: service :1.1 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: (any) 920s # String argument 0: (any) 920s # Flags: 0 920s # Subscribing via proxy 920s # Waiting for AddMatch to be processed 920s # Step 1: emitting signal 920s # Sender: attacker 920s # Destination: (broadcast) 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Waiting for signal to reach message bus 920s # Step 2: emitting signal 920s # Sender: attacker 920s # Destination: subscriber :1.0 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Waiting for signal to reach message bus 920s # Step 3: emitting signal 920s # Sender: service 920s # Destination: (broadcast) 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Waiting for signal to reach message bus 920s # Signal received from service :1.1 920s # Signal received from service :1.1 via proxy 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Sent in step: 3 920s # Received Finished signal from subscriber :1.0 920s # Received Finished signal from service :1.1 920s # Received Finished signal from service 2 :1.2 920s # Received Finished signal from attacker :1.3 920s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 920s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 920s # Signal from step 3 was received 1 times by GDBusProxy, expected 1 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s ok 12 /gdbus/subscribe/proxy/limit_by_unique_name 920s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/home 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/cache 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-config2 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/config 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-data2 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/data 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/state 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/runtime 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 920s # subscriber is :1.0 920s # service is :1.1 920s # service 2 is :1.2 920s # attacker is :1.3 920s # Waiting for AddMatch to be processed 920s # /gdbus/subscribe/proxy/nonexistent_unique_name summary: A subscription via a unique name that doesn't exist accepts no messages 920s # Step 0: adding subscription 920s # Sender: :0.this.had.better.not.exist 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: (any) 920s # String argument 0: (any) 920s # Flags: 0 920s # Subscribing via proxy 920s # Waiting for AddMatch to be processed 920s # Step 1: emitting signal 920s # Sender: attacker 920s # Destination: (broadcast) 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Waiting for signal to reach message bus 920s # Step 2: emitting signal 920s # Sender: attacker 920s # Destination: subscriber :1.0 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Waiting for signal to reach message bus 920s # Received Finished signal from subscriber :1.0 920s # Received Finished signal from service :1.1 920s # Received Finished signal from service 2 :1.2 920s # Received Finished signal from attacker :1.3 920s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 920s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s ok 13 /gdbus/subscribe/proxy/nonexistent_unique_name 920s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/home 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/cache 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-config2 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/config 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-data2 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/data 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/state 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/runtime 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 920s # subscriber is :1.0 920s # service is :1.1 920s # service 2 is :1.2 920s # attacker is :1.3 920s # Waiting for AddMatch to be processed 920s # /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 920s # Step 0: claiming bus name 920s # Name: org.gtk.Test.AlreadyOwned 920s # Owner: service 920s # Step 1: adding subscription 920s # Sender: org.gtk.Test.AlreadyOwned 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: (any) 920s # String argument 0: (any) 920s # Flags: 0 920s # Subscribing via proxy 920s # Waiting for AddMatch to be processed 920s # Step 2: adding subscription 920s # Sender: org.gtk.Test.OwnedLater 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: (any) 920s # String argument 0: (any) 920s # Flags: 0 920s # Subscribing via proxy 920s # Waiting for AddMatch to be processed 920s # Step 3: emitting signal 920s # Sender: attacker 920s # Destination: (broadcast) 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Waiting for signal to reach message bus 920s # Step 4: emitting signal 920s # Sender: attacker 920s # Destination: subscriber :1.0 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Waiting for signal to reach message bus 920s # Step 5: emitting signal 920s # Sender: service 920s # Destination: (broadcast) 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Waiting for signal to reach message bus 920s # Step 6: claiming bus name 920s # Name: org.gtk.Test.OwnedLater 920s # Owner: service 920s # Step 7: emitting signal 920s # Sender: service 920s # Destination: (broadcast) 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Waiting for signal to reach message bus 920s # Signal received from service :1.1 920s # Signal received from service :1.1 via proxy 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Sent in step: 5 920s # Signal received from service :1.1 920s # Signal received from service :1.1 via proxy 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Sent in step: 7 920s # Signal received from service :1.1 920s # Signal received from service :1.1 via proxy 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Sent in step: 7 920s # Received Finished signal from subscriber :1.0 920s # Received Finished signal from service :1.1 920s # Received Finished signal from service 2 :1.2 920s # Received Finished signal from attacker :1.3 920s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 920s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 920s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 920s # Signal from step 5 was received 1 times by GDBusProxy, expected 1 920s # NameOwnerChanged from step 6 was received 0 times by GDBusProxy, expected 0 920s # Signal from step 7 was received 2 times by GDBusProxy, expected 2 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s ok 14 /gdbus/subscribe/proxy/limit_by_well_known_name 920s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/home 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/cache 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-config1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-config2 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/config 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-data1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-data2 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/data 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/state 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/runtime 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 920s # subscriber is :1.0 920s # service is :1.1 920s # service 2 is :1.2 920s # attacker is :1.3 920s # Waiting for AddMatch to be processed 920s # /gdbus/subscribe/proxy/limit_to_message_bus summary: A subscription to the message bus only accepts messages from the message bus 920s # Step 0: adding subscription 920s # Sender: org.freedesktop.DBus 920s # Path: /org/freedesktop/DBus 920s # Interface: org.freedesktop.DBus 920s # Member: (any) 920s # String argument 0: (any) 920s # Flags: 0 920s # Subscribing via proxy 920s # Waiting for AddMatch to be processed 920s # Step 1: emitting signal 920s # Sender: attacker 920s # Destination: (broadcast) 920s # Path: /org/freedesktop/DBus 920s # Interface: org.freedesktop.DBus 920s # Member: NameOwnerChanged 920s # String argument 0: would I lie to you? 920s # Waiting for signal to reach message bus 920s # Step 2: emitting signal 920s # Sender: attacker 920s # Destination: subscriber :1.0 920s # Path: /org/freedesktop/DBus 920s # Interface: org.freedesktop.DBus 920s # Member: NameOwnerChanged 920s # Waiting for signal to reach message bus 920s # Step 3: claiming bus name 920s # Name: org.gtk.Test.OwnedLater 920s # Owner: service 920s # Signal received from message bus org.freedesktop.DBus 920s # Signal received from (unused) org.freedesktop.DBus via proxy 920s # Path: /org/freedesktop/DBus 920s # Interface: org.freedesktop.DBus 920s # Member: NameOwnerChanged 920s # Received Finished signal from subscriber :1.0 920s # Received Finished signal from service :1.1 920s # Received Finished signal from service 2 :1.2 920s # Received Finished signal from attacker :1.3 920s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 920s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 920s # NameOwnerChanged from step 3 was received 1 times by GDBusProxy, expected 1 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s ok 15 /gdbus/subscribe/proxy/limit_to_message_bus 920s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/home 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/cache 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-config1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-config2 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/config 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-data1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-data2 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/data 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/state 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/runtime 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 920s # subscriber is :1.0 920s # service is :1.1 920s # service 2 is :1.2 920s # attacker is :1.3 920s # Waiting for AddMatch to be processed 920s # /gdbus/subscribe/proxy/unsubscribe_immediately summary: Unsubscribing before GetNameOwner can return doesn't result in a crash 920s # Step 0: claiming bus name 920s # Name: org.gtk.Test.AlreadyOwned 920s # Owner: service 920s # Step 1: adding subscription 920s # Sender: org.gtk.Test.AlreadyOwned 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: (any) 920s # String argument 0: (any) 920s # Flags: 0 920s # Subscribing via proxy 920s # Waiting for AddMatch to be processed 920s # Step 2: emitting signal 920s # Sender: service 920s # Destination: (broadcast) 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Waiting for signal to reach message bus 920s # Signal received from service :1.1 920s # Signal received from service :1.1 via proxy 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Sent in step: 2 920s # Received Finished signal from subscriber :1.0 920s # Received Finished signal from service :1.1 920s # Received Finished signal from service 2 :1.2 920s # Received Finished signal from attacker :1.3 920s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 920s # Signal from step 2 was received 1 times by GDBusProxy, expected 1 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s ok 16 /gdbus/subscribe/proxy/unsubscribe_immediately 920s # End of proxy tests 920s # Start of parallel tests 920s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/simple/.dirs/home 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/simple/.dirs/cache 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/simple/.dirs/system-config1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/simple/.dirs/system-config2 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/simple/.dirs/config 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/simple/.dirs/system-data1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/simple/.dirs/system-data2 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/simple/.dirs/data 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/simple/.dirs/state 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/simple/.dirs/runtime 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 920s # subscriber is :1.0 920s # service is :1.1 920s # service 2 is :1.2 920s # attacker is :1.3 920s # Waiting for AddMatch to be processed 920s # /gdbus/subscribe/parallel/simple summary: A broadcast is only received after subscribing to it 920s # Step 0: emitting signal 920s # Sender: service 920s # Destination: (broadcast) 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Waiting for signal to reach message bus 920s # Step 1: adding subscription 920s # Sender: (any) 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: (any) 920s # String argument 0: (any) 920s # Flags: 0 920s # Subscribing via connection 920s # Cannot subscribe via proxy: no bus name 920s # Waiting for AddMatch to be processed 920s # Step 2: emitting signal 920s # Sender: service 920s # Destination: (broadcast) 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Waiting for signal to reach message bus 920s # Signal received from service :1.1 920s # Signal received from service :1.1 via connection 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Sent in step: 2 920s # Received Finished signal from subscriber :1.0 920s # Received Finished signal from service :1.1 920s # Received Finished signal from service 2 :1.2 920s # Received Finished signal from attacker :1.3 920s # Signal from step 0 was received 0 times by GDBusConnection, expected 0 920s # Signal from step 0 was received 0 times by GDBusProxy, expected 0 920s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 920s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s ok 17 /gdbus/subscribe/parallel/simple 920s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/home 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/cache 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-config1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-config2 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/config 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-data1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-data2 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/data 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/state 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/runtime 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 920s # subscriber is :1.0 920s # service is :1.1 920s # service 2 is :1.2 920s # attacker is :1.3 920s # Waiting for AddMatch to be processed 920s # /gdbus/subscribe/parallel/broadcast_from_anyone summary: A subscription with NULL sender accepts broadcast and unicast 920s # Step 0: adding subscription 920s # Sender: (any) 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: (any) 920s # String argument 0: (any) 920s # Flags: 0 920s # Subscribing via connection 920s # Cannot subscribe via proxy: no bus name 920s # Waiting for AddMatch to be processed 920s # Step 1: emitting signal 920s # Sender: service 920s # Destination: (broadcast) 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Waiting for signal to reach message bus 920s # Step 2: emitting signal 920s # Sender: service 2 920s # Destination: (broadcast) 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Waiting for signal to reach message bus 920s # Step 3: emitting signal 920s # Sender: service 920s # Destination: subscriber :1.0 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Waiting for signal to reach message bus 920s # Step 4: emitting signal 920s # Sender: service 2 920s # Destination: subscriber :1.0 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Waiting for signal to reach message bus 920s # Signal received from service :1.1 920s # Signal received from service :1.1 via connection 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Sent in step: 1 920s # Signal received from service 2 :1.2 920s # Signal received from service 2 :1.2 via connection 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Sent in step: 2 920s # Signal received from service :1.1 920s # Signal received from service :1.1 via connection 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Sent in step: 3 920s # Signal received from service 2 :1.2 920s # Signal received from service 2 :1.2 via connection 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Sent in step: 4 920s # Received Finished signal from subscriber :1.0 920s # Received Finished signal from service :1.1 920s # Received Finished signal from service 2 :1.2 920s # Received Finished signal from attacker :1.3 920s # Signal from step 1 was received 1 times by GDBusConnection, expected 1 920s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 920s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 920s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 920s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 920s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 920s # Signal from step 4 was received 1 times by GDBusConnection, expected 1 920s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s ok 18 /gdbus/subscribe/parallel/broadcast_from_anyone 920s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/match_twice/.dirs/home 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/match_twice/.dirs/cache 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/match_twice/.dirs/system-config1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/match_twice/.dirs/system-config2 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/match_twice/.dirs/config 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/match_twice/.dirs/system-data1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/match_twice/.dirs/system-data2 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/match_twice/.dirs/data 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/match_twice/.dirs/state 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/match_twice/.dirs/runtime 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 920s # subscriber is :1.0 920s # service is :1.1 920s # service 2 is :1.2 920s # attacker is :1.3 920s # Waiting for AddMatch to be processed 920s # /gdbus/subscribe/parallel/match_twice summary: A message matching more than one subscription is received once per subscription 920s # Step 0: adding subscription 920s # Sender: service :1.1 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: (any) 920s # String argument 0: (any) 920s # Flags: 0 920s # Subscribing via connection 920s # Subscribing via proxy 920s # Waiting for AddMatch to be processed 920s # Step 1: adding subscription 920s # Sender: (any) 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: (any) 920s # Member: (any) 920s # String argument 0: (any) 920s # Flags: 0 920s # Subscribing via connection 920s # Cannot subscribe via proxy: no bus name 920s # Waiting for AddMatch to be processed 920s # Step 2: adding subscription 920s # Sender: (any) 920s # Path: (any) 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: (any) 920s # String argument 0: (any) 920s # Flags: 0 920s # Subscribing via connection 920s # Cannot subscribe via proxy: no bus name 920s # Waiting for AddMatch to be processed 920s # Step 3: adding subscription 920s # Sender: service :1.1 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: (any) 920s # String argument 0: (any) 920s # Flags: 0 920s # Subscribing via connection 920s # Subscribing via proxy 920s # Waiting for AddMatch to be processed 920s # Step 4: emitting signal 920s # Sender: service 920s # Destination: (broadcast) 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Waiting for signal to reach message bus 920s # Signal received from service :1.1 920s # Signal received from service :1.1 via connection 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Sent in step: 4 920s # Signal received from service :1.1 920s # Signal received from service :1.1 via proxy 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Sent in step: 4 920s # Signal received from service :1.1 920s # Signal received from service :1.1 via connection 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Sent in step: 4 920s # Signal received from service :1.1 920s # Signal received from service :1.1 via proxy 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Sent in step: 4 920s # Signal received from service :1.1 920s # Signal received from service :1.1 via connection 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Sent in step: 4 920s # Signal received from service :1.1 920s # Signal received from service :1.1 via connection 920s # Path: /org/gtk/GDBus/ExampleInterface 920s # Interface: org.gtk.GDBus.ExampleInterface 920s # Member: Foo 920s # Argument 0: (not a string) 920s # Sent in step: 4 920s # Received Finished signal from subscriber :1.0 920s # Received Finished signal from service :1.1 920s # Received Finished signal from service 2 :1.2 920s # Received Finished signal from attacker :1.3 920s # Signal from step 4 was received 4 times by GDBusConnection, expected 4 920s # Signal from step 4 was received 2 times by GDBusProxy, expected 2 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 920s ok 19 /gdbus/subscribe/parallel/match_twice 920s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/home 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/cache 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-config2 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/config 920s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-data2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/data 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/state 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/runtime 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 921s # subscriber is :1.0 921s # service is :1.1 921s # service 2 is :1.2 921s # attacker is :1.3 921s # Waiting for AddMatch to be processed 921s # /gdbus/subscribe/parallel/limit_by_unique_name summary: A subscription via a unique name only accepts messages sent by that same unique name 921s # Step 0: adding subscription 921s # Sender: service :1.1 921s # Path: /org/gtk/GDBus/ExampleInterface 921s # Interface: org.gtk.GDBus.ExampleInterface 921s # Member: (any) 921s # String argument 0: (any) 921s # Flags: 0 921s # Subscribing via connection 921s # Subscribing via proxy 921s # Waiting for AddMatch to be processed 921s # Step 1: emitting signal 921s # Sender: attacker 921s # Destination: (broadcast) 921s # Path: /org/gtk/GDBus/ExampleInterface 921s # Interface: org.gtk.GDBus.ExampleInterface 921s # Member: Foo 921s # Argument 0: (not a string) 921s # Waiting for signal to reach message bus 921s # Step 2: emitting signal 921s # Sender: attacker 921s # Destination: subscriber :1.0 921s # Path: /org/gtk/GDBus/ExampleInterface 921s # Interface: org.gtk.GDBus.ExampleInterface 921s # Member: Foo 921s # Argument 0: (not a string) 921s # Waiting for signal to reach message bus 921s # Step 3: emitting signal 921s # Sender: service 921s # Destination: (broadcast) 921s # Path: /org/gtk/GDBus/ExampleInterface 921s # Interface: org.gtk.GDBus.ExampleInterface 921s # Member: Foo 921s # Argument 0: (not a string) 921s # Waiting for signal to reach message bus 921s # Signal received from service :1.1 921s # Signal received from service :1.1 via connection 921s # Path: /org/gtk/GDBus/ExampleInterface 921s # Interface: org.gtk.GDBus.ExampleInterface 921s # Member: Foo 921s # Argument 0: (not a string) 921s # Sent in step: 3 921s # Signal received from service :1.1 921s # Signal received from service :1.1 via proxy 921s # Path: /org/gtk/GDBus/ExampleInterface 921s # Interface: org.gtk.GDBus.ExampleInterface 921s # Member: Foo 921s # Argument 0: (not a string) 921s # Sent in step: 3 921s # Received Finished signal from subscriber :1.0 921s # Received Finished signal from service :1.1 921s # Received Finished signal from service 2 :1.2 921s # Received Finished signal from attacker :1.3 921s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 921s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 921s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 921s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 921s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 921s # Signal from step 3 was received 1 times by GDBusProxy, expected 1 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s ok 20 /gdbus/subscribe/parallel/limit_by_unique_name 921s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/home 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/cache 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-config2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/config 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-data2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/data 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/state 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/runtime 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 921s # subscriber is :1.0 921s # service is :1.1 921s # service 2 is :1.2 921s # attacker is :1.3 921s # Waiting for AddMatch to be processed 921s # /gdbus/subscribe/parallel/nonexistent_unique_name summary: A subscription via a unique name that doesn't exist accepts no messages 921s # Step 0: adding subscription 921s # Sender: :0.this.had.better.not.exist 921s # Path: /org/gtk/GDBus/ExampleInterface 921s # Interface: org.gtk.GDBus.ExampleInterface 921s # Member: (any) 921s # String argument 0: (any) 921s # Flags: 0 921s # Subscribing via connection 921s # Subscribing via proxy 921s # Waiting for AddMatch to be processed 921s # Step 1: emitting signal 921s # Sender: attacker 921s # Destination: (broadcast) 921s # Path: /org/gtk/GDBus/ExampleInterface 921s # Interface: org.gtk.GDBus.ExampleInterface 921s # Member: Foo 921s # Argument 0: (not a string) 921s # Waiting for signal to reach message bus 921s # Step 2: emitting signal 921s # Sender: attacker 921s # Destination: subscriber :1.0 921s # Path: /org/gtk/GDBus/ExampleInterface 921s # Interface: org.gtk.GDBus.ExampleInterface 921s # Member: Foo 921s # Argument 0: (not a string) 921s # Waiting for signal to reach message bus 921s # Received Finished signal from subscriber :1.0 921s # Received Finished signal from service :1.1 921s # Received Finished signal from service 2 :1.2 921s # Received Finished signal from attacker :1.3 921s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 921s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 921s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 921s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s ok 21 /gdbus/subscribe/parallel/nonexistent_unique_name 921s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/home 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/cache 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-config2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/config 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-data2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/data 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/state 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/runtime 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 921s # subscriber is :1.0 921s # service is :1.1 921s # service 2 is :1.2 921s # attacker is :1.3 921s # Waiting for AddMatch to be processed 921s # /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 921s # Step 0: claiming bus name 921s # Name: org.gtk.Test.AlreadyOwned 921s # Owner: service 921s # Step 1: adding subscription 921s # Sender: org.gtk.Test.AlreadyOwned 921s # Path: /org/gtk/GDBus/ExampleInterface 921s # Interface: org.gtk.GDBus.ExampleInterface 921s # Member: (any) 921s # String argument 0: (any) 921s # Flags: 0 921s # Subscribing via connection 921s # Subscribing via proxy 921s # Waiting for AddMatch to be processed 921s # Step 2: adding subscription 921s # Sender: org.gtk.Test.OwnedLater 921s # Path: /org/gtk/GDBus/ExampleInterface 921s # Interface: org.gtk.GDBus.ExampleInterface 921s # Member: (any) 921s # String argument 0: (any) 921s # Flags: 0 921s # Subscribing via connection 921s # Subscribing via proxy 921s # Waiting for AddMatch to be processed 921s # Step 3: emitting signal 921s # Sender: attacker 921s # Destination: (broadcast) 921s # Path: /org/gtk/GDBus/ExampleInterface 921s # Interface: org.gtk.GDBus.ExampleInterface 921s # Member: Foo 921s # Argument 0: (not a string) 921s # Waiting for signal to reach message bus 921s # Step 4: emitting signal 921s # Sender: attacker 921s # Destination: subscriber :1.0 921s # Path: /org/gtk/GDBus/ExampleInterface 921s # Interface: org.gtk.GDBus.ExampleInterface 921s # Member: Foo 921s # Argument 0: (not a string) 921s # Waiting for signal to reach message bus 921s # Step 5: emitting signal 921s # Sender: service 921s # Destination: (broadcast) 921s # Path: /org/gtk/GDBus/ExampleInterface 921s # Interface: org.gtk.GDBus.ExampleInterface 921s # Member: Foo 921s # Argument 0: (not a string) 921s # Waiting for signal to reach message bus 921s # Step 6: claiming bus name 921s # Name: org.gtk.Test.OwnedLater 921s # Owner: service 921s # Step 7: emitting signal 921s # Sender: service 921s # Destination: (broadcast) 921s # Path: /org/gtk/GDBus/ExampleInterface 921s # Interface: org.gtk.GDBus.ExampleInterface 921s # Member: Foo 921s # Argument 0: (not a string) 921s # Waiting for signal to reach message bus 921s # Signal received from service :1.1 921s # Signal received from service :1.1 via connection 921s # Path: /org/gtk/GDBus/ExampleInterface 921s # Interface: org.gtk.GDBus.ExampleInterface 921s # Member: Foo 921s # Argument 0: (not a string) 921s # Sent in step: 5 921s # Signal received from service :1.1 921s # Signal received from service :1.1 via proxy 921s # Path: /org/gtk/GDBus/ExampleInterface 921s # Interface: org.gtk.GDBus.ExampleInterface 921s # Member: Foo 921s # Argument 0: (not a string) 921s # Sent in step: 5 921s # Signal received from service :1.1 921s # Signal received from service :1.1 via connection 921s # Path: /org/gtk/GDBus/ExampleInterface 921s # Interface: org.gtk.GDBus.ExampleInterface 921s # Member: Foo 921s # Argument 0: (not a string) 921s # Sent in step: 7 921s # Signal received from service :1.1 921s # Signal received from service :1.1 via proxy 921s # Path: /org/gtk/GDBus/ExampleInterface 921s # Interface: org.gtk.GDBus.ExampleInterface 921s # Member: Foo 921s # Argument 0: (not a string) 921s # Sent in step: 7 921s # Signal received from service :1.1 921s # Signal received from service :1.1 via connection 921s # Path: /org/gtk/GDBus/ExampleInterface 921s # Interface: org.gtk.GDBus.ExampleInterface 921s # Member: Foo 921s # Argument 0: (not a string) 921s # Sent in step: 7 921s # Signal received from service :1.1 921s # Signal received from service :1.1 via proxy 921s # Path: /org/gtk/GDBus/ExampleInterface 921s # Interface: org.gtk.GDBus.ExampleInterface 921s # Member: Foo 921s # Argument 0: (not a string) 921s # Sent in step: 7 921s # Received Finished signal from subscriber :1.0 921s # Received Finished signal from service :1.1 921s # Received Finished signal from service 2 :1.2 921s # Received Finished signal from attacker :1.3 921s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 921s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 921s # Signal from step 3 was received 0 times by GDBusConnection, expected 0 921s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 921s # Signal from step 4 was received 0 times by GDBusConnection, expected 0 921s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 921s # Signal from step 5 was received 1 times by GDBusConnection, expected 1 921s # Signal from step 5 was received 1 times by GDBusProxy, expected 1 921s # NameOwnerChanged from step 6 was received 0 times by GDBusConnection, expected 0 921s # NameOwnerChanged from step 6 was received 0 times by GDBusProxy, expected 0 921s # Signal from step 7 was received 2 times by GDBusConnection, expected 2 921s # Signal from step 7 was received 2 times by GDBusProxy, expected 2 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s ok 22 /gdbus/subscribe/parallel/limit_by_well_known_name 921s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/home 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/cache 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-config1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-config2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/config 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-data1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-data2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/data 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/state 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/runtime 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 921s # subscriber is :1.0 921s # service is :1.1 921s # service 2 is :1.2 921s # attacker is :1.3 921s # Waiting for AddMatch to be processed 921s # /gdbus/subscribe/parallel/limit_to_message_bus summary: A subscription to the message bus only accepts messages from the message bus 921s # Step 0: adding subscription 921s # Sender: org.freedesktop.DBus 921s # Path: /org/freedesktop/DBus 921s # Interface: org.freedesktop.DBus 921s # Member: (any) 921s # String argument 0: (any) 921s # Flags: 0 921s # Subscribing via connection 921s # Subscribing via proxy 921s # Waiting for AddMatch to be processed 921s # Step 1: emitting signal 921s # Sender: attacker 921s # Destination: (broadcast) 921s # Path: /org/freedesktop/DBus 921s # Interface: org.freedesktop.DBus 921s # Member: NameOwnerChanged 921s # String argument 0: would I lie to you? 921s # Waiting for signal to reach message bus 921s # Step 2: emitting signal 921s # Sender: attacker 921s # Destination: subscriber :1.0 921s # Path: /org/freedesktop/DBus 921s # Interface: org.freedesktop.DBus 921s # Member: NameOwnerChanged 921s # Waiting for signal to reach message bus 921s # Step 3: claiming bus name 921s # Name: org.gtk.Test.OwnedLater 921s # Owner: service 921s # Signal received from message bus org.freedesktop.DBus 921s # Signal received from (unused) org.freedesktop.DBus via connection 921s # Path: /org/freedesktop/DBus 921s # Interface: org.freedesktop.DBus 921s # Member: NameOwnerChanged 921s # Signal received from message bus org.freedesktop.DBus 921s # Signal received from (unused) org.freedesktop.DBus via proxy 921s # Path: /org/freedesktop/DBus 921s # Interface: org.freedesktop.DBus 921s # Member: NameOwnerChanged 921s # Received Finished signal from subscriber :1.0 921s # Received Finished signal from service :1.1 921s # Received Finished signal from service 2 :1.2 921s # Received Finished signal from attacker :1.3 921s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 921s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 921s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 921s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 921s # NameOwnerChanged from step 3 was received 1 times by GDBusConnection, expected 1 921s # NameOwnerChanged from step 3 was received 1 times by GDBusProxy, expected 1 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s ok 23 /gdbus/subscribe/parallel/limit_to_message_bus 921s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/home 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/cache 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-config1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-config2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/config 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-data1:/tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-data2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/data 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/state 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6MUB62/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/runtime 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 921s # subscriber is :1.0 921s # service is :1.1 921s # service 2 is :1.2 921s # attacker is :1.3 921s # Waiting for AddMatch to be processed 921s # /gdbus/subscribe/parallel/unsubscribe_immediately summary: Unsubscribing before GetNameOwner can return doesn't result in a crash 921s # Step 0: claiming bus name 921s # Name: org.gtk.Test.AlreadyOwned 921s # Owner: service 921s # Step 1: adding subscription 921s # Sender: org.gtk.Test.AlreadyOwned 921s # Path: /org/gtk/GDBus/ExampleInterface 921s # Interface: org.gtk.GDBus.ExampleInterface 921s # Member: (any) 921s # String argument 0: (any) 921s # Flags: 0 921s # Subscribing via connection 921s # Immediately unsubscribing 921s # Subscribing via proxy 921s # Waiting for AddMatch to be processed 921s # Step 2: emitting signal 921s # Sender: service 921s # Destination: (broadcast) 921s # Path: /org/gtk/GDBus/ExampleInterface 921s # Interface: org.gtk.GDBus.ExampleInterface 921s # Member: Foo 921s # Argument 0: (not a string) 921s # Waiting for signal to reach message bus 921s # Signal received from service :1.1 921s # Signal received from service :1.1 via proxy 921s # Path: /org/gtk/GDBus/ExampleInterface 921s # Interface: org.gtk.GDBus.ExampleInterface 921s # Member: Foo 921s # Argument 0: (not a string) 921s # Sent in step: 2 921s # Received Finished signal from subscriber :1.0 921s # Received Finished signal from service :1.1 921s # Received Finished signal from service 2 :1.2 921s # Received Finished signal from attacker :1.3 921s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 921s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 921s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 921s # Signal from step 2 was received 1 times by GDBusProxy, expected 1 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s ok 24 /gdbus/subscribe/parallel/unsubscribe_immediately 921s # End of parallel tests 921s # End of subscribe tests 921s # End of gdbus tests 921s ok - glib/gdbus-subscribe.test 921s # Running test: glib/utils-c-11.test 921s TAP version 14 921s # random seed: R02Sd082e8c44bf8f98d67bc66e86bd59b7d 921s 1..41 921s # Start of utils tests 921s ok 1 /utils/language-names 921s ok 2 /utils/locale-variants 921s ok 3 /utils/version 921s ok 4 /utils/appname 921s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 921s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 921s ok 5 /utils/prgname-thread-safety 921s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 921s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 921s ok 6 /utils/tmpdir 921s ok 7 /utils/basic_bits 921s ok 8 /utils/bits 921s ok 9 /utils/swap 921s ok 10 /utils/find-program 921s ok 11 /utils/find-program-for-path 921s ok 12 /utils/debug 921s ok 13 /utils/codeset 921s ok 14 /utils/codeset2 921s ok 15 /utils/console-charset 921s ok 16 /utils/gettext 921s ok 17 /utils/username 921s ok 18 /utils/realname 921s ok 19 /utils/hostname 921s ok 20 /utils/xdgdirs 921s ok 21 /utils/specialdir 921s # NAME: Ubuntu 921s ok 22 /utils/os-info 921s ok 23 /utils/clear-pointer 921s ok 24 /utils/clear-pointer-cast 921s ok 25 /utils/take-pointer 921s ok 26 /utils/clear-source 921s ok 27 /utils/misc-mem 921s # /utils/aligned-mem summary: Aligned memory allocator 921s # Alignment must not be zero 921s # Alignment must be a power of two 921s # Alignment must be a multiple of sizeof(void*) 921s ok 28 /utils/aligned-mem 921s # /utils/free-sized summary: Check that g_free_sized() works 921s ok 29 /utils/free-sized 921s ok 30 /utils/nullify 921s ok 31 /utils/atexit 921s ok 32 /utils/check-setuid 921s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 921s ok 33 /utils/int-limits 921s ok 34 /utils/clear-list 921s ok 35 /utils/clear-slist 921s ok 36 /utils/steal-handle-id 921s # Start of specialdir tests 921s ok 37 /utils/specialdir/desktop 921s # End of specialdir tests 921s # Start of clear-pointer tests 921s ok 38 /utils/clear-pointer/side-effects 921s # End of clear-pointer tests 921s # Start of aligned-mem tests 921s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 921s ok 39 /utils/aligned-mem/alignment 921s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 921s ok 40 /utils/aligned-mem/zeroed 921s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 921s ok 41 /utils/aligned-mem/free-sized 921s # Start of subprocess tests 921s # End of subprocess tests 921s # End of aligned-mem tests 921s # End of utils tests 921s ok - glib/utils-c-11.test 921s # Running test: glib/queue.test 921s TAP version 14 921s # random seed: R02S07b5792595aa7bae1ec5ecd6432de207 921s 1..12 921s # Start of queue tests 921s ok 1 /queue/basic 921s ok 2 /queue/copy 921s ok 3 /queue/off-by-one 921s ok 4 /queue/find-custom 921s ok 5 /queue/static 921s ok 6 /queue/clear 921s ok 7 /queue/free-full 921s ok 8 /queue/clear-full 921s ok 9 /queue/insert-sibling-link 921s ok 10 /queue/push-nth-link 921s # Start of clear-full tests 921s ok 11 /queue/clear-full/noop 921s # End of clear-full tests 921s # Start of random tests 921s ok - glib/queue.test 921s ok 12 /queue/random/seed:1007205169 921s # End of random tests 921s # End of queue tests 921s # Running test: glib/bitlock.test 921s TAP version 14 921s # random seed: R02S9cbde5e700195ced44e74fadf3394150 921s 1..1 921s # Start of bitlock tests 921s # Start of performance tests 921s # max perf: iterations per second 921s ok 1 /bitlock/performance/uncontended 921s # End of performance tests 921s # End of bitlock tests 921s ok - glib/bitlock.test 921s TAP version 14 921s # random seed: R02Sb4304caf6fa47de0e74b3173efbcfef0 921s 1..11 921s # Start of proxy tests 921s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestProxyResolver) for ?gio-proxy-resolver? 921s ok 1 /proxy/direct_sync 921s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 921s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xbad25c1c8840 and GSocketClientAsyncConnectData 0xbad25c1c7db0 921s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 921s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 921s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xbad25c1c9170 for GSocketClientAsyncConnectData 0xbad25c1c7db0 921s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 921s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 921s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 921s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 921s ok 2 /proxy/direct_async 921s ok 3 /proxy/single_sync 921s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 921s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xbad25c1c8ce0 and GSocketClientAsyncConnectData 0xbad25c1c7db0 921s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 921s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 921s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xbad25c1c9840 for GSocketClientAsyncConnectData 0xbad25c1c7db0 921s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 921s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 921s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 921s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 921s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 921s ok 4 /proxy/single_async 921s ok 5 /proxy/multiple_sync 921s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 921s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xbad25c1c8f70 and GSocketClientAsyncConnectData 0xbad25c1c8f00 921s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 921s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 921s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xbad25c1caba0 for GSocketClientAsyncConnectData 0xbad25c1c8f00 921s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 921s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 921s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 921s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 921s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 921s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 921s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xbad25c1cab40 for GSocketClientAsyncConnectData 0xbad25c1c8f00 921s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 921s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 921s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 921s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 921s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 921s ok 6 /proxy/multiple_async 921s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2597 921s ok 7 /proxy/invalid-uris-sync 921s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2597 921s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 921s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xbad25c1c8b30 and GSocketClientAsyncConnectData 0xbad25c1cad60 921s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 921s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 921s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: Unspecified proxy lookup failure 921s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unspecified proxy lookup failure 921s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 921s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xbad25c1c8ce0 and GSocketClientAsyncConnectData 0xbad25c1c8f00 921s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 921s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 921s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: Unspecified proxy lookup failure 921s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unspecified proxy lookup failure 921s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 921s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xbad25c1c8b30 and GSocketClientAsyncConnectData 0xbad25c1cad60 921s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 921s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 921s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xbad25c1c91d0 for GSocketClientAsyncConnectData 0xbad25c1cad60 921s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 921s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 921s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 921s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 921s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 921s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xbad25c1c8ce0 and GSocketClientAsyncConnectData 0xbad25c1cad60 921s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 921s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 921s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xbad25c1cadd0 for GSocketClientAsyncConnectData 0xbad25c1cad60 921s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 921s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 921s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 921s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 921s ok 8 /proxy/invalid-uris-async 921s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 921s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xbad25c1c8840 and GSocketClientAsyncConnectData 0xbad25c1cad60 921s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 921s # GLib-GIO-DEBUG: IPv6 DNS error: Not found 921s # GLib-GIO-DEBUG: IPv4 DNS error: Not found 921s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 921s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: Not found 921s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Not found 921s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 921s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xbad25c1cb400 and GSocketClientAsyncConnectData 0xbad25c1c90c0 921s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 921s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 921s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xbad25c1caba0 for GSocketClientAsyncConnectData 0xbad25c1c90c0 921s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 921s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 921s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 921s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 921s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 921s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 921s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: (null) 921s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unsupported protocol 921s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 921s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xbad25c1c8b30 and GSocketClientAsyncConnectData 0xbad25c1c8f00 921s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 921s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 921s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xbad25c1cadd0 for GSocketClientAsyncConnectData 0xbad25c1c8f00 921s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 921s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 921s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 921s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 921s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 921s ok 9 /proxy/dns 921s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 921s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xbad25c1c8840 and GSocketClientAsyncConnectData 0xbad25c1c8f00 921s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 921s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 921s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xbad25c1ca2c0 for GSocketClientAsyncConnectData 0xbad25c1c8f00 921s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 921s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 921s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 921s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 921s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 921s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 921s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: (null) 921s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unsupported protocol 921s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 921s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xbad25c1c8b30 and GSocketClientAsyncConnectData 0xbad25c1c8da0 921s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 921s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 921s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xbad25c1ca2c0 for GSocketClientAsyncConnectData 0xbad25c1c8da0 921s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 921s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 921s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 921s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 921s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 921s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 921s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xbad25c1c8840 and GSocketClientAsyncConnectData 0xbad25c1cad60 921s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 921s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 921s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xbad25c1caae0 for GSocketClientAsyncConnectData 0xbad25c1cad60 921s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 921s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 921s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 921s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 921s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 921s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 921s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: (null) 921s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unsupported protocol 921s ok 10 /proxy/override 921s ok 11 /proxy/enumerator-ports 921s # End of proxy tests 921s TAP version 14 921s # random seed: R02S448d53ede5c15c0a1c79ab299c911795 921s 1..238 921s # Start of utf8 tests 921s # Vector 0 921s # Vector 1 921s # Vector 2 921s # Vector 3 921s # Vector 4 921s # Vector 5 921s # Vector 6 921s # Vector 7 921s # Vector 8 921s # Vector 9 921s # Vector 10 921s # Vector 11 921s # Vector 12 921s # Vector 13 921s # Vector 14 921s # Vector 15 921s # Vector 16 921s # Vector 17 921s # Vector 18 921s # Vector 19 921s # Vector 20 921s # Vector 21 921s # Vector 22 921s # Vector 23 921s # Vector 24 921s # Vector 25 921s # Vector 26 921s # Vector 27 921s ok 1 /utf8/get-char-validated 921s # Start of validate tests 921s ok 2 /utf8/validate/0 921s ok 3 /utf8/validate/1 921s ok 4 /utf8/validate/2 921s ok 5 /utf8/validate/3 921s ok 6 /utf8/validate/4 921s ok 7 /utf8/validate/5 921s ok 8 /utf8/validate/6 921s ok 9 /utf8/validate/7 921s ok 10 /utf8/validate/8 921s ok 11 /utf8/validate/9 921s ok 12 /utf8/validate/10 921s ok 13 /utf8/validate/11 921s ok 14 /utf8/validate/12 921s ok 15 /utf8/validate/13 921s ok 16 /utf8/validate/14 921s ok 17 /utf8/validate/15 921s ok 18 /utf8/validate/16 921s ok 19 /utf8/validate/17 921s ok 20 /utf8/validate/18 921s ok 21 /utf8/validate/19 921s ok 22 /utf8/validate/20 921s ok 23 /utf8/validate/21 921s ok 24 /utf8/validate/22 921s ok 25 /utf8/validate/23 921s ok 26 /utf8/validate/24 921s ok 27 /utf8/validate/25 921s ok 28 /utf8/validate/26 921s ok 29 /utf8/validate/27 921s ok 30 /utf8/validate/28 921s ok 31 /utf8/validate/29 921s ok 32 /utf8/validate/30 921s ok 33 /utf8/validate/31 921s ok 34 /utf8/validate/32 921s ok 35 /utf8/validate/33 921s ok 36 /utf8/validate/34 921s ok 37 /utf8/validate/35 921s ok 38 /utf8/validate/36 921s ok 39 /utf8/validate/37 921s ok 40 /utf8/validate/38 921s ok 41 /utf8/validate/39 921s ok 42 /utf8/validate/40 921s ok 43 /utf8/validate/41 921s ok 44 /utf8/validate/42 921s ok 45 /utf8/validate/43 921s ok 46 /utf8/validate/44 921s ok 47 /utf8/validate/45 921s ok 48 /utf8/validate/46 921s ok 49 /utf8/validate/47 921s ok 50 /utf8/validate/48 921s ok 51 /utf8/validate/49 921s ok 52 /utf8/validate/50 921s ok 53 /utf8/validate/51 921s ok 54 /utf8/validate/52 921s ok 55 /utf8/validate/53 921s ok 56 /utf8/validate/54 921s ok 57 /utf8/validate/55 921s ok 58 /utf8/validate/56 921s ok 59 /utf8/validate/57 921s ok 60 /utf8/validate/58 921s ok 61 /utf8/validate/59 921s ok 62 /utf8/validate/60 921s ok 63 /utf8/validate/61 921s ok 64 /utf8/validate/62 921s ok 65 /utf8/validate/63 921s ok 66 /utf8/validate/64 921s ok 67 /utf8/validate/65 921s ok 68 /utf8/validate/66 921s ok 69 /utf8/validate/67 921s ok 70 /utf8/validate/68 921s ok 71 /utf8/validate/69 921s ok 72 /utf8/validate/70 921s ok 73 /utf8/validate/71 921s ok 74 /utf8/validate/72 921s ok 75 /utf8/validate/73 921s ok 76 /utf8/validate/74 921s ok 77 /utf8/validate/75 921s ok 78 /utf8/validate/76 921s ok 79 /utf8/validate/77 921s ok 80 /utf8/validate/78 921s ok 81 /utf8/validate/79 921s ok 82 /utf8/validate/80 921s ok 83 /utf8/validate/81 921s ok 84 /utf8/validate/82 921s ok 85 /utf8/validate/83 921s ok 86 /utf8/validate/84 921s ok 87 /utf8/validate/85 921s ok 88 /utf8/validate/86 921s ok 89 /utf8/validate/87 921s ok 90 /utf8/validate/88 921s ok 91 /utf8/validate/89 921s ok 92 /utf8/validate/90 921s ok 93 /utf8/validate/91 921s ok 94 /utf8/validate/92 921s ok 95 /utf8/validate/93 921s ok 96 /utf8/validate/94 921s ok 97 /utf8/validate/95 921s ok 98 /utf8/validate/96 921s ok 99 /utf8/validate/97 921s ok 100 /utf8/validate/98 921s ok 101 /utf8/validate/99 921s ok 102 /utf8/validate/100 921s ok 103 /utf8/validate/101 921s ok 104 /utf8/validate/102 921s ok 105 /utf8/validate/103 921s ok 106 /utf8/validate/104 921s ok 107 /utf8/validate/105 921s ok 108 /utf8/validate/106 921s ok 109 /utf8/validate/107 921s ok 110 /utf8/validate/108 921s ok 111 /utf8/validate/109 921s ok 112 /utf8/validate/110 921s ok 113 /utf8/validate/111 921s ok 114 /utf8/validate/112 921s ok 115 /utf8/validate/113 921s ok 116 /utf8/validate/114 921s ok 117 /utf8/validate/115 921s ok 118 /utf8/validate/116 921s ok 119 /utf8/validate/117 921s ok 120 /utf8/validate/118 921s ok 121 /utf8/validate/119 921s ok 122 /utf8/validate/120 921s ok 123 /utf8/validate/121 921s ok 124 /utf8/validate/122 921s ok 125 /utf8/validate/123 921s ok 126 /utf8/validate/124 921s ok 127 /utf8/validate/125 921s ok 128 /utf8/validate/126 921s ok 129 /utf8/validate/127 921s ok 130 /utf8/validate/128 921s ok 131 /utf8/validate/129 921s ok 132 /utf8/validate/130 921s ok 133 /utf8/validate/131 921s ok 134 /utf8/validate/132 921s ok 135 /utf8/validate/133 921s ok 136 /utf8/validate/134 921s ok 137 /utf8/validate/135 921s ok 138 /utf8/validate/136 921s ok 139 /utf8/validate/137 921s ok 140 /utf8/validate/138 921s ok 141 /utf8/validate/139 921s ok 142 /utf8/validate/140 921s ok 143 /utf8/validate/141 921s ok 144 /utf8/validate/142 921s ok 145 /utf8/validate/143 921s ok 146 /utf8/validate/144 921s ok 147 /utf8/validate/145 921s ok 148 /utf8/validate/146 921s ok 149 /utf8/validate/147 921s ok 150 /utf8/validate/148 921s ok 151 /utf8/validate/149 921s ok 152 /utf8/validate/150 921s ok 153 /utf8/validate/151 921s ok 154 /utf8/validate/152 921s ok 155 /utf8/validate/153 921s ok 156 /utf8/validate/154 921s ok 157 /utf8/validate/155 921s ok 158 /utf8/validate/156 921s ok 159 /utf8/validate/157 921s ok 160 /utf8/validate/158 921s ok 161 /utf8/validate/159 921s ok 162 /utf8/validate/160 921s ok 163 /utf8/validate/161 921s ok 164 /utf8/validate/162 921s ok 165 /utf8/validate/163 921s ok 166 /utf8/validate/164 921s ok 167 /utf8/validate/165 921s ok 168 /utf8/validate/166 921s ok 169 /utf8/validate/167 921s ok 170 /utf8/validate/168 921s ok 171 /utf8/validate/169 921s ok 172 /utf8/validate/170 921s ok 173 /utf8/validate/171 921s ok 174 /utf8/validate/172 921s ok 175 /utf8/validate/173 921s ok 176 /utf8/validate/174 921s ok 177 /utf8/validate/175 921s ok 178 /utf8/validate/176 921s ok 179 /utf8/validate/177 921s ok 180 /utf8/validate/178 921s ok 181 /utf8/validate/179 921s ok 182 /utf8/validate/180 921s ok 183 /utf8/validate/181 921s ok 184 /utf8/validate/182 921s ok 185 /utf8/validate/183 921s ok 186 /utf8/validate/184 921s ok 187 /utf8/validate/185 921s ok 188 /utf8/validate/186 921s ok 189 /utf8/validate/187 921s ok 190 /utf8/validate/188 921s ok 191 /utf8/validate/189 921s ok 192 /utf8/validate/190 921s ok 193 /utf8/validate/191 921s ok 194 /utf8/validate/192 921s ok 195 /utf8/validate/193 921s ok 196 /utf8/validate/194 921s ok 197 /utf8/validate/195 921s ok 198 /utf8/validate/196 921s ok 199 /utf8/validate/197 921s ok 200 /utf8/validate/198 921s ok 201 /utf8/validate/199 921s ok 202 /utf8/validate/200 921s ok 203 /utf8/validate/201 921s ok 204 /utf8/validate/202 921s ok 205 /utf8/validate/203 921s ok 206 /utf8/validate/204 921s ok 207 /utf8/validate/205 921s ok 208 /utf8/validate/206 921s ok 209 /utf8/validate/207 921s ok 210 /utf8/validate/208 921s ok 211 /utf8/validate/209 921s ok 212 /utf8/validate/210 921s ok 213 /utf8/validate/211 921s ok 214 /utf8/validate/212 921s ok 215 /utf8/validate/213 921s ok 216 /utf8/validate/214 921s ok 217 /utf8/validate/215 921s ok 218 /utf8/validate/216 921s ok 219 /utf8/validate/217 921s ok 220 /utf8/validate/218 921s ok 221 /utf8/validate/219 921s ok 222 /utf8/validate/220 921s ok 223 /utf8/validate/221 921s ok 224 /utf8/validate/222 921s ok 225 /utf8/validate/223 921s ok 226 /utf8/validate/224 921s ok 227 /utf8/validate/225 921s ok 228 /utf8/validate/226 921s ok 229 /utf8/validate/227 921s ok 230 /utf8/validate/228 921s ok 231 /utf8/validate/229 921s ok 232 /utf8/validate/230 921s ok 233 /utf8/validate/231 921s ok 234 /utf8/validate/232 921s ok 235 /utf8/validate/233 921s ok 236 /utf8/validate/234 921s ok 237 /utf8/validate/235 921s ok 238 /utf8/validate/236 921s # End of validate tests 921s # End of utf8 tests 921s # Running test: glib/proxy-test.test 921s ok - glib/proxy-test.test 921s # Running test: glib/utf8-validate.test 921s ok - glib/utf8-validate.test 921s # Running test: glib/vfs.test 921s TAP version 14 921s # random seed: R02S20878111dc57e12866d2f33b874dddd9 921s 1..3 921s # Start of gvfs tests 921s ok 1 /gvfs/local 921s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 921s ok 2 /gvfs/register-scheme 921s # Start of resource tests 921s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3090 921s # /gvfs/resource/malformed-escaping summary: Test that g_vfs_get_file_for_uri() returns an invalid file for an invalid URI 921s ok 3 /gvfs/resource/malformed-escaping 921s # End of resource tests 921s # End of gvfs tests 921s ok - glib/vfs.test 921s # Running test: glib/init.test 921s TAP version 14 921s # random seed: R02S3ae88b307e62d710ea69e04eaa7e4198 921s 1..2 921s # Start of thread tests 921s # Start of deprecated tests 921s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_init_KC0052/thread/deprecated/init/.dirs/home 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_init_KC0052/thread/deprecated/init/.dirs/cache 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_init_KC0052/thread/deprecated/init/.dirs/system-config1:/tmp/test_init_KC0052/thread/deprecated/init/.dirs/system-config2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_init_KC0052/thread/deprecated/init/.dirs/config 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_init_KC0052/thread/deprecated/init/.dirs/system-data1:/tmp/test_init_KC0052/thread/deprecated/init/.dirs/system-data2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_init_KC0052/thread/deprecated/init/.dirs/data 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_init_KC0052/thread/deprecated/init/.dirs/state 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_init_KC0052/thread/deprecated/init/.dirs/runtime 921s ok 1 /thread/deprecated/init 921s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_init_KC0052/thread/deprecated/init-with-errorcheck-mutexes/.dirs/home 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_init_KC0052/thread/deprecated/init-with-errorcheck-mutexes/.dirs/cache 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_init_KC0052/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-config1:/tmp/test_init_KC0052/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-config2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_init_KC0052/thread/deprecated/init-with-errorcheck-mutexes/.dirs/config 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_init_KC0052/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-data1:/tmp/test_init_KC0052/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-data2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_init_KC0052/thread/deprecated/init-with-errorcheck-mutexes/.dirs/data 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_init_KC0052/thread/deprecated/init-with-errorcheck-mutexes/.dirs/state 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_init_KC0052/thread/deprecated/init-with-errorcheck-mutexes/.dirs/runtime 921s ok 2 /thread/deprecated/init-with-errorcheck-mutexes 921s # End of deprecated tests 921s # End of thread tests 921s ok - glib/init.test 921s # Running test: glib/unix-fd.test 921s TAP version 14 921s # random seed: R02Sbef42731b680738f00c305ff8c7e9b24 921s 1..2 921s # Start of unix-fd tests 921s ok 1 /unix-fd/fd-list 921s ok 2 /unix-fd/scm 921s # End of unix-fd tests 921s ok - glib/unix-fd.test 921s # Running test: glib/volumemonitor.test 921s TAP version 14 921s # random seed: R02Sb93c7c5bf2faca17369306c31123f62b 921s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 921s 1..3 921s # Start of volumemonitor tests 921s ok 1 /volumemonitor/connected_drives 921s ok 2 /volumemonitor/volumes 921s ok 3 /volumemonitor/mounts 921s # End of volumemonitor tests 921s ok - glib/volumemonitor.test 921s # Running test: glib/gdbus-names.test 921s TAP version 14 921s # random seed: R02Sf651ac6740f9939c4973f5c6dee09e84 921s 1..10 921s # Start of gdbus tests 921s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_0KLR52/gdbus/validate-names/.dirs/home 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_0KLR52/gdbus/validate-names/.dirs/cache 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_0KLR52/gdbus/validate-names/.dirs/system-config1:/tmp/test_gdbus-names_0KLR52/gdbus/validate-names/.dirs/system-config2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_0KLR52/gdbus/validate-names/.dirs/config 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_0KLR52/gdbus/validate-names/.dirs/system-data1:/tmp/test_gdbus-names_0KLR52/gdbus/validate-names/.dirs/system-data2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_0KLR52/gdbus/validate-names/.dirs/data 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_0KLR52/gdbus/validate-names/.dirs/state 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_0KLR52/gdbus/validate-names/.dirs/runtime 921s ok 1 /gdbus/validate-names 921s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_0KLR52/gdbus/bus-own-name/.dirs/home 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_0KLR52/gdbus/bus-own-name/.dirs/cache 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_0KLR52/gdbus/bus-own-name/.dirs/system-config1:/tmp/test_gdbus-names_0KLR52/gdbus/bus-own-name/.dirs/system-config2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_0KLR52/gdbus/bus-own-name/.dirs/config 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_0KLR52/gdbus/bus-own-name/.dirs/system-data1:/tmp/test_gdbus-names_0KLR52/gdbus/bus-own-name/.dirs/system-data2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_0KLR52/gdbus/bus-own-name/.dirs/data 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_0KLR52/gdbus/bus-own-name/.dirs/state 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_0KLR52/gdbus/bus-own-name/.dirs/runtime 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s ok 2 /gdbus/bus-own-name 921s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name/.dirs/home 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name/.dirs/cache 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name/.dirs/system-config1:/tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name/.dirs/system-config2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name/.dirs/config 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name/.dirs/system-data1:/tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name/.dirs/system-data2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name/.dirs/data 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name/.dirs/state 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name/.dirs/runtime 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s ok 3 /gdbus/bus-watch-name 921s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name-auto-start/.dirs/home 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name-auto-start/.dirs/cache 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name-auto-start/.dirs/system-config1:/tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name-auto-start/.dirs/system-config2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name-auto-start/.dirs/config 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name-auto-start/.dirs/system-data1:/tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name-auto-start/.dirs/system-data2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name-auto-start/.dirs/data 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name-auto-start/.dirs/state 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name-auto-start/.dirs/runtime 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s ok 4 /gdbus/bus-watch-name-auto-start 921s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name-auto-start-service-exist/.dirs/home 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name-auto-start-service-exist/.dirs/cache 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-config1:/tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-config2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name-auto-start-service-exist/.dirs/config 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-data1:/tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-data2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name-auto-start-service-exist/.dirs/data 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name-auto-start-service-exist/.dirs/state 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name-auto-start-service-exist/.dirs/runtime 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 921s dbus-daemon[3151]: [session uid=1000 pid=3151 pidfd=4] Activating service name='org.gtk.GDBus.FakeService' requested by ':1.0' (uid=1000 pid=3142 comm="/usr/libexec/installed-tests/glib/gdbus-names" label="unconfined") 921s # Acquired a message bus connection 921s dbus-daemon[3151]: [session uid=1000 pid=3151 pidfd=4] Successfully activated service 'org.gtk.GDBus.FakeService' 921s # Acquired the name org.gtk.GDBus.FakeService 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s ok 5 /gdbus/bus-watch-name-auto-start-service-exist 921s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name-closures/.dirs/home 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name-closures/.dirs/cache 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name-closures/.dirs/system-config1:/tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name-closures/.dirs/system-config2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name-closures/.dirs/config 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name-closures/.dirs/system-data1:/tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name-closures/.dirs/system-data2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name-closures/.dirs/data 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name-closures/.dirs/state 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name-closures/.dirs/runtime 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s ok 6 /gdbus/bus-watch-name-closures 921s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name-closures-auto-start/.dirs/home 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name-closures-auto-start/.dirs/cache 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name-closures-auto-start/.dirs/system-config1:/tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name-closures-auto-start/.dirs/system-config2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name-closures-auto-start/.dirs/config 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name-closures-auto-start/.dirs/system-data1:/tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name-closures-auto-start/.dirs/system-data2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name-closures-auto-start/.dirs/data 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name-closures-auto-start/.dirs/state 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-name-closures-auto-start/.dirs/runtime 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s ok 7 /gdbus/bus-watch-name-closures-auto-start 921s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-different-context/.dirs/home 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-different-context/.dirs/cache 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-different-context/.dirs/system-config1:/tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-different-context/.dirs/system-config2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-different-context/.dirs/config 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-different-context/.dirs/system-data1:/tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-different-context/.dirs/system-data2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-different-context/.dirs/data 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-different-context/.dirs/state 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_0KLR52/gdbus/bus-watch-different-context/.dirs/runtime 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s ok 8 /gdbus/bus-watch-different-context 921s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_0KLR52/gdbus/bus-unwatch-early/.dirs/home 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_0KLR52/gdbus/bus-unwatch-early/.dirs/cache 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_0KLR52/gdbus/bus-unwatch-early/.dirs/system-config1:/tmp/test_gdbus-names_0KLR52/gdbus/bus-unwatch-early/.dirs/system-config2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_0KLR52/gdbus/bus-unwatch-early/.dirs/config 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_0KLR52/gdbus/bus-unwatch-early/.dirs/system-data1:/tmp/test_gdbus-names_0KLR52/gdbus/bus-unwatch-early/.dirs/system-data2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_0KLR52/gdbus/bus-unwatch-early/.dirs/data 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_0KLR52/gdbus/bus-unwatch-early/.dirs/state 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_0KLR52/gdbus/bus-unwatch-early/.dirs/runtime 921s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/604 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s ok 9 /gdbus/bus-unwatch-early 921s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_0KLR52/gdbus/escape-object-path/.dirs/home 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_0KLR52/gdbus/escape-object-path/.dirs/cache 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_0KLR52/gdbus/escape-object-path/.dirs/system-config1:/tmp/test_gdbus-names_0KLR52/gdbus/escape-object-path/.dirs/system-config2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_0KLR52/gdbus/escape-object-path/.dirs/config 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_0KLR52/gdbus/escape-object-path/.dirs/system-data1:/tmp/test_gdbus-names_0KLR52/gdbus/escape-object-path/.dirs/system-data2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_0KLR52/gdbus/escape-object-path/.dirs/data 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_0KLR52/gdbus/escape-object-path/.dirs/state 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_0KLR52/gdbus/escape-object-path/.dirs/runtime 921s ok 10 /gdbus/escape-object-path 921s # End of gdbus tests 921s ok - glib/gdbus-names.test 921s # Running test: glib/collate.test 921s TAP version 14 921s # random seed: R02S814b2b9dd8387ca5fd4d255294047c4e 921s ok - glib/collate.test 921s 1..9 921s # Start of unicode tests 921s # Start of collate tests 921s ok 1 /unicode/collate/0 921s ok 2 /unicode/collate/1 921s ok 3 /unicode/collate/2 921s # End of collate tests 921s # Start of collate-key tests 921s ok 4 /unicode/collate-key/0 921s ok 5 /unicode/collate-key/1 921s ok 6 /unicode/collate-key/2 921s # End of collate-key tests 921s # Start of collate-filename tests 921s ok 7 /unicode/collate-filename/0 921s ok 8 /unicode/collate-filename/1 921s ok 9 /unicode/collate-filename/2 921s # End of collate-filename tests 921s # End of unicode tests 921s # Running test: glib/gdbus-introspection.test 921s TAP version 14 921s # random seed: R02Sa3a69c293a4977a1e133d1b5e4baf44c 921s 1..4 921s # Start of gdbus tests 921s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_527R52/gdbus/introspection-parser/.dirs/home 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_527R52/gdbus/introspection-parser/.dirs/cache 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_527R52/gdbus/introspection-parser/.dirs/system-config1:/tmp/test_gdbus-introspection_527R52/gdbus/introspection-parser/.dirs/system-config2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_527R52/gdbus/introspection-parser/.dirs/config 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_527R52/gdbus/introspection-parser/.dirs/system-data1:/tmp/test_gdbus-introspection_527R52/gdbus/introspection-parser/.dirs/system-data2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_527R52/gdbus/introspection-parser/.dirs/data 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_527R52/gdbus/introspection-parser/.dirs/state 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_527R52/gdbus/introspection-parser/.dirs/runtime 921s ok - glib/gdbus-introspection.test 921s # Running test: glib/rcbox.test 921s ok 1 /gdbus/introspection-parser 921s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_527R52/gdbus/introspection-generate/.dirs/home 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_527R52/gdbus/introspection-generate/.dirs/cache 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_527R52/gdbus/introspection-generate/.dirs/system-config1:/tmp/test_gdbus-introspection_527R52/gdbus/introspection-generate/.dirs/system-config2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_527R52/gdbus/introspection-generate/.dirs/config 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_527R52/gdbus/introspection-generate/.dirs/system-data1:/tmp/test_gdbus-introspection_527R52/gdbus/introspection-generate/.dirs/system-data2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_527R52/gdbus/introspection-generate/.dirs/data 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_527R52/gdbus/introspection-generate/.dirs/state 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_527R52/gdbus/introspection-generate/.dirs/runtime 921s ok 2 /gdbus/introspection-generate 921s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_527R52/gdbus/introspection-default-direction/.dirs/home 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_527R52/gdbus/introspection-default-direction/.dirs/cache 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_527R52/gdbus/introspection-default-direction/.dirs/system-config1:/tmp/test_gdbus-introspection_527R52/gdbus/introspection-default-direction/.dirs/system-config2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_527R52/gdbus/introspection-default-direction/.dirs/config 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_527R52/gdbus/introspection-default-direction/.dirs/system-data1:/tmp/test_gdbus-introspection_527R52/gdbus/introspection-default-direction/.dirs/system-data2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_527R52/gdbus/introspection-default-direction/.dirs/data 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_527R52/gdbus/introspection-default-direction/.dirs/state 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_527R52/gdbus/introspection-default-direction/.dirs/runtime 921s ok 3 /gdbus/introspection-default-direction 921s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_527R52/gdbus/introspection-extra-data/.dirs/home 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_527R52/gdbus/introspection-extra-data/.dirs/cache 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_527R52/gdbus/introspection-extra-data/.dirs/system-config1:/tmp/test_gdbus-introspection_527R52/gdbus/introspection-extra-data/.dirs/system-config2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_527R52/gdbus/introspection-extra-data/.dirs/config 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_527R52/gdbus/introspection-extra-data/.dirs/system-data1:/tmp/test_gdbus-introspection_527R52/gdbus/introspection-extra-data/.dirs/system-data2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_527R52/gdbus/introspection-extra-data/.dirs/data 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_527R52/gdbus/introspection-extra-data/.dirs/state 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_527R52/gdbus/introspection-extra-data/.dirs/runtime 921s ok 4 /gdbus/introspection-extra-data 921s # End of gdbus tests 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s TAP version 14 921s # random seed: R02Sb4b77eece9fbe40ae2a2b2020b1e88ef 921s 1..8 921s # Start of rcbox tests 921s ok 1 /rcbox/new 921s # global_point = 0xb4d13b02f8b0 921s ok 2 /rcbox/release-full 921s # global_point_a = 0xb4d13b02f8b0 921s # global_point_b = 0xb4d13b02f980 921s ok 3 /rcbox/dup 921s ok 4 /rcbox/alignment 921s # End of rcbox tests 921s # Start of atomic-rcbox tests 921s ok 5 /atomic-rcbox/new 921s # global_point = 0xb4d13b02f980 921s ok 6 /atomic-rcbox/release-full 921s # global_point_a = 0xb4d13b02f980 921s # global_point_b = 0xb4d13b02f8b0 921s ok 7 /atomic-rcbox/dup 921s ok 8 /atomic-rcbox/alignment 921s # End of atomic-rcbox tests 921s ok - glib/rcbox.test 921s # Running test: glib/gdbus-bz627724.test 921s TAP version 14 921s # random seed: R02Se3b2151807b601655dded51048332dc1 921s 1..1 921s # Start of gdbus tests 921s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-bz627724_AAAU52/gdbus/bz627724/.dirs/home 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-bz627724_AAAU52/gdbus/bz627724/.dirs/cache 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-bz627724_AAAU52/gdbus/bz627724/.dirs/system-config1:/tmp/test_gdbus-bz627724_AAAU52/gdbus/bz627724/.dirs/system-config2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-bz627724_AAAU52/gdbus/bz627724/.dirs/config 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-bz627724_AAAU52/gdbus/bz627724/.dirs/system-data1:/tmp/test_gdbus-bz627724_AAAU52/gdbus/bz627724/.dirs/system-data2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-bz627724_AAAU52/gdbus/bz627724/.dirs/data 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-bz627724_AAAU52/gdbus/bz627724/.dirs/state 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-bz627724_AAAU52/gdbus/bz627724/.dirs/runtime 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 921s ok 1 /gdbus/bz627724 921s # End of gdbus tests 921s TAP version 14 921s # random seed: R02S40f3fa98575bebd25947f552e3a2a474 921s 1..3 921s # Start of mapping tests 921s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mapping_0NJU52/mapping/flags/.dirs/home 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mapping_0NJU52/mapping/flags/.dirs/cache 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mapping_0NJU52/mapping/flags/.dirs/system-config1:/tmp/test_mapping_0NJU52/mapping/flags/.dirs/system-config2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mapping_0NJU52/mapping/flags/.dirs/config 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mapping_0NJU52/mapping/flags/.dirs/system-data1:/tmp/test_mapping_0NJU52/mapping/flags/.dirs/system-data2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mapping_0NJU52/mapping/flags/.dirs/data 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mapping_0NJU52/mapping/flags/.dirs/state 921s ok - glib/gdbus-bz627724.test 921s # Running test: glib/mapping.test 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mapping_0NJU52/mapping/flags/.dirs/runtime 921s # test_mapping: ok 921s ok 1 /mapping/flags 921s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mapping_0NJU52/mapping/private/.dirs/home 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mapping_0NJU52/mapping/private/.dirs/cache 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mapping_0NJU52/mapping/private/.dirs/system-config1:/tmp/test_mapping_0NJU52/mapping/private/.dirs/system-config2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mapping_0NJU52/mapping/private/.dirs/config 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mapping_0NJU52/mapping/private/.dirs/system-data1:/tmp/test_mapping_0NJU52/mapping/private/.dirs/system-data2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mapping_0NJU52/mapping/private/.dirs/data 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mapping_0NJU52/mapping/private/.dirs/state 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mapping_0NJU52/mapping/private/.dirs/runtime 921s ok 2 /mapping/private 921s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mapping_0NJU52/mapping/private-child/.dirs/home 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mapping_0NJU52/mapping/private-child/.dirs/cache 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mapping_0NJU52/mapping/private-child/.dirs/system-config1:/tmp/test_mapping_0NJU52/mapping/private-child/.dirs/system-config2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mapping_0NJU52/mapping/private-child/.dirs/config 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mapping_0NJU52/mapping/private-child/.dirs/system-data1:/tmp/test_mapping_0NJU52/mapping/private-child/.dirs/system-data2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mapping_0NJU52/mapping/private-child/.dirs/data 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mapping_0NJU52/mapping/private-child/.dirs/state 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mapping_0NJU52/mapping/private-child/.dirs/runtime 921s # test_child_private: child spawned 921s # Subtest: /usr/libexec/installed-tests/glib/mapping 921s # random seed: R02S436b432919a31585bec6b2f2a4478338 921s # test_child_private: received first child signal 921s # test_child_private: received parent signal 921s # Child exited with status 0 921s # test_child_private: received second child signal 921s ok 3 /mapping/private-child 921s # End of mapping tests 921s ok - glib/mapping.test 921s # Running test: glib/cxx-98.test 921s ok - glib/cxx-98.test 921s TAP version 14 921s # random seed: R02Sabb1c250e8615691d919d6e63570576c 921s 1..2 921s # Start of gtask tests 921s # 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. 921s ok 1 /gtask/name 921s # Start of name tests 921s # 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. 921s ok 2 /gtask/name/macro-wrapper 921s # End of name tests 921s # End of gtask tests 921s # Running test: glib/memory-monitor.test 921s TAP version 14 921s # random seed: R02Sb7a1402616da0047ef59077c053447c6 921s 1..1 921s # Start of memory-monitor tests 921s # GLib-GIO-DEBUG: Failed to initialize portal (GMemoryMonitorPortal) for gio-memory-monitor: Not using portals 921s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dbus (GMemoryMonitorDBus) for ?gio-memory-monitor? 921s ok 1 /memory-monitor/default 921s # End of memory-monitor tests 921s ok - glib/memory-monitor.test 921s # Running test: glib/enums.test 921s TAP version 14 921s # random seed: R02S71c83f39f2ddf1fd3c34b254cdb6ea0f 921s 1..4 921s # Start of enum tests 921s ok 1 /enum/basic 921s ok 2 /enum/define-type 921s # End of enum tests 921s # Start of flags tests 921s ok 3 /flags/basic 921s ok 4 /flags/define-type 921s # End of flags tests 921s ok - glib/enums.test 921s # Running test: glib/registered-type-info.test 921s TAP version 14 921s # random seed: R02Se806ecadc3269ab48278898d3842dd46 921s 1..1 921s # Start of registered-type-info tests 921s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_registered-type-info_OOWT52/registered-type-info/boxed/.dirs/home 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_registered-type-info_OOWT52/registered-type-info/boxed/.dirs/cache 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_registered-type-info_OOWT52/registered-type-info/boxed/.dirs/system-config1:/tmp/test_registered-type-info_OOWT52/registered-type-info/boxed/.dirs/system-config2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_registered-type-info_OOWT52/registered-type-info/boxed/.dirs/config 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_registered-type-info_OOWT52/registered-type-info/boxed/.dirs/system-data1:/tmp/test_registered-type-info_OOWT52/registered-type-info/boxed/.dirs/system-data2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_registered-type-info_OOWT52/registered-type-info/boxed/.dirs/data 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_registered-type-info_OOWT52/registered-type-info/boxed/.dirs/state 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_registered-type-info_OOWT52/registered-type-info/boxed/.dirs/runtime 921s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 921s # /registered-type-info/boxed summary: Test various boxed and non-boxed types for GIRegisteredTypeInfo 921s # Expecting CClosure to not be boxed 921s # Expecting TypeCValue to not be boxed 921s # Expecting InitiallyUnownedClass to not be boxed 921s # Expecting BookmarkFile to be boxed 921s # Expecting Closure to be boxed 921s # Expecting Object to not be boxed 921s ok 1 /registered-type-info/boxed 921s # End of registered-type-info tests 921s ok - glib/registered-type-info.test 921s # Running test: glib/gdbus-error.test 921s TAP version 14 921s # random seed: R02S95aadcaccd534191fc7e005ea69dc1dd 921s 1..4 921s # Start of gdbus tests 921s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_9Y0T52/gdbus/registered-errors/.dirs/home 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_9Y0T52/gdbus/registered-errors/.dirs/cache 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_9Y0T52/gdbus/registered-errors/.dirs/system-config1:/tmp/test_gdbus-error_9Y0T52/gdbus/registered-errors/.dirs/system-config2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_9Y0T52/gdbus/registered-errors/.dirs/config 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_9Y0T52/gdbus/registered-errors/.dirs/system-data1:/tmp/test_gdbus-error_9Y0T52/gdbus/registered-errors/.dirs/system-data2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_9Y0T52/gdbus/registered-errors/.dirs/data 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_9Y0T52/gdbus/registered-errors/.dirs/state 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_9Y0T52/gdbus/registered-errors/.dirs/runtime 921s ok 1 /gdbus/registered-errors 921s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_9Y0T52/gdbus/unregistered-errors/.dirs/home 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_9Y0T52/gdbus/unregistered-errors/.dirs/cache 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_9Y0T52/gdbus/unregistered-errors/.dirs/system-config1:/tmp/test_gdbus-error_9Y0T52/gdbus/unregistered-errors/.dirs/system-config2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_9Y0T52/gdbus/unregistered-errors/.dirs/config 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_9Y0T52/gdbus/unregistered-errors/.dirs/system-data1:/tmp/test_gdbus-error_9Y0T52/gdbus/unregistered-errors/.dirs/system-data2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_9Y0T52/gdbus/unregistered-errors/.dirs/data 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_9Y0T52/gdbus/unregistered-errors/.dirs/state 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_9Y0T52/gdbus/unregistered-errors/.dirs/runtime 921s ok 2 /gdbus/unregistered-errors 921s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_9Y0T52/gdbus/transparent-gerror/.dirs/home 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_9Y0T52/gdbus/transparent-gerror/.dirs/cache 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_9Y0T52/gdbus/transparent-gerror/.dirs/system-config1:/tmp/test_gdbus-error_9Y0T52/gdbus/transparent-gerror/.dirs/system-config2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_9Y0T52/gdbus/transparent-gerror/.dirs/config 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_9Y0T52/gdbus/transparent-gerror/.dirs/system-data1:/tmp/test_gdbus-error_9Y0T52/gdbus/transparent-gerror/.dirs/system-data2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_9Y0T52/gdbus/transparent-gerror/.dirs/data 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_9Y0T52/gdbus/transparent-gerror/.dirs/state 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_9Y0T52/gdbus/transparent-gerror/.dirs/runtime 921s ok 3 /gdbus/transparent-gerror 921s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_9Y0T52/gdbus/register-error/.dirs/home 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_9Y0T52/gdbus/register-error/.dirs/cache 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_9Y0T52/gdbus/register-error/.dirs/system-config1:/tmp/test_gdbus-error_9Y0T52/gdbus/register-error/.dirs/system-config2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_9Y0T52/gdbus/register-error/.dirs/config 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_9Y0T52/gdbus/register-error/.dirs/system-data1:/tmp/test_gdbus-error_9Y0T52/gdbus/register-error/.dirs/system-data2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_9Y0T52/gdbus/register-error/.dirs/data 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_9Y0T52/gdbus/register-error/.dirs/state 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_9Y0T52/gdbus/register-error/.dirs/runtime 921s ok 4 /gdbus/register-error 921s # End of gdbus tests 921s ok - glib/gdbus-error.test 921s # Running test: glib/credentials.test 921s TAP version 14 921s # random seed: R02Se603f090be88786247b18fba2505ade2 921s 1..1 921s # Start of credentials tests 921s # GCredentials:linux-ucred:pid=3209,uid=1000,gid=1000 921s # GCredentials:linux-ucred:pid=3209,uid=0,gid=1000 921s ok 1 /credentials/basic 921s # End of credentials tests 921s ok - glib/credentials.test 921s # Running test: glib/repository-search-paths.test 921s TAP version 14 921s # random seed: R02S626016a4698176a9c324b55eaba58f30 921s 1..4 921s # Start of repository tests 921s # Start of search-paths tests 921s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_YBSV52/repository/search-paths/default/.dirs/home 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_YBSV52/repository/search-paths/default/.dirs/cache 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_YBSV52/repository/search-paths/default/.dirs/system-config1:/tmp/test_repository-search-paths_YBSV52/repository/search-paths/default/.dirs/system-config2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_YBSV52/repository/search-paths/default/.dirs/config 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_YBSV52/repository/search-paths/default/.dirs/system-data1:/tmp/test_repository-search-paths_YBSV52/repository/search-paths/default/.dirs/system-data2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_YBSV52/repository/search-paths/default/.dirs/data 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_YBSV52/repository/search-paths/default/.dirs/state 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_YBSV52/repository/search-paths/default/.dirs/runtime 921s ok 1 /repository/search-paths/default 921s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_YBSV52/repository/search-paths/prepend/.dirs/home 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_YBSV52/repository/search-paths/prepend/.dirs/cache 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_YBSV52/repository/search-paths/prepend/.dirs/system-config1:/tmp/test_repository-search-paths_YBSV52/repository/search-paths/prepend/.dirs/system-config2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_YBSV52/repository/search-paths/prepend/.dirs/config 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_YBSV52/repository/search-paths/prepend/.dirs/system-data1:/tmp/test_repository-search-paths_YBSV52/repository/search-paths/prepend/.dirs/system-data2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_YBSV52/repository/search-paths/prepend/.dirs/data 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_YBSV52/repository/search-paths/prepend/.dirs/state 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_YBSV52/repository/search-paths/prepend/.dirs/runtime 921s ok 2 /repository/search-paths/prepend 921s # End of search-paths tests 921s # Start of library-paths tests 921s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_YBSV52/repository/library-paths/default/.dirs/home 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_YBSV52/repository/library-paths/default/.dirs/cache 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_YBSV52/repository/library-paths/default/.dirs/system-config1:/tmp/test_repository-search-paths_YBSV52/repository/library-paths/default/.dirs/system-config2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_YBSV52/repository/library-paths/default/.dirs/config 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_YBSV52/repository/library-paths/default/.dirs/system-data1:/tmp/test_repository-search-paths_YBSV52/repository/library-paths/default/.dirs/system-data2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_YBSV52/repository/library-paths/default/.dirs/data 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_YBSV52/repository/library-paths/default/.dirs/state 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_YBSV52/repository/library-paths/default/.dirs/runtime 921s ok 3 /repository/library-paths/default 921s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_YBSV52/repository/library-paths/prepend/.dirs/home 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_YBSV52/repository/library-paths/prepend/.dirs/cache 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_YBSV52/repository/library-paths/prepend/.dirs/system-config1:/tmp/test_repository-search-paths_YBSV52/repository/library-paths/prepend/.dirs/system-config2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_YBSV52/repository/library-paths/prepend/.dirs/config 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_YBSV52/repository/library-paths/prepend/.dirs/system-data1:/tmp/test_repository-search-paths_YBSV52/repository/library-paths/prepend/.dirs/system-data2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_YBSV52/repository/library-paths/prepend/.dirs/data 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_YBSV52/repository/library-paths/prepend/.dirs/state 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_YBSV52/repository/library-paths/prepend/.dirs/runtime 921s ok 4 /repository/library-paths/prepend 921s # End of library-paths tests 921s # End of repository tests 921s ok - glib/repository-search-paths.test 921s # Running test: glib/testing-nonfatal.test 921s TAP version 14 921s # random seed: R02S9d9a162087111c28164645ccbe283eeb 921s ** 921s 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?") 921s # 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?") 921s ok - glib/testing-nonfatal.test 921s # Running test: glib/notify-init.test 921s TAP version 14 921s # random seed: R02S658c5093af04c55f04760c511fc941ec 921s 1..1 921s # Start of properties tests 921s # /properties/notify-in-init summary: Test that emitting notify with a handler already connected in test_object_init() works 921s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2665 921s ok 1 /properties/notify-in-init 921s # End of properties tests 921s ok - glib/notify-init.test 921s # Running test: glib/type.test 921s TAP version 14 921s # random seed: R02S0d89bdf4bdff8f104b7bcf0456c46fa6 921s 1..6 921s # Start of type tests 921s ok 1 /type/registration-serial 921s ok 2 /type/interface-prerequisite 921s ok 3 /type/interface-check 921s ok 4 /type/next-base 921s ok 5 /type/is-a 921s # Invalid types can?t be queried. 921s # Unclassed types can?t be queried. 921s ok 6 /type/query 921s # End of type tests 921s ok - glib/type.test 921s # Running test: glib/cache.test 921s ok - glib/cache.test 921s TAP version 14 921s # random seed: R02S57edd7e6276dec37f6539253f84316b0 921s 1..1 921s # Start of cache tests 921s ok 1 /cache/basic 921s # End of cache tests 921s # Running test: glib/defaultiface.test 921s TAP version 14 921s # random seed: R02S386576f9bb5a0403d3840bf190da9545 921s 1..2 921s # Start of gobject tests 921s ok 1 /gobject/static-iface 921s ok 2 /gobject/dynamic-iface 921s # End of gobject tests 921s ok - glib/defaultiface.test 921s # Running test: glib/dump.test 921s TAP version 14 921s # random seed: R02S1d41d9ec8051156baf3aa5eae3905fdc 921s 1..4 921s # Start of dump tests 921s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_CO2U52/dump/empty-file/.dirs/home 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_CO2U52/dump/empty-file/.dirs/cache 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_CO2U52/dump/empty-file/.dirs/system-config1:/tmp/test_dump_CO2U52/dump/empty-file/.dirs/system-config2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_CO2U52/dump/empty-file/.dirs/config 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_CO2U52/dump/empty-file/.dirs/system-data1:/tmp/test_dump_CO2U52/dump/empty-file/.dirs/system-data2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_CO2U52/dump/empty-file/.dirs/data 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_CO2U52/dump/empty-file/.dirs/state 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_CO2U52/dump/empty-file/.dirs/runtime 921s ok 1 /dump/empty-file 921s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_CO2U52/dump/missing-get-type/.dirs/home 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_CO2U52/dump/missing-get-type/.dirs/cache 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_CO2U52/dump/missing-get-type/.dirs/system-config1:/tmp/test_dump_CO2U52/dump/missing-get-type/.dirs/system-config2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_CO2U52/dump/missing-get-type/.dirs/config 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_CO2U52/dump/missing-get-type/.dirs/system-data1:/tmp/test_dump_CO2U52/dump/missing-get-type/.dirs/system-data2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_CO2U52/dump/missing-get-type/.dirs/data 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_CO2U52/dump/missing-get-type/.dirs/state 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_CO2U52/dump/missing-get-type/.dirs/runtime 921s Invalid GType function: 'does_not_exist_get_type' 921s ok 2 /dump/missing-get-type 921s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_CO2U52/dump/missing-quark/.dirs/home 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_CO2U52/dump/missing-quark/.dirs/cache 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_CO2U52/dump/missing-quark/.dirs/system-config1:/tmp/test_dump_CO2U52/dump/missing-quark/.dirs/system-config2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_CO2U52/dump/missing-quark/.dirs/config 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_CO2U52/dump/missing-quark/.dirs/system-data1:/tmp/test_dump_CO2U52/dump/missing-quark/.dirs/system-data2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_CO2U52/dump/missing-quark/.dirs/data 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_CO2U52/dump/missing-quark/.dirs/state 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_CO2U52/dump/missing-quark/.dirs/runtime 921s Invalid error quark function: 'does_not_exist_error' 921s ok 3 /dump/missing-quark 921s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_CO2U52/dump/basic/.dirs/home 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_CO2U52/dump/basic/.dirs/cache 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_CO2U52/dump/basic/.dirs/system-config1:/tmp/test_dump_CO2U52/dump/basic/.dirs/system-config2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_CO2U52/dump/basic/.dirs/config 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_CO2U52/dump/basic/.dirs/system-data1:/tmp/test_dump_CO2U52/dump/basic/.dirs/system-data2 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_CO2U52/dump/basic/.dirs/data 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_CO2U52/dump/basic/.dirs/state 921s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_CO2U52/dump/basic/.dirs/runtime 921s ok 4 /dump/basic 921s # End of dump tests 921s ok - glib/dump.test 921s # Running test: glib/portal-support-env-var.test 921s TAP version 14 921s # random seed: R02S354c0d42711f1c6f7f870411521e0385 921s 1..1 921s # Start of portal-support tests 921s ok 1 /portal-support/env-var 921s # End of portal-support tests 921s ok - glib/portal-support-env-var.test 921s # Running test: glib/markup-collect.test 921s TAP version 14 921s # random seed: R02Sb42caab3b64d9ced86949d1f48dcc44c 921s 1..21 921s # Start of markup tests 921s # Start of collect tests 921s ok 1 /markup/collect/0 921s ok 2 /markup/collect/1 921s ok 3 /markup/collect/2 921s ok 4 /markup/collect/3 921s ok 5 /markup/collect/4 921s ok 6 /markup/collect/5 921s ok 7 /markup/collect/6 921s ok 8 /markup/collect/7 921s ok 9 /markup/collect/8 921s ok 10 /markup/collect/9 921s ok 11 /markup/collect/10 921s ok 12 /markup/collect/11 921s ok 13 /markup/collect/12 921s ok 14 /markup/collect/13 921s ok 15 /markup/collect/14 921s ok 16 /markup/collect/15 921s ok 17 /markup/collect/16 921s ok 18 /markup/collect/17 921s ok 19 /markup/collect/18 921s ok 20 /markup/collect/19 921s ok 21 /markup/collect/cleanup 921s # End of collect tests 921s # End of markup tests 921s ok - glib/markup-collect.test 921s # Running test: glib/hook.test 921s ok - glib/hook.test 921s # Running test: glib/utf8-pointer.test 921s TAP version 14 921s # random seed: R02Sebb3396beeeb0226ec263e2dc0484464 921s 1..2 921s # Start of hook tests 921s ok 1 /hook/basics 921s ok 2 /hook/corner-cases 921s # End of hook tests 921s TAP version 14 921s # random seed: R02S73a515503c8f97e092810dd3d13a6751 921s 1..3 921s # Start of utf8 tests 922s # Executing: glib/utf8-pointer.test 922s ok - glib/utf8-pointer.test 922s # Running test: glib/converter-stream.test 922s ok 1 /utf8/offsets 922s # slow test /utf8/offsets executed in 0.90 secs 922s ok 2 /utf8/lengths 922s ok 3 /utf8/find 922s # End of utf8 tests 922s TAP version 14 922s # random seed: R02Sf3f2dcc4e8f2a820e93e74dc45c833eb 922s 1..17 922s # Start of converter tests 922s ok 1 /converter/basics 922s # End of converter tests 922s # Start of converter-input-stream tests 922s ok 2 /converter-input-stream/expander 922s ok 3 /converter-input-stream/compressor 922s # Start of truncation tests 922s ok 4 /converter-input-stream/truncation/zlib 922s ok 5 /converter-input-stream/truncation/gzip 922s ok 6 /converter-input-stream/truncation/raw 922s # End of truncation tests 922s # Start of charset tests 922s ok 7 /converter-input-stream/charset/utf8->latin1 922s ok 8 /converter-input-stream/charset/latin1->utf8 922s ok 9 /converter-input-stream/charset/fallbacks 922s # End of charset tests 922s # End of converter-input-stream tests 922s # Start of converter-output-stream tests 922s # Start of roundtrip tests 922s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 922s ok 10 /converter-output-stream/roundtrip/zlib-0 922s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 923s ok 11 /converter-output-stream/roundtrip/zlib-9 923s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 923s ok 12 /converter-output-stream/roundtrip/gzip-0 923s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 923s ok 13 /converter-output-stream/roundtrip/gzip-9 923s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 923s ok 14 /converter-output-stream/roundtrip/raw-0 923s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 923s ok 15 /converter-output-stream/roundtrip/raw-9 923s # End of roundtrip tests 923s # End of converter-output-stream tests 923s # Start of converter-stream tests 923s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ?gio-proxy-resolver? 923s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xb7ce36bfe790 and GSocketClientAsyncConnectData 0xb7ce36bfb5c0 923s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 923s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 923s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xb7ce3680fbb0 for GSocketClientAsyncConnectData 0xb7ce36bfb5c0 923s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 923s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 923s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 923s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 923s ok 16 /converter-stream/pollable 923s ok 17 /converter-stream/leftover 923s # End of converter-stream tests 923s ok - glib/converter-stream.test 923s # Running test: glib/bindinggroup.test 923s TAP version 14 923s # random seed: R02S46664f002f7ef34b8aa1089abc6f6dc6 923s 1..11 923s # Start of GObject tests 923s # Start of BindingGroup tests 923s ok 1 /GObject/BindingGroup/invalid 923s ok 2 /GObject/BindingGroup/default 923s ok 3 /GObject/BindingGroup/bidirectional 923s ok 4 /GObject/BindingGroup/transform 923s ok 5 /GObject/BindingGroup/transform-closures 923s ok 6 /GObject/BindingGroup/same-object 923s ok 7 /GObject/BindingGroup/weak-ref-source 923s ok 8 /GObject/BindingGroup/weak-ref-target 923s ok 9 /GObject/BindingGroup/properties 923s ok 10 /GObject/BindingGroup/weak-notify-no-bindings 923s ok 11 /GObject/BindingGroup/empty-closures 923s # End of BindingGroup tests 923s # End of GObject tests 923s ok - glib/bindinggroup.test 923s # Running test: glib/override.test 923s TAP version 14 923s # random seed: R02S920e51b01d282c0cba566e5964f94b9e 923s ok - glib/override.test 923s # Running test: glib/macros.test 923s ok - glib/macros.test 923s # Running test: glib/dynamictype.test 923s ok - glib/dynamictype.test 923s # Running test: glib/convert.test 923s 1..1 923s # Start of gobject tests 923s # *** emitting foo on a TestA instance 923s # Expecting: TestA::foo,TestI::foo 923s # Got: TestA::foo,TestI::foo 923s # *** emitting bar on a TestA instance 923s # Expecting: TestA::bar 923s # Got: TestA::bar 923s # *** emitting baz on a TestA instance 923s # Expecting: TestA::baz 923s # Got: TestA::baz 923s # *** emitting foo on a TestB instance 923s # Expecting: TestB::foo,TestA::foo,TestI::foo 923s # Got: TestB::foo,TestA::foo,TestI::foo 923s # *** emitting bar on a TestB instance 923s # Expecting: TestB::bar,TestA::bar 923s # Got: TestB::bar,TestA::bar 923s # *** emitting baz on a TestB instance 923s # Expecting: TestB::baz,TestA::baz 923s # Got: TestB::baz,TestA::baz 923s # *** emitting foo on a TestC instance 923s # Expecting: TestC::foo,TestB::foo,TestA::foo,TestI::foo 923s # Got: TestC::foo,TestB::foo,TestA::foo,TestI::foo 923s # *** emitting bar on a TestC instance 923s # Expecting: TestC::bar,TestB::bar,TestA::bar 923s # Got: TestC::bar,TestB::bar,TestA::bar 923s # *** emitting baz on a TestC instance 923s # Expecting: TestC::baz,TestB::baz,TestA::baz 923s # Got: TestC::baz,TestB::baz,TestA::baz 923s ok 1 /gobject/override 923s # End of gobject tests 923s TAP version 14 923s # random seed: R02S7851e1e7ae600dfdc2613f5db326f473 923s 1..3 923s # Start of alignof tests 923s ok 1 /alignof/fallback 923s # End of alignof tests 923s # Start of assert tests 923s ok 2 /assert/static 923s # End of assert tests 923s # Start of struct tests 923s ok 3 /struct/sizeof_member 923s # End of struct tests 923s TAP version 14 923s # random seed: R02S5c4891b53c19a1470c32c141f25028ab 923s 1..2 923s # Start of gobject tests 923s ok 1 /gobject/dynamic-type 923s # Start of dynamic-type tests 923s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/623 923s ok 2 /gobject/dynamic-type/query 923s # End of dynamic-type tests 923s # End of gobject tests 923s TAP version 14 923s # random seed: R02S7fce66988f628fa1d26e0c09bb27e6d1 923s 1..14 923s # Start of conversion tests 923s ok 1 /conversion/no-conv 923s ok 2 /conversion/iconv-state 923s ok 3 /conversion/illegal-sequence 923s ok 4 /conversion/byte-order 923s ok 5 /conversion/unicode 923s ok 6 /conversion/filename-utf8 923s ok 7 /conversion/filename-display 923s ok 8 /conversion/convert-embedded-nul 923s # Start of locale-to-utf8 tests 923s ok 9 /conversion/locale-to-utf8/embedded-nul 923s # Start of embedded-nul tests 923s # Start of subprocess tests 923s # End of subprocess tests 923s # End of embedded-nul tests 923s # End of locale-to-utf8 tests 923s # Start of locale-from-utf8 tests 923s ok 10 /conversion/locale-from-utf8/embedded-nul 923s # Start of embedded-nul tests 923s # Start of subprocess tests 923s # End of subprocess tests 923s # End of embedded-nul tests 923s # End of locale-from-utf8 tests 923s # Start of filename-to-utf8 tests 923s ok 11 /conversion/filename-to-utf8/embedded-nul 923s # Start of embedded-nul tests 923s # Start of subprocess tests 923s # End of subprocess tests 923s # End of embedded-nul tests 923s # End of filename-to-utf8 tests 923s # Start of filename-from-utf8 tests 923s ok 12 /conversion/filename-from-utf8/embedded-nul 923s # Start of embedded-nul tests 923s # Start of subprocess tests 923s # End of subprocess tests 923s # End of embedded-nul tests 923s # End of filename-from-utf8 tests 923s # Start of filename-from-uri tests 923s ok - glib/convert.test 923s ok 13 /conversion/filename-from-uri/query-is-ignored 923s ok 14 /conversion/filename-from-uri/fragment-is-ignored 923s # End of filename-from-uri tests 923s # End of conversion tests 923s # Running test: glib/private.test 923s TAP version 14 923s # random seed: R02S6841beae5f357986a6044fbcfb5d4be4 923s 1..8 923s # Start of thread tests 923s ok 1 /thread/private1 924s ok 2 /thread/private2 924s # slow test /thread/private2 executed in 1.15 secs 924s ok 3 /thread/private3 924s ok 4 /thread/staticprivate1 924s ok 5 /thread/staticprivate2 924s ok 6 /thread/staticprivate3 925s ok - glib/private.test 925s # Running test: glib/performance.test 925s ok 7 /thread/staticprivate4 925s # slow test /thread/staticprivate4 executed in 1.10 secs 925s ok 8 /thread/staticprivate5 925s # End of thread tests 927s # Executing: glib/performance.test 932s # Executing: glib/performance.test 933s simple-construction: Millions of constructed objects per second: 17.202 935s simple-construction1: Millions of constructed objects per second: 66.977 937s # Executing: glib/performance.test 939s complex-construction: Millions of constructed objects per second: 5.638 942s # Executing: glib/performance.test 944s complex-construction1: Millions of constructed objects per second: 10.603 947s # Executing: glib/performance.test 950s complex-construction2: Millions of constructed objects per second: 12.559 952s # Executing: glib/performance.test 952s finalization: Millions of finalized objects per second: 3.090 953s type-check: Million type checks per second: 102.25 954s emit-unhandled: Emissions per second: 4499937 955s emit-unhandled-empty: Emissions per second: 25793951 956s emit-unhandled-generic: Emissions per second: 5934690 957s # Executing: glib/performance.test 958s emit-unhandled-generic-empty: Emissions per second: 25719155 959s emit-unhandled-args: Emissions per second: 3961384 960s emit-handled: Emissions per second: 3119470 961s emit-handled-empty: Emissions per second: 3295016 962s # Executing: glib/performance.test 962s emit-handled-generic: Emissions per second: 3194948 964s emit-handled-generic-empty: Emissions per second: 5307740 965s emit-handled-args: Emissions per second: 2853296 966s notify-unhandled: Notify (unhandled) per second: 27044028 967s # Executing: glib/performance.test 967s notify-by-pspec-unhandled: Notify (unhandled) per second: 92728530 968s notify-handled: Notify per second: 1929091 970s notify-by-pspec-handled: Notify per second: 2054858 971s property-set: Property set per second: 13755956 972s # Executing: glib/performance.test 972s property-set-signaled: Property set per second: 2890918 973s property-get: Property get per second: 13559612 974s refcount: Million refs+unref per second: 27.10 976s refcount-1: Million refs+unref per second: 80.64 977s # Executing: glib/performance.test 977s refcount-toggle: Million refs+unref per second: 42.38 977s ok - glib/performance.test 977s # Running test: glib/memchunk.test 977s TAP version 14 977s # random seed: R02S86f0f94a7d599820b8aadb6eaff896bd 977s 1..1 977s # Start of memchunk tests 977s ok 1 /memchunk/basic 977s # End of memchunk tests 977s ok - glib/memchunk.test 977s # Running test: glib/callable-info.test 977s TAP version 14 977s # random seed: R02Sd9cad83a111efd9fa99bd26f6df92b7a 977s 1..5 977s # Start of callable-info tests 977s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_PG4Q52/callable-info/sync-function/.dirs/home 977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_PG4Q52/callable-info/sync-function/.dirs/cache 977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_PG4Q52/callable-info/sync-function/.dirs/system-config1:/tmp/test_callable-info_PG4Q52/callable-info/sync-function/.dirs/system-config2 977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_PG4Q52/callable-info/sync-function/.dirs/config 977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_PG4Q52/callable-info/sync-function/.dirs/system-data1:/tmp/test_callable-info_PG4Q52/callable-info/sync-function/.dirs/system-data2 977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_PG4Q52/callable-info/sync-function/.dirs/data 977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_PG4Q52/callable-info/sync-function/.dirs/state 977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_PG4Q52/callable-info/sync-function/.dirs/runtime 977s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 977s ok 1 /callable-info/sync-function 977s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_PG4Q52/callable-info/async-function/.dirs/home 977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_PG4Q52/callable-info/async-function/.dirs/cache 977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_PG4Q52/callable-info/async-function/.dirs/system-config1:/tmp/test_callable-info_PG4Q52/callable-info/async-function/.dirs/system-config2 977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_PG4Q52/callable-info/async-function/.dirs/config 977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_PG4Q52/callable-info/async-function/.dirs/system-data1:/tmp/test_callable-info_PG4Q52/callable-info/async-function/.dirs/system-data2 977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_PG4Q52/callable-info/async-function/.dirs/data 977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_PG4Q52/callable-info/async-function/.dirs/state 977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_PG4Q52/callable-info/async-function/.dirs/runtime 977s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 977s ok 2 /callable-info/async-function 977s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_PG4Q52/callable-info/is-method/.dirs/home 977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_PG4Q52/callable-info/is-method/.dirs/cache 977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_PG4Q52/callable-info/is-method/.dirs/system-config1:/tmp/test_callable-info_PG4Q52/callable-info/is-method/.dirs/system-config2 977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_PG4Q52/callable-info/is-method/.dirs/config 977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_PG4Q52/callable-info/is-method/.dirs/system-data1:/tmp/test_callable-info_PG4Q52/callable-info/is-method/.dirs/system-data2 977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_PG4Q52/callable-info/is-method/.dirs/data 977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_PG4Q52/callable-info/is-method/.dirs/state 977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_PG4Q52/callable-info/is-method/.dirs/runtime 977s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 977s ok 3 /callable-info/is-method 977s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_PG4Q52/callable-info/static-method/.dirs/home 977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_PG4Q52/callable-info/static-method/.dirs/cache 977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_PG4Q52/callable-info/static-method/.dirs/system-config1:/tmp/test_callable-info_PG4Q52/callable-info/static-method/.dirs/system-config2 977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_PG4Q52/callable-info/static-method/.dirs/config 977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_PG4Q52/callable-info/static-method/.dirs/system-data1:/tmp/test_callable-info_PG4Q52/callable-info/static-method/.dirs/system-data2 977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_PG4Q52/callable-info/static-method/.dirs/data 977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_PG4Q52/callable-info/static-method/.dirs/state 977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_PG4Q52/callable-info/static-method/.dirs/runtime 977s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 977s ok 4 /callable-info/static-method 977s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_PG4Q52/callable-info/static-vfunc/.dirs/home 977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_PG4Q52/callable-info/static-vfunc/.dirs/cache 977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_PG4Q52/callable-info/static-vfunc/.dirs/system-config1:/tmp/test_callable-info_PG4Q52/callable-info/static-vfunc/.dirs/system-config2 977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_PG4Q52/callable-info/static-vfunc/.dirs/config 977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_PG4Q52/callable-info/static-vfunc/.dirs/system-data1:/tmp/test_callable-info_PG4Q52/callable-info/static-vfunc/.dirs/system-data2 977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_PG4Q52/callable-info/static-vfunc/.dirs/data 977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_PG4Q52/callable-info/static-vfunc/.dirs/state 977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_PG4Q52/callable-info/static-vfunc/.dirs/runtime 977s ok - glib/callable-info.test 977s # Running test: glib/signals-refcount2.test 977s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 977s # Bug Reference: https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/361 977s ok 5 /callable-info/static-vfunc # SKIP g-ir-scanner is not new enough 977s # End of callable-info tests 977s TAP version 14 977s # random seed: R02S6f6240f9cc7031ed64b5740535b034be 977s 1..1 977s # Start of gobject tests 977s # Start of refcount tests 977s # init 0xb65999bb4de0 977s # 977s # init 0xb65999bab610 977s # 982s # Executing: glib/signals-refcount2.test 982s # dispose 0xb65999bb4de0! 982s # 982s # dispose 0xb65999bab610! 982s # 982s ok 1 /gobject/refcount/signals 982s # slow test /gobject/refcount/signals executed in 5.00 secs 982s # End of refcount tests 982s # End of gobject tests 982s ok - glib/signals-refcount2.test 982s # Running test: glib/gdbus-connection-flush.test 982s TAP version 14 982s # random seed: R02S38d831a1b6af49e04f23e8ba052eb746 982s 1..2 982s # Start of gdbus tests 982s # Start of connection tests 982s # Start of flush tests 982s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-flush_SJXS52/gdbus/connection/flush/busy/.dirs/home 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-flush_SJXS52/gdbus/connection/flush/busy/.dirs/cache 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-flush_SJXS52/gdbus/connection/flush/busy/.dirs/system-config1:/tmp/test_gdbus-connection-flush_SJXS52/gdbus/connection/flush/busy/.dirs/system-config2 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-flush_SJXS52/gdbus/connection/flush/busy/.dirs/config 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-flush_SJXS52/gdbus/connection/flush/busy/.dirs/system-data1:/tmp/test_gdbus-connection-flush_SJXS52/gdbus/connection/flush/busy/.dirs/system-data2 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-flush_SJXS52/gdbus/connection/flush/busy/.dirs/data 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-flush_SJXS52/gdbus/connection/flush/busy/.dirs/state 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-flush_SJXS52/gdbus/connection/flush/busy/.dirs/runtime 982s ok - glib/gdbus-connection-flush.test 982s # Running test: glib/autoptr.test 982s ok - glib/autoptr.test 982s # Running test: glib/gdbus-test-codegen-min-required-2-64.test 982s ok 1 /gdbus/connection/flush/busy 982s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-flush_SJXS52/gdbus/connection/flush/idle/.dirs/home 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-flush_SJXS52/gdbus/connection/flush/idle/.dirs/cache 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-flush_SJXS52/gdbus/connection/flush/idle/.dirs/system-config1:/tmp/test_gdbus-connection-flush_SJXS52/gdbus/connection/flush/idle/.dirs/system-config2 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-flush_SJXS52/gdbus/connection/flush/idle/.dirs/config 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-flush_SJXS52/gdbus/connection/flush/idle/.dirs/system-data1:/tmp/test_gdbus-connection-flush_SJXS52/gdbus/connection/flush/idle/.dirs/system-data2 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-flush_SJXS52/gdbus/connection/flush/idle/.dirs/data 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-flush_SJXS52/gdbus/connection/flush/idle/.dirs/state 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-flush_SJXS52/gdbus/connection/flush/idle/.dirs/runtime 982s ok 2 /gdbus/connection/flush/idle 982s # End of flush tests 982s # End of connection tests 982s # End of gdbus tests 982s TAP version 14 982s # random seed: R02See2c39769653b2418269987b3678f336 982s 1..6 982s # Start of autoptr tests 982s ok 1 /autoptr/autoptr 982s ok 2 /autoptr/autoptr_steal 982s ok 3 /autoptr/autolist 982s ok 4 /autoptr/autoslist 982s ok 5 /autoptr/autoqueue 982s ok 6 /autoptr/autoclass 982s # End of autoptr tests 982s TAP version 14 982s # random seed: R02S5121978ac7dd2604016a652db0d8bc74 982s 1..8 982s # Start of gdbus tests 982s # Start of codegen tests 982s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/annotations/.dirs/home 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/annotations/.dirs/cache 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/annotations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/annotations/.dirs/system-config2 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/annotations/.dirs/config 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/annotations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/annotations/.dirs/system-data2 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/annotations/.dirs/data 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/annotations/.dirs/state 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/annotations/.dirs/runtime 982s ok 1 /gdbus/codegen/annotations 982s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/interface_stability/.dirs/home 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/interface_stability/.dirs/cache 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/interface_stability/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/interface_stability/.dirs/system-config2 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/interface_stability/.dirs/config 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/interface_stability/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/interface_stability/.dirs/system-data2 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/interface_stability/.dirs/data 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/interface_stability/.dirs/state 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/interface_stability/.dirs/runtime 982s ok 2 /gdbus/codegen/interface_stability 982s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/object-manager/.dirs/home 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/object-manager/.dirs/cache 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/object-manager/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/object-manager/.dirs/system-config2 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/object-manager/.dirs/config 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/object-manager/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/object-manager/.dirs/system-data2 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/object-manager/.dirs/data 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/object-manager/.dirs/state 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/object-manager/.dirs/runtime 982s ok 3 /gdbus/codegen/object-manager 982s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/property-naming/.dirs/home 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/property-naming/.dirs/cache 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/property-naming/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/property-naming/.dirs/system-config2 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/property-naming/.dirs/config 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/property-naming/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/property-naming/.dirs/system-data2 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/property-naming/.dirs/data 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/property-naming/.dirs/state 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/property-naming/.dirs/runtime 982s ok 4 /gdbus/codegen/property-naming 982s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/autocleanups/.dirs/home 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/autocleanups/.dirs/cache 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/autocleanups/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/autocleanups/.dirs/system-config2 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/autocleanups/.dirs/config 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/autocleanups/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/autocleanups/.dirs/system-data2 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/autocleanups/.dirs/data 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/autocleanups/.dirs/state 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/autocleanups/.dirs/runtime 982s ok 5 /gdbus/codegen/autocleanups 982s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/deprecations/.dirs/home 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/deprecations/.dirs/cache 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/deprecations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/deprecations/.dirs/system-config2 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/deprecations/.dirs/config 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/deprecations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/deprecations/.dirs/system-data2 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/deprecations/.dirs/data 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/deprecations/.dirs/state 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/deprecations/.dirs/runtime 982s ok 6 /gdbus/codegen/deprecations 982s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/standalone-interface-info/.dirs/home 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/standalone-interface-info/.dirs/cache 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/standalone-interface-info/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/standalone-interface-info/.dirs/system-config2 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/standalone-interface-info/.dirs/config 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/standalone-interface-info/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/standalone-interface-info/.dirs/system-data2 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/standalone-interface-info/.dirs/data 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/standalone-interface-info/.dirs/state 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/standalone-interface-info/.dirs/runtime 982s ok 7 /gdbus/codegen/standalone-interface-info 982s ok - glib/gdbus-test-codegen-min-required-2-64.test 982s # Running test: glib/string.test 982s ok - glib/string.test 982s # Running test: glib/spawn-multithreaded.test 982s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/unix-fd-list/.dirs/home 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/unix-fd-list/.dirs/cache 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/unix-fd-list/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/unix-fd-list/.dirs/system-config2 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/unix-fd-list/.dirs/config 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/unix-fd-list/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/unix-fd-list/.dirs/system-data2 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/unix-fd-list/.dirs/data 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/unix-fd-list/.dirs/state 982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_VC4R52/gdbus/codegen/unix-fd-list/.dirs/runtime 982s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1726 982s ok 8 /gdbus/codegen/unix-fd-list 982s # End of codegen tests 982s # End of gdbus tests 982s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 982s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 982s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 982s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 982s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 982s TAP version 14 982s # random seed: R02S68a8b1ba351370c1d48e2a27ac6855ab 982s 1..23 982s # Start of string tests 982s ok 1 /string/test-string-chunks 982s ok 2 /string/test-string-chunk-insert 982s ok 3 /string/test-string-new 982s ok 4 /string/test-string-printf 982s ok 5 /string/test-string-assign 982s ok 6 /string/test-string-append-c 982s ok 7 /string/test-string-append 982s ok 8 /string/test-string-append-vprintf 982s ok 9 /string/test-string-prepend-c 982s ok 10 /string/test-string-prepend 982s ok 11 /string/test-string-insert 982s ok 12 /string/test-string-insert-unichar 982s ok 13 /string/test-string-equal 982s ok 14 /string/test-string-truncate 982s ok 15 /string/test-string-overwrite 982s ok 16 /string/test-string-nul-handling 982s ok 17 /string/test-string-up-down 982s ok 18 /string/test-string-set-size 982s ok 19 /string/test-string-to-bytes 982s # 0: Replacing "bar" with "baz" (limit 0) in "foo bar foo baz foo bar foobarbaz" 982s # -> 3 replacements, "foo baz foo baz foo baz foobazbaz" 982s # 1: Replacing "baz" with "bar" (limit 3) in "foo baz foo baz foo baz foobazbaz" 982s # -> 3 replacements, "foo bar foo bar foo bar foobazbaz" 982s # 2: Replacing "foobar" with "bar" (limit 1) in "foo bar foo bar foo bar foobazbaz" 982s # -> 0 replacements, "foo bar foo bar foo bar foobazbaz" 982s # 3: Replacing "a" with "abcdefghijkl" (limit 0) in "aaaaaaaa" 982s # -> 8 replacements, "abcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijkl" 982s # 4: Replacing "$LIB" with "lib32" (limit 0) in "/usr/$LIB/libMangoHud.so" 982s # -> 1 replacements, "/usr/lib32/libMangoHud.so" 982s # 5: Replacing "o" with "" (limit 0) in "food for foals" 982s # -> 4 replacements, "fd fr fals" 982s # 6: Replacing "a" with "aaa" (limit 0) in "aaa" 982s # -> 3 replacements, "aaaaaaaaa" 982s # 7: Replacing "a" with "" (limit 0) in "aaa" 982s # -> 3 replacements, "" 982s # 8: Replacing "aa" with "bb" (limit 0) in "aaa" 982s # -> 1 replacements, "bba" 982s # 9: Replacing "" with "bar" (limit 0) in "foo" 982s # -> 4 replacements, "barfbarobarobar" 982s # 10: Replacing "" with "bar" (limit 1) in "foo" 982s # -> 1 replacements, "barfoo" 982s # 11: Replacing "" with "bar" (limit 2) in "foo" 982s # -> 2 replacements, "barfbaroo" 982s # 12: Replacing "" with "bar" (limit 3) in "foo" 982s # -> 3 replacements, "barfbarobaro" 982s # 13: Replacing "" with "bar" (limit 4) in "foo" 982s # -> 4 replacements, "barfbarobarobar" 982s # 14: Replacing "" with "bar" (limit 5) in "foo" 982s # -> 4 replacements, "barfbarobarobar" 982s # 15: Replacing "" with "x" (limit 0) in "" 982s # -> 1 replacements, "x" 982s # 16: Replacing "" with "" (limit 0) in "" 982s # -> 1 replacements, "" 982s # 17: Replacing "" with "aaaaaaaaaaaa" (limit 0) in "bbbbbbbbb" 982s # -> 10 replacements, "aaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaa" 982s ok 20 /string/test-string-replace 982s ok 21 /string/test-string-steal 982s ok 22 /string/test-string-new-take 982s # Start of test-string-new-take tests 982s ok 23 /string/test-string-new-take/null 982s # End of test-string-new-take tests 982s # End of string tests 982s TAP version 14 982s # random seed: R02Sea1290b7621238b59f097b338f192bb0 982s 1..4 982s # Start of gthread tests 983s # Child 3324 (ttl 1) exited, status 0 984s # Child 3325 (ttl 2) exited, status 0 984s ok 1 /gthread/spawn-childs 984s # slow test /gthread/spawn-childs executed in 2.00 secs 984s # Created pid: 3329 (ttl 2) 984s # Created pid: 3330 (ttl 1) 985s # Child 3330 (ttl 1) exited, status 0 986s # Child 3329 (ttl 2) exited, status 0 986s ok 2 /gthread/spawn-childs-threads 986s # slow test /gthread/spawn-childs-threads executed in 2.00 secs 986s ok 3 /gthread/spawn-sync 986s ok - glib/spawn-multithreaded.test 986s ok 4 /gthread/spawn-async 986s # End of gthread tests 986s # Running test: glib/gdbus-address-get-session.test 986s TAP version 14 986s # random seed: R02S893d1cb6fa8f76d3314d07ae87ffbc23 986s 1..2 986s # Start of gdbus tests 986s ok 1 /gdbus/x11-autolaunch 986s ok 2 /gdbus/xdg-runtime 986s # End of gdbus tests 986s ok - glib/gdbus-address-get-session.test 986s # Running test: glib/contexts.test 986s TAP version 14 986s # random seed: R02S7638504f155331fc214d840a7e4ed2f4 986s 1..5 986s # Start of gio tests 986s # Start of contexts tests 986s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 986s ok 1 /gio/contexts/thread-independence 986s ok 2 /gio/contexts/context-independence 986s # Start of context-specific tests 986s ok 3 /gio/contexts/context-specific/identity 986s ok 4 /gio/contexts/context-specific/emit 986s ok 5 /gio/contexts/context-specific/emit-and-unref 986s # End of context-specific tests 986s # End of contexts tests 986s # End of gio tests 986s ok - glib/contexts.test 986s # Running test: glib/socket.test 986s TAP version 14 986s # random seed: R02Sa7f1674899d263e013c08c11518654d8 986s 1..28 986s # Start of socket tests 987s # Executing: glib/socket.test 987s ok 1 /socket/ipv4_sync 987s # slow test /socket/ipv4_sync executed in 1.00 secs 988s ok 2 /socket/ipv4_async 988s # slow test /socket/ipv4_async executed in 1.00 secs 988s ok 3 /socket/ipv6_sync 988s ok 4 /socket/ipv6_async 988s ok 5 /socket/ipv6_v4mapped 989s ok 6 /socket/close_graceful 989s # slow test /socket/close_graceful executed in 1.00 secs 989s ok 7 /socket/timed_wait # SKIP Not running timing heavy test 989s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=741707 989s ok 8 /socket/fd_reuse 989s ok 9 /socket/address 989s ok 10 /socket/unix-from-fd 989s ok 11 /socket/unix-connection 989s ok 12 /socket/unix-connection-ancillary-data 989s ok 13 /socket/source-postmortem 989s ok 14 /socket/read_write 989s ok 15 /socket/read_writev 989s # /socket/receive_bytes summary: Test basic functionality of g_socket_receive_bytes() 989s ok 16 /socket/receive_bytes 989s # /socket/receive_bytes_from summary: Test basic functionality of g_socket_receive_bytes_from() 989s ok 17 /socket/receive_bytes_from 989s # Start of ipv4_sync tests 989s ok 18 /socket/ipv4_sync/datagram 989s # Start of datagram tests 990s ok 19 /socket/ipv4_sync/datagram/timeouts 990s # slow test /socket/ipv4_sync/datagram/timeouts executed in 1.10 secs 990s # End of datagram tests 990s # End of ipv4_sync tests 990s # Start of ipv6_sync tests 990s ok 20 /socket/ipv6_sync/datagram 990s # Start of datagram tests 991s ok 21 /socket/ipv6_sync/datagram/timeouts 991s # slow test /socket/ipv6_sync/datagram/timeouts executed in 1.10 secs 991s # End of datagram tests 991s # End of ipv6_sync tests 991s # Start of reuse tests 991s ok 22 /socket/reuse/tcp 991s ok 23 /socket/reuse/udp 991s # End of reuse tests 991s # Start of get_available tests 991s ok 24 /socket/get_available/datagram 991s ok 25 /socket/get_available/stream 991s # End of get_available tests 991s # Start of credentials tests 991s # Supported on this OS: GCredentials:linux-ucred:pid=0 991s ok 26 /socket/credentials/tcp_client 991s # Supported on this OS: GCredentials:linux-ucred:pid=0 991s ok 27 /socket/credentials/tcp_server 991s # Supported on this OS: GCredentials:linux-ucred:pid=3384,uid=1000,gid=1000 991s ok 28 /socket/credentials/unix_socketpair 991s # End of credentials tests 991s # End of socket tests 991s ok - glib/socket.test 991s # Running test: glib/tls-bindings.test 991s TAP version 14 991s # random seed: R02S4cfad82b433ed5e7beb718829e18a292 991s 1..2 991s # Start of tls-connection tests 991s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ?gio-tls-backend? 991s ok - glib/tls-bindings.test 991s # Running test: glib/keyfile.test 991s ok 1 /tls-connection/get-tls-channel-binding 991s ok 2 /tls-connection/get-dtls-channel-binding 991s # End of tls-connection tests 991s TAP version 14 991s # random seed: R02S87cf9b588970cd6128b35632cd01fb81 991s 1..36 991s # Start of keyfile tests 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_BAD552/keyfile/line-ends/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_BAD552/keyfile/line-ends/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_BAD552/keyfile/line-ends/.dirs/system-config1:/tmp/test_keyfile_BAD552/keyfile/line-ends/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_BAD552/keyfile/line-ends/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_BAD552/keyfile/line-ends/.dirs/system-data1:/tmp/test_keyfile_BAD552/keyfile/line-ends/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_BAD552/keyfile/line-ends/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_BAD552/keyfile/line-ends/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_BAD552/keyfile/line-ends/.dirs/runtime 991s ok 1 /keyfile/line-ends 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_BAD552/keyfile/whitespace/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_BAD552/keyfile/whitespace/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_BAD552/keyfile/whitespace/.dirs/system-config1:/tmp/test_keyfile_BAD552/keyfile/whitespace/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_BAD552/keyfile/whitespace/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_BAD552/keyfile/whitespace/.dirs/system-data1:/tmp/test_keyfile_BAD552/keyfile/whitespace/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_BAD552/keyfile/whitespace/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_BAD552/keyfile/whitespace/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_BAD552/keyfile/whitespace/.dirs/runtime 991s ok 2 /keyfile/whitespace 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_BAD552/keyfile/comments/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_BAD552/keyfile/comments/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_BAD552/keyfile/comments/.dirs/system-config1:/tmp/test_keyfile_BAD552/keyfile/comments/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_BAD552/keyfile/comments/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_BAD552/keyfile/comments/.dirs/system-data1:/tmp/test_keyfile_BAD552/keyfile/comments/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_BAD552/keyfile/comments/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_BAD552/keyfile/comments/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_BAD552/keyfile/comments/.dirs/runtime 991s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3047 991s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/104 991s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3047 991s ok 3 /keyfile/comments 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_BAD552/keyfile/listing/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_BAD552/keyfile/listing/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_BAD552/keyfile/listing/.dirs/system-config1:/tmp/test_keyfile_BAD552/keyfile/listing/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_BAD552/keyfile/listing/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_BAD552/keyfile/listing/.dirs/system-data1:/tmp/test_keyfile_BAD552/keyfile/listing/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_BAD552/keyfile/listing/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_BAD552/keyfile/listing/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_BAD552/keyfile/listing/.dirs/runtime 991s ok 4 /keyfile/listing 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_BAD552/keyfile/string/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_BAD552/keyfile/string/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_BAD552/keyfile/string/.dirs/system-config1:/tmp/test_keyfile_BAD552/keyfile/string/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_BAD552/keyfile/string/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_BAD552/keyfile/string/.dirs/system-data1:/tmp/test_keyfile_BAD552/keyfile/string/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_BAD552/keyfile/string/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_BAD552/keyfile/string/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_BAD552/keyfile/string/.dirs/runtime 991s ok 5 /keyfile/string 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_BAD552/keyfile/boolean/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_BAD552/keyfile/boolean/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_BAD552/keyfile/boolean/.dirs/system-config1:/tmp/test_keyfile_BAD552/keyfile/boolean/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_BAD552/keyfile/boolean/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_BAD552/keyfile/boolean/.dirs/system-data1:/tmp/test_keyfile_BAD552/keyfile/boolean/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_BAD552/keyfile/boolean/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_BAD552/keyfile/boolean/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_BAD552/keyfile/boolean/.dirs/runtime 991s ok 6 /keyfile/boolean 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_BAD552/keyfile/number/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_BAD552/keyfile/number/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_BAD552/keyfile/number/.dirs/system-config1:/tmp/test_keyfile_BAD552/keyfile/number/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_BAD552/keyfile/number/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_BAD552/keyfile/number/.dirs/system-data1:/tmp/test_keyfile_BAD552/keyfile/number/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_BAD552/keyfile/number/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_BAD552/keyfile/number/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_BAD552/keyfile/number/.dirs/runtime 991s ok 7 /keyfile/number 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_BAD552/keyfile/locale-string/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_BAD552/keyfile/locale-string/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_BAD552/keyfile/locale-string/.dirs/system-config1:/tmp/test_keyfile_BAD552/keyfile/locale-string/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_BAD552/keyfile/locale-string/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_BAD552/keyfile/locale-string/.dirs/system-data1:/tmp/test_keyfile_BAD552/keyfile/locale-string/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_BAD552/keyfile/locale-string/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_BAD552/keyfile/locale-string/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_BAD552/keyfile/locale-string/.dirs/runtime 991s ok 8 /keyfile/locale-string 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_BAD552/keyfile/lists/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_BAD552/keyfile/lists/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_BAD552/keyfile/lists/.dirs/system-config1:/tmp/test_keyfile_BAD552/keyfile/lists/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_BAD552/keyfile/lists/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_BAD552/keyfile/lists/.dirs/system-data1:/tmp/test_keyfile_BAD552/keyfile/lists/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_BAD552/keyfile/lists/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_BAD552/keyfile/lists/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_BAD552/keyfile/lists/.dirs/runtime 991s ok 9 /keyfile/lists 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_BAD552/keyfile/lists-set-get/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_BAD552/keyfile/lists-set-get/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_BAD552/keyfile/lists-set-get/.dirs/system-config1:/tmp/test_keyfile_BAD552/keyfile/lists-set-get/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_BAD552/keyfile/lists-set-get/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_BAD552/keyfile/lists-set-get/.dirs/system-data1:/tmp/test_keyfile_BAD552/keyfile/lists-set-get/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_BAD552/keyfile/lists-set-get/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_BAD552/keyfile/lists-set-get/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_BAD552/keyfile/lists-set-get/.dirs/runtime 991s ok 10 /keyfile/lists-set-get 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_BAD552/keyfile/group-remove/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_BAD552/keyfile/group-remove/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_BAD552/keyfile/group-remove/.dirs/system-config1:/tmp/test_keyfile_BAD552/keyfile/group-remove/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_BAD552/keyfile/group-remove/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_BAD552/keyfile/group-remove/.dirs/system-data1:/tmp/test_keyfile_BAD552/keyfile/group-remove/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_BAD552/keyfile/group-remove/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_BAD552/keyfile/group-remove/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_BAD552/keyfile/group-remove/.dirs/runtime 991s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=165887 991s ok 11 /keyfile/group-remove 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_BAD552/keyfile/key-remove/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_BAD552/keyfile/key-remove/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_BAD552/keyfile/key-remove/.dirs/system-config1:/tmp/test_keyfile_BAD552/keyfile/key-remove/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_BAD552/keyfile/key-remove/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_BAD552/keyfile/key-remove/.dirs/system-data1:/tmp/test_keyfile_BAD552/keyfile/key-remove/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_BAD552/keyfile/key-remove/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_BAD552/keyfile/key-remove/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_BAD552/keyfile/key-remove/.dirs/runtime 991s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=165980 991s ok 12 /keyfile/key-remove 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_BAD552/keyfile/groups/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_BAD552/keyfile/groups/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_BAD552/keyfile/groups/.dirs/system-config1:/tmp/test_keyfile_BAD552/keyfile/groups/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_BAD552/keyfile/groups/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_BAD552/keyfile/groups/.dirs/system-data1:/tmp/test_keyfile_BAD552/keyfile/groups/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_BAD552/keyfile/groups/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_BAD552/keyfile/groups/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_BAD552/keyfile/groups/.dirs/runtime 991s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=316309 991s ok 13 /keyfile/groups 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_BAD552/keyfile/duplicate-keys/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_BAD552/keyfile/duplicate-keys/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_BAD552/keyfile/duplicate-keys/.dirs/system-config1:/tmp/test_keyfile_BAD552/keyfile/duplicate-keys/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_BAD552/keyfile/duplicate-keys/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_BAD552/keyfile/duplicate-keys/.dirs/system-data1:/tmp/test_keyfile_BAD552/keyfile/duplicate-keys/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_BAD552/keyfile/duplicate-keys/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_BAD552/keyfile/duplicate-keys/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_BAD552/keyfile/duplicate-keys/.dirs/runtime 991s ok 14 /keyfile/duplicate-keys 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_BAD552/keyfile/duplicate-groups/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_BAD552/keyfile/duplicate-groups/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_BAD552/keyfile/duplicate-groups/.dirs/system-config1:/tmp/test_keyfile_BAD552/keyfile/duplicate-groups/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_BAD552/keyfile/duplicate-groups/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_BAD552/keyfile/duplicate-groups/.dirs/system-data1:/tmp/test_keyfile_BAD552/keyfile/duplicate-groups/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_BAD552/keyfile/duplicate-groups/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_BAD552/keyfile/duplicate-groups/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_BAD552/keyfile/duplicate-groups/.dirs/runtime 991s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=157877 991s ok 15 /keyfile/duplicate-groups 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_BAD552/keyfile/duplicate-groups2/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_BAD552/keyfile/duplicate-groups2/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_BAD552/keyfile/duplicate-groups2/.dirs/system-config1:/tmp/test_keyfile_BAD552/keyfile/duplicate-groups2/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_BAD552/keyfile/duplicate-groups2/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_BAD552/keyfile/duplicate-groups2/.dirs/system-data1:/tmp/test_keyfile_BAD552/keyfile/duplicate-groups2/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_BAD552/keyfile/duplicate-groups2/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_BAD552/keyfile/duplicate-groups2/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_BAD552/keyfile/duplicate-groups2/.dirs/runtime 991s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=385910 991s ok 16 /keyfile/duplicate-groups2 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_BAD552/keyfile/group-names/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_BAD552/keyfile/group-names/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_BAD552/keyfile/group-names/.dirs/system-config1:/tmp/test_keyfile_BAD552/keyfile/group-names/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_BAD552/keyfile/group-names/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_BAD552/keyfile/group-names/.dirs/system-data1:/tmp/test_keyfile_BAD552/keyfile/group-names/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_BAD552/keyfile/group-names/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_BAD552/keyfile/group-names/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_BAD552/keyfile/group-names/.dirs/runtime 991s ok 17 /keyfile/group-names 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_BAD552/keyfile/key-names/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_BAD552/keyfile/key-names/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_BAD552/keyfile/key-names/.dirs/system-config1:/tmp/test_keyfile_BAD552/keyfile/key-names/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_BAD552/keyfile/key-names/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_BAD552/keyfile/key-names/.dirs/system-data1:/tmp/test_keyfile_BAD552/keyfile/key-names/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_BAD552/keyfile/key-names/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_BAD552/keyfile/key-names/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_BAD552/keyfile/key-names/.dirs/runtime 991s ok 18 /keyfile/key-names 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_BAD552/keyfile/reload/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_BAD552/keyfile/reload/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_BAD552/keyfile/reload/.dirs/system-config1:/tmp/test_keyfile_BAD552/keyfile/reload/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_BAD552/keyfile/reload/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_BAD552/keyfile/reload/.dirs/system-data1:/tmp/test_keyfile_BAD552/keyfile/reload/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_BAD552/keyfile/reload/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_BAD552/keyfile/reload/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_BAD552/keyfile/reload/.dirs/runtime 991s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=420686 991s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2927 991s ok 19 /keyfile/reload 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_BAD552/keyfile/int64/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_BAD552/keyfile/int64/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_BAD552/keyfile/int64/.dirs/system-config1:/tmp/test_keyfile_BAD552/keyfile/int64/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_BAD552/keyfile/int64/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_BAD552/keyfile/int64/.dirs/system-data1:/tmp/test_keyfile_BAD552/keyfile/int64/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_BAD552/keyfile/int64/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_BAD552/keyfile/int64/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_BAD552/keyfile/int64/.dirs/runtime 991s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=614864 991s ok 20 /keyfile/int64 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_BAD552/keyfile/load/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_BAD552/keyfile/load/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_BAD552/keyfile/load/.dirs/system-config1:/tmp/test_keyfile_BAD552/keyfile/load/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_BAD552/keyfile/load/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_BAD552/keyfile/load/.dirs/system-data1:/tmp/test_keyfile_BAD552/keyfile/load/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_BAD552/keyfile/load/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_BAD552/keyfile/load/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_BAD552/keyfile/load/.dirs/runtime 991s ok 21 /keyfile/load 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_BAD552/keyfile/save/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_BAD552/keyfile/save/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_BAD552/keyfile/save/.dirs/system-config1:/tmp/test_keyfile_BAD552/keyfile/save/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_BAD552/keyfile/save/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_BAD552/keyfile/save/.dirs/system-data1:/tmp/test_keyfile_BAD552/keyfile/save/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_BAD552/keyfile/save/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_BAD552/keyfile/save/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_BAD552/keyfile/save/.dirs/runtime 991s ok 22 /keyfile/save 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_BAD552/keyfile/load-fail/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_BAD552/keyfile/load-fail/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_BAD552/keyfile/load-fail/.dirs/system-config1:/tmp/test_keyfile_BAD552/keyfile/load-fail/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_BAD552/keyfile/load-fail/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_BAD552/keyfile/load-fail/.dirs/system-data1:/tmp/test_keyfile_BAD552/keyfile/load-fail/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_BAD552/keyfile/load-fail/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_BAD552/keyfile/load-fail/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_BAD552/keyfile/load-fail/.dirs/runtime 992s ok 23 /keyfile/load-fail 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_BAD552/keyfile/non-utf8/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_BAD552/keyfile/non-utf8/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_BAD552/keyfile/non-utf8/.dirs/system-config1:/tmp/test_keyfile_BAD552/keyfile/non-utf8/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_BAD552/keyfile/non-utf8/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_BAD552/keyfile/non-utf8/.dirs/system-data1:/tmp/test_keyfile_BAD552/keyfile/non-utf8/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_BAD552/keyfile/non-utf8/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_BAD552/keyfile/non-utf8/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_BAD552/keyfile/non-utf8/.dirs/runtime 992s ok 24 /keyfile/non-utf8 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_BAD552/keyfile/page-boundary/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_BAD552/keyfile/page-boundary/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_BAD552/keyfile/page-boundary/.dirs/system-config1:/tmp/test_keyfile_BAD552/keyfile/page-boundary/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_BAD552/keyfile/page-boundary/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_BAD552/keyfile/page-boundary/.dirs/system-data1:/tmp/test_keyfile_BAD552/keyfile/page-boundary/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_BAD552/keyfile/page-boundary/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_BAD552/keyfile/page-boundary/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_BAD552/keyfile/page-boundary/.dirs/runtime 992s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=640695 992s ok 25 /keyfile/page-boundary 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_BAD552/keyfile/ref/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_BAD552/keyfile/ref/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_BAD552/keyfile/ref/.dirs/system-config1:/tmp/test_keyfile_BAD552/keyfile/ref/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_BAD552/keyfile/ref/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_BAD552/keyfile/ref/.dirs/system-data1:/tmp/test_keyfile_BAD552/keyfile/ref/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_BAD552/keyfile/ref/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_BAD552/keyfile/ref/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_BAD552/keyfile/ref/.dirs/runtime 992s ok 26 /keyfile/ref 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_BAD552/keyfile/replace-value/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_BAD552/keyfile/replace-value/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_BAD552/keyfile/replace-value/.dirs/system-config1:/tmp/test_keyfile_BAD552/keyfile/replace-value/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_BAD552/keyfile/replace-value/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_BAD552/keyfile/replace-value/.dirs/system-data1:/tmp/test_keyfile_BAD552/keyfile/replace-value/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_BAD552/keyfile/replace-value/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_BAD552/keyfile/replace-value/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_BAD552/keyfile/replace-value/.dirs/runtime 992s ok 27 /keyfile/replace-value 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_BAD552/keyfile/list-separator/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_BAD552/keyfile/list-separator/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_BAD552/keyfile/list-separator/.dirs/system-config1:/tmp/test_keyfile_BAD552/keyfile/list-separator/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_BAD552/keyfile/list-separator/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_BAD552/keyfile/list-separator/.dirs/system-data1:/tmp/test_keyfile_BAD552/keyfile/list-separator/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_BAD552/keyfile/list-separator/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_BAD552/keyfile/list-separator/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_BAD552/keyfile/list-separator/.dirs/runtime 992s ok 28 /keyfile/list-separator 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_BAD552/keyfile/empty-string/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_BAD552/keyfile/empty-string/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_BAD552/keyfile/empty-string/.dirs/system-config1:/tmp/test_keyfile_BAD552/keyfile/empty-string/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_BAD552/keyfile/empty-string/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_BAD552/keyfile/empty-string/.dirs/system-data1:/tmp/test_keyfile_BAD552/keyfile/empty-string/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_BAD552/keyfile/empty-string/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_BAD552/keyfile/empty-string/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_BAD552/keyfile/empty-string/.dirs/runtime 992s ok 29 /keyfile/empty-string 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_BAD552/keyfile/limbo/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_BAD552/keyfile/limbo/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_BAD552/keyfile/limbo/.dirs/system-config1:/tmp/test_keyfile_BAD552/keyfile/limbo/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_BAD552/keyfile/limbo/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_BAD552/keyfile/limbo/.dirs/system-data1:/tmp/test_keyfile_BAD552/keyfile/limbo/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_BAD552/keyfile/limbo/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_BAD552/keyfile/limbo/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_BAD552/keyfile/limbo/.dirs/runtime 992s ok 30 /keyfile/limbo 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_BAD552/keyfile/utf8/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_BAD552/keyfile/utf8/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_BAD552/keyfile/utf8/.dirs/system-config1:/tmp/test_keyfile_BAD552/keyfile/utf8/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_BAD552/keyfile/utf8/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_BAD552/keyfile/utf8/.dirs/system-data1:/tmp/test_keyfile_BAD552/keyfile/utf8/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_BAD552/keyfile/utf8/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_BAD552/keyfile/utf8/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_BAD552/keyfile/utf8/.dirs/runtime 992s # Testing invalid encoding ?non-UTF-8? 992s # Testing invalid encoding ?UTF? 992s # Testing invalid encoding ?UTF-9? 992s ok 31 /keyfile/utf8 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_BAD552/keyfile/roundtrip/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_BAD552/keyfile/roundtrip/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_BAD552/keyfile/roundtrip/.dirs/system-config1:/tmp/test_keyfile_BAD552/keyfile/roundtrip/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_BAD552/keyfile/roundtrip/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_BAD552/keyfile/roundtrip/.dirs/system-data1:/tmp/test_keyfile_BAD552/keyfile/roundtrip/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_BAD552/keyfile/roundtrip/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_BAD552/keyfile/roundtrip/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_BAD552/keyfile/roundtrip/.dirs/runtime 992s ok 32 /keyfile/roundtrip 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_BAD552/keyfile/bytes/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_BAD552/keyfile/bytes/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_BAD552/keyfile/bytes/.dirs/system-config1:/tmp/test_keyfile_BAD552/keyfile/bytes/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_BAD552/keyfile/bytes/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_BAD552/keyfile/bytes/.dirs/system-data1:/tmp/test_keyfile_BAD552/keyfile/bytes/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_BAD552/keyfile/bytes/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_BAD552/keyfile/bytes/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_BAD552/keyfile/bytes/.dirs/runtime 992s ok 33 /keyfile/bytes 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_BAD552/keyfile/get-locale/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_BAD552/keyfile/get-locale/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_BAD552/keyfile/get-locale/.dirs/system-config1:/tmp/test_keyfile_BAD552/keyfile/get-locale/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_BAD552/keyfile/get-locale/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_BAD552/keyfile/get-locale/.dirs/system-data1:/tmp/test_keyfile_BAD552/keyfile/get-locale/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_BAD552/keyfile/get-locale/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_BAD552/keyfile/get-locale/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_BAD552/keyfile/get-locale/.dirs/runtime 992s ok 34 /keyfile/get-locale 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_BAD552/keyfile/free-when-not-last-ref/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_BAD552/keyfile/free-when-not-last-ref/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_BAD552/keyfile/free-when-not-last-ref/.dirs/system-config1:/tmp/test_keyfile_BAD552/keyfile/free-when-not-last-ref/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_BAD552/keyfile/free-when-not-last-ref/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_BAD552/keyfile/free-when-not-last-ref/.dirs/system-data1:/tmp/test_keyfile_BAD552/keyfile/free-when-not-last-ref/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_BAD552/keyfile/free-when-not-last-ref/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_BAD552/keyfile/free-when-not-last-ref/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_BAD552/keyfile/free-when-not-last-ref/.dirs/runtime 992s ok 35 /keyfile/free-when-not-last-ref 992s # Start of locale-string tests 992s ok - glib/keyfile.test 992s # Running test: glib/basic-signals.test 992s ok - glib/basic-signals.test 992s # Running test: glib/rand.test 992s ok - glib/rand.test 992s # Running test: glib/fileutils.test 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_BAD552/keyfile/locale-string/multiple-loads/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_BAD552/keyfile/locale-string/multiple-loads/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_BAD552/keyfile/locale-string/multiple-loads/.dirs/system-config1:/tmp/test_keyfile_BAD552/keyfile/locale-string/multiple-loads/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_BAD552/keyfile/locale-string/multiple-loads/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_BAD552/keyfile/locale-string/multiple-loads/.dirs/system-data1:/tmp/test_keyfile_BAD552/keyfile/locale-string/multiple-loads/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_BAD552/keyfile/locale-string/multiple-loads/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_BAD552/keyfile/locale-string/multiple-loads/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_BAD552/keyfile/locale-string/multiple-loads/.dirs/runtime 992s # /keyfile/locale-string/multiple-loads summary: Check that loading with translations multiple times works 992s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2361 992s ok 36 /keyfile/locale-string/multiple-loads 992s # End of locale-string tests 992s # End of keyfile tests 992s TAP version 14 992s # random seed: R02S973b377efc97e193ed30552e64f19265 992s 1..1 992s # Start of gobject tests 992s ok 1 /gobject/basic-signals 992s # End of gobject tests 992s TAP version 14 992s # random seed: R02S1457b89ba55ae3e821a80fd71faa4572 992s 1..2 992s # Start of rand tests 992s ok 1 /rand/test-rand 992s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=502560 992s ok 2 /rand/double-range 992s # End of rand tests 992s TAP version 14 992s # random seed: R02S4bde3cc91f3f4b2bf3b6594ad3a40132 992s 1..27 992s # Start of fileutils tests 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_8MR452/fileutils/paths/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_8MR452/fileutils/paths/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_8MR452/fileutils/paths/.dirs/system-config1:/tmp/test_fileutils_8MR452/fileutils/paths/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_8MR452/fileutils/paths/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_8MR452/fileutils/paths/.dirs/system-data1:/tmp/test_fileutils_8MR452/fileutils/paths/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_8MR452/fileutils/paths/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_8MR452/fileutils/paths/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_8MR452/fileutils/paths/.dirs/runtime 992s ok 1 /fileutils/paths 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_8MR452/fileutils/build-path/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_8MR452/fileutils/build-path/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_8MR452/fileutils/build-path/.dirs/system-config1:/tmp/test_fileutils_8MR452/fileutils/build-path/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_8MR452/fileutils/build-path/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_8MR452/fileutils/build-path/.dirs/system-data1:/tmp/test_fileutils_8MR452/fileutils/build-path/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_8MR452/fileutils/build-path/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_8MR452/fileutils/build-path/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_8MR452/fileutils/build-path/.dirs/runtime 992s ok 2 /fileutils/build-path 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_8MR452/fileutils/build-pathv/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_8MR452/fileutils/build-pathv/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_8MR452/fileutils/build-pathv/.dirs/system-config1:/tmp/test_fileutils_8MR452/fileutils/build-pathv/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_8MR452/fileutils/build-pathv/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_8MR452/fileutils/build-pathv/.dirs/system-data1:/tmp/test_fileutils_8MR452/fileutils/build-pathv/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_8MR452/fileutils/build-pathv/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_8MR452/fileutils/build-pathv/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_8MR452/fileutils/build-pathv/.dirs/runtime 992s ok 3 /fileutils/build-pathv 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_8MR452/fileutils/build-filename/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_8MR452/fileutils/build-filename/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_8MR452/fileutils/build-filename/.dirs/system-config1:/tmp/test_fileutils_8MR452/fileutils/build-filename/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_8MR452/fileutils/build-filename/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_8MR452/fileutils/build-filename/.dirs/system-data1:/tmp/test_fileutils_8MR452/fileutils/build-filename/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_8MR452/fileutils/build-filename/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_8MR452/fileutils/build-filename/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_8MR452/fileutils/build-filename/.dirs/runtime 992s ok 4 /fileutils/build-filename 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_8MR452/fileutils/build-filenamev/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_8MR452/fileutils/build-filenamev/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_8MR452/fileutils/build-filenamev/.dirs/system-config1:/tmp/test_fileutils_8MR452/fileutils/build-filenamev/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_8MR452/fileutils/build-filenamev/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_8MR452/fileutils/build-filenamev/.dirs/system-data1:/tmp/test_fileutils_8MR452/fileutils/build-filenamev/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_8MR452/fileutils/build-filenamev/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_8MR452/fileutils/build-filenamev/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_8MR452/fileutils/build-filenamev/.dirs/runtime 992s ok 5 /fileutils/build-filenamev 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_8MR452/fileutils/mkdir-with-parents/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_8MR452/fileutils/mkdir-with-parents/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_8MR452/fileutils/mkdir-with-parents/.dirs/system-config1:/tmp/test_fileutils_8MR452/fileutils/mkdir-with-parents/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_8MR452/fileutils/mkdir-with-parents/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_8MR452/fileutils/mkdir-with-parents/.dirs/system-data1:/tmp/test_fileutils_8MR452/fileutils/mkdir-with-parents/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_8MR452/fileutils/mkdir-with-parents/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_8MR452/fileutils/mkdir-with-parents/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_8MR452/fileutils/mkdir-with-parents/.dirs/runtime 992s # We do not have CAP_DAC_OVERRIDE or equivalent 992s # Checking g_mkdir_with_parents() in subdir ./hum/ 992s # Checking g_mkdir_with_parents() in subdir ./hii///haa/hee/ 992s ok 6 /fileutils/mkdir-with-parents 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_8MR452/fileutils/mkdir-with-parents-permission/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_8MR452/fileutils/mkdir-with-parents-permission/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_8MR452/fileutils/mkdir-with-parents-permission/.dirs/system-config1:/tmp/test_fileutils_8MR452/fileutils/mkdir-with-parents-permission/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_8MR452/fileutils/mkdir-with-parents-permission/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_8MR452/fileutils/mkdir-with-parents-permission/.dirs/system-data1:/tmp/test_fileutils_8MR452/fileutils/mkdir-with-parents-permission/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_8MR452/fileutils/mkdir-with-parents-permission/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_8MR452/fileutils/mkdir-with-parents-permission/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_8MR452/fileutils/mkdir-with-parents-permission/.dirs/runtime 992s # We do not have CAP_DAC_OVERRIDE or equivalent 992s ok 7 /fileutils/mkdir-with-parents-permission 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_8MR452/fileutils/format-size-for-display/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_8MR452/fileutils/format-size-for-display/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_8MR452/fileutils/format-size-for-display/.dirs/system-config1:/tmp/test_fileutils_8MR452/fileutils/format-size-for-display/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_8MR452/fileutils/format-size-for-display/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_8MR452/fileutils/format-size-for-display/.dirs/system-data1:/tmp/test_fileutils_8MR452/fileutils/format-size-for-display/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_8MR452/fileutils/format-size-for-display/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_8MR452/fileutils/format-size-for-display/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_8MR452/fileutils/format-size-for-display/.dirs/runtime 992s ok 8 /fileutils/format-size-for-display 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_8MR452/fileutils/errors/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_8MR452/fileutils/errors/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_8MR452/fileutils/errors/.dirs/system-config1:/tmp/test_fileutils_8MR452/fileutils/errors/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_8MR452/fileutils/errors/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_8MR452/fileutils/errors/.dirs/system-data1:/tmp/test_fileutils_8MR452/fileutils/errors/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_8MR452/fileutils/errors/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_8MR452/fileutils/errors/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_8MR452/fileutils/errors/.dirs/runtime 992s ok 9 /fileutils/errors 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_8MR452/fileutils/basename/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_8MR452/fileutils/basename/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_8MR452/fileutils/basename/.dirs/system-config1:/tmp/test_fileutils_8MR452/fileutils/basename/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_8MR452/fileutils/basename/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_8MR452/fileutils/basename/.dirs/system-data1:/tmp/test_fileutils_8MR452/fileutils/basename/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_8MR452/fileutils/basename/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_8MR452/fileutils/basename/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_8MR452/fileutils/basename/.dirs/runtime 992s ok 10 /fileutils/basename 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_8MR452/fileutils/get-basename/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_8MR452/fileutils/get-basename/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_8MR452/fileutils/get-basename/.dirs/system-config1:/tmp/test_fileutils_8MR452/fileutils/get-basename/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_8MR452/fileutils/get-basename/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_8MR452/fileutils/get-basename/.dirs/system-data1:/tmp/test_fileutils_8MR452/fileutils/get-basename/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_8MR452/fileutils/get-basename/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_8MR452/fileutils/get-basename/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_8MR452/fileutils/get-basename/.dirs/runtime 992s ok 11 /fileutils/get-basename 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_8MR452/fileutils/dirname/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_8MR452/fileutils/dirname/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_8MR452/fileutils/dirname/.dirs/system-config1:/tmp/test_fileutils_8MR452/fileutils/dirname/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_8MR452/fileutils/dirname/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_8MR452/fileutils/dirname/.dirs/system-data1:/tmp/test_fileutils_8MR452/fileutils/dirname/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_8MR452/fileutils/dirname/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_8MR452/fileutils/dirname/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_8MR452/fileutils/dirname/.dirs/runtime 992s ok 12 /fileutils/dirname 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_8MR452/fileutils/dir-make-tmp/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_8MR452/fileutils/dir-make-tmp/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_8MR452/fileutils/dir-make-tmp/.dirs/system-config1:/tmp/test_fileutils_8MR452/fileutils/dir-make-tmp/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_8MR452/fileutils/dir-make-tmp/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_8MR452/fileutils/dir-make-tmp/.dirs/system-data1:/tmp/test_fileutils_8MR452/fileutils/dir-make-tmp/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_8MR452/fileutils/dir-make-tmp/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_8MR452/fileutils/dir-make-tmp/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_8MR452/fileutils/dir-make-tmp/.dirs/runtime 992s ok 13 /fileutils/dir-make-tmp 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_8MR452/fileutils/file-open-tmp/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_8MR452/fileutils/file-open-tmp/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_8MR452/fileutils/file-open-tmp/.dirs/system-config1:/tmp/test_fileutils_8MR452/fileutils/file-open-tmp/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_8MR452/fileutils/file-open-tmp/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_8MR452/fileutils/file-open-tmp/.dirs/system-data1:/tmp/test_fileutils_8MR452/fileutils/file-open-tmp/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_8MR452/fileutils/file-open-tmp/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_8MR452/fileutils/file-open-tmp/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_8MR452/fileutils/file-open-tmp/.dirs/runtime 992s ok 14 /fileutils/file-open-tmp 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_8MR452/fileutils/file-test/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_8MR452/fileutils/file-test/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_8MR452/fileutils/file-test/.dirs/system-config1:/tmp/test_fileutils_8MR452/fileutils/file-test/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_8MR452/fileutils/file-test/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_8MR452/fileutils/file-test/.dirs/system-data1:/tmp/test_fileutils_8MR452/fileutils/file-test/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_8MR452/fileutils/file-test/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_8MR452/fileutils/file-test/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_8MR452/fileutils/file-test/.dirs/runtime 992s ok 15 /fileutils/file-test 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_8MR452/fileutils/mkstemp/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_8MR452/fileutils/mkstemp/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_8MR452/fileutils/mkstemp/.dirs/system-config1:/tmp/test_fileutils_8MR452/fileutils/mkstemp/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_8MR452/fileutils/mkstemp/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_8MR452/fileutils/mkstemp/.dirs/system-data1:/tmp/test_fileutils_8MR452/fileutils/mkstemp/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_8MR452/fileutils/mkstemp/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_8MR452/fileutils/mkstemp/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_8MR452/fileutils/mkstemp/.dirs/runtime 992s ok 16 /fileutils/mkstemp 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_8MR452/fileutils/mkdtemp/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_8MR452/fileutils/mkdtemp/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_8MR452/fileutils/mkdtemp/.dirs/system-config1:/tmp/test_fileutils_8MR452/fileutils/mkdtemp/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_8MR452/fileutils/mkdtemp/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_8MR452/fileutils/mkdtemp/.dirs/system-data1:/tmp/test_fileutils_8MR452/fileutils/mkdtemp/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_8MR452/fileutils/mkdtemp/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_8MR452/fileutils/mkdtemp/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_8MR452/fileutils/mkdtemp/.dirs/runtime 992s ok 17 /fileutils/mkdtemp 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_8MR452/fileutils/get-contents/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_8MR452/fileutils/get-contents/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_8MR452/fileutils/get-contents/.dirs/system-config1:/tmp/test_fileutils_8MR452/fileutils/get-contents/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_8MR452/fileutils/get-contents/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_8MR452/fileutils/get-contents/.dirs/system-data1:/tmp/test_fileutils_8MR452/fileutils/get-contents/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_8MR452/fileutils/get-contents/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_8MR452/fileutils/get-contents/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_8MR452/fileutils/get-contents/.dirs/runtime 992s ok 18 /fileutils/get-contents 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_8MR452/fileutils/get-contents-large-file/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_8MR452/fileutils/get-contents-large-file/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_8MR452/fileutils/get-contents-large-file/.dirs/system-config1:/tmp/test_fileutils_8MR452/fileutils/get-contents-large-file/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_8MR452/fileutils/get-contents-large-file/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_8MR452/fileutils/get-contents-large-file/.dirs/system-data1:/tmp/test_fileutils_8MR452/fileutils/get-contents-large-file/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_8MR452/fileutils/get-contents-large-file/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_8MR452/fileutils/get-contents-large-file/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_8MR452/fileutils/get-contents-large-file/.dirs/runtime 992s ok 19 /fileutils/get-contents-large-file # SKIP Skipping slow largefile test 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_8MR452/fileutils/set-contents/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_8MR452/fileutils/set-contents/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_8MR452/fileutils/set-contents/.dirs/system-config1:/tmp/test_fileutils_8MR452/fileutils/set-contents/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_8MR452/fileutils/set-contents/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_8MR452/fileutils/set-contents/.dirs/system-data1:/tmp/test_fileutils_8MR452/fileutils/set-contents/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_8MR452/fileutils/set-contents/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_8MR452/fileutils/set-contents/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_8MR452/fileutils/set-contents/.dirs/runtime 992s ok 20 /fileutils/set-contents 992s # Executing: glib/fileutils.test 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_8MR452/fileutils/set-contents-full/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_8MR452/fileutils/set-contents-full/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_8MR452/fileutils/set-contents-full/.dirs/system-config1:/tmp/test_fileutils_8MR452/fileutils/set-contents-full/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_8MR452/fileutils/set-contents-full/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_8MR452/fileutils/set-contents-full/.dirs/system-data1:/tmp/test_fileutils_8MR452/fileutils/set-contents-full/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_8MR452/fileutils/set-contents-full/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_8MR452/fileutils/set-contents-full/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_8MR452/fileutils/set-contents-full/.dirs/runtime 992s # /fileutils/set-contents-full summary: Test g_file_set_contents_full() with various flags 992s # Flags 0 and test 0 992s # Flags 0 and test 1 992s # Flags 0 and test 2 992s # Flags 0 and test 3 992s # Flags 0 and test 4 992s # Flags 0 and test 5 992s # Flags 1 and test 0 992s # Flags 1 and test 1 992s # Flags 1 and test 2 992s # Flags 1 and test 3 992s # Flags 1 and test 4 992s # Flags 1 and test 5 992s # Flags 2 and test 0 992s # Flags 2 and test 1 992s # Flags 2 and test 2 992s # Flags 2 and test 3 992s # Flags 2 and test 4 992s # Flags 2 and test 5 992s # Flags 3 and test 0 992s # Flags 3 and test 1 992s # Flags 3 and test 2 992s # Flags 3 and test 3 992s # Flags 3 and test 4 992s # Flags 3 and test 5 992s # Flags 4 and test 0 992s # Flags 4 and test 1 992s # Flags 4 and test 2 992s # Flags 4 and test 3 992s # Flags 4 and test 4 992s # Flags 4 and test 5 992s # Flags 5 and test 0 992s # Flags 5 and test 1 992s # Flags 5 and test 2 992s # Flags 5 and test 3 992s # Flags 5 and test 4 992s # Flags 5 and test 5 992s # Flags 6 and test 0 992s # Flags 6 and test 1 992s # Flags 6 and test 2 992s # Flags 6 and test 3 992s # Flags 6 and test 4 992s # Flags 6 and test 5 992s ok 21 /fileutils/set-contents-full 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_8MR452/fileutils/read-link/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_8MR452/fileutils/read-link/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_8MR452/fileutils/read-link/.dirs/system-config1:/tmp/test_fileutils_8MR452/fileutils/read-link/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_8MR452/fileutils/read-link/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_8MR452/fileutils/read-link/.dirs/system-data1:/tmp/test_fileutils_8MR452/fileutils/read-link/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_8MR452/fileutils/read-link/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_8MR452/fileutils/read-link/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_8MR452/fileutils/read-link/.dirs/runtime 992s ok 22 /fileutils/read-link 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_8MR452/fileutils/stdio-wrappers/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_8MR452/fileutils/stdio-wrappers/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_8MR452/fileutils/stdio-wrappers/.dirs/system-config1:/tmp/test_fileutils_8MR452/fileutils/stdio-wrappers/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_8MR452/fileutils/stdio-wrappers/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_8MR452/fileutils/stdio-wrappers/.dirs/system-data1:/tmp/test_fileutils_8MR452/fileutils/stdio-wrappers/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_8MR452/fileutils/stdio-wrappers/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_8MR452/fileutils/stdio-wrappers/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_8MR452/fileutils/stdio-wrappers/.dirs/runtime 992s # We do not have CAP_DAC_OVERRIDE or equivalent 992s ok 23 /fileutils/stdio-wrappers 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_8MR452/fileutils/fopen-modes/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_8MR452/fileutils/fopen-modes/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_8MR452/fileutils/fopen-modes/.dirs/system-config1:/tmp/test_fileutils_8MR452/fileutils/fopen-modes/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_8MR452/fileutils/fopen-modes/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_8MR452/fileutils/fopen-modes/.dirs/system-data1:/tmp/test_fileutils_8MR452/fileutils/fopen-modes/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_8MR452/fileutils/fopen-modes/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_8MR452/fileutils/fopen-modes/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_8MR452/fileutils/fopen-modes/.dirs/runtime 992s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/119 992s # Testing fopen() mode 'w' 992s # Testing fopen() mode 'r' 992s # Testing fopen() mode 'a' 992s # Testing fopen() mode 'w+' 992s # Testing fopen() mode 'r+' 992s # Testing fopen() mode 'a+' 992s # Testing fopen() mode 'wb' 992s # Testing fopen() mode 'rb' 992s # Testing fopen() mode 'ab' 992s # Testing fopen() mode 'w+b' 992s # Testing fopen() mode 'r+b' 992s # Testing fopen() mode 'a+b' 992s # Testing fopen() mode 'wb+' 992s # Testing fopen() mode 'rb+' 992s # Testing fopen() mode 'ab+' 992s ok 24 /fileutils/fopen-modes 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_8MR452/fileutils/clear-fd/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_8MR452/fileutils/clear-fd/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_8MR452/fileutils/clear-fd/.dirs/system-config1:/tmp/test_fileutils_8MR452/fileutils/clear-fd/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_8MR452/fileutils/clear-fd/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_8MR452/fileutils/clear-fd/.dirs/system-data1:/tmp/test_fileutils_8MR452/fileutils/clear-fd/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_8MR452/fileutils/clear-fd/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_8MR452/fileutils/clear-fd/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_8MR452/fileutils/clear-fd/.dirs/runtime 992s # /fileutils/clear-fd summary: Test g_clear_fd() and g_autofd 992s # Will be closed by autocleanup: 3, -42 992s # Testing error handling 992s ok 25 /fileutils/clear-fd 992s # Start of set-contents-full tests 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_8MR452/fileutils/set-contents-full/read-only-file/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_8MR452/fileutils/set-contents-full/read-only-file/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_8MR452/fileutils/set-contents-full/read-only-file/.dirs/system-config1:/tmp/test_fileutils_8MR452/fileutils/set-contents-full/read-only-file/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_8MR452/fileutils/set-contents-full/read-only-file/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_8MR452/fileutils/set-contents-full/read-only-file/.dirs/system-data1:/tmp/test_fileutils_8MR452/fileutils/set-contents-full/read-only-file/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_8MR452/fileutils/set-contents-full/read-only-file/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_8MR452/fileutils/set-contents-full/read-only-file/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_8MR452/fileutils/set-contents-full/read-only-file/.dirs/runtime 992s # We do not have CAP_DAC_OVERRIDE or equivalent 992s # /fileutils/set-contents-full/read-only-file summary: Test g_file_set_contents_full() on a read-only file 992s ok 26 /fileutils/set-contents-full/read-only-file 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_8MR452/fileutils/set-contents-full/read-only-directory/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_8MR452/fileutils/set-contents-full/read-only-directory/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_8MR452/fileutils/set-contents-full/read-only-directory/.dirs/system-config1:/tmp/test_fileutils_8MR452/fileutils/set-contents-full/read-only-directory/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_8MR452/fileutils/set-contents-full/read-only-directory/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_8MR452/fileutils/set-contents-full/read-only-directory/.dirs/system-data1:/tmp/test_fileutils_8MR452/fileutils/set-contents-full/read-only-directory/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_8MR452/fileutils/set-contents-full/read-only-directory/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_8MR452/fileutils/set-contents-full/read-only-directory/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_8MR452/fileutils/set-contents-full/read-only-directory/.dirs/runtime 992s # /fileutils/set-contents-full/read-only-directory summary: Test g_file_set_contents_full() on a file in a read-only directory 992s # Flags 0 992s # We do not have CAP_DAC_OVERRIDE or equivalent 992s # Flags 1 992s # We do not have CAP_DAC_OVERRIDE or equivalent 992s # Flags 2 992s # We do not have CAP_DAC_OVERRIDE or equivalent 992s # Flags 3 992s # We do not have CAP_DAC_OVERRIDE or equivalent 992s # Flags 4 992s # We do not have CAP_DAC_OVERRIDE or equivalent 992s # Flags 5 992s # We do not have CAP_DAC_OVERRIDE or equivalent 992s # Flags 6 992s # We do not have CAP_DAC_OVERRIDE or equivalent 992s ok 27 /fileutils/set-contents-full/read-only-directory 992s # End of set-contents-full tests 992s # Start of clear-fd tests 992s # Start of subprocess tests 992s # End of subprocess tests 992s # End of clear-fd tests 992s # End of fileutils tests 992s Unable to clean up temporary directory /tmp/test_fileutils_8MR452/glib-file-set-contents-full-rodir-TIVZ52: Directory not empty 992s Unable to clean up temporary directory /tmp/test_fileutils_8MR452/glib-file-set-contents-full-rodir-3G8X52: Directory not empty 992s Unable to clean up temporary directory /tmp/test_fileutils_8MR452/glib-file-set-contents-full-rodir-2GQZ52: Directory not empty 992s Unable to clean up temporary directory /tmp/test_fileutils_8MR452/glib-file-set-contents-full-rodir-CXTZ52: Directory not empty 992s Unable to clean up temporary directory /tmp/test_fileutils_8MR452/glib-file-set-contents-full-rodir-O4VZ52: Directory not empty 992s Unable to clean up temporary directory /tmp/test_fileutils_8MR452/glib-file-set-contents-full-rodir-28YZ52: Directory not empty 992s Unable to clean up temporary directory /tmp/test_fileutils_8MR452/glib-file-set-contents-full-rodir-EL2Z52: Directory not empty 992s Unable to clean up temporary directory /tmp/test_fileutils_8MR452: Directory not empty 992s ok - glib/fileutils.test 992s # Running test: glib/power-profile-monitor-portal.test 992s TAP version 13 992s ok 1 __main__.TestPowerProfileMonitorPortal.test_power_profile_power_saver_enabled_portal # SKIP xdg-desktop-portal not available 992s ok 2 __main__.TestPowerProfileMonitorPortal.test_power_profile_power_saver_enabled_portal_default # SKIP xdg-desktop-portal not available 992s 1..2 993s ok - glib/power-profile-monitor-portal.test 993s # Running test: glib/tree.test 993s TAP version 14 993s # random seed: R02S23f6f25664dc62a44c6014d66f335496 993s 1..7 993s # Start of tree tests 993s ok 1 /tree/search 993s ok 2 /tree/remove 993s ok 3 /tree/destroy 993s ok 4 /tree/traverse 993s ok 5 /tree/insert 993s ok 6 /tree/bounds 993s ok 7 /tree/remove-all 993s # End of tree tests 993s ok - glib/tree.test 993s # Running test: glib/performance-threaded.test 993s Running test "liststore-is-a" 994s 16331 runs, min/avg/max = 0.059/0.061/0.276 ms 994s Running test "liststore-interface-peek" 995s 29159 runs, min/avg/max = 0.033/0.034/4.920 ms 995s Running test "liststore-interface-peek-same" 996s 29923 runs, min/avg/max = 0.032/0.033/0.274 ms 996s ok - glib/performance-threaded.test 996s # Running test: glib/spawn-path-search.test 996s TAP version 14 996s # random seed: R02S8a62655e0677cd60e1c2825f46b57e7c 996s 1..7 996s # Start of spawn tests 996s # /spawn/do-not-search summary: Without G_SPAWN_SEARCH_PATH, spawn-test-helper means ./spawn-test-helper. 996s # 996s # this is spawn-test-helper from glib/tests 996s # 996s ok 1 /spawn/do-not-search 996s # /spawn/search-path summary: With G_SPAWN_SEARCH_PATH, spawn-test-helper means $PATH/spawn-test-helper. 996s # 996s # this is spawn-test-helper from path-test-subdir 996s # 996s ok - glib/spawn-path-search.test 996s # Running test: glib/closure.test 996s ok - glib/closure.test 996s # Running test: glib/overflow-fallback.test 996s ok 2 /spawn/search-path 996s # /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. 996s # 996s # this is spawn-test-helper from path-test-subdir 996s # 996s ok 3 /spawn/search-path-from-envp 996s # /spawn/search-path-ambiguous summary: With G_SPAWN_SEARCH_PATH and G_SPAWN_SEARCH_PATH_FROM_ENVP, the latter wins. 996s # 996s # this is spawn-test-helper from path-test-subdir 996s # 996s ok 4 /spawn/search-path-ambiguous 996s # 996s # this is spawn-test-helper from path-test-subdir 996s # 996s ok 5 /spawn/search-path-heap-allocation 996s # /spawn/search-path-fallback-in-environ summary: With G_SPAWN_SEARCH_PATH but no PATH, a fallback is used. 996s # 996s # this is spawn-test-helper from glib/tests 996s # 996s ok 6 /spawn/search-path-fallback-in-environ 996s # /spawn/search-path-fallback-in-envp summary: With G_SPAWN_SEARCH_PATH_FROM_ENVP but no PATH, a fallback is used. 996s # 996s # this is spawn-test-helper from glib/tests 996s # 996s ok 7 /spawn/search-path-fallback-in-envp 996s # End of spawn tests 996s TAP version 14 996s # random seed: R02Sc74cfbd44eb52957d5760b9e9a4df565 996s 1..6 996s # Start of closure tests 996s ok 1 /closure/idle 996s ok 2 /closure/timeout 996s ok 3 /closure/iochannel 996s ok 4 /closure/child 996s ok 5 /closure/fd 996s ok 6 /closure/signal 996s # End of closure tests 996s TAP version 14 996s # random seed: R02S104b9d959217b1da4e23108c829170f9 996s 1..6 996s # Start of glib tests 996s # Start of checked-math tests 996s ok 1 /glib/checked-math/guint-add 996s ok - glib/overflow-fallback.test 996s # Running test: glib/object.test 996s ok - glib/object.test 996s # Running test: glib/macros-c-17.test 996s ok 2 /glib/checked-math/guint-mul 996s ok 3 /glib/checked-math/guint64-add 996s ok 4 /glib/checked-math/guint64-mul 996s ok 5 /glib/checked-math/gsize-add 996s ok 6 /glib/checked-math/gsize-mul 996s # End of checked-math tests 996s # End of glib tests 996s TAP version 14 996s # random seed: R02S21609dd12a672ed719fab8cea3ff6ea9 996s 1..2 996s # Start of object tests 996s # Start of constructor tests 996s ok 1 /object/constructor/singleton 996s ok 2 /object/constructor/infanticide # SKIP skip tests that rely on debug-only warnings 996s # End of constructor tests 996s # End of object tests 996s TAP version 14 996s # random seed: R02S61e54383782e9891249be35d28dd598f 996s 1..4 996s # Start of C tests 996s ok 1 /C/standard-17 996s # End of C tests 996s # Start of alignof tests 996s ok 2 /alignof/fallback 996s # End of alignof tests 996s # Start of assert tests 996s ok 3 /assert/static 996s # End of assert tests 996s # Start of struct tests 996s ok 4 /struct/sizeof_member 996s # End of struct tests 996s ok - glib/macros-c-17.test 996s # Running test: glib/g-file-info.test 996s TAP version 14 996s # random seed: R02Scc01b1c44daf2ee86abab006fc5791ef 996s 1..6 996s # Start of g-file-info tests 996s ok 1 /g-file-info/test_g_file_info 996s # /g-file-info/xattrs summary: Test setting and getting escaped xattrs 996s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 996s ok 2 /g-file-info/xattrs 996s # /g-file-info/set-modified-date-time-precision summary: Test that g_file_info_set_modified_date_time() preserves microseconds 996s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3116 996s ok 3 /g-file-info/set-modified-date-time-precision 996s ok - glib/g-file-info.test 996s # Start of test_g_file_info tests 996s # /g-file-info/test_g_file_info/modification-time summary: Test that getting the modification time of a file works. 996s ok 4 /g-file-info/test_g_file_info/modification-time 996s # /g-file-info/test_g_file_info/access-time summary: Test that getting the access time of a file works. 996s ok 5 /g-file-info/test_g_file_info/access-time 996s # /g-file-info/test_g_file_info/creation-time summary: Test that getting the creation time of a file works. 996s ok 6 /g-file-info/test_g_file_info/creation-time 996s # End of test_g_file_info tests 996s # End of g-file-info tests 996s # Running test: glib/macros-c-11.test 996s ok - glib/macros-c-11.test 996s TAP version 14 996s # random seed: R02Sa47dde25ac472cf8b7754ac6c8fb51da 996s 1..4 996s # Start of C tests 996s ok 1 /C/standard-11 996s # End of C tests 996s # Start of alignof tests 996s ok 2 /alignof/fallback 996s # End of alignof tests 996s # Start of assert tests 996s ok 3 /assert/static 996s # End of assert tests 996s # Start of struct tests 996s ok 4 /struct/sizeof_member 996s # End of struct tests 996s # Running test: glib/include.test 996s ok - glib/include.test 996s TAP version 14 996s # random seed: R02S631f1e7fb6038833ddeeee036584b11a 996s 1..1 996s # Start of include tests 996s ok 1 /include/rwlock 996s # End of include tests 996s # Running test: glib/ifaceproperties.test 996s ok - glib/ifaceproperties.test 996s # Running test: glib/macros-c-99.test 996s ok - glib/macros-c-99.test 996s # Running test: glib/autoptr-girepository.test 996s TAP version 14 996s # random seed: R02S117b49910fa4e1733f6f02faa66b7040 996s 1..7 996s # Start of interface tests 996s # Start of properties tests 996s ok 1 /interface/properties/set 996s ok 2 /interface/properties/notify 996s ok 3 /interface/properties/find-overridden 996s ok 4 /interface/properties/list-overridden 996s ok 5 /interface/properties/find-interface 996s ok 6 /interface/properties/list-interface 996s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=637738 996s ok 7 /interface/properties/not-overridden 996s # End of properties tests 996s # End of interface tests 996s TAP version 14 996s # random seed: R02Saf592a9dafbe785d88e66f0769dc49ee 996s 1..4 996s # Start of C tests 996s ok 1 /C/standard-99 996s # End of C tests 996s # Start of alignof tests 996s ok 2 /alignof/fallback 996s # End of alignof tests 996s # Start of assert tests 996s ok 3 /assert/static 996s # End of assert tests 996s # Start of struct tests 996s ok 4 /struct/sizeof_member 996s # End of struct tests 996s TAP version 14 996s # random seed: R02Sb3eefaa1219273c337292b5cd242e958 996s 1..24 996s # Start of autoptr tests 996s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/repository/.dirs/home 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/repository/.dirs/cache 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K2JX52/autoptr/repository/.dirs/system-config1:/tmp/test_autoptr-girepository_K2JX52/autoptr/repository/.dirs/system-config2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/repository/.dirs/config 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K2JX52/autoptr/repository/.dirs/system-data1:/tmp/test_autoptr-girepository_K2JX52/autoptr/repository/.dirs/system-data2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/repository/.dirs/data 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/repository/.dirs/state 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K2JX52/autoptr/repository/.dirs/runtime 996s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 996s ok 1 /autoptr/repository 996s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/typelib/.dirs/home 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/typelib/.dirs/cache 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K2JX52/autoptr/typelib/.dirs/system-config1:/tmp/test_autoptr-girepository_K2JX52/autoptr/typelib/.dirs/system-config2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/typelib/.dirs/config 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K2JX52/autoptr/typelib/.dirs/system-data1:/tmp/test_autoptr-girepository_K2JX52/autoptr/typelib/.dirs/system-data2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/typelib/.dirs/data 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/typelib/.dirs/state 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K2JX52/autoptr/typelib/.dirs/runtime 996s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 996s ok 2 /autoptr/typelib 996s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/base-info/.dirs/home 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/base-info/.dirs/cache 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K2JX52/autoptr/base-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K2JX52/autoptr/base-info/.dirs/system-config2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/base-info/.dirs/config 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K2JX52/autoptr/base-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K2JX52/autoptr/base-info/.dirs/system-data2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/base-info/.dirs/data 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/base-info/.dirs/state 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K2JX52/autoptr/base-info/.dirs/runtime 996s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 996s ok 3 /autoptr/base-info 996s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/arg-info/.dirs/home 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/arg-info/.dirs/cache 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K2JX52/autoptr/arg-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K2JX52/autoptr/arg-info/.dirs/system-config2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/arg-info/.dirs/config 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K2JX52/autoptr/arg-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K2JX52/autoptr/arg-info/.dirs/system-data2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/arg-info/.dirs/data 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/arg-info/.dirs/state 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K2JX52/autoptr/arg-info/.dirs/runtime 996s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 996s ok 4 /autoptr/arg-info 996s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/callable-info/.dirs/home 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/callable-info/.dirs/cache 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K2JX52/autoptr/callable-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K2JX52/autoptr/callable-info/.dirs/system-config2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/callable-info/.dirs/config 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K2JX52/autoptr/callable-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K2JX52/autoptr/callable-info/.dirs/system-data2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/callable-info/.dirs/data 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/callable-info/.dirs/state 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K2JX52/autoptr/callable-info/.dirs/runtime 996s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 996s ok 5 /autoptr/callable-info 996s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/callback-info/.dirs/home 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/callback-info/.dirs/cache 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K2JX52/autoptr/callback-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K2JX52/autoptr/callback-info/.dirs/system-config2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/callback-info/.dirs/config 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K2JX52/autoptr/callback-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K2JX52/autoptr/callback-info/.dirs/system-data2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/callback-info/.dirs/data 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/callback-info/.dirs/state 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K2JX52/autoptr/callback-info/.dirs/runtime 996s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 996s ok 6 /autoptr/callback-info 996s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/constant-info/.dirs/home 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/constant-info/.dirs/cache 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K2JX52/autoptr/constant-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K2JX52/autoptr/constant-info/.dirs/system-config2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/constant-info/.dirs/config 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K2JX52/autoptr/constant-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K2JX52/autoptr/constant-info/.dirs/system-data2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/constant-info/.dirs/data 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/constant-info/.dirs/state 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K2JX52/autoptr/constant-info/.dirs/runtime 996s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 996s ok 7 /autoptr/constant-info 996s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/enum-info/.dirs/home 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/enum-info/.dirs/cache 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K2JX52/autoptr/enum-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K2JX52/autoptr/enum-info/.dirs/system-config2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/enum-info/.dirs/config 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K2JX52/autoptr/enum-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K2JX52/autoptr/enum-info/.dirs/system-data2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/enum-info/.dirs/data 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/enum-info/.dirs/state 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K2JX52/autoptr/enum-info/.dirs/runtime 996s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 996s ok 8 /autoptr/enum-info 996s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/field-info/.dirs/home 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/field-info/.dirs/cache 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K2JX52/autoptr/field-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K2JX52/autoptr/field-info/.dirs/system-config2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/field-info/.dirs/config 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K2JX52/autoptr/field-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K2JX52/autoptr/field-info/.dirs/system-data2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/field-info/.dirs/data 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/field-info/.dirs/state 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K2JX52/autoptr/field-info/.dirs/runtime 996s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 996s ok 9 /autoptr/field-info 996s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/flags-info/.dirs/home 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/flags-info/.dirs/cache 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K2JX52/autoptr/flags-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K2JX52/autoptr/flags-info/.dirs/system-config2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/flags-info/.dirs/config 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K2JX52/autoptr/flags-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K2JX52/autoptr/flags-info/.dirs/system-data2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/flags-info/.dirs/data 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/flags-info/.dirs/state 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K2JX52/autoptr/flags-info/.dirs/runtime 996s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 996s ok 10 /autoptr/flags-info 996s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/function-info/.dirs/home 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/function-info/.dirs/cache 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K2JX52/autoptr/function-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K2JX52/autoptr/function-info/.dirs/system-config2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/function-info/.dirs/config 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K2JX52/autoptr/function-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K2JX52/autoptr/function-info/.dirs/system-data2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/function-info/.dirs/data 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/function-info/.dirs/state 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K2JX52/autoptr/function-info/.dirs/runtime 996s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 996s ok 11 /autoptr/function-info 996s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/interface-info/.dirs/home 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/interface-info/.dirs/cache 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K2JX52/autoptr/interface-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K2JX52/autoptr/interface-info/.dirs/system-config2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/interface-info/.dirs/config 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K2JX52/autoptr/interface-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K2JX52/autoptr/interface-info/.dirs/system-data2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/interface-info/.dirs/data 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/interface-info/.dirs/state 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K2JX52/autoptr/interface-info/.dirs/runtime 996s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 996s ok 12 /autoptr/interface-info 996s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/object-info/.dirs/home 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/object-info/.dirs/cache 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K2JX52/autoptr/object-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K2JX52/autoptr/object-info/.dirs/system-config2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/object-info/.dirs/config 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K2JX52/autoptr/object-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K2JX52/autoptr/object-info/.dirs/system-data2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/object-info/.dirs/data 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/object-info/.dirs/state 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K2JX52/autoptr/object-info/.dirs/runtime 996s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 996s ok 13 /autoptr/object-info 996s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/property-info/.dirs/home 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/property-info/.dirs/cache 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K2JX52/autoptr/property-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K2JX52/autoptr/property-info/.dirs/system-config2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/property-info/.dirs/config 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K2JX52/autoptr/property-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K2JX52/autoptr/property-info/.dirs/system-data2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/property-info/.dirs/data 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/property-info/.dirs/state 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K2JX52/autoptr/property-info/.dirs/runtime 996s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 996s ok 14 /autoptr/property-info 996s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/registered-type-info/.dirs/home 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/registered-type-info/.dirs/cache 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K2JX52/autoptr/registered-type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K2JX52/autoptr/registered-type-info/.dirs/system-config2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/registered-type-info/.dirs/config 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K2JX52/autoptr/registered-type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K2JX52/autoptr/registered-type-info/.dirs/system-data2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/registered-type-info/.dirs/data 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/registered-type-info/.dirs/state 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K2JX52/autoptr/registered-type-info/.dirs/runtime 996s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 996s ok 15 /autoptr/registered-type-info 996s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/signal-info/.dirs/home 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/signal-info/.dirs/cache 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K2JX52/autoptr/signal-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K2JX52/autoptr/signal-info/.dirs/system-config2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/signal-info/.dirs/config 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K2JX52/autoptr/signal-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K2JX52/autoptr/signal-info/.dirs/system-data2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/signal-info/.dirs/data 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/signal-info/.dirs/state 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K2JX52/autoptr/signal-info/.dirs/runtime 996s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 996s ok 16 /autoptr/signal-info 996s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/struct-info/.dirs/home 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/struct-info/.dirs/cache 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K2JX52/autoptr/struct-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K2JX52/autoptr/struct-info/.dirs/system-config2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/struct-info/.dirs/config 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K2JX52/autoptr/struct-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K2JX52/autoptr/struct-info/.dirs/system-data2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/struct-info/.dirs/data 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/struct-info/.dirs/state 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K2JX52/autoptr/struct-info/.dirs/runtime 996s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 996s ok 17 /autoptr/struct-info 996s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/type-info/.dirs/home 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/type-info/.dirs/cache 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K2JX52/autoptr/type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K2JX52/autoptr/type-info/.dirs/system-config2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/type-info/.dirs/config 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K2JX52/autoptr/type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K2JX52/autoptr/type-info/.dirs/system-data2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/type-info/.dirs/data 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/type-info/.dirs/state 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K2JX52/autoptr/type-info/.dirs/runtime 996s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 996s ok 18 /autoptr/type-info 996s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/union-info/.dirs/home 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/union-info/.dirs/cache 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K2JX52/autoptr/union-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K2JX52/autoptr/union-info/.dirs/system-config2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/union-info/.dirs/config 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K2JX52/autoptr/union-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K2JX52/autoptr/union-info/.dirs/system-data2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/union-info/.dirs/data 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/union-info/.dirs/state 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K2JX52/autoptr/union-info/.dirs/runtime 996s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 996s ok 19 /autoptr/union-info 996s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/value-info/.dirs/home 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/value-info/.dirs/cache 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K2JX52/autoptr/value-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K2JX52/autoptr/value-info/.dirs/system-config2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/value-info/.dirs/config 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K2JX52/autoptr/value-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K2JX52/autoptr/value-info/.dirs/system-data2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/value-info/.dirs/data 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/value-info/.dirs/state 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K2JX52/autoptr/value-info/.dirs/runtime 996s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 996s ok 20 /autoptr/value-info 996s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/vfunc-info/.dirs/home 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/vfunc-info/.dirs/cache 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K2JX52/autoptr/vfunc-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K2JX52/autoptr/vfunc-info/.dirs/system-config2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/vfunc-info/.dirs/config 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K2JX52/autoptr/vfunc-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K2JX52/autoptr/vfunc-info/.dirs/system-data2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/vfunc-info/.dirs/data 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K2JX52/autoptr/vfunc-info/.dirs/state 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K2JX52/autoptr/vfunc-info/.dirs/runtime 996s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 996s ok 21 /autoptr/vfunc-info 996s # End of autoptr tests 996s # Start of auto tests 996s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K2JX52/auto/arg-info/.dirs/home 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K2JX52/auto/arg-info/.dirs/cache 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K2JX52/auto/arg-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K2JX52/auto/arg-info/.dirs/system-config2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K2JX52/auto/arg-info/.dirs/config 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K2JX52/auto/arg-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K2JX52/auto/arg-info/.dirs/system-data2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K2JX52/auto/arg-info/.dirs/data 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K2JX52/auto/arg-info/.dirs/state 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K2JX52/auto/arg-info/.dirs/runtime 996s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 996s ok 22 /auto/arg-info 996s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K2JX52/auto/type-info/.dirs/home 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K2JX52/auto/type-info/.dirs/cache 996s ok - glib/autoptr-girepository.test 996s # Running test: glib/hostutils.test 996s ok - glib/hostutils.test 996s # Running test: glib/binding.test 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K2JX52/auto/type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K2JX52/auto/type-info/.dirs/system-config2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K2JX52/auto/type-info/.dirs/config 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K2JX52/auto/type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K2JX52/auto/type-info/.dirs/system-data2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K2JX52/auto/type-info/.dirs/data 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K2JX52/auto/type-info/.dirs/state 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K2JX52/auto/type-info/.dirs/runtime 996s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 996s ok 23 /auto/type-info 996s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K2JX52/auto/function-invoker/.dirs/home 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K2JX52/auto/function-invoker/.dirs/cache 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K2JX52/auto/function-invoker/.dirs/system-config1:/tmp/test_autoptr-girepository_K2JX52/auto/function-invoker/.dirs/system-config2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K2JX52/auto/function-invoker/.dirs/config 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K2JX52/auto/function-invoker/.dirs/system-data1:/tmp/test_autoptr-girepository_K2JX52/auto/function-invoker/.dirs/system-data2 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K2JX52/auto/function-invoker/.dirs/data 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K2JX52/auto/function-invoker/.dirs/state 996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K2JX52/auto/function-invoker/.dirs/runtime 996s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 996s ok 24 /auto/function-invoker 996s # End of auto tests 996s TAP version 14 996s # random seed: R02Sb4e2522c45c2d8b7a98b1a31d5113044 996s 1..3 996s # Start of hostutils tests 996s ok 1 /hostutils/to_ascii 996s ok 2 /hostutils/to_unicode 996s ok 3 /hostutils/is_ip_addr 996s # End of hostutils tests 996s TAP version 14 996s # random seed: R02S61ea5ccce2dd574c0c55e9d2540428a9 996s 1..19 996s # Start of binding tests 996s ok 1 /binding/default 996s # /binding/canonicalisation summary: Test that bindings set up with non-canonical property names work 996s ok 2 /binding/canonicalisation 996s ok 3 /binding/bidirectional 996s ok 4 /binding/transform 996s ok 5 /binding/transform-default 996s ok 6 /binding/transform-closure 996s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=621782 996s ok 7 /binding/chain 996s ok 8 /binding/sync-create 996s ok 9 /binding/invert-boolean 996s ok 10 /binding/same-object 996s ok 11 /binding/unbind 996s ok 12 /binding/unbind-weak 996s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1373 996s ok 13 /binding/unbind-multiple 996s ok 14 /binding/fail 996s ok 15 /binding/interface 996s # /binding/concurrent-unbind summary: Test that unbinding from multiple threads concurrently works correctly 996s ok 16 /binding/concurrent-unbind 996s # /binding/concurrent-finalizing summary: Test that finalizing source/target from multiple threads concurrently works correctly 996s ok - glib/binding.test 996s ok 17 /binding/concurrent-finalizing 996s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2676 996s ok 18 /binding/dispose-source 996s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2676 996s ok 19 /binding/dispose-target 996s # End of binding tests 996s # Running test: glib/cxx-20.test 996s TAP version 14 996s # random seed: R02Sa315f736c53cf34a6715da29ac3b53cb 996s 1..2 996s # Start of gtask tests 996s ok - glib/cxx-20.test 996s # Running test: glib/hash.test 996s ok - glib/hash.test 996s # Running test: glib/objects-refcount1.test 996s # 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. 996s ok 1 /gtask/name 996s # Start of name tests 996s # 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. 996s ok 2 /gtask/name/macro-wrapper 996s # End of name tests 996s # End of gtask tests 996s TAP version 14 996s # random seed: R02Sdec9ecdb030a083a0a2251e598de0b0e 996s 1..34 996s # Start of hash tests 996s ok 1 /hash/misc 996s ok 2 /hash/one 996s ok 3 /hash/honeyman 996s ok 4 /hash/direct 996s ok 5 /hash/direct2 996s ok 6 /hash/int 996s ok 7 /hash/int64 996s ok 8 /hash/double 996s ok 9 /hash/string 996s ok 10 /hash/set 996s ok 11 /hash/set-ref 996s ok 12 /hash/ref 996s ok 13 /hash/remove-all 996s ok 14 /hash/recursive-remove-all 996s ok 15 /hash/find 996s ok 16 /hash/foreach 996s ok 17 /hash/foreach-steal 996s ok 18 /hash/steal-extended 996s ok 19 /hash/steal-all-keys 996s ok 20 /hash/steal-all-values 996s ok 21 /hash/lookup-extended 996s ok 22 /hash/new-similar 996s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642944 996s ok 23 /hash/lookup-null-key 996s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=650459 996s ok 24 /hash/destroy-modify 996s ok 25 /hash/consistency 996s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=662544 996s ok 26 /hash/iter-replace 996s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=692815 996s ok 27 /hash/set-insert-corruption 996s ok 28 /hash/set-to-strv 996s ok 29 /hash/get-keys-as-ptr-array 996s ok 30 /hash/get-values-as-ptr-array 996s ok 31 /hash/primes 996s # Start of int64 tests 996s # /hash/int64/collisions summary: Check int64 Hash collisions caused by ignoring high word 996s ok 32 /hash/int64/collisions 996s # End of int64 tests 996s # Start of double tests 996s # /hash/double/collisions summary: Check double Hash collisions caused by int conversion and by numbers larger than 2^64-1 (G_MAXUINT64) 996s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2771 996s ok 33 /hash/double/collisions 996s # End of double tests 996s # Start of recursive-remove-all tests 996s # End of recursive-remove-all tests 996s # Start of steal-extended tests 996s ok 34 /hash/steal-extended/optional 996s # End of steal-extended tests 996s # End of hash tests 996s TAP version 14 996s # random seed: R02S10cf1a43e53e403bc59ba88e413f4197 996s 1..1 996s # Start of gobject tests 996s # Start of refcount tests 996s # init 0xc225f1a7bd40 996s # 996s # init 0xc225f1a745b0 996s # 997s # Executing: glib/objects-refcount1.test 1001s # dispose 0xc225f1a7bd40! 1001s # 1001s # dispose 0xc225f1a745b0! 1001s # 1001s ok 1 /gobject/refcount/object-basics 1001s # slow test /gobject/refcount/object-basics executed in 5.01 secs 1001s # End of refcount tests 1001s # End of gobject tests 1001s ok - glib/objects-refcount1.test 1001s # Running test: glib/gdbus-proxy-well-known-name.test 1001s TAP version 14 1001s # random seed: R02S6e52c317faa8abec76841beb2d993d36 1001s 1..1 1001s # Start of gdbus tests 1001s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy-well-known-name_YHB152/gdbus/proxy-well-known-name/.dirs/home 1001s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy-well-known-name_YHB152/gdbus/proxy-well-known-name/.dirs/cache 1001s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy-well-known-name_YHB152/gdbus/proxy-well-known-name/.dirs/system-config1:/tmp/test_gdbus-proxy-well-known-name_YHB152/gdbus/proxy-well-known-name/.dirs/system-config2 1001s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy-well-known-name_YHB152/gdbus/proxy-well-known-name/.dirs/config 1001s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy-well-known-name_YHB152/gdbus/proxy-well-known-name/.dirs/system-data1:/tmp/test_gdbus-proxy-well-known-name_YHB152/gdbus/proxy-well-known-name/.dirs/system-data2 1001s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy-well-known-name_YHB152/gdbus/proxy-well-known-name/.dirs/data 1001s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy-well-known-name_YHB152/gdbus/proxy-well-known-name/.dirs/state 1001s ok - glib/gdbus-proxy-well-known-name.test 1001s # Running test: glib/642026.test 1001s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy-well-known-name_YHB152/gdbus/proxy-well-known-name/.dirs/runtime 1001s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1001s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1001s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1001s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1001s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1001s ok 1 /gdbus/proxy-well-known-name 1001s # End of gdbus tests 1001s TAP version 14 1001s # random seed: R02Sd676047d3238d340321907706883c4bf 1001s 1..1 1001s # Start of glib tests 1001s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642026 1001s ok 1 /glib/642026 1001s # End of glib tests 1001s ok - glib/642026.test 1001s # Running test: glib/array-test.test 1001s TAP version 14 1001s # random seed: R02Sa6b1d5c7398261c7c465c1b07e1c81c6 1001s 1..113 1001s # Start of array tests 1001s ok 1 /array/ref-count 1001s ok 2 /array/steal 1001s ok 3 /array/clear-func 1001s ok 4 /array/binary-search 1001s # /array/copy-sized summary: Test that copying a newly-allocated sized array works. 1001s ok 5 /array/copy-sized 1001s ok 6 /array/overflow-append-vals 1001s ok 7 /array/overflow-set-size 1001s # Start of new tests 1001s ok 8 /array/new/zero-terminated 1001s ok 9 /array/new/take 1001s ok 10 /array/new/take-zero-terminated 1001s # Start of take tests 1001s ok 11 /array/new/take/empty 1001s ok 12 /array/new/take/overflow # SKIP Overflow test requires UINT_WIDTH > SIZE_WIDTH. 1001s # End of take tests 1001s # End of new tests 1001s # Start of set-size tests 1001s ok 13 /array/set-size/non-zero-terminated-no-clear 1001s ok 14 /array/set-size/non-zero-terminated-clear 1001s ok 15 /array/set-size/zero-terminated-no-clear 1001s ok 16 /array/set-size/zero-terminated-clear 1001s # Start of sized tests 1001s ok 17 /array/set-size/sized/non-zero-terminated-no-clear 1001s ok 18 /array/set-size/sized/non-zero-terminated-clear 1001s ok 19 /array/set-size/sized/zero-terminated-no-clear 1001s ok 20 /array/set-size/sized/zero-terminated-clear 1001s # End of sized tests 1001s # End of set-size tests 1001s # Start of append-val tests 1001s ok 21 /array/append-val/non-zero-terminated-no-clear 1001s ok 22 /array/append-val/non-zero-terminated-clear 1001s ok 23 /array/append-val/zero-terminated-no-clear 1001s ok 24 /array/append-val/zero-terminated-clear 1001s # End of append-val tests 1001s # Start of prepend-val tests 1001s ok 25 /array/prepend-val/non-zero-terminated-no-clear 1001s ok 26 /array/prepend-val/non-zero-terminated-clear 1001s ok 27 /array/prepend-val/zero-terminated-no-clear 1001s ok 28 /array/prepend-val/zero-terminated-clear 1001s # End of prepend-val tests 1001s # Start of prepend-vals tests 1001s ok 29 /array/prepend-vals/non-zero-terminated-no-clear 1001s ok 30 /array/prepend-vals/non-zero-terminated-clear 1001s ok 31 /array/prepend-vals/zero-terminated-no-clear 1001s ok 32 /array/prepend-vals/zero-terminated-clear 1001s # End of prepend-vals tests 1001s # Start of insert-vals tests 1001s ok 33 /array/insert-vals/non-zero-terminated-no-clear 1001s ok 34 /array/insert-vals/non-zero-terminated-clear 1001s ok 35 /array/insert-vals/zero-terminated-no-clear 1001s ok 36 /array/insert-vals/zero-terminated-clear 1001s # End of insert-vals tests 1001s # Start of remove-index tests 1001s ok 37 /array/remove-index/non-zero-terminated-no-clear 1001s ok 38 /array/remove-index/non-zero-terminated-clear 1001s ok 39 /array/remove-index/zero-terminated-no-clear 1001s ok 40 /array/remove-index/zero-terminated-clear 1001s # End of remove-index tests 1001s # Start of remove-index-fast tests 1001s ok 41 /array/remove-index-fast/non-zero-terminated-no-clear 1001s ok 42 /array/remove-index-fast/non-zero-terminated-clear 1001s ok 43 /array/remove-index-fast/zero-terminated-no-clear 1001s ok 44 /array/remove-index-fast/zero-terminated-clear 1001s # End of remove-index-fast tests 1001s ok - glib/array-test.test 1001s # Running test: glib/overflow.test 1001s ok - glib/overflow.test 1001s # Running test: glib/mkenums.py.test 1001s # Start of remove-range tests 1001s ok 45 /array/remove-range/non-zero-terminated-no-clear 1001s ok 46 /array/remove-range/non-zero-terminated-clear 1001s ok 47 /array/remove-range/zero-terminated-no-clear 1001s ok 48 /array/remove-range/zero-terminated-clear 1001s # End of remove-range tests 1001s # Start of copy tests 1001s ok 49 /array/copy/non-zero-terminated-no-clear 1001s ok 50 /array/copy/non-zero-terminated-clear 1001s ok 51 /array/copy/zero-terminated-no-clear 1001s ok 52 /array/copy/zero-terminated-clear 1001s # End of copy tests 1001s # Start of sort tests 1001s ok 53 /array/sort/non-zero-terminated-no-clear 1001s ok 54 /array/sort/non-zero-terminated-clear 1001s ok 55 /array/sort/zero-terminated-no-clear 1001s ok 56 /array/sort/zero-terminated-clear 1001s # End of sort tests 1001s # Start of sort-with-data tests 1001s ok 57 /array/sort-with-data/non-zero-terminated-no-clear 1001s ok 58 /array/sort-with-data/non-zero-terminated-clear 1001s ok 59 /array/sort-with-data/zero-terminated-no-clear 1001s ok 60 /array/sort-with-data/zero-terminated-clear 1001s # End of sort-with-data tests 1001s # End of array tests 1001s # Start of pointerarray tests 1001s ok 61 /pointerarray/add 1001s ok 62 /pointerarray/insert 1001s ok 63 /pointerarray/new-take 1001s ok 64 /pointerarray/new-take-null-terminated 1001s ok 65 /pointerarray/new-from-array 1001s ok 66 /pointerarray/new-from-null-terminated-array 1001s ok 67 /pointerarray/free-func 1001s ok 68 /pointerarray/array_extend_and_steal 1001s ok 69 /pointerarray/sort 1001s ok 70 /pointerarray/sort-with-data 1001s ok 71 /pointerarray/sort-values 1001s ok 72 /pointerarray/sort-values-with-data 1001s ok 73 /pointerarray/remove-range 1001s ok 74 /pointerarray/steal 1001s # Start of free tests 1001s # /pointerarray/free/null-terminated summary: Check that g_ptr_array_free() on an empty array returns a NULL-terminated empty array 1001s ok 75 /pointerarray/free/null-terminated 1001s # End of free tests 1001s # Start of new-take tests 1001s ok 76 /pointerarray/new-take/empty 1001s ok 77 /pointerarray/new-take/overflow # SKIP Overflow test requires UINT_WIDTH > SIZE_WIDTH. 1001s ok 78 /pointerarray/new-take/with-free-func 1001s # End of new-take tests 1001s # Start of new-take-null-terminated tests 1001s ok 79 /pointerarray/new-take-null-terminated/empty 1001s ok 80 /pointerarray/new-take-null-terminated/with-free-func 1001s ok 81 /pointerarray/new-take-null-terminated/from-gstrv 1001s # End of new-take-null-terminated tests 1001s # Start of new-from-array tests 1001s ok 82 /pointerarray/new-from-array/empty 1001s ok 83 /pointerarray/new-from-array/overflow # SKIP Overflow test requires UINT_WIDTH > SIZE_WIDTH. 1001s ok 84 /pointerarray/new-from-array/with-copy-and-free-func 1001s # End of new-from-array tests 1001s # Start of new-from-null-terminated-array tests 1001s ok 85 /pointerarray/new-from-null-terminated-array/empty 1001s ok 86 /pointerarray/new-from-null-terminated-array/with-copy-and-free-func 1001s ok 87 /pointerarray/new-from-null-terminated-array/from-gstrv 1001s # End of new-from-null-terminated-array tests 1001s # Start of ref-count tests 1001s ok 88 /pointerarray/ref-count/not-null-terminated 1001s ok 89 /pointerarray/ref-count/null-terminated 1001s # End of ref-count tests 1001s # Start of array_copy tests 1001s # /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 1001s ok 90 /pointerarray/array_copy/not-null-terminated 1001s # /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 1001s ok 91 /pointerarray/array_copy/null-terminated 1001s # End of array_copy tests 1001s # Start of array_extend tests 1001s ok 92 /pointerarray/array_extend/not-null-terminated 1001s ok 93 /pointerarray/array_extend/null-terminated 1001s # End of array_extend tests 1001s # Start of sort tests 1001s # /pointerarray/sort/example summary: Check that the doc-comment for g_ptr_array_sort() is correct 1001s ok 94 /pointerarray/sort/example 1001s # End of sort tests 1001s # Start of sort-with-data tests 1001s # /pointerarray/sort-with-data/example summary: Check that the doc-comment for g_ptr_array_sort_with_data() is correct 1001s ok 95 /pointerarray/sort-with-data/example 1001s # End of sort-with-data tests 1001s # Start of sort-values tests 1001s ok 96 /pointerarray/sort-values/example 1001s # End of sort-values tests 1001s # Start of sort-values-with-data tests 1001s ok 97 /pointerarray/sort-values-with-data/example 1001s # End of sort-values-with-data tests 1001s # Start of find tests 1001s ok 98 /pointerarray/find/empty 1001s ok 99 /pointerarray/find/non-empty 1001s # End of find tests 1001s # Start of steal_index tests 1001s ok 100 /pointerarray/steal_index/not-null-terminated 1001s ok 101 /pointerarray/steal_index/null-terminated 1001s # End of steal_index tests 1001s # End of pointerarray tests 1001s # Start of bytearray tests 1001s ok 102 /bytearray/steal 1001s ok 103 /bytearray/append 1001s ok 104 /bytearray/prepend 1001s ok 105 /bytearray/remove 1001s ok 106 /bytearray/remove-fast 1001s ok 107 /bytearray/remove-range 1001s ok 108 /bytearray/ref-count 1001s ok 109 /bytearray/sort 1001s ok 110 /bytearray/sort-with-data 1001s ok 111 /bytearray/new-take 1001s ok 112 /bytearray/new-take-overflow # SKIP Overflow test requires G_MAXSIZE > G_MAXUINT. 1001s ok 113 /bytearray/free-to-bytes 1001s # End of bytearray tests 1001s TAP version 14 1001s # random seed: R02S35fb8064ccc0ce4554a0ff70d529660e 1001s 1..6 1001s # Start of glib tests 1001s # Start of checked-math tests 1001s ok 1 /glib/checked-math/guint-add 1001s ok 2 /glib/checked-math/guint-mul 1001s ok 3 /glib/checked-math/guint64-add 1001s ok 4 /glib/checked-math/guint64-mul 1001s ok 5 /glib/checked-math/gsize-add 1001s ok 6 /glib/checked-math/gsize-mul 1001s # End of checked-math tests 1001s # End of glib tests 1001s TAP version 13 1001s ok 1 __main__.TestMkenums.test_available_in 1001s # glib-mkenums: /usr/bin/glib-mkenums 1001s # tmpdir: /tmp/tmp50djxeyj 1001s # rspfile: False 1001s # /tmp/tmp50djxeyj/tmp05n1y2qo.h: 1001s # typedef enum { 1001s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_AVAILABLE_ENUMERATOR_IN_2_68 = (1<<2) 1001s # } GDBusServerFlags; 1001s # 1001s # /tmp/tmp50djxeyj/tmpqk1ar07z.template: 1001s # /*** BEGIN file-header ***/ 1001s # file-header 1001s # /*** END file-header ***/ 1001s # 1001s # /*** BEGIN file-production ***/ 1001s # file-production 1001s # filename: @filename@ 1001s # basename: @basename@ 1001s # /*** END file-production ***/ 1001s # 1001s # /*** BEGIN enumeration-production ***/ 1001s # enumeration-production 1001s # EnumName: @EnumName@ 1001s # enum_name: @enum_name@ 1001s # ENUMNAME: @ENUMNAME@ 1001s # ENUMSHORT: @ENUMSHORT@ 1001s # ENUMPREFIX: @ENUMPREFIX@ 1001s # enumsince: @enumsince@ 1001s # type: @type@ 1001s # Type: @Type@ 1001s # TYPE: @TYPE@ 1001s # /*** END enumeration-production ***/ 1001s # 1001s # /*** BEGIN value-header ***/ 1001s # value-header 1001s # EnumName: @EnumName@ 1001s # enum_name: @enum_name@ 1001s # ENUMNAME: @ENUMNAME@ 1001s # ENUMSHORT: @ENUMSHORT@ 1001s # ENUMPREFIX: @ENUMPREFIX@ 1001s # enumsince: @enumsince@ 1001s # type: @type@ 1001s # Type: @Type@ 1001s # TYPE: @TYPE@ 1001s # /*** END value-header ***/ 1001s # 1001s # /*** BEGIN value-production ***/ 1001s # value-production 1001s # VALUENAME: @VALUENAME@ 1001s # valuenick: @valuenick@ 1001s # valuenum: @valuenum@ 1001s # type: @type@ 1001s # Type: @Type@ 1001s # TYPE: @TYPE@ 1001s # /*** END value-production ***/ 1001s # 1001s # /*** BEGIN value-tail ***/ 1001s # value-tail 1001s # EnumName: @EnumName@ 1001s # enum_name: @enum_name@ 1001s # ENUMNAME: @ENUMNAME@ 1001s # ENUMSHORT: @ENUMSHORT@ 1001s # ENUMPREFIX: @ENUMPREFIX@ 1001s # enumsince: @enumsince@ 1001s # type: @type@ 1001s # Type: @Type@ 1001s # TYPE: @TYPE@ 1001s # /*** END value-tail ***/ 1001s # 1001s # /*** BEGIN comment ***/ 1001s # comment 1001s # comment: @comment@ 1001s # /*** END comment ***/ 1001s # 1001s # /*** BEGIN file-tail ***/ 1001s # file-tail 1001s # /*** END file-tail ***/ 1001s # 1001s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp50djxeyj/tmpqk1ar07z.template', '/tmp/tmp50djxeyj/tmp05n1y2qo.h'] 1001s # Return code: 0 1001s # Output: 1001s # comment 1001s # 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. 1001s # 1001s # 1001s # file-header 1001s # file-production 1001s # filename: /tmp/tmp50djxeyj/tmp05n1y2qo.h 1001s # basename: tmp05n1y2qo.h 1001s # enumeration-production 1001s # EnumName: GDBusServerFlags 1001s # enum_name: g_dbus_server_flags 1001s # ENUMNAME: G_DBUS_SERVER_FLAGS 1001s # ENUMSHORT: DBUS_SERVER_FLAGS 1001s # ENUMPREFIX: G 1001s # enumsince: 1001s # type: flags 1001s # Type: Flags 1001s # TYPE: FLAGS 1001s # value-header 1001s # EnumName: GDBusServerFlags 1001s # enum_name: g_dbus_server_flags 1001s # ENUMNAME: G_DBUS_SERVER_FLAGS 1001s # ENUMSHORT: DBUS_SERVER_FLAGS 1001s # ENUMPREFIX: G 1001s # enumsince: 1001s # type: flags 1001s # Type: Flags 1001s # TYPE: FLAGS 1001s # value-production 1001s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1001s # valuenick: user 1001s # valuenum: 4 1001s # type: flags 1001s # Type: Flags 1001s # TYPE: FLAGS 1001s # value-tail 1001s # EnumName: GDBusServerFlags 1001s # enum_name: g_dbus_server_flags 1001s # ENUMNAME: G_DBUS_SERVER_FLAGS 1001s # ENUMSHORT: DBUS_SERVER_FLAGS 1001s # ENUMPREFIX: G 1001s # enumsince: 1001s # type: flags 1001s # Type: Flags 1001s # TYPE: FLAGS 1001s # file-tail 1001s # 1001s # comment 1001s # comment: Generated data ends here 1001s # Error: 1001s ok 2 __main__.TestMkenums.test_comma_in_enum_value 1001s # glib-mkenums: /usr/bin/glib-mkenums 1001s # tmpdir: /tmp/tmpohzanrdh 1001s # rspfile: False 1001s # /tmp/tmpohzanrdh/tmp20nzcp60.h: 1001s # typedef enum { 1001s # ENUM_VALUE_WITH_COMMA = ',', 1001s # } TestCommaEnum; 1001s # 1001s # /tmp/tmpohzanrdh/tmp5hxniz_s.template: 1001s # /*** BEGIN file-header ***/ 1001s # file-header 1001s # /*** END file-header ***/ 1001s # 1001s # /*** BEGIN file-production ***/ 1001s # file-production 1001s # filename: @filename@ 1001s # basename: @basename@ 1001s # /*** END file-production ***/ 1001s # 1001s # /*** BEGIN enumeration-production ***/ 1001s # enumeration-production 1001s # EnumName: @EnumName@ 1001s # enum_name: @enum_name@ 1001s # ENUMNAME: @ENUMNAME@ 1001s # ENUMSHORT: @ENUMSHORT@ 1001s # ENUMPREFIX: @ENUMPREFIX@ 1001s # enumsince: @enumsince@ 1001s # type: @type@ 1001s # Type: @Type@ 1001s # TYPE: @TYPE@ 1001s # /*** END enumeration-production ***/ 1001s # 1001s # /*** BEGIN value-header ***/ 1001s # value-header 1001s # EnumName: @EnumName@ 1001s # enum_name: @enum_name@ 1001s # ENUMNAME: @ENUMNAME@ 1001s # ENUMSHORT: @ENUMSHORT@ 1001s # ENUMPREFIX: @ENUMPREFIX@ 1001s # enumsince: @enumsince@ 1001s # type: @type@ 1001s # Type: @Type@ 1001s # TYPE: @TYPE@ 1001s # /*** END value-header ***/ 1001s # 1001s # /*** BEGIN value-production ***/ 1001s # value-production 1001s # VALUENAME: @VALUENAME@ 1001s # valuenick: @valuenick@ 1001s # valuenum: @valuenum@ 1001s # type: @type@ 1001s # Type: @Type@ 1001s # TYPE: @TYPE@ 1001s # /*** END value-production ***/ 1001s # 1001s # /*** BEGIN value-tail ***/ 1001s # value-tail 1001s # EnumName: @EnumName@ 1001s # enum_name: @enum_name@ 1001s # ENUMNAME: @ENUMNAME@ 1001s # ENUMSHORT: @ENUMSHORT@ 1001s # ENUMPREFIX: @ENUMPREFIX@ 1001s # enumsince: @enumsince@ 1001s # type: @type@ 1001s # Type: @Type@ 1001s # TYPE: @TYPE@ 1001s # /*** END value-tail ***/ 1001s # 1001s # /*** BEGIN comment ***/ 1001s # comment 1001s # comment: @comment@ 1001s # /*** END comment ***/ 1001s # 1001s # /*** BEGIN file-tail ***/ 1001s # file-tail 1001s # /*** END file-tail ***/ 1001s # 1001s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpohzanrdh/tmp5hxniz_s.template', '/tmp/tmpohzanrdh/tmp20nzcp60.h'] 1001s # Return code: 0 1001s # Output: 1001s # comment 1001s # 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. 1001s # 1001s # 1001s # file-header 1001s # file-production 1001s # filename: /tmp/tmpohzanrdh/tmp20nzcp60.h 1001s # basename: tmp20nzcp60.h 1001s # enumeration-production 1001s # EnumName: TestCommaEnum 1001s # enum_name: test_comma_enum 1001s # ENUMNAME: TEST_COMMA_ENUM 1001s # ENUMSHORT: COMMA_ENUM 1001s # ENUMPREFIX: TEST 1001s # enumsince: 1001s # type: enum 1001s # Type: Enum 1001s # TYPE: ENUM 1001s # value-header 1001s # EnumName: TestCommaEnum 1001s # enum_name: test_comma_enum 1001s # ENUMNAME: TEST_COMMA_ENUM 1001s # ENUMSHORT: COMMA_ENUM 1001s # ENUMPREFIX: TEST 1001s # enumsince: 1001s # type: enum 1001s # Type: Enum 1001s # TYPE: ENUM 1001s # value-production 1001s # VALUENAME: ENUM_VALUE_WITH_COMMA 1001s # valuenick: comma 1001s # valuenum: 44 1001s # type: enum 1001s # Type: Enum 1001s # TYPE: ENUM 1001s # value-tail 1001s # EnumName: TestCommaEnum 1001s # enum_name: test_comma_enum 1001s # ENUMNAME: TEST_COMMA_ENUM 1001s # ENUMSHORT: COMMA_ENUM 1001s # ENUMPREFIX: TEST 1001s # enumsince: 1001s # type: enum 1001s # Type: Enum 1001s # TYPE: ENUM 1001s # file-tail 1001s # 1001s # comment 1001s # comment: Generated data ends here 1001s # Error: 1001s ok 3 __main__.TestMkenums.test_deprecated_in 1001s # glib-mkenums: /usr/bin/glib-mkenums 1001s # tmpdir: /tmp/tmphv9z8ra5 1001s # rspfile: False 1001s # /tmp/tmphv9z8ra5/tmpjmznya2o.h: 1001s # typedef enum { 1001s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_DEPRECATED_ENUMERATOR_IN_2_68 = (1<<2) 1001s # } GDBusServerFlags; 1001s # 1001s # /tmp/tmphv9z8ra5/tmpu1a9qpiq.template: 1001s # /*** BEGIN file-header ***/ 1001s # file-header 1001s # /*** END file-header ***/ 1001s # 1001s # /*** BEGIN file-production ***/ 1001s # file-production 1001s # filename: @filename@ 1001s # basename: @basename@ 1001s # /*** END file-production ***/ 1001s # 1001s # /*** BEGIN enumeration-production ***/ 1001s # enumeration-production 1001s # EnumName: @EnumName@ 1001s # enum_name: @enum_name@ 1001s # ENUMNAME: @ENUMNAME@ 1001s # ENUMSHORT: @ENUMSHORT@ 1001s # ENUMPREFIX: @ENUMPREFIX@ 1001s # enumsince: @enumsince@ 1001s # type: @type@ 1001s # Type: @Type@ 1001s # TYPE: @TYPE@ 1001s # /*** END enumeration-production ***/ 1001s # 1001s # /*** BEGIN value-header ***/ 1001s # value-header 1001s # EnumName: @EnumName@ 1001s # enum_name: @enum_name@ 1001s # ENUMNAME: @ENUMNAME@ 1001s # ENUMSHORT: @ENUMSHORT@ 1001s # ENUMPREFIX: @ENUMPREFIX@ 1001s # enumsince: @enumsince@ 1001s # type: @type@ 1001s # Type: @Type@ 1001s # TYPE: @TYPE@ 1001s # /*** END value-header ***/ 1001s # 1001s # /*** BEGIN value-production ***/ 1001s # value-production 1001s # VALUENAME: @VALUENAME@ 1001s # valuenick: @valuenick@ 1001s # valuenum: @valuenum@ 1001s # type: @type@ 1001s # Type: @Type@ 1001s # TYPE: @TYPE@ 1001s # /*** END value-production ***/ 1001s # 1001s # /*** BEGIN value-tail ***/ 1001s # value-tail 1001s # EnumName: @EnumName@ 1001s # enum_name: @enum_name@ 1001s # ENUMNAME: @ENUMNAME@ 1001s # ENUMSHORT: @ENUMSHORT@ 1001s # ENUMPREFIX: @ENUMPREFIX@ 1001s # enumsince: @enumsince@ 1001s # type: @type@ 1001s # Type: @Type@ 1001s # TYPE: @TYPE@ 1001s # /*** END value-tail ***/ 1001s # 1001s # /*** BEGIN comment ***/ 1001s # comment 1001s # comment: @comment@ 1001s # /*** END comment ***/ 1001s # 1001s # /*** BEGIN file-tail ***/ 1001s # file-tail 1001s # /*** END file-tail ***/ 1001s # 1001s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmphv9z8ra5/tmpu1a9qpiq.template', '/tmp/tmphv9z8ra5/tmpjmznya2o.h'] 1001s # Return code: 0 1001s # Output: 1001s # comment 1001s # 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. 1001s # 1001s # 1001s # file-header 1001s # file-production 1001s # filename: /tmp/tmphv9z8ra5/tmpjmznya2o.h 1001s # basename: tmpjmznya2o.h 1001s # enumeration-production 1001s # EnumName: GDBusServerFlags 1001s # enum_name: g_dbus_server_flags 1001s # ENUMNAME: G_DBUS_SERVER_FLAGS 1001s # ENUMSHORT: DBUS_SERVER_FLAGS 1001s # ENUMPREFIX: G 1001s # enumsince: 1001s # type: flags 1001s # Type: Flags 1001s # TYPE: FLAGS 1001s # value-header 1001s # EnumName: GDBusServerFlags 1001s # enum_name: g_dbus_server_flags 1001s # ENUMNAME: G_DBUS_SERVER_FLAGS 1001s # ENUMSHORT: DBUS_SERVER_FLAGS 1001s # ENUMPREFIX: G 1001s # enumsince: 1001s # type: flags 1001s # Type: Flags 1001s # TYPE: FLAGS 1001s # value-production 1001s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1001s # valuenick: user 1001s # valuenum: 4 1001s # type: flags 1001s # Type: Flags 1001s # TYPE: FLAGS 1001s # value-tail 1001s # EnumName: GDBusServerFlags 1001s # enum_name: g_dbus_server_flags 1001s # ENUMNAME: G_DBUS_SERVER_FLAGS 1001s # ENUMSHORT: DBUS_SERVER_FLAGS 1001s # ENUMPREFIX: G 1001s # enumsince: 1001s # type: flags 1001s # Type: Flags 1001s # TYPE: FLAGS 1001s # file-tail 1001s # 1001s # comment 1001s # comment: Generated data ends here 1001s # Error: 1001s ok 4 __main__.TestMkenums.test_deprecated_in_for 1001s # glib-mkenums: /usr/bin/glib-mkenums 1001s # tmpdir: /tmp/tmpzpvd36ng 1001s # rspfile: False 1001s # /tmp/tmpzpvd36ng/tmpsbl1wiea.h: 1001s # typedef enum { 1001s # 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) 1001s # } GDBusServerFlags; 1001s # 1001s # /tmp/tmpzpvd36ng/tmp042_icba.template: 1001s # /*** BEGIN file-header ***/ 1001s # file-header 1001s # /*** END file-header ***/ 1001s # 1001s # /*** BEGIN file-production ***/ 1001s # file-production 1001s # filename: @filename@ 1001s # basename: @basename@ 1001s # /*** END file-production ***/ 1001s # 1001s # /*** BEGIN enumeration-production ***/ 1001s # enumeration-production 1001s # EnumName: @EnumName@ 1001s # enum_name: @enum_name@ 1001s # ENUMNAME: @ENUMNAME@ 1001s # ENUMSHORT: @ENUMSHORT@ 1001s # ENUMPREFIX: @ENUMPREFIX@ 1001s # enumsince: @enumsince@ 1001s # type: @type@ 1001s # Type: @Type@ 1001s # TYPE: @TYPE@ 1001s # /*** END enumeration-production ***/ 1001s # 1001s # /*** BEGIN value-header ***/ 1001s # value-header 1001s # EnumName: @EnumName@ 1001s # enum_name: @enum_name@ 1001s # ENUMNAME: @ENUMNAME@ 1001s # ENUMSHORT: @ENUMSHORT@ 1001s # ENUMPREFIX: @ENUMPREFIX@ 1001s # enumsince: @enumsince@ 1001s # type: @type@ 1001s # Type: @Type@ 1001s # TYPE: @TYPE@ 1001s # /*** END value-header ***/ 1001s # 1001s # /*** BEGIN value-production ***/ 1001s # value-production 1001s # VALUENAME: @VALUENAME@ 1001s # valuenick: @valuenick@ 1001s # valuenum: @valuenum@ 1001s # type: @type@ 1001s # Type: @Type@ 1001s # TYPE: @TYPE@ 1001s # /*** END value-production ***/ 1001s # 1001s # /*** BEGIN value-tail ***/ 1001s # value-tail 1001s # EnumName: @EnumName@ 1001s # enum_name: @enum_name@ 1001s # ENUMNAME: @ENUMNAME@ 1001s # ENUMSHORT: @ENUMSHORT@ 1001s # ENUMPREFIX: @ENUMPREFIX@ 1001s # enumsince: @enumsince@ 1001s # type: @type@ 1001s # Type: @Type@ 1001s # TYPE: @TYPE@ 1001s # /*** END value-tail ***/ 1001s # 1001s # /*** BEGIN comment ***/ 1001s # comment 1001s # comment: @comment@ 1001s # /*** END comment ***/ 1001s # 1001s # /*** BEGIN file-tail ***/ 1001s # file-tail 1001s # /*** END file-tail ***/ 1001s # 1001s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpzpvd36ng/tmp042_icba.template', '/tmp/tmpzpvd36ng/tmpsbl1wiea.h'] 1001s # Return code: 0 1001s # Output: 1001s # comment 1001s # 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. 1001s # 1001s # 1001s # file-header 1001s # file-production 1001s # filename: /tmp/tmpzpvd36ng/tmpsbl1wiea.h 1001s # basename: tmpsbl1wiea.h 1001s # enumeration-production 1001s # EnumName: GDBusServerFlags 1001s # enum_name: g_dbus_server_flags 1001s # ENUMNAME: G_DBUS_SERVER_FLAGS 1001s # ENUMSHORT: DBUS_SERVER_FLAGS 1001s # ENUMPREFIX: G 1001s # enumsince: 1001s # type: flags 1001s # Type: Flags 1001s # TYPE: FLAGS 1001s # value-header 1001s # EnumName: GDBusServerFlags 1001s # enum_name: g_dbus_server_flags 1001s # ENUMNAME: G_DBUS_SERVER_FLAGS 1001s # ENUMSHORT: DBUS_SERVER_FLAGS 1001s # ENUMPREFIX: G 1001s # enumsince: 1001s # type: flags 1001s # Type: Flags 1001s # TYPE: FLAGS 1001s # value-production 1001s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1001s # valuenick: user 1001s # valuenum: 4 1001s # type: flags 1001s # Type: Flags 1001s # TYPE: FLAGS 1001s # value-tail 1001s # EnumName: GDBusServerFlags 1001s # enum_name: g_dbus_server_flags 1001s # ENUMNAME: G_DBUS_SERVER_FLAGS 1001s # ENUMSHORT: DBUS_SERVER_FLAGS 1001s # ENUMPREFIX: G 1001s # enumsince: 1001s # type: flags 1001s # Type: Flags 1001s # TYPE: FLAGS 1001s # file-tail 1001s # 1001s # comment 1001s # comment: Generated data ends here 1001s # Error: 1001s ok 5 __main__.TestMkenums.test_empty_header 1001s # glib-mkenums: /usr/bin/glib-mkenums 1001s # tmpdir: /tmp/tmpv5r1o09o 1001s # rspfile: False 1001s # /tmp/tmpv5r1o09o/tmpua1_dhte.h: 1001s # /tmp/tmpv5r1o09o/tmpp6vjmkup.template: 1001s # /*** BEGIN file-header ***/ 1001s # file-header 1001s # /*** END file-header ***/ 1001s # 1001s # /*** BEGIN file-production ***/ 1001s # file-production 1001s # filename: @filename@ 1001s # basename: @basename@ 1001s # /*** END file-production ***/ 1001s # 1001s # /*** BEGIN enumeration-production ***/ 1001s # enumeration-production 1001s # EnumName: @EnumName@ 1001s # enum_name: @enum_name@ 1001s # ENUMNAME: @ENUMNAME@ 1001s # ENUMSHORT: @ENUMSHORT@ 1001s # ENUMPREFIX: @ENUMPREFIX@ 1001s # enumsince: @enumsince@ 1001s # type: @type@ 1001s # Type: @Type@ 1001s # TYPE: @TYPE@ 1001s # /*** END enumeration-production ***/ 1001s # 1001s # /*** BEGIN value-header ***/ 1001s # value-header 1001s # EnumName: @EnumName@ 1001s # enum_name: @enum_name@ 1001s # ENUMNAME: @ENUMNAME@ 1001s # ENUMSHORT: @ENUMSHORT@ 1001s # ENUMPREFIX: @ENUMPREFIX@ 1001s # enumsince: @enumsince@ 1001s # type: @type@ 1001s # Type: @Type@ 1001s # TYPE: @TYPE@ 1001s # /*** END value-header ***/ 1001s # 1001s # /*** BEGIN value-production ***/ 1001s # value-production 1001s # VALUENAME: @VALUENAME@ 1001s # valuenick: @valuenick@ 1001s # valuenum: @valuenum@ 1001s # type: @type@ 1001s # Type: @Type@ 1001s # TYPE: @TYPE@ 1001s # /*** END value-production ***/ 1001s # 1001s # /*** BEGIN value-tail ***/ 1001s # value-tail 1001s # EnumName: @EnumName@ 1001s # enum_name: @enum_name@ 1001s # ENUMNAME: @ENUMNAME@ 1001s # ENUMSHORT: @ENUMSHORT@ 1001s # ENUMPREFIX: @ENUMPREFIX@ 1001s # enumsince: @enumsince@ 1001s # type: @type@ 1001s # Type: @Type@ 1001s # TYPE: @TYPE@ 1001s # /*** END value-tail ***/ 1001s # 1001s # /*** BEGIN comment ***/ 1001s # comment 1001s # comment: @comment@ 1001s # /*** END comment ***/ 1001s # 1001s # /*** BEGIN file-tail ***/ 1001s # file-tail 1001s # /*** END file-tail ***/ 1001s # 1001s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpv5r1o09o/tmpp6vjmkup.template', '/tmp/tmpv5r1o09o/tmpua1_dhte.h'] 1001s # Return code: 0 1001s # Output: 1001s # comment 1001s # 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. 1001s # 1001s # 1001s # file-header 1001s # file-tail 1001s # 1001s # comment 1001s # comment: Generated data ends here 1001s # Error: 1001s ok 6 __main__.TestMkenums.test_empty_template 1001s # glib-mkenums: /usr/bin/glib-mkenums 1001s # tmpdir: /tmp/tmpp6zx17_x 1001s # rspfile: False 1001s # /tmp/tmpp6zx17_x/tmptcbnxss0.template: 1001s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpp6zx17_x/tmptcbnxss0.template'] 1001s # Return code: 0 1001s # Output: 1001s # /* 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. */ 1001s # 1001s # 1001s # /* Generated data ends here */ 1001s # Error: 1001s ok 7 __main__.TestMkenums.test_enum_name 1001s # glib-mkenums: /usr/bin/glib-mkenums 1001s # tmpdir: /tmp/tmph3j9rdod 1001s # rspfile: False 1001s # /tmp/tmph3j9rdod/tmpbb2nk60u.h: 1001s # typedef enum _SomeEnumIdentifier { 1001s # ENUM_VALUE 1001s # } SomeEnumIdentifier; 1001s # 1001s # /tmp/tmph3j9rdod/tmp3zultk4y.template: 1001s # /*** BEGIN file-header ***/ 1001s # file-header 1001s # /*** END file-header ***/ 1001s # 1001s # /*** BEGIN file-production ***/ 1001s # file-production 1001s # filename: @filename@ 1001s # basename: @basename@ 1001s # /*** END file-production ***/ 1001s # 1001s # /*** BEGIN enumeration-production ***/ 1001s # enumeration-production 1001s # EnumName: @EnumName@ 1001s # enum_name: @enum_name@ 1001s # ENUMNAME: @ENUMNAME@ 1001s # ENUMSHORT: @ENUMSHORT@ 1001s # ENUMPREFIX: @ENUMPREFIX@ 1001s # enumsince: @enumsince@ 1001s # type: @type@ 1001s # Type: @Type@ 1001s # TYPE: @TYPE@ 1001s # /*** END enumeration-production ***/ 1001s # 1001s # /*** BEGIN value-header ***/ 1001s # value-header 1001s # EnumName: @EnumName@ 1001s # enum_name: @enum_name@ 1001s # ENUMNAME: @ENUMNAME@ 1001s # ENUMSHORT: @ENUMSHORT@ 1001s # ENUMPREFIX: @ENUMPREFIX@ 1001s # enumsince: @enumsince@ 1001s # type: @type@ 1001s # Type: @Type@ 1001s # TYPE: @TYPE@ 1001s # /*** END value-header ***/ 1001s # 1001s # /*** BEGIN value-production ***/ 1001s # value-production 1001s # VALUENAME: @VALUENAME@ 1001s # valuenick: @valuenick@ 1001s # valuenum: @valuenum@ 1001s # type: @type@ 1001s # Type: @Type@ 1001s # TYPE: @TYPE@ 1001s # /*** END value-production ***/ 1001s # 1001s # /*** BEGIN value-tail ***/ 1001s # value-tail 1001s # EnumName: @EnumName@ 1001s # enum_name: @enum_name@ 1001s # ENUMNAME: @ENUMNAME@ 1001s # ENUMSHORT: @ENUMSHORT@ 1001s # ENUMPREFIX: @ENUMPREFIX@ 1001s # enumsince: @enumsince@ 1001s # type: @type@ 1001s # Type: @Type@ 1001s # TYPE: @TYPE@ 1001s # /*** END value-tail ***/ 1001s # 1001s # /*** BEGIN comment ***/ 1001s # comment 1001s # comment: @comment@ 1001s # /*** END comment ***/ 1001s # 1001s # /*** BEGIN file-tail ***/ 1001s # file-tail 1001s # /*** END file-tail ***/ 1001s # 1001s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmph3j9rdod/tmp3zultk4y.template', '/tmp/tmph3j9rdod/tmpbb2nk60u.h'] 1001s # Return code: 0 1001s # Output: 1001s # comment 1001s # 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. 1001s # 1001s # 1001s # file-header 1001s # file-production 1001s # filename: /tmp/tmph3j9rdod/tmpbb2nk60u.h 1001s # basename: tmpbb2nk60u.h 1001s # enumeration-production 1001s # EnumName: SomeEnumIdentifier 1001s # enum_name: some_enum_identifier 1001s # ENUMNAME: SOME_ENUM_IDENTIFIER 1001s # ENUMSHORT: ENUM_IDENTIFIER 1001s # ENUMPREFIX: SOME 1001s # enumsince: 1001s # type: enum 1001s # Type: Enum 1001s # TYPE: ENUM 1001s # value-header 1001s # EnumName: SomeEnumIdentifier 1001s # enum_name: some_enum_identifier 1001s # ENUMNAME: SOME_ENUM_IDENTIFIER 1001s # ENUMSHORT: ENUM_IDENTIFIER 1001s # ENUMPREFIX: SOME 1001s # enumsince: 1001s # type: enum 1001s # Type: Enum 1001s # TYPE: ENUM 1001s # value-production 1001s # VALUENAME: ENUM_VALUE 1001s # valuenick: value 1001s # valuenum: 0 1001s # type: enum 1001s # Type: Enum 1001s # TYPE: ENUM 1001s # value-tail 1001s # EnumName: SomeEnumIdentifier 1001s # enum_name: some_enum_identifier 1001s # ENUMNAME: SOME_ENUM_IDENTIFIER 1001s # ENUMSHORT: ENUM_IDENTIFIER 1001s # ENUMPREFIX: SOME 1001s # enumsince: 1001s # type: enum 1001s # Type: Enum 1001s # TYPE: ENUM 1001s # file-tail 1001s # 1001s # comment 1001s # comment: Generated data ends here 1001s # Error: 1001s ok 8 __main__.TestMkenums.test_enum_private_public 1001s # glib-mkenums: /usr/bin/glib-mkenums 1001s # tmpdir: /tmp/tmpla74om1n 1001s # rspfile: False 1001s # /tmp/tmpla74om1n/tmpy0tw4rfb.h: 1001s # typedef enum { 1001s # ENUM_VALUE_PUBLIC1, 1001s # /*< private >*/ 1001s # ENUM_VALUE_PRIVATE, 1001s # } SomeEnumA 1001s # 1001s # /tmp/tmpla74om1n/tmpvoasid3o.template: 1001s # /*** BEGIN file-header ***/ 1001s # file-header 1001s # /*** END file-header ***/ 1001s # 1001s # /*** BEGIN file-production ***/ 1001s # file-production 1001s # filename: @filename@ 1001s # basename: @basename@ 1001s # /*** END file-production ***/ 1001s # 1001s # /*** BEGIN enumeration-production ***/ 1001s # enumeration-production 1001s # EnumName: @EnumName@ 1001s # enum_name: @enum_name@ 1001s # ENUMNAME: @ENUMNAME@ 1001s # ENUMSHORT: @ENUMSHORT@ 1001s # ENUMPREFIX: @ENUMPREFIX@ 1001s # enumsince: @enumsince@ 1001s # type: @type@ 1001s # Type: @Type@ 1001s # TYPE: @TYPE@ 1001s # /*** END enumeration-production ***/ 1001s # 1001s # /*** BEGIN value-header ***/ 1001s # value-header 1001s # EnumName: @EnumName@ 1001s # enum_name: @enum_name@ 1001s # ENUMNAME: @ENUMNAME@ 1001s # ENUMSHORT: @ENUMSHORT@ 1001s # ENUMPREFIX: @ENUMPREFIX@ 1001s # enumsince: @enumsince@ 1001s # type: @type@ 1001s # Type: @Type@ 1001s # TYPE: @TYPE@ 1001s # /*** END value-header ***/ 1001s # 1001s # /*** BEGIN value-production ***/ 1001s # value-production 1001s # VALUENAME: @VALUENAME@ 1001s # valuenick: @valuenick@ 1001s # valuenum: @valuenum@ 1001s # type: @type@ 1001s # Type: @Type@ 1001s # TYPE: @TYPE@ 1001s # /*** END value-production ***/ 1001s # 1001s # /*** BEGIN value-tail ***/ 1001s # value-tail 1001s # EnumName: @EnumName@ 1001s # enum_name: @enum_name@ 1001s # ENUMNAME: @ENUMNAME@ 1001s # ENUMSHORT: @ENUMSHORT@ 1001s # ENUMPREFIX: @ENUMPREFIX@ 1001s # enumsince: @enumsince@ 1001s # type: @type@ 1001s # Type: @Type@ 1001s # TYPE: @TYPE@ 1001s # /*** END value-tail ***/ 1001s # 1001s # /*** BEGIN comment ***/ 1001s # comment 1001s # comment: @comment@ 1001s # /*** END comment ***/ 1001s # 1001s # /*** BEGIN file-tail ***/ 1001s # file-tail 1001s # /*** END file-tail ***/ 1001s # 1001s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpla74om1n/tmpvoasid3o.template', '/tmp/tmpla74om1n/tmpy0tw4rfb.h'] 1001s # Return code: 0 1001s # Output: 1001s # comment 1001s # 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. 1001s # 1001s # 1001s # file-header 1001s # file-production 1001s # filename: /tmp/tmpla74om1n/tmpy0tw4rfb.h 1001s # basename: tmpy0tw4rfb.h 1001s # enumeration-production 1001s # EnumName: SomeEnumA 1001s # enum_name: some_enum_a 1001s # ENUMNAME: SOME_ENUM_A 1001s # ENUMSHORT: ENUM_A 1001s # ENUMPREFIX: SOME 1001s # enumsince: 1001s # type: enum 1001s # Type: Enum 1001s # TYPE: ENUM 1001s # value-header 1001s # EnumName: SomeEnumA 1001s # enum_name: some_enum_a 1001s # ENUMNAME: SOME_ENUM_A 1001s # ENUMSHORT: ENUM_A 1001s # ENUMPREFIX: SOME 1001s # enumsince: 1001s # type: enum 1001s # Type: Enum 1001s # TYPE: ENUM 1001s # value-production 1001s # VALUENAME: ENUM_VALUE_PUBLIC1 1001s # valuenick: public1 1001s # valuenum: 0 1001s # type: enum 1001s # Type: Enum 1001s # TYPE: ENUM 1001s # value-tail 1001s # EnumName: SomeEnumA 1001s # enum_name: some_enum_a 1001s # ENUMNAME: SOME_ENUM_A 1001s # ENUMSHORT: ENUM_A 1001s # ENUMPREFIX: SOME 1001s # enumsince: 1001s # type: enum 1001s # Type: Enum 1001s # TYPE: ENUM 1001s # file-tail 1001s # 1001s # comment 1001s # comment: Generated data ends here 1001s # Error: 1001s # 1001s # /tmp/tmpla74om1n/tmpxpe0d9pz.h: 1001s # typedef enum { 1001s # /*< private >*/ 1001s # ENUM_VALUE_PRIVATE, 1001s # /*< public >*/ 1001s # ENUM_VALUE_PUBLIC2, 1001s # } SomeEnumB; 1001s # 1001s # /tmp/tmpla74om1n/tmpq8rzj8me.template: 1001s # /*** BEGIN file-header ***/ 1001s # file-header 1001s # /*** END file-header ***/ 1001s # 1001s # /*** BEGIN file-production ***/ 1001s # file-production 1001s # filename: @filename@ 1001s # basename: @basename@ 1001s # /*** END file-production ***/ 1001s # 1001s # /*** BEGIN enumeration-production ***/ 1001s # enumeration-production 1001s # EnumName: @EnumName@ 1001s # enum_name: @enum_name@ 1001s # ENUMNAME: @ENUMNAME@ 1001s # ENUMSHORT: @ENUMSHORT@ 1001s # ENUMPREFIX: @ENUMPREFIX@ 1001s # enumsince: @enumsince@ 1001s # type: @type@ 1001s # Type: @Type@ 1001s # TYPE: @TYPE@ 1001s # /*** END enumeration-production ***/ 1001s # 1001s # /*** BEGIN value-header ***/ 1001s # value-header 1001s # EnumName: @EnumName@ 1001s # enum_name: @enum_name@ 1001s # ENUMNAME: @ENUMNAME@ 1001s # ENUMSHORT: @ENUMSHORT@ 1001s # ENUMPREFIX: @ENUMPREFIX@ 1001s # enumsince: @enumsince@ 1001s # type: @type@ 1001s # Type: @Type@ 1001s # TYPE: @TYPE@ 1001s # /*** END value-header ***/ 1001s # 1001s # /*** BEGIN value-production ***/ 1001s # value-production 1001s # VALUENAME: @VALUENAME@ 1001s # valuenick: @valuenick@ 1001s # valuenum: @valuenum@ 1001s # type: @type@ 1001s # Type: @Type@ 1001s # TYPE: @TYPE@ 1001s # /*** END value-production ***/ 1001s # 1001s # /*** BEGIN value-tail ***/ 1001s # value-tail 1001s # EnumName: @EnumName@ 1001s # enum_name: @enum_name@ 1001s # ENUMNAME: @ENUMNAME@ 1001s # ENUMSHORT: @ENUMSHORT@ 1001s # ENUMPREFIX: @ENUMPREFIX@ 1001s # enumsince: @enumsince@ 1001s # type: @type@ 1001s # Type: @Type@ 1001s # TYPE: @TYPE@ 1001s # /*** END value-tail ***/ 1001s # 1001s # /*** BEGIN comment ***/ 1001s # comment 1001s # comment: @comment@ 1001s # /*** END comment ***/ 1001s # 1001s # /*** BEGIN file-tail ***/ 1001s # file-tail 1001s # /*** END file-tail ***/ 1001s # 1001s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpla74om1n/tmpq8rzj8me.template', '/tmp/tmpla74om1n/tmpxpe0d9pz.h'] 1001s # Return code: 0 1001s # Output: 1001s # comment 1001s # 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. 1001s # 1001s # 1001s # file-header 1001s # file-production 1001s # filename: /tmp/tmpla74om1n/tmpxpe0d9pz.h 1001s # basename: tmpxpe0d9pz.h 1001s # enumeration-production 1001s # EnumName: SomeEnumB 1001s # enum_name: some_enum_b 1001s # ENUMNAME: SOME_ENUM_B 1001s # ENUMSHORT: ENUM_B 1001s # ENUMPREFIX: SOME 1001s # enumsince: 1001s # type: enum 1001s # Type: Enum 1001s # TYPE: ENUM 1001s # value-header 1001s # EnumName: SomeEnumB 1001s # enum_name: some_enum_b 1001s # ENUMNAME: SOME_ENUM_B 1001s # ENUMSHORT: ENUM_B 1001s # ENUMPREFIX: SOME 1001s # enumsince: 1001s # type: enum 1001s # Type: Enum 1001s # TYPE: ENUM 1001s # value-production 1001s # VALUENAME: ENUM_VALUE_PUBLIC2 1001s # valuenick: public2 1001s # valuenum: 1 1001s # type: enum 1001s # Type: Enum 1001s # TYPE: ENUM 1001s # value-tail 1001s # EnumName: SomeEnumB 1001s # enum_name: some_enum_b 1001s # ENUMNAME: SOME_ENUM_B 1001s # ENUMSHORT: ENUM_B 1001s # ENUMPREFIX: SOME 1001s # enumsince: 1001s # type: enum 1001s # Type: Enum 1001s # TYPE: ENUM 1001s # file-tail 1001s # 1001s # comment 1001s # comment: Generated data ends here 1001s # Error: 1001s ok 9 __main__.TestMkenums.test_enum_symbolic_expression 1001s # glib-mkenums: /usr/bin/glib-mkenums 1001s # tmpdir: /tmp/tmprkcgavhn 1001s # rspfile: False 1001s # /tmp/tmprkcgavhn/tmp0v3tey7e.h: 1001s # typedef enum { 1001s # /*< private >*/ 1001s # ENUM_VALUE_PRIVATE = 5, 1001s # /*< public >*/ 1001s # ENUM_VALUE_PUBLIC = ENUM_VALUE_PRIVATE + 2, 1001s # } TestSymbolicEnum; 1001s # 1001s # /tmp/tmprkcgavhn/tmp8kkr29xp.template: 1001s # /*** BEGIN file-header ***/ 1001s # file-header 1001s # /*** END file-header ***/ 1001s # 1001s # /*** BEGIN file-production ***/ 1001s # file-production 1001s # filename: @filename@ 1001s # basename: @basename@ 1001s # /*** END file-production ***/ 1001s # 1001s # /*** BEGIN enumeration-production ***/ 1001s # enumeration-production 1001s # EnumName: @EnumName@ 1001s # enum_name: @enum_name@ 1001s # ENUMNAME: @ENUMNAME@ 1001s # ENUMSHORT: @ENUMSHORT@ 1001s # ENUMPREFIX: @ENUMPREFIX@ 1001s # enumsince: @enumsince@ 1001s # type: @type@ 1001s # Type: @Type@ 1001s # TYPE: @TYPE@ 1001s # /*** END enumeration-production ***/ 1001s # 1001s # /*** BEGIN value-header ***/ 1001s # value-header 1001s # EnumName: @EnumName@ 1001s # enum_name: @enum_name@ 1001s # ENUMNAME: @ENUMNAME@ 1001s # ENUMSHORT: @ENUMSHORT@ 1001s # ENUMPREFIX: @ENUMPREFIX@ 1001s # enumsince: @enumsince@ 1001s # type: @type@ 1001s # Type: @Type@ 1001s # TYPE: @TYPE@ 1001s # /*** END value-header ***/ 1001s # 1001s # /*** BEGIN value-production ***/ 1001s # value-production 1001s # VALUENAME: @VALUENAME@ 1001s # valuenick: @valuenick@ 1001s # valuenum: @valuenum@ 1001s # type: @type@ 1001s # Type: @Type@ 1001s # TYPE: @TYPE@ 1001s # /*** END value-production ***/ 1001s # 1001s # /*** BEGIN value-tail ***/ 1001s # value-tail 1001s # EnumName: @EnumName@ 1001s # enum_name: @enum_name@ 1001s # ENUMNAME: @ENUMNAME@ 1001s # ENUMSHORT: @ENUMSHORT@ 1001s # ENUMPREFIX: @ENUMPREFIX@ 1001s # enumsince: @enumsince@ 1001s # type: @type@ 1001s # Type: @Type@ 1001s # TYPE: @TYPE@ 1001s # /*** END value-tail ***/ 1001s # 1001s # /*** BEGIN comment ***/ 1001s # comment 1001s # comment: @comment@ 1001s # /*** END comment ***/ 1001s # 1001s # /*** BEGIN file-tail ***/ 1001s # file-tail 1001s # /*** END file-tail ***/ 1001s # 1001s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmprkcgavhn/tmp8kkr29xp.template', '/tmp/tmprkcgavhn/tmp0v3tey7e.h'] 1001s # Return code: 0 1001s # Output: 1001s # comment 1001s # 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. 1001s # 1001s # 1001s # file-header 1001s # file-production 1001s # filename: /tmp/tmprkcgavhn/tmp0v3tey7e.h 1001s # basename: tmp0v3tey7e.h 1001s # enumeration-production 1001s # EnumName: TestSymbolicEnum 1001s # enum_name: test_symbolic_enum 1001s # ENUMNAME: TEST_SYMBOLIC_ENUM 1001s # ENUMSHORT: SYMBOLIC_ENUM 1001s # ENUMPREFIX: TEST 1001s # enumsince: 1001s # type: enum 1001s # Type: Enum 1001s # TYPE: ENUM 1001s # value-header 1001s # EnumName: TestSymbolicEnum 1001s # enum_name: test_symbolic_enum 1001s # ENUMNAME: TEST_SYMBOLIC_ENUM 1001s # ENUMSHORT: SYMBOLIC_ENUM 1001s # ENUMPREFIX: TEST 1001s # enumsince: 1001s # type: enum 1001s # Type: Enum 1001s # TYPE: ENUM 1001s # value-production 1001s # VALUENAME: ENUM_VALUE_PUBLIC 1001s # valuenick: public 1001s # valuenum: 7 1001s # type: enum 1001s # Type: Enum 1001s # TYPE: ENUM 1001s # value-tail 1001s # EnumName: TestSymbolicEnum 1001s # enum_name: test_symbolic_enum 1001s # ENUMNAME: TEST_SYMBOLIC_ENUM 1001s # ENUMSHORT: SYMBOLIC_ENUM 1001s # ENUMPREFIX: TEST 1001s # enumsince: 1001s # type: enum 1001s # Type: Enum 1001s # TYPE: ENUM 1001s # file-tail 1001s # 1001s # comment 1001s # comment: Generated data ends here 1001s # Error: 1002s ok 10 __main__.TestMkenums.test_filename_basename_in_fhead_ftail 1002s # glib-mkenums: /usr/bin/glib-mkenums 1002s # tmpdir: /tmp/tmpkeevbiau 1002s # rspfile: False 1002s # /tmp/tmpkeevbiau/tmpu7_usf_q.template: 1002s # /*** BEGIN file-header ***/ 1002s # file-header 1002s # filename: @filename@ 1002s # basename: @basename@ 1002s # /*** END file-header ***/ 1002s # 1002s # /*** BEGIN comment ***/ 1002s # comment 1002s # comment: @comment@ 1002s # /*** END comment ***/ 1002s # 1002s # /*** BEGIN file-tail ***/ 1002s # file-tail 1002s # filename: @filename@ 1002s # basename: @basename@ 1002s # /*** END file-tail ***/ 1002s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpkeevbiau/tmpu7_usf_q.template'] 1002s # Return code: 0 1002s # Output: 1002s # comment 1002s # 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. 1002s # 1002s # 1002s # file-header 1002s # filename: @filename@ 1002s # basename: @basename@ 1002s # file-tail 1002s # filename: @filename@ 1002s # basename: @basename@ 1002s # 1002s # comment 1002s # comment: Generated data ends here 1002s # Error: 1002s # WARNING: @filename@ used in file-header section. 1002s # WARNING: @basename@ used in file-header section. 1002s # WARNING: @filename@ used in file-tail section. 1002s # WARNING: @basename@ used in file-tail section. 1002s # Executing: glib/mkenums.py.test 1002s ok 11 __main__.TestMkenums.test_help 1002s # glib-mkenums: /usr/bin/glib-mkenums 1002s # tmpdir: /tmp/tmpnpwfdb_h 1002s # rspfile: False 1002s # Running: ['/usr/bin/glib-mkenums', '--help'] 1002s # Return code: 0 1002s # Output: 1002s # usage: glib-mkenums [-h] [--identifier-prefix IDPREFIX] 1002s # [--symbol-prefix SYMPREFIX] [--fhead FHEAD] 1002s # [--ftail FTAIL] [--fprod FPROD] [--eprod EPROD] 1002s # [--vhead VHEAD] [--vprod VPROD] [--vtail VTAIL] 1002s # [--comments COMMENT_TMPL] [--template TEMPLATE] 1002s # [--output OUTPUT] [--version] 1002s # [args ...] 1002s # 1002s # positional arguments: 1002s # args One or more input files, or a single argument 1002s # @rspfile_path pointing to a file that contains the 1002s # actual arguments 1002s # 1002s # options: 1002s # -h, --help show this help message and exit 1002s # --identifier-prefix IDPREFIX 1002s # Identifier prefix 1002s # --symbol-prefix SYMPREFIX 1002s # Symbol prefix 1002s # --fhead FHEAD Output file header 1002s # --ftail FTAIL Output file footer 1002s # --fprod FPROD Put out TEXT every time a new input file is being 1002s # processed. 1002s # --eprod EPROD Per enum text, produced prior to value iterations 1002s # --vhead VHEAD Value header, produced before iterating over enum 1002s # values 1002s # --vprod VPROD Value text, produced for each enum value. 1002s # --vtail VTAIL Value tail, produced after iterating over enum values 1002s # --comments COMMENT_TMPL 1002s # Comment structure 1002s # --template TEMPLATE Template file 1002s # --output OUTPUT 1002s # --version, -v Print version information 1002s # 1002s # Production text substitutions: 1002s # @EnumName@ PrefixTheXEnum 1002s # @enum_name@ prefix_the_xenum 1002s # @ENUMNAME@ PREFIX_THE_XENUM 1002s # @ENUMSHORT@ THE_XENUM 1002s # @ENUMPREFIX@ PREFIX 1002s # @enumsince@ the user-provided since value given 1002s # @VALUENAME@ PREFIX_THE_XVALUE 1002s # @valuenick@ the-xvalue 1002s # @valuenum@ the integer value (limited support, Since: 2.26) 1002s # @type@ either enum or flags 1002s # @Type@ either Enum or Flags 1002s # @TYPE@ either ENUM or FLAGS 1002s # @filename@ name of current input file 1002s # @basename@ base name of the current input file (Since: 2.22) 1002s # Error: 1002s ok 12 __main__.TestMkenums.test_no_args 1002s # glib-mkenums: /usr/bin/glib-mkenums 1002s # tmpdir: /tmp/tmp8y65cyw4 1002s # rspfile: False 1002s # Running: ['/usr/bin/glib-mkenums'] 1002s # Return code: 0 1002s # Output: 1002s # /* 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. */ 1002s # 1002s # 1002s # /* Generated data ends here */ 1002s # Error: 1002s ok 13 __main__.TestMkenums.test_no_headers 1002s # glib-mkenums: /usr/bin/glib-mkenums 1002s # tmpdir: /tmp/tmp_t6hk33_ 1002s # rspfile: False 1002s # /tmp/tmp_t6hk33_/tmpbjpkuat9.template: 1002s # /*** BEGIN file-header ***/ 1002s # file-header 1002s # /*** END file-header ***/ 1002s # 1002s # /*** BEGIN file-production ***/ 1002s # file-production 1002s # filename: @filename@ 1002s # basename: @basename@ 1002s # /*** END file-production ***/ 1002s # 1002s # /*** BEGIN enumeration-production ***/ 1002s # enumeration-production 1002s # EnumName: @EnumName@ 1002s # enum_name: @enum_name@ 1002s # ENUMNAME: @ENUMNAME@ 1002s # ENUMSHORT: @ENUMSHORT@ 1002s # ENUMPREFIX: @ENUMPREFIX@ 1002s # enumsince: @enumsince@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END enumeration-production ***/ 1002s # 1002s # /*** BEGIN value-header ***/ 1002s # value-header 1002s # EnumName: @EnumName@ 1002s # enum_name: @enum_name@ 1002s # ENUMNAME: @ENUMNAME@ 1002s # ENUMSHORT: @ENUMSHORT@ 1002s # ENUMPREFIX: @ENUMPREFIX@ 1002s # enumsince: @enumsince@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END value-header ***/ 1002s # 1002s # /*** BEGIN value-production ***/ 1002s # value-production 1002s # VALUENAME: @VALUENAME@ 1002s # valuenick: @valuenick@ 1002s # valuenum: @valuenum@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END value-production ***/ 1002s # 1002s # /*** BEGIN value-tail ***/ 1002s # value-tail 1002s # EnumName: @EnumName@ 1002s # enum_name: @enum_name@ 1002s # ENUMNAME: @ENUMNAME@ 1002s # ENUMSHORT: @ENUMSHORT@ 1002s # ENUMPREFIX: @ENUMPREFIX@ 1002s # enumsince: @enumsince@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END value-tail ***/ 1002s # 1002s # /*** BEGIN comment ***/ 1002s # comment 1002s # comment: @comment@ 1002s # /*** END comment ***/ 1002s # 1002s # /*** BEGIN file-tail ***/ 1002s # file-tail 1002s # /*** END file-tail ***/ 1002s # 1002s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp_t6hk33_/tmpbjpkuat9.template'] 1002s # Return code: 0 1002s # Output: 1002s # comment 1002s # 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. 1002s # 1002s # 1002s # file-header 1002s # file-tail 1002s # 1002s # comment 1002s # comment: Generated data ends here 1002s # Error: 1002s ok 14 __main__.TestMkenums.test_no_nick 1002s # glib-mkenums: /usr/bin/glib-mkenums 1002s # tmpdir: /tmp/tmpvbfo8p1_ 1002s # rspfile: False 1002s # /tmp/tmpvbfo8p1_/tmpcmtvlz82.h: 1002s # typedef enum { 1002s # GEGL_SAMPLER_NEAREST = 0, /*< desc="nearest" >*/ 1002s # } GeglSamplerType; 1002s # 1002s # /tmp/tmpvbfo8p1_/tmptzcdwri4.template: 1002s # /*** BEGIN file-header ***/ 1002s # file-header 1002s # /*** END file-header ***/ 1002s # 1002s # /*** BEGIN file-production ***/ 1002s # file-production 1002s # filename: @filename@ 1002s # basename: @basename@ 1002s # /*** END file-production ***/ 1002s # 1002s # /*** BEGIN enumeration-production ***/ 1002s # enumeration-production 1002s # EnumName: @EnumName@ 1002s # enum_name: @enum_name@ 1002s # ENUMNAME: @ENUMNAME@ 1002s # ENUMSHORT: @ENUMSHORT@ 1002s # ENUMPREFIX: @ENUMPREFIX@ 1002s # enumsince: @enumsince@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END enumeration-production ***/ 1002s # 1002s # /*** BEGIN value-header ***/ 1002s # value-header 1002s # EnumName: @EnumName@ 1002s # enum_name: @enum_name@ 1002s # ENUMNAME: @ENUMNAME@ 1002s # ENUMSHORT: @ENUMSHORT@ 1002s # ENUMPREFIX: @ENUMPREFIX@ 1002s # enumsince: @enumsince@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END value-header ***/ 1002s # 1002s # /*** BEGIN value-production ***/ 1002s # value-production 1002s # VALUENAME: @VALUENAME@ 1002s # valuenick: @valuenick@ 1002s # valuenum: @valuenum@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END value-production ***/ 1002s # 1002s # /*** BEGIN value-tail ***/ 1002s # value-tail 1002s # EnumName: @EnumName@ 1002s # enum_name: @enum_name@ 1002s # ENUMNAME: @ENUMNAME@ 1002s # ENUMSHORT: @ENUMSHORT@ 1002s # ENUMPREFIX: @ENUMPREFIX@ 1002s # enumsince: @enumsince@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END value-tail ***/ 1002s # 1002s # /*** BEGIN comment ***/ 1002s # comment 1002s # comment: @comment@ 1002s # /*** END comment ***/ 1002s # 1002s # /*** BEGIN file-tail ***/ 1002s # file-tail 1002s # /*** END file-tail ***/ 1002s # 1002s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpvbfo8p1_/tmptzcdwri4.template', '/tmp/tmpvbfo8p1_/tmpcmtvlz82.h'] 1002s # Return code: 0 1002s # Output: 1002s # comment 1002s # 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. 1002s # 1002s # 1002s # file-header 1002s # file-production 1002s # filename: /tmp/tmpvbfo8p1_/tmpcmtvlz82.h 1002s # basename: tmpcmtvlz82.h 1002s # enumeration-production 1002s # EnumName: GeglSamplerType 1002s # enum_name: gegl_sampler_type 1002s # ENUMNAME: GEGL_SAMPLER_TYPE 1002s # ENUMSHORT: SAMPLER_TYPE 1002s # ENUMPREFIX: GEGL 1002s # enumsince: 1002s # type: enum 1002s # Type: Enum 1002s # TYPE: ENUM 1002s # value-header 1002s # EnumName: GeglSamplerType 1002s # enum_name: gegl_sampler_type 1002s # ENUMNAME: GEGL_SAMPLER_TYPE 1002s # ENUMSHORT: SAMPLER_TYPE 1002s # ENUMPREFIX: GEGL 1002s # enumsince: 1002s # type: enum 1002s # Type: Enum 1002s # TYPE: ENUM 1002s # value-production 1002s # VALUENAME: GEGL_SAMPLER_NEAREST 1002s # valuenick: nearest 1002s # valuenum: 0 1002s # type: enum 1002s # Type: Enum 1002s # TYPE: ENUM 1002s # value-tail 1002s # EnumName: GeglSamplerType 1002s # enum_name: gegl_sampler_type 1002s # ENUMNAME: GEGL_SAMPLER_TYPE 1002s # ENUMSHORT: SAMPLER_TYPE 1002s # ENUMPREFIX: GEGL 1002s # enumsince: 1002s # type: enum 1002s # Type: Enum 1002s # TYPE: ENUM 1002s # file-tail 1002s # 1002s # comment 1002s # comment: Generated data ends here 1002s # Error: 1002s ok 15 __main__.TestMkenums.test_non_utf8_encoding 1002s # glib-mkenums: /usr/bin/glib-mkenums 1002s # tmpdir: /tmp/tmpm52cp948 1002s # rspfile: False 1002s # /tmp/tmpm52cp948/tmpgwara48f.h: 1002s # /* Copyright © La Peña */ 1002s # typedef enum { 1002s # ENUM_VALUE 1002s # } SomeEnumIdentifier; 1002s # 1002s # /tmp/tmpm52cp948/tmppf13c20b.template: 1002s # /*** BEGIN file-header ***/ 1002s # file-header 1002s # /*** END file-header ***/ 1002s # 1002s # /*** BEGIN file-production ***/ 1002s # file-production 1002s # filename: @filename@ 1002s # basename: @basename@ 1002s # /*** END file-production ***/ 1002s # 1002s # /*** BEGIN enumeration-production ***/ 1002s # enumeration-production 1002s # EnumName: @EnumName@ 1002s # enum_name: @enum_name@ 1002s # ENUMNAME: @ENUMNAME@ 1002s # ENUMSHORT: @ENUMSHORT@ 1002s # ENUMPREFIX: @ENUMPREFIX@ 1002s # enumsince: @enumsince@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END enumeration-production ***/ 1002s # 1002s # /*** BEGIN value-header ***/ 1002s # value-header 1002s # EnumName: @EnumName@ 1002s # enum_name: @enum_name@ 1002s # ENUMNAME: @ENUMNAME@ 1002s # ENUMSHORT: @ENUMSHORT@ 1002s # ENUMPREFIX: @ENUMPREFIX@ 1002s # enumsince: @enumsince@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END value-header ***/ 1002s # 1002s # /*** BEGIN value-production ***/ 1002s # value-production 1002s # VALUENAME: @VALUENAME@ 1002s # valuenick: @valuenick@ 1002s # valuenum: @valuenum@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END value-production ***/ 1002s # 1002s # /*** BEGIN value-tail ***/ 1002s # value-tail 1002s # EnumName: @EnumName@ 1002s # enum_name: @enum_name@ 1002s # ENUMNAME: @ENUMNAME@ 1002s # ENUMSHORT: @ENUMSHORT@ 1002s # ENUMPREFIX: @ENUMPREFIX@ 1002s # enumsince: @enumsince@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END value-tail ***/ 1002s # 1002s # /*** BEGIN comment ***/ 1002s # comment 1002s # comment: @comment@ 1002s # /*** END comment ***/ 1002s # 1002s # /*** BEGIN file-tail ***/ 1002s # file-tail 1002s # /*** END file-tail ***/ 1002s # 1002s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpm52cp948/tmppf13c20b.template', '/tmp/tmpm52cp948/tmpgwara48f.h'] 1002s # Return code: 0 1002s # Output: 1002s # comment 1002s # 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. 1002s # 1002s # 1002s # file-header 1002s # file-production 1002s # filename: /tmp/tmpm52cp948/tmpgwara48f.h 1002s # basename: tmpgwara48f.h 1002s # enumeration-production 1002s # EnumName: SomeEnumIdentifier 1002s # enum_name: some_enum_identifier 1002s # ENUMNAME: SOME_ENUM_IDENTIFIER 1002s # ENUMSHORT: ENUM_IDENTIFIER 1002s # ENUMPREFIX: SOME 1002s # enumsince: 1002s # type: enum 1002s # Type: Enum 1002s # TYPE: ENUM 1002s # value-header 1002s # EnumName: SomeEnumIdentifier 1002s # enum_name: some_enum_identifier 1002s # ENUMNAME: SOME_ENUM_IDENTIFIER 1002s # ENUMSHORT: ENUM_IDENTIFIER 1002s # ENUMPREFIX: SOME 1002s # enumsince: 1002s # type: enum 1002s # Type: Enum 1002s # TYPE: ENUM 1002s # value-production 1002s # VALUENAME: ENUM_VALUE 1002s # valuenick: value 1002s # valuenum: 0 1002s # type: enum 1002s # Type: Enum 1002s # TYPE: ENUM 1002s # value-tail 1002s # EnumName: SomeEnumIdentifier 1002s # enum_name: some_enum_identifier 1002s # ENUMNAME: SOME_ENUM_IDENTIFIER 1002s # ENUMSHORT: ENUM_IDENTIFIER 1002s # ENUMPREFIX: SOME 1002s # enumsince: 1002s # type: enum 1002s # Type: Enum 1002s # TYPE: ENUM 1002s # file-tail 1002s # 1002s # comment 1002s # comment: Generated data ends here 1002s # Error: 1002s # WARNING: UnicodeWarning: invalid start byte at 22 (b'yright \xa9 La Pe\xf1') 1002s # WARNING: UnicodeWarning: invalid continuation byte at 29 (b'\xa9 La Pe\xf1a */\n ') 1002s ok 16 __main__.TestMkenums.test_reproducible 1002s # glib-mkenums: /usr/bin/glib-mkenums 1002s # tmpdir: /tmp/tmpcznynoah 1002s # rspfile: False 1002s # /tmp/tmpcznynoah/tmpis7uy7m2.template: template 1002s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpcznynoah/tmpis7uy7m2.template', '/tmp/tmpcznynoah/tmprpah0be21.h', '/tmp/tmpcznynoah/tmps75vf1w32.h'] 1002s # Return code: 0 1002s # Output: 1002s # /* 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. */ 1002s # 1002s # 1002s # /* Generated data ends here */ 1002s # Error: 1002s # 1002s # /tmp/tmpcznynoah/tmp3ou3r72t.template: template 1002s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpcznynoah/tmp3ou3r72t.template', '/tmp/tmpcznynoah/tmps75vf1w32.h', '/tmp/tmpcznynoah/tmprpah0be21.h'] 1002s # Return code: 0 1002s # Output: 1002s # /* 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. */ 1002s # 1002s # 1002s # /* Generated data ends here */ 1002s # Error: 1002s ok 17 __main__.TestMkenums.test_since 1002s # glib-mkenums: /usr/bin/glib-mkenums 1002s # tmpdir: /tmp/tmpo0us_s20 1002s # rspfile: False 1002s # /tmp/tmpo0us_s20/tmprrjibo_b.h: 1002s # typedef enum { /*< since=1.0 >*/ 1002s # QMI_WMS_MESSAGE_PROTOCOL_CDMA = 0, 1002s # } QmiWmsMessageProtocol; 1002s # 1002s # /tmp/tmpo0us_s20/tmpclks5niw.template: 1002s # /*** BEGIN file-header ***/ 1002s # file-header 1002s # /*** END file-header ***/ 1002s # 1002s # /*** BEGIN file-production ***/ 1002s # file-production 1002s # filename: @filename@ 1002s # basename: @basename@ 1002s # /*** END file-production ***/ 1002s # 1002s # /*** BEGIN enumeration-production ***/ 1002s # enumeration-production 1002s # EnumName: @EnumName@ 1002s # enum_name: @enum_name@ 1002s # ENUMNAME: @ENUMNAME@ 1002s # ENUMSHORT: @ENUMSHORT@ 1002s # ENUMPREFIX: @ENUMPREFIX@ 1002s # enumsince: @enumsince@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END enumeration-production ***/ 1002s # 1002s # /*** BEGIN value-header ***/ 1002s # value-header 1002s # EnumName: @EnumName@ 1002s # enum_name: @enum_name@ 1002s # ENUMNAME: @ENUMNAME@ 1002s # ENUMSHORT: @ENUMSHORT@ 1002s # ENUMPREFIX: @ENUMPREFIX@ 1002s # enumsince: @enumsince@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END value-header ***/ 1002s # 1002s # /*** BEGIN value-production ***/ 1002s # value-production 1002s # VALUENAME: @VALUENAME@ 1002s # valuenick: @valuenick@ 1002s # valuenum: @valuenum@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END value-production ***/ 1002s # 1002s # /*** BEGIN value-tail ***/ 1002s # value-tail 1002s # EnumName: @EnumName@ 1002s # enum_name: @enum_name@ 1002s # ENUMNAME: @ENUMNAME@ 1002s # ENUMSHORT: @ENUMSHORT@ 1002s # ENUMPREFIX: @ENUMPREFIX@ 1002s # enumsince: @enumsince@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END value-tail ***/ 1002s # 1002s # /*** BEGIN comment ***/ 1002s # comment 1002s # comment: @comment@ 1002s # /*** END comment ***/ 1002s # 1002s # /*** BEGIN file-tail ***/ 1002s # file-tail 1002s # /*** END file-tail ***/ 1002s # 1002s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpo0us_s20/tmpclks5niw.template', '/tmp/tmpo0us_s20/tmprrjibo_b.h'] 1002s # Return code: 0 1002s # Output: 1002s # comment 1002s # 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. 1002s # 1002s # 1002s # file-header 1002s # file-production 1002s # filename: /tmp/tmpo0us_s20/tmprrjibo_b.h 1002s # basename: tmprrjibo_b.h 1002s # enumeration-production 1002s # EnumName: QmiWmsMessageProtocol 1002s # enum_name: qmi_wms_message_protocol 1002s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1002s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1002s # ENUMPREFIX: QMI 1002s # enumsince: 1.0 1002s # type: enum 1002s # Type: Enum 1002s # TYPE: ENUM 1002s # value-header 1002s # EnumName: QmiWmsMessageProtocol 1002s # enum_name: qmi_wms_message_protocol 1002s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1002s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1002s # ENUMPREFIX: QMI 1002s # enumsince: 1.0 1002s # type: enum 1002s # Type: Enum 1002s # TYPE: ENUM 1002s # value-production 1002s # VALUENAME: QMI_WMS_MESSAGE_PROTOCOL_CDMA 1002s # valuenick: cdma 1002s # valuenum: 0 1002s # type: enum 1002s # Type: Enum 1002s # TYPE: ENUM 1002s # value-tail 1002s # EnumName: QmiWmsMessageProtocol 1002s # enum_name: qmi_wms_message_protocol 1002s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1002s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1002s # ENUMPREFIX: QMI 1002s # enumsince: 1.0 1002s # type: enum 1002s # Type: Enum 1002s # TYPE: ENUM 1002s # file-tail 1002s # 1002s # comment 1002s # comment: Generated data ends here 1002s # Error: 1002s ok 18 __main__.TestMkenums.test_with_double_quotes 1002s # glib-mkenums: /usr/bin/glib-mkenums 1002s # tmpdir: /tmp/tmpuilhmqoe 1002s # rspfile: False 1002s # /tmp/tmpuilhmqoe/tmpbxkin0jz.h: 1002s # typedef enum { 1002s # FOO_VALUE /*< nick="eek, a comma" >*/ 1002s # } Foo; 1002s # 1002s # /tmp/tmpuilhmqoe/tmpa7n6vmfn.template: 1002s # /*** BEGIN file-header ***/ 1002s # file-header 1002s # /*** END file-header ***/ 1002s # 1002s # /*** BEGIN file-production ***/ 1002s # file-production 1002s # filename: @filename@ 1002s # basename: @basename@ 1002s # /*** END file-production ***/ 1002s # 1002s # /*** BEGIN enumeration-production ***/ 1002s # enumeration-production 1002s # EnumName: @EnumName@ 1002s # enum_name: @enum_name@ 1002s # ENUMNAME: @ENUMNAME@ 1002s # ENUMSHORT: @ENUMSHORT@ 1002s # ENUMPREFIX: @ENUMPREFIX@ 1002s # enumsince: @enumsince@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END enumeration-production ***/ 1002s # 1002s # /*** BEGIN value-header ***/ 1002s # value-header 1002s # EnumName: @EnumName@ 1002s # enum_name: @enum_name@ 1002s # ENUMNAME: @ENUMNAME@ 1002s # ENUMSHORT: @ENUMSHORT@ 1002s # ENUMPREFIX: @ENUMPREFIX@ 1002s # enumsince: @enumsince@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END value-header ***/ 1002s # 1002s # /*** BEGIN value-production ***/ 1002s # value-production 1002s # VALUENAME: @VALUENAME@ 1002s # valuenick: @valuenick@ 1002s # valuenum: @valuenum@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END value-production ***/ 1002s # 1002s # /*** BEGIN value-tail ***/ 1002s # value-tail 1002s # EnumName: @EnumName@ 1002s # enum_name: @enum_name@ 1002s # ENUMNAME: @ENUMNAME@ 1002s # ENUMSHORT: @ENUMSHORT@ 1002s # ENUMPREFIX: @ENUMPREFIX@ 1002s # enumsince: @enumsince@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END value-tail ***/ 1002s # 1002s # /*** BEGIN comment ***/ 1002s # comment 1002s # comment: @comment@ 1002s # /*** END comment ***/ 1002s # 1002s # /*** BEGIN file-tail ***/ 1002s # file-tail 1002s # /*** END file-tail ***/ 1002s # 1002s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpuilhmqoe/tmpa7n6vmfn.template', '/tmp/tmpuilhmqoe/tmpbxkin0jz.h'] 1002s # Return code: 0 1002s # Output: 1002s # comment 1002s # 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. 1002s # 1002s # 1002s # file-header 1002s # file-production 1002s # filename: /tmp/tmpuilhmqoe/tmpbxkin0jz.h 1002s # basename: tmpbxkin0jz.h 1002s # enumeration-production 1002s # EnumName: Foo 1002s # enum_name: foo_ 1002s # ENUMNAME: FOO_ 1002s # ENUMSHORT: 1002s # ENUMPREFIX: FOO 1002s # enumsince: 1002s # type: enum 1002s # Type: Enum 1002s # TYPE: ENUM 1002s # value-header 1002s # EnumName: Foo 1002s # enum_name: foo_ 1002s # ENUMNAME: FOO_ 1002s # ENUMSHORT: 1002s # ENUMPREFIX: FOO 1002s # enumsince: 1002s # type: enum 1002s # Type: Enum 1002s # TYPE: ENUM 1002s # value-production 1002s # VALUENAME: FOO_VALUE 1002s # valuenick: eek, a comma 1002s # valuenum: 0 1002s # type: enum 1002s # Type: Enum 1002s # TYPE: ENUM 1002s # value-tail 1002s # EnumName: Foo 1002s # enum_name: foo_ 1002s # ENUMNAME: FOO_ 1002s # ENUMSHORT: 1002s # ENUMPREFIX: FOO 1002s # enumsince: 1002s # type: enum 1002s # Type: Enum 1002s # TYPE: ENUM 1002s # file-tail 1002s # 1002s # comment 1002s # comment: Generated data ends here 1002s # Error: 1002s ok 19 __main__.TestRspMkenums.test_available_in 1002s # glib-mkenums: /usr/bin/glib-mkenums 1002s # tmpdir: /tmp/tmp499ljl7q 1002s # rspfile: True 1002s # /tmp/tmp499ljl7q/tmp19k25n7l.h: 1002s # typedef enum { 1002s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_AVAILABLE_ENUMERATOR_IN_2_68 = (1<<2) 1002s # } GDBusServerFlags; 1002s # 1002s # /tmp/tmp499ljl7q/tmpnob8lflr.template: 1002s # /*** BEGIN file-header ***/ 1002s # file-header 1002s # /*** END file-header ***/ 1002s # 1002s # /*** BEGIN file-production ***/ 1002s # file-production 1002s # filename: @filename@ 1002s # basename: @basename@ 1002s # /*** END file-production ***/ 1002s # 1002s # /*** BEGIN enumeration-production ***/ 1002s # enumeration-production 1002s # EnumName: @EnumName@ 1002s # enum_name: @enum_name@ 1002s # ENUMNAME: @ENUMNAME@ 1002s # ENUMSHORT: @ENUMSHORT@ 1002s # ENUMPREFIX: @ENUMPREFIX@ 1002s # enumsince: @enumsince@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END enumeration-production ***/ 1002s # 1002s # /*** BEGIN value-header ***/ 1002s # value-header 1002s # EnumName: @EnumName@ 1002s # enum_name: @enum_name@ 1002s # ENUMNAME: @ENUMNAME@ 1002s # ENUMSHORT: @ENUMSHORT@ 1002s # ENUMPREFIX: @ENUMPREFIX@ 1002s # enumsince: @enumsince@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END value-header ***/ 1002s # 1002s # /*** BEGIN value-production ***/ 1002s # value-production 1002s # VALUENAME: @VALUENAME@ 1002s # valuenick: @valuenick@ 1002s # valuenum: @valuenum@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END value-production ***/ 1002s # 1002s # /*** BEGIN value-tail ***/ 1002s # value-tail 1002s # EnumName: @EnumName@ 1002s # enum_name: @enum_name@ 1002s # ENUMNAME: @ENUMNAME@ 1002s # ENUMSHORT: @ENUMSHORT@ 1002s # ENUMPREFIX: @ENUMPREFIX@ 1002s # enumsince: @enumsince@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END value-tail ***/ 1002s # 1002s # /*** BEGIN comment ***/ 1002s # comment 1002s # comment: @comment@ 1002s # /*** END comment ***/ 1002s # 1002s # /*** BEGIN file-tail ***/ 1002s # file-tail 1002s # /*** END file-tail ***/ 1002s # 1002s # Response file contains: --template /tmp/tmp499ljl7q/tmpnob8lflr.template /tmp/tmp499ljl7q/tmp19k25n7l.h 1002s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp499ljl7q/tmpxmq85fox'] 1002s # Return code: 0 1002s # Output: 1002s # comment 1002s # 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. 1002s # 1002s # 1002s # file-header 1002s # file-production 1002s # filename: /tmp/tmp499ljl7q/tmp19k25n7l.h 1002s # basename: tmp19k25n7l.h 1002s # enumeration-production 1002s # EnumName: GDBusServerFlags 1002s # enum_name: g_dbus_server_flags 1002s # ENUMNAME: G_DBUS_SERVER_FLAGS 1002s # ENUMSHORT: DBUS_SERVER_FLAGS 1002s # ENUMPREFIX: G 1002s # enumsince: 1002s # type: flags 1002s # Type: Flags 1002s # TYPE: FLAGS 1002s # value-header 1002s # EnumName: GDBusServerFlags 1002s # enum_name: g_dbus_server_flags 1002s # ENUMNAME: G_DBUS_SERVER_FLAGS 1002s # ENUMSHORT: DBUS_SERVER_FLAGS 1002s # ENUMPREFIX: G 1002s # enumsince: 1002s # type: flags 1002s # Type: Flags 1002s # TYPE: FLAGS 1002s # value-production 1002s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1002s # valuenick: user 1002s # valuenum: 4 1002s # type: flags 1002s # Type: Flags 1002s # TYPE: FLAGS 1002s # value-tail 1002s # EnumName: GDBusServerFlags 1002s # enum_name: g_dbus_server_flags 1002s # ENUMNAME: G_DBUS_SERVER_FLAGS 1002s # ENUMSHORT: DBUS_SERVER_FLAGS 1002s # ENUMPREFIX: G 1002s # enumsince: 1002s # type: flags 1002s # Type: Flags 1002s # TYPE: FLAGS 1002s # file-tail 1002s # 1002s # comment 1002s # comment: Generated data ends here 1002s # Error: 1002s ok 20 __main__.TestRspMkenums.test_comma_in_enum_value 1002s # glib-mkenums: /usr/bin/glib-mkenums 1002s # tmpdir: /tmp/tmp0f9dc_00 1002s # rspfile: True 1002s # /tmp/tmp0f9dc_00/tmpf8hfl18j.h: 1002s # typedef enum { 1002s # ENUM_VALUE_WITH_COMMA = ',', 1002s # } TestCommaEnum; 1002s # 1002s # /tmp/tmp0f9dc_00/tmpnf0joc0q.template: 1002s # /*** BEGIN file-header ***/ 1002s # file-header 1002s # /*** END file-header ***/ 1002s # 1002s # /*** BEGIN file-production ***/ 1002s # file-production 1002s # filename: @filename@ 1002s # basename: @basename@ 1002s # /*** END file-production ***/ 1002s # 1002s # /*** BEGIN enumeration-production ***/ 1002s # enumeration-production 1002s # EnumName: @EnumName@ 1002s # enum_name: @enum_name@ 1002s # ENUMNAME: @ENUMNAME@ 1002s # ENUMSHORT: @ENUMSHORT@ 1002s # ENUMPREFIX: @ENUMPREFIX@ 1002s # enumsince: @enumsince@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END enumeration-production ***/ 1002s # 1002s # /*** BEGIN value-header ***/ 1002s # value-header 1002s # EnumName: @EnumName@ 1002s # enum_name: @enum_name@ 1002s # ENUMNAME: @ENUMNAME@ 1002s # ENUMSHORT: @ENUMSHORT@ 1002s # ENUMPREFIX: @ENUMPREFIX@ 1002s # enumsince: @enumsince@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END value-header ***/ 1002s # 1002s # /*** BEGIN value-production ***/ 1002s # value-production 1002s # VALUENAME: @VALUENAME@ 1002s # valuenick: @valuenick@ 1002s # valuenum: @valuenum@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END value-production ***/ 1002s # 1002s # /*** BEGIN value-tail ***/ 1002s # value-tail 1002s # EnumName: @EnumName@ 1002s # enum_name: @enum_name@ 1002s # ENUMNAME: @ENUMNAME@ 1002s # ENUMSHORT: @ENUMSHORT@ 1002s # ENUMPREFIX: @ENUMPREFIX@ 1002s # enumsince: @enumsince@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END value-tail ***/ 1002s # 1002s # /*** BEGIN comment ***/ 1002s # comment 1002s # comment: @comment@ 1002s # /*** END comment ***/ 1002s # 1002s # /*** BEGIN file-tail ***/ 1002s # file-tail 1002s # /*** END file-tail ***/ 1002s # 1002s # Response file contains: --template /tmp/tmp0f9dc_00/tmpnf0joc0q.template /tmp/tmp0f9dc_00/tmpf8hfl18j.h 1002s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp0f9dc_00/tmp3oy06seb'] 1002s # Return code: 0 1002s # Output: 1002s # comment 1002s # 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. 1002s # 1002s # 1002s # file-header 1002s # file-production 1002s # filename: /tmp/tmp0f9dc_00/tmpf8hfl18j.h 1002s # basename: tmpf8hfl18j.h 1002s # enumeration-production 1002s # EnumName: TestCommaEnum 1002s # enum_name: test_comma_enum 1002s # ENUMNAME: TEST_COMMA_ENUM 1002s # ENUMSHORT: COMMA_ENUM 1002s # ENUMPREFIX: TEST 1002s # enumsince: 1002s # type: enum 1002s # Type: Enum 1002s # TYPE: ENUM 1002s # value-header 1002s # EnumName: TestCommaEnum 1002s # enum_name: test_comma_enum 1002s # ENUMNAME: TEST_COMMA_ENUM 1002s # ENUMSHORT: COMMA_ENUM 1002s # ENUMPREFIX: TEST 1002s # enumsince: 1002s # type: enum 1002s # Type: Enum 1002s # TYPE: ENUM 1002s # value-production 1002s # VALUENAME: ENUM_VALUE_WITH_COMMA 1002s # valuenick: comma 1002s # valuenum: 44 1002s # type: enum 1002s # Type: Enum 1002s # TYPE: ENUM 1002s # value-tail 1002s # EnumName: TestCommaEnum 1002s # enum_name: test_comma_enum 1002s # ENUMNAME: TEST_COMMA_ENUM 1002s # ENUMSHORT: COMMA_ENUM 1002s # ENUMPREFIX: TEST 1002s # enumsince: 1002s # type: enum 1002s # Type: Enum 1002s # TYPE: ENUM 1002s # file-tail 1002s # 1002s # comment 1002s # comment: Generated data ends here 1002s # Error: 1002s ok 21 __main__.TestRspMkenums.test_deprecated_in 1002s # glib-mkenums: /usr/bin/glib-mkenums 1002s # tmpdir: /tmp/tmpa50rxdos 1002s # rspfile: True 1002s # /tmp/tmpa50rxdos/tmp35hbdffe.h: 1002s # typedef enum { 1002s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_DEPRECATED_ENUMERATOR_IN_2_68 = (1<<2) 1002s # } GDBusServerFlags; 1002s # 1002s # /tmp/tmpa50rxdos/tmp1n80pkix.template: 1002s # /*** BEGIN file-header ***/ 1002s # file-header 1002s # /*** END file-header ***/ 1002s # 1002s # /*** BEGIN file-production ***/ 1002s # file-production 1002s # filename: @filename@ 1002s # basename: @basename@ 1002s # /*** END file-production ***/ 1002s # 1002s # /*** BEGIN enumeration-production ***/ 1002s # enumeration-production 1002s # EnumName: @EnumName@ 1002s # enum_name: @enum_name@ 1002s # ENUMNAME: @ENUMNAME@ 1002s # ENUMSHORT: @ENUMSHORT@ 1002s # ENUMPREFIX: @ENUMPREFIX@ 1002s # enumsince: @enumsince@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END enumeration-production ***/ 1002s # 1002s # /*** BEGIN value-header ***/ 1002s # value-header 1002s # EnumName: @EnumName@ 1002s # enum_name: @enum_name@ 1002s # ENUMNAME: @ENUMNAME@ 1002s # ENUMSHORT: @ENUMSHORT@ 1002s # ENUMPREFIX: @ENUMPREFIX@ 1002s # enumsince: @enumsince@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END value-header ***/ 1002s # 1002s # /*** BEGIN value-production ***/ 1002s # value-production 1002s # VALUENAME: @VALUENAME@ 1002s # valuenick: @valuenick@ 1002s # valuenum: @valuenum@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END value-production ***/ 1002s # 1002s # /*** BEGIN value-tail ***/ 1002s # value-tail 1002s # EnumName: @EnumName@ 1002s # enum_name: @enum_name@ 1002s # ENUMNAME: @ENUMNAME@ 1002s # ENUMSHORT: @ENUMSHORT@ 1002s # ENUMPREFIX: @ENUMPREFIX@ 1002s # enumsince: @enumsince@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END value-tail ***/ 1002s # 1002s # /*** BEGIN comment ***/ 1002s # comment 1002s # comment: @comment@ 1002s # /*** END comment ***/ 1002s # 1002s # /*** BEGIN file-tail ***/ 1002s # file-tail 1002s # /*** END file-tail ***/ 1002s # 1002s # Response file contains: --template /tmp/tmpa50rxdos/tmp1n80pkix.template /tmp/tmpa50rxdos/tmp35hbdffe.h 1002s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpa50rxdos/tmppj7rzc4h'] 1002s # Return code: 0 1002s # Output: 1002s # comment 1002s # 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. 1002s # 1002s # 1002s # file-header 1002s # file-production 1002s # filename: /tmp/tmpa50rxdos/tmp35hbdffe.h 1002s # basename: tmp35hbdffe.h 1002s # enumeration-production 1002s # EnumName: GDBusServerFlags 1002s # enum_name: g_dbus_server_flags 1002s # ENUMNAME: G_DBUS_SERVER_FLAGS 1002s # ENUMSHORT: DBUS_SERVER_FLAGS 1002s # ENUMPREFIX: G 1002s # enumsince: 1002s # type: flags 1002s # Type: Flags 1002s # TYPE: FLAGS 1002s # value-header 1002s # EnumName: GDBusServerFlags 1002s # enum_name: g_dbus_server_flags 1002s # ENUMNAME: G_DBUS_SERVER_FLAGS 1002s # ENUMSHORT: DBUS_SERVER_FLAGS 1002s # ENUMPREFIX: G 1002s # enumsince: 1002s # type: flags 1002s # Type: Flags 1002s # TYPE: FLAGS 1002s # value-production 1002s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1002s # valuenick: user 1002s # valuenum: 4 1002s # type: flags 1002s # Type: Flags 1002s # TYPE: FLAGS 1002s # value-tail 1002s # EnumName: GDBusServerFlags 1002s # enum_name: g_dbus_server_flags 1002s # ENUMNAME: G_DBUS_SERVER_FLAGS 1002s # ENUMSHORT: DBUS_SERVER_FLAGS 1002s # ENUMPREFIX: G 1002s # enumsince: 1002s # type: flags 1002s # Type: Flags 1002s # TYPE: FLAGS 1002s # file-tail 1002s # 1002s # comment 1002s # comment: Generated data ends here 1002s # Error: 1002s ok 22 __main__.TestRspMkenums.test_deprecated_in_for 1002s # glib-mkenums: /usr/bin/glib-mkenums 1002s # tmpdir: /tmp/tmp8wactf66 1002s # rspfile: True 1002s # /tmp/tmp8wactf66/tmpl8lqopxd.h: 1002s # typedef enum { 1002s # 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) 1002s # } GDBusServerFlags; 1002s # 1002s # /tmp/tmp8wactf66/tmprpz3xlpl.template: 1002s # /*** BEGIN file-header ***/ 1002s # file-header 1002s # /*** END file-header ***/ 1002s # 1002s # /*** BEGIN file-production ***/ 1002s # file-production 1002s # filename: @filename@ 1002s # basename: @basename@ 1002s # /*** END file-production ***/ 1002s # 1002s # /*** BEGIN enumeration-production ***/ 1002s # enumeration-production 1002s # EnumName: @EnumName@ 1002s # enum_name: @enum_name@ 1002s # ENUMNAME: @ENUMNAME@ 1002s # ENUMSHORT: @ENUMSHORT@ 1002s # ENUMPREFIX: @ENUMPREFIX@ 1002s # enumsince: @enumsince@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END enumeration-production ***/ 1002s # 1002s # /*** BEGIN value-header ***/ 1002s # value-header 1002s # EnumName: @EnumName@ 1002s # enum_name: @enum_name@ 1002s # ENUMNAME: @ENUMNAME@ 1002s # ENUMSHORT: @ENUMSHORT@ 1002s # ENUMPREFIX: @ENUMPREFIX@ 1002s # enumsince: @enumsince@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END value-header ***/ 1002s # 1002s # /*** BEGIN value-production ***/ 1002s # value-production 1002s # VALUENAME: @VALUENAME@ 1002s # valuenick: @valuenick@ 1002s # valuenum: @valuenum@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END value-production ***/ 1002s # 1002s # /*** BEGIN value-tail ***/ 1002s # value-tail 1002s # EnumName: @EnumName@ 1002s # enum_name: @enum_name@ 1002s # ENUMNAME: @ENUMNAME@ 1002s # ENUMSHORT: @ENUMSHORT@ 1002s # ENUMPREFIX: @ENUMPREFIX@ 1002s # enumsince: @enumsince@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END value-tail ***/ 1002s # 1002s # /*** BEGIN comment ***/ 1002s # comment 1002s # comment: @comment@ 1002s # /*** END comment ***/ 1002s # 1002s # /*** BEGIN file-tail ***/ 1002s # file-tail 1002s # /*** END file-tail ***/ 1002s # 1002s # Response file contains: --template /tmp/tmp8wactf66/tmprpz3xlpl.template /tmp/tmp8wactf66/tmpl8lqopxd.h 1002s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp8wactf66/tmp3vi01tcm'] 1002s # Return code: 0 1002s # Output: 1002s # comment 1002s # 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. 1002s # 1002s # 1002s # file-header 1002s # file-production 1002s # filename: /tmp/tmp8wactf66/tmpl8lqopxd.h 1002s # basename: tmpl8lqopxd.h 1002s # enumeration-production 1002s # EnumName: GDBusServerFlags 1002s # enum_name: g_dbus_server_flags 1002s # ENUMNAME: G_DBUS_SERVER_FLAGS 1002s # ENUMSHORT: DBUS_SERVER_FLAGS 1002s # ENUMPREFIX: G 1002s # enumsince: 1002s # type: flags 1002s # Type: Flags 1002s # TYPE: FLAGS 1002s # value-header 1002s # EnumName: GDBusServerFlags 1002s # enum_name: g_dbus_server_flags 1002s # ENUMNAME: G_DBUS_SERVER_FLAGS 1002s # ENUMSHORT: DBUS_SERVER_FLAGS 1002s # ENUMPREFIX: G 1002s # enumsince: 1002s # type: flags 1002s # Type: Flags 1002s # TYPE: FLAGS 1002s # value-production 1002s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1002s # valuenick: user 1002s # valuenum: 4 1002s # type: flags 1002s # Type: Flags 1002s # TYPE: FLAGS 1002s # value-tail 1002s # EnumName: GDBusServerFlags 1002s # enum_name: g_dbus_server_flags 1002s # ENUMNAME: G_DBUS_SERVER_FLAGS 1002s # ENUMSHORT: DBUS_SERVER_FLAGS 1002s # ENUMPREFIX: G 1002s # enumsince: 1002s # type: flags 1002s # Type: Flags 1002s # TYPE: FLAGS 1002s # file-tail 1002s # 1002s # comment 1002s # comment: Generated data ends here 1002s # Error: 1002s ok 23 __main__.TestRspMkenums.test_empty_header 1002s # glib-mkenums: /usr/bin/glib-mkenums 1002s # tmpdir: /tmp/tmp_akec_nl 1002s # rspfile: True 1002s # /tmp/tmp_akec_nl/tmpemnm2vzu.h: 1002s # /tmp/tmp_akec_nl/tmpwa4mwhfv.template: 1002s # /*** BEGIN file-header ***/ 1002s # file-header 1002s # /*** END file-header ***/ 1002s # 1002s # /*** BEGIN file-production ***/ 1002s # file-production 1002s # filename: @filename@ 1002s # basename: @basename@ 1002s # /*** END file-production ***/ 1002s # 1002s # /*** BEGIN enumeration-production ***/ 1002s # enumeration-production 1002s # EnumName: @EnumName@ 1002s # enum_name: @enum_name@ 1002s # ENUMNAME: @ENUMNAME@ 1002s # ENUMSHORT: @ENUMSHORT@ 1002s # ENUMPREFIX: @ENUMPREFIX@ 1002s # enumsince: @enumsince@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END enumeration-production ***/ 1002s # 1002s # /*** BEGIN value-header ***/ 1002s # value-header 1002s # EnumName: @EnumName@ 1002s # enum_name: @enum_name@ 1002s # ENUMNAME: @ENUMNAME@ 1002s # ENUMSHORT: @ENUMSHORT@ 1002s # ENUMPREFIX: @ENUMPREFIX@ 1002s # enumsince: @enumsince@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END value-header ***/ 1002s # 1002s # /*** BEGIN value-production ***/ 1002s # value-production 1002s # VALUENAME: @VALUENAME@ 1002s # valuenick: @valuenick@ 1002s # valuenum: @valuenum@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END value-production ***/ 1002s # 1002s # /*** BEGIN value-tail ***/ 1002s # value-tail 1002s # EnumName: @EnumName@ 1002s # enum_name: @enum_name@ 1002s # ENUMNAME: @ENUMNAME@ 1002s # ENUMSHORT: @ENUMSHORT@ 1002s # ENUMPREFIX: @ENUMPREFIX@ 1002s # enumsince: @enumsince@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END value-tail ***/ 1002s # 1002s # /*** BEGIN comment ***/ 1002s # comment 1002s # comment: @comment@ 1002s # /*** END comment ***/ 1002s # 1002s # /*** BEGIN file-tail ***/ 1002s # file-tail 1002s # /*** END file-tail ***/ 1002s # 1002s # Response file contains: --template /tmp/tmp_akec_nl/tmpwa4mwhfv.template /tmp/tmp_akec_nl/tmpemnm2vzu.h 1002s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp_akec_nl/tmpw80l_qqo'] 1002s # Return code: 0 1002s # Output: 1002s # comment 1002s # 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. 1002s # 1002s # 1002s # file-header 1002s # file-tail 1002s # 1002s # comment 1002s # comment: Generated data ends here 1002s # Error: 1002s ok 24 __main__.TestRspMkenums.test_empty_template 1002s # glib-mkenums: /usr/bin/glib-mkenums 1002s # tmpdir: /tmp/tmpj4cxupm2 1002s # rspfile: True 1002s # /tmp/tmpj4cxupm2/tmpuqdbhkld.template: 1002s # Response file contains: --template /tmp/tmpj4cxupm2/tmpuqdbhkld.template 1002s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpj4cxupm2/tmpjba4bwm8'] 1002s # Return code: 0 1002s # Output: 1002s # /* 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. */ 1002s # 1002s # 1002s # /* Generated data ends here */ 1002s # Error: 1002s ok 25 __main__.TestRspMkenums.test_enum_name 1002s # glib-mkenums: /usr/bin/glib-mkenums 1002s # tmpdir: /tmp/tmp3uigc0q8 1002s # rspfile: True 1002s # /tmp/tmp3uigc0q8/tmpgx9ylcqh.h: 1002s # typedef enum _SomeEnumIdentifier { 1002s # ENUM_VALUE 1002s # } SomeEnumIdentifier; 1002s # 1002s # /tmp/tmp3uigc0q8/tmphgp0nu7e.template: 1002s # /*** BEGIN file-header ***/ 1002s # file-header 1002s # /*** END file-header ***/ 1002s # 1002s # /*** BEGIN file-production ***/ 1002s # file-production 1002s # filename: @filename@ 1002s # basename: @basename@ 1002s # /*** END file-production ***/ 1002s # 1002s # /*** BEGIN enumeration-production ***/ 1002s # enumeration-production 1002s # EnumName: @EnumName@ 1002s # enum_name: @enum_name@ 1002s # ENUMNAME: @ENUMNAME@ 1002s # ENUMSHORT: @ENUMSHORT@ 1002s # ENUMPREFIX: @ENUMPREFIX@ 1002s # enumsince: @enumsince@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END enumeration-production ***/ 1002s # 1002s # /*** BEGIN value-header ***/ 1002s # value-header 1002s # EnumName: @EnumName@ 1002s # enum_name: @enum_name@ 1002s # ENUMNAME: @ENUMNAME@ 1002s # ENUMSHORT: @ENUMSHORT@ 1002s # ENUMPREFIX: @ENUMPREFIX@ 1002s # enumsince: @enumsince@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END value-header ***/ 1002s # 1002s # /*** BEGIN value-production ***/ 1002s # value-production 1002s # VALUENAME: @VALUENAME@ 1002s # valuenick: @valuenick@ 1002s # valuenum: @valuenum@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END value-production ***/ 1002s # 1002s # /*** BEGIN value-tail ***/ 1002s # value-tail 1002s # EnumName: @EnumName@ 1002s # enum_name: @enum_name@ 1002s # ENUMNAME: @ENUMNAME@ 1002s # ENUMSHORT: @ENUMSHORT@ 1002s # ENUMPREFIX: @ENUMPREFIX@ 1002s # enumsince: @enumsince@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END value-tail ***/ 1002s # 1002s # /*** BEGIN comment ***/ 1002s # comment 1002s # comment: @comment@ 1002s # /*** END comment ***/ 1002s # 1002s # /*** BEGIN file-tail ***/ 1002s # file-tail 1002s # /*** END file-tail ***/ 1002s # 1002s # Response file contains: --template /tmp/tmp3uigc0q8/tmphgp0nu7e.template /tmp/tmp3uigc0q8/tmpgx9ylcqh.h 1002s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp3uigc0q8/tmp84xku_pk'] 1002s # Return code: 0 1002s # Output: 1002s # comment 1002s # 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. 1002s # 1002s # 1002s # file-header 1002s # file-production 1002s # filename: /tmp/tmp3uigc0q8/tmpgx9ylcqh.h 1002s # basename: tmpgx9ylcqh.h 1002s # enumeration-production 1002s # EnumName: SomeEnumIdentifier 1002s # enum_name: some_enum_identifier 1002s # ENUMNAME: SOME_ENUM_IDENTIFIER 1002s # ENUMSHORT: ENUM_IDENTIFIER 1002s # ENUMPREFIX: SOME 1002s # enumsince: 1002s # type: enum 1002s # Type: Enum 1002s # TYPE: ENUM 1002s # value-header 1002s # EnumName: SomeEnumIdentifier 1002s # enum_name: some_enum_identifier 1002s # ENUMNAME: SOME_ENUM_IDENTIFIER 1002s # ENUMSHORT: ENUM_IDENTIFIER 1002s # ENUMPREFIX: SOME 1002s # enumsince: 1002s # type: enum 1002s # Type: Enum 1002s # TYPE: ENUM 1002s # value-production 1002s # VALUENAME: ENUM_VALUE 1002s # valuenick: value 1002s # valuenum: 0 1002s # type: enum 1002s # Type: Enum 1002s # TYPE: ENUM 1002s # value-tail 1002s # EnumName: SomeEnumIdentifier 1002s # enum_name: some_enum_identifier 1002s # ENUMNAME: SOME_ENUM_IDENTIFIER 1002s # ENUMSHORT: ENUM_IDENTIFIER 1002s # ENUMPREFIX: SOME 1002s # enumsince: 1002s # type: enum 1002s # Type: Enum 1002s # TYPE: ENUM 1002s # file-tail 1002s # 1002s # comment 1002s # comment: Generated data ends here 1002s # Error: 1002s ok 26 __main__.TestRspMkenums.test_enum_private_public 1002s # glib-mkenums: /usr/bin/glib-mkenums 1002s # tmpdir: /tmp/tmpiqcd0soc 1002s # rspfile: True 1002s # /tmp/tmpiqcd0soc/tmpz235pge2.h: 1002s # typedef enum { 1002s # ENUM_VALUE_PUBLIC1, 1002s # /*< private >*/ 1002s # ENUM_VALUE_PRIVATE, 1002s # } SomeEnumA 1002s # 1002s # /tmp/tmpiqcd0soc/tmpvivrmak4.template: 1002s # /*** BEGIN file-header ***/ 1002s # file-header 1002s # /*** END file-header ***/ 1002s # 1002s # /*** BEGIN file-production ***/ 1002s # file-production 1002s # filename: @filename@ 1002s # basename: @basename@ 1002s # /*** END file-production ***/ 1002s # 1002s # /*** BEGIN enumeration-production ***/ 1002s # enumeration-production 1002s # EnumName: @EnumName@ 1002s # enum_name: @enum_name@ 1002s # ENUMNAME: @ENUMNAME@ 1002s # ENUMSHORT: @ENUMSHORT@ 1002s # ENUMPREFIX: @ENUMPREFIX@ 1002s # enumsince: @enumsince@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END enumeration-production ***/ 1002s # 1002s # /*** BEGIN value-header ***/ 1002s # value-header 1002s # EnumName: @EnumName@ 1002s # enum_name: @enum_name@ 1002s # ENUMNAME: @ENUMNAME@ 1002s # ENUMSHORT: @ENUMSHORT@ 1002s # ENUMPREFIX: @ENUMPREFIX@ 1002s # enumsince: @enumsince@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END value-header ***/ 1002s # 1002s # /*** BEGIN value-production ***/ 1002s # value-production 1002s # VALUENAME: @VALUENAME@ 1002s # valuenick: @valuenick@ 1002s # valuenum: @valuenum@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END value-production ***/ 1002s # 1002s # /*** BEGIN value-tail ***/ 1002s # value-tail 1002s # EnumName: @EnumName@ 1002s # enum_name: @enum_name@ 1002s # ENUMNAME: @ENUMNAME@ 1002s # ENUMSHORT: @ENUMSHORT@ 1002s # ENUMPREFIX: @ENUMPREFIX@ 1002s # enumsince: @enumsince@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END value-tail ***/ 1002s # 1002s # /*** BEGIN comment ***/ 1002s # comment 1002s # comment: @comment@ 1002s # /*** END comment ***/ 1002s # 1002s # /*** BEGIN file-tail ***/ 1002s # file-tail 1002s # /*** END file-tail ***/ 1002s # 1002s # Response file contains: --template /tmp/tmpiqcd0soc/tmpvivrmak4.template /tmp/tmpiqcd0soc/tmpz235pge2.h 1002s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpiqcd0soc/tmprl69ftzd'] 1002s # Return code: 0 1002s # Output: 1002s # comment 1002s # 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. 1002s # 1002s # 1002s # file-header 1002s # file-production 1002s # filename: /tmp/tmpiqcd0soc/tmpz235pge2.h 1002s # basename: tmpz235pge2.h 1002s # enumeration-production 1002s # EnumName: SomeEnumA 1002s # enum_name: some_enum_a 1002s # ENUMNAME: SOME_ENUM_A 1002s # ENUMSHORT: ENUM_A 1002s # ENUMPREFIX: SOME 1002s # enumsince: 1002s # type: enum 1002s # Type: Enum 1002s # TYPE: ENUM 1002s # value-header 1002s # EnumName: SomeEnumA 1002s # enum_name: some_enum_a 1002s # ENUMNAME: SOME_ENUM_A 1002s # ENUMSHORT: ENUM_A 1002s # ENUMPREFIX: SOME 1002s # enumsince: 1002s # type: enum 1002s # Type: Enum 1002s # TYPE: ENUM 1002s # value-production 1002s # VALUENAME: ENUM_VALUE_PUBLIC1 1002s # valuenick: public1 1002s # valuenum: 0 1002s # type: enum 1002s # Type: Enum 1002s # TYPE: ENUM 1002s # value-tail 1002s # EnumName: SomeEnumA 1002s # enum_name: some_enum_a 1002s # ENUMNAME: SOME_ENUM_A 1002s # ENUMSHORT: ENUM_A 1002s # ENUMPREFIX: SOME 1002s # enumsince: 1002s # type: enum 1002s # Type: Enum 1002s # TYPE: ENUM 1002s # file-tail 1002s # 1002s # comment 1002s # comment: Generated data ends here 1002s # Error: 1002s # 1002s # /tmp/tmpiqcd0soc/tmpna3lku_b.h: 1002s # typedef enum { 1002s # /*< private >*/ 1002s # ENUM_VALUE_PRIVATE, 1002s # /*< public >*/ 1002s # ENUM_VALUE_PUBLIC2, 1002s # } SomeEnumB; 1002s # 1002s # /tmp/tmpiqcd0soc/tmpk8tz3dhl.template: 1002s # /*** BEGIN file-header ***/ 1002s # file-header 1002s # /*** END file-header ***/ 1002s # 1002s # /*** BEGIN file-production ***/ 1002s # file-production 1002s # filename: @filename@ 1002s # basename: @basename@ 1002s # /*** END file-production ***/ 1002s # 1002s # /*** BEGIN enumeration-production ***/ 1002s # enumeration-production 1002s # EnumName: @EnumName@ 1002s # enum_name: @enum_name@ 1002s # ENUMNAME: @ENUMNAME@ 1002s # ENUMSHORT: @ENUMSHORT@ 1002s # ENUMPREFIX: @ENUMPREFIX@ 1002s # enumsince: @enumsince@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END enumeration-production ***/ 1002s # 1002s # /*** BEGIN value-header ***/ 1002s # value-header 1002s # EnumName: @EnumName@ 1002s # enum_name: @enum_name@ 1002s # ENUMNAME: @ENUMNAME@ 1002s # ENUMSHORT: @ENUMSHORT@ 1002s # ENUMPREFIX: @ENUMPREFIX@ 1002s # enumsince: @enumsince@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END value-header ***/ 1002s # 1002s # /*** BEGIN value-production ***/ 1002s # value-production 1002s # VALUENAME: @VALUENAME@ 1002s # valuenick: @valuenick@ 1002s # valuenum: @valuenum@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END value-production ***/ 1002s # 1002s # /*** BEGIN value-tail ***/ 1002s # value-tail 1002s # EnumName: @EnumName@ 1002s # enum_name: @enum_name@ 1002s # ENUMNAME: @ENUMNAME@ 1002s # ENUMSHORT: @ENUMSHORT@ 1002s # ENUMPREFIX: @ENUMPREFIX@ 1002s # enumsince: @enumsince@ 1002s # type: @type@ 1002s # Type: @Type@ 1002s # TYPE: @TYPE@ 1002s # /*** END value-tail ***/ 1002s # 1002s # /*** BEGIN comment ***/ 1002s # comment 1002s # comment: @comment@ 1002s # /*** END comment ***/ 1002s # 1002s # /*** BEGIN file-tail ***/ 1002s # file-tail 1002s # /*** END file-tail ***/ 1002s # 1002s # Response file contains: --template /tmp/tmpiqcd0soc/tmpk8tz3dhl.template /tmp/tmpiqcd0soc/tmpna3lku_b.h 1002s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpiqcd0soc/tmpv159x2zm'] 1002s # Return code: 0 1002s # Output: 1002s # comment 1002s # 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. 1002s # 1002s # 1002s # file-header 1002s # file-production 1002s # filename: /tmp/tmpiqcd0soc/tmpna3lku_b.h 1002s # basename: tmpna3lku_b.h 1002s # enumeration-production 1002s # EnumName: SomeEnumB 1002s # enum_name: some_enum_b 1002s # ENUMNAME: SOME_ENUM_B 1002s # ENUMSHORT: ENUM_B 1002s # ENUMPREFIX: SOME 1002s # enumsince: 1002s # type: enum 1002s # Type: Enum 1002s # TYPE: ENUM 1002s # value-header 1002s # EnumName: SomeEnumB 1002s # enum_name: some_enum_b 1002s # ENUMNAME: SOME_ENUM_B 1002s # ENUMSHORT: ENUM_B 1002s # ENUMPREFIX: SOME 1002s # enumsince: 1002s # type: enum 1002s # Type: Enum 1002s # TYPE: ENUM 1002s # value-production 1002s # VALUENAME: ENUM_VALUE_PUBLIC2 1002s # valuenick: public2 1002s # valuenum: 1 1002s # type: enum 1002s # Type: Enum 1002s # TYPE: ENUM 1002s # value-tail 1002s # EnumName: SomeEnumB 1002s # enum_name: some_enum_b 1002s # ENUMNAME: SOME_ENUM_B 1002s # ENUMSHORT: ENUM_B 1002s # ENUMPREFIX: SOME 1002s # enumsince: 1002s # type: enum 1002s # Type: Enum 1002s # TYPE: ENUM 1002s # file-tail 1002s # 1002s # comment 1002s # comment: Generated data ends here 1002s # Error: 1003s ok 27 __main__.TestRspMkenums.test_enum_symbolic_expression 1003s # glib-mkenums: /usr/bin/glib-mkenums 1003s # tmpdir: /tmp/tmpvmvrqadt 1003s # rspfile: True 1003s # /tmp/tmpvmvrqadt/tmpq7nwcz7b.h: 1003s # typedef enum { 1003s # /*< private >*/ 1003s # ENUM_VALUE_PRIVATE = 5, 1003s # /*< public >*/ 1003s # ENUM_VALUE_PUBLIC = ENUM_VALUE_PRIVATE + 2, 1003s # } TestSymbolicEnum; 1003s # 1003s # /tmp/tmpvmvrqadt/tmp870wdzfy.template: 1003s # /*** BEGIN file-header ***/ 1003s # file-header 1003s # /*** END file-header ***/ 1003s # 1003s # /*** BEGIN file-production ***/ 1003s # file-production 1003s # filename: @filename@ 1003s # basename: @basename@ 1003s # /*** END file-production ***/ 1003s # 1003s # /*** BEGIN enumeration-production ***/ 1003s # enumeration-production 1003s # EnumName: @EnumName@ 1003s # enum_name: @enum_name@ 1003s # ENUMNAME: @ENUMNAME@ 1003s # ENUMSHORT: @ENUMSHORT@ 1003s # ENUMPREFIX: @ENUMPREFIX@ 1003s # enumsince: @enumsince@ 1003s # type: @type@ 1003s # Type: @Type@ 1003s # TYPE: @TYPE@ 1003s # /*** END enumeration-production ***/ 1003s # 1003s # /*** BEGIN value-header ***/ 1003s # value-header 1003s # EnumName: @EnumName@ 1003s # enum_name: @enum_name@ 1003s # ENUMNAME: @ENUMNAME@ 1003s # ENUMSHORT: @ENUMSHORT@ 1003s # ENUMPREFIX: @ENUMPREFIX@ 1003s # enumsince: @enumsince@ 1003s # type: @type@ 1003s # Type: @Type@ 1003s # TYPE: @TYPE@ 1003s # /*** END value-header ***/ 1003s # 1003s # /*** BEGIN value-production ***/ 1003s # value-production 1003s # VALUENAME: @VALUENAME@ 1003s # valuenick: @valuenick@ 1003s # valuenum: @valuenum@ 1003s # type: @type@ 1003s # Type: @Type@ 1003s # TYPE: @TYPE@ 1003s # /*** END value-production ***/ 1003s # 1003s # /*** BEGIN value-tail ***/ 1003s # value-tail 1003s # EnumName: @EnumName@ 1003s # enum_name: @enum_name@ 1003s # ENUMNAME: @ENUMNAME@ 1003s # ENUMSHORT: @ENUMSHORT@ 1003s # ENUMPREFIX: @ENUMPREFIX@ 1003s # enumsince: @enumsince@ 1003s # type: @type@ 1003s # Type: @Type@ 1003s # TYPE: @TYPE@ 1003s # /*** END value-tail ***/ 1003s # 1003s # /*** BEGIN comment ***/ 1003s # comment 1003s # comment: @comment@ 1003s # /*** END comment ***/ 1003s # 1003s # /*** BEGIN file-tail ***/ 1003s # file-tail 1003s # /*** END file-tail ***/ 1003s # 1003s # Response file contains: --template /tmp/tmpvmvrqadt/tmp870wdzfy.template /tmp/tmpvmvrqadt/tmpq7nwcz7b.h 1003s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpvmvrqadt/tmp4ztgjoa6'] 1003s # Return code: 0 1003s # Output: 1003s # comment 1003s # 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. 1003s # 1003s # 1003s # file-header 1003s # file-production 1003s # filename: /tmp/tmpvmvrqadt/tmpq7nwcz7b.h 1003s # basename: tmpq7nwcz7b.h 1003s # enumeration-production 1003s # EnumName: TestSymbolicEnum 1003s # enum_name: test_symbolic_enum 1003s # ENUMNAME: TEST_SYMBOLIC_ENUM 1003s # ENUMSHORT: SYMBOLIC_ENUM 1003s # ENUMPREFIX: TEST 1003s # enumsince: 1003s # type: enum 1003s # Type: Enum 1003s # TYPE: ENUM 1003s # value-header 1003s # EnumName: TestSymbolicEnum 1003s # enum_name: test_symbolic_enum 1003s # ENUMNAME: TEST_SYMBOLIC_ENUM 1003s # ENUMSHORT: SYMBOLIC_ENUM 1003s # ENUMPREFIX: TEST 1003s # enumsince: 1003s # type: enum 1003s # Type: Enum 1003s # TYPE: ENUM 1003s # value-production 1003s # VALUENAME: ENUM_VALUE_PUBLIC 1003s # valuenick: public 1003s # valuenum: 7 1003s # type: enum 1003s # Type: Enum 1003s # TYPE: ENUM 1003s # value-tail 1003s # EnumName: TestSymbolicEnum 1003s # enum_name: test_symbolic_enum 1003s # ENUMNAME: TEST_SYMBOLIC_ENUM 1003s # ENUMSHORT: SYMBOLIC_ENUM 1003s # ENUMPREFIX: TEST 1003s # enumsince: 1003s # type: enum 1003s # Type: Enum 1003s # TYPE: ENUM 1003s # file-tail 1003s # 1003s # comment 1003s # comment: Generated data ends here 1003s # Error: 1003s ok 28 __main__.TestRspMkenums.test_filename_basename_in_fhead_ftail 1003s # glib-mkenums: /usr/bin/glib-mkenums 1003s # tmpdir: /tmp/tmpi9tv0uas 1003s # rspfile: True 1003s # /tmp/tmpi9tv0uas/tmpl6vu8t5d.template: 1003s # /*** BEGIN file-header ***/ 1003s # file-header 1003s # filename: @filename@ 1003s # basename: @basename@ 1003s # /*** END file-header ***/ 1003s # 1003s # /*** BEGIN comment ***/ 1003s # comment 1003s # comment: @comment@ 1003s # /*** END comment ***/ 1003s # 1003s # /*** BEGIN file-tail ***/ 1003s # file-tail 1003s # filename: @filename@ 1003s # basename: @basename@ 1003s # /*** END file-tail ***/ 1003s # Response file contains: --template /tmp/tmpi9tv0uas/tmpl6vu8t5d.template 1003s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpi9tv0uas/tmps3wkioj_'] 1003s # Return code: 0 1003s # Output: 1003s # comment 1003s # 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. 1003s # 1003s # 1003s # file-header 1003s # filename: @filename@ 1003s # basename: @basename@ 1003s # file-tail 1003s # filename: @filename@ 1003s # basename: @basename@ 1003s # 1003s # comment 1003s # comment: Generated data ends here 1003s # Error: 1003s # WARNING: @filename@ used in file-header section. 1003s # WARNING: @basename@ used in file-header section. 1003s # WARNING: @filename@ used in file-tail section. 1003s # WARNING: @basename@ used in file-tail section. 1003s ok 29 __main__.TestRspMkenums.test_help 1003s # glib-mkenums: /usr/bin/glib-mkenums 1003s # tmpdir: /tmp/tmpud8o5_sr 1003s # rspfile: True 1003s # Response file contains: --help 1003s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpud8o5_sr/tmpyiremnbh'] 1003s # Return code: 0 1003s # Output: 1003s # usage: glib-mkenums [-h] [--identifier-prefix IDPREFIX] 1003s # [--symbol-prefix SYMPREFIX] [--fhead FHEAD] 1003s # [--ftail FTAIL] [--fprod FPROD] [--eprod EPROD] 1003s # [--vhead VHEAD] [--vprod VPROD] [--vtail VTAIL] 1003s # [--comments COMMENT_TMPL] [--template TEMPLATE] 1003s # [--output OUTPUT] [--version] 1003s # [args ...] 1003s # 1003s # positional arguments: 1003s # args One or more input files, or a single argument 1003s # @rspfile_path pointing to a file that contains the 1003s # actual arguments 1003s # 1003s # options: 1003s # -h, --help show this help message and exit 1003s # --identifier-prefix IDPREFIX 1003s # Identifier prefix 1003s # --symbol-prefix SYMPREFIX 1003s # Symbol prefix 1003s # --fhead FHEAD Output file header 1003s # --ftail FTAIL Output file footer 1003s # --fprod FPROD Put out TEXT every time a new input file is being 1003s # processed. 1003s # --eprod EPROD Per enum text, produced prior to value iterations 1003s # --vhead VHEAD Value header, produced before iterating over enum 1003s # values 1003s # --vprod VPROD Value text, produced for each enum value. 1003s # --vtail VTAIL Value tail, produced after iterating over enum values 1003s # --comments COMMENT_TMPL 1003s # Comment structure 1003s # --template TEMPLATE Template file 1003s # --output OUTPUT 1003s # --version, -v Print version information 1003s # 1003s # Production text substitutions: 1003s # @EnumName@ PrefixTheXEnum 1003s # @enum_name@ prefix_the_xenum 1003s # @ENUMNAME@ PREFIX_THE_XENUM 1003s # @ENUMSHORT@ THE_XENUM 1003s # @ENUMPREFIX@ PREFIX 1003s # @enumsince@ the user-provided since value given 1003s # @VALUENAME@ PREFIX_THE_XVALUE 1003s # @valuenick@ the-xvalue 1003s # @valuenum@ the integer value (limited support, Since: 2.26) 1003s # @type@ either enum or flags 1003s # @Type@ either Enum or Flags 1003s # @TYPE@ either ENUM or FLAGS 1003s # @filename@ name of current input file 1003s # @basename@ base name of the current input file (Since: 2.22) 1003s # Error: 1003s ok 30 __main__.TestRspMkenums.test_no_args 1003s # glib-mkenums: /usr/bin/glib-mkenums 1003s # tmpdir: /tmp/tmp5rcczbmp 1003s # rspfile: True 1003s # Response file contains: 1003s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp5rcczbmp/tmpb6t19zsg'] 1003s # Return code: 0 1003s # Output: 1003s # /* 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. */ 1003s # 1003s # 1003s # /* Generated data ends here */ 1003s # Error: 1003s ok 31 __main__.TestRspMkenums.test_no_headers 1003s # glib-mkenums: /usr/bin/glib-mkenums 1003s # tmpdir: /tmp/tmp58jnt_o0 1003s # rspfile: True 1003s # /tmp/tmp58jnt_o0/tmpqrrt3dph.template: 1003s # /*** BEGIN file-header ***/ 1003s # file-header 1003s # /*** END file-header ***/ 1003s # 1003s # /*** BEGIN file-production ***/ 1003s # file-production 1003s # filename: @filename@ 1003s # basename: @basename@ 1003s # /*** END file-production ***/ 1003s # 1003s # /*** BEGIN enumeration-production ***/ 1003s # enumeration-production 1003s # EnumName: @EnumName@ 1003s # enum_name: @enum_name@ 1003s # ENUMNAME: @ENUMNAME@ 1003s # ENUMSHORT: @ENUMSHORT@ 1003s # ENUMPREFIX: @ENUMPREFIX@ 1003s # enumsince: @enumsince@ 1003s # type: @type@ 1003s # Type: @Type@ 1003s # TYPE: @TYPE@ 1003s # /*** END enumeration-production ***/ 1003s # 1003s # /*** BEGIN value-header ***/ 1003s # value-header 1003s # EnumName: @EnumName@ 1003s # enum_name: @enum_name@ 1003s # ENUMNAME: @ENUMNAME@ 1003s # ENUMSHORT: @ENUMSHORT@ 1003s # ENUMPREFIX: @ENUMPREFIX@ 1003s # enumsince: @enumsince@ 1003s # type: @type@ 1003s # Type: @Type@ 1003s # TYPE: @TYPE@ 1003s # /*** END value-header ***/ 1003s # 1003s # /*** BEGIN value-production ***/ 1003s # value-production 1003s # VALUENAME: @VALUENAME@ 1003s # valuenick: @valuenick@ 1003s # valuenum: @valuenum@ 1003s # type: @type@ 1003s # Type: @Type@ 1003s # TYPE: @TYPE@ 1003s # /*** END value-production ***/ 1003s # 1003s # /*** BEGIN value-tail ***/ 1003s # value-tail 1003s # EnumName: @EnumName@ 1003s # enum_name: @enum_name@ 1003s # ENUMNAME: @ENUMNAME@ 1003s # ENUMSHORT: @ENUMSHORT@ 1003s # ENUMPREFIX: @ENUMPREFIX@ 1003s # enumsince: @enumsince@ 1003s # type: @type@ 1003s # Type: @Type@ 1003s # TYPE: @TYPE@ 1003s # /*** END value-tail ***/ 1003s # 1003s # /*** BEGIN comment ***/ 1003s # comment 1003s # comment: @comment@ 1003s # /*** END comment ***/ 1003s # 1003s # /*** BEGIN file-tail ***/ 1003s # file-tail 1003s # /*** END file-tail ***/ 1003s # 1003s # Response file contains: --template /tmp/tmp58jnt_o0/tmpqrrt3dph.template 1003s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp58jnt_o0/tmpjtx02rp4'] 1003s # Return code: 0 1003s # Output: 1003s # comment 1003s # 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. 1003s # 1003s # 1003s # file-header 1003s # file-tail 1003s # 1003s # comment 1003s # comment: Generated data ends here 1003s # Error: 1003s ok 32 __main__.TestRspMkenums.test_no_nick 1003s # glib-mkenums: /usr/bin/glib-mkenums 1003s # tmpdir: /tmp/tmpgzv_iuy8 1003s # rspfile: True 1003s # /tmp/tmpgzv_iuy8/tmpo927jasd.h: 1003s # typedef enum { 1003s # GEGL_SAMPLER_NEAREST = 0, /*< desc="nearest" >*/ 1003s # } GeglSamplerType; 1003s # 1003s # /tmp/tmpgzv_iuy8/tmp93b4z280.template: 1003s # /*** BEGIN file-header ***/ 1003s # file-header 1003s # /*** END file-header ***/ 1003s # 1003s # /*** BEGIN file-production ***/ 1003s # file-production 1003s # filename: @filename@ 1003s # basename: @basename@ 1003s # /*** END file-production ***/ 1003s # 1003s # /*** BEGIN enumeration-production ***/ 1003s # enumeration-production 1003s # EnumName: @EnumName@ 1003s # enum_name: @enum_name@ 1003s # ENUMNAME: @ENUMNAME@ 1003s # ENUMSHORT: @ENUMSHORT@ 1003s # ENUMPREFIX: @ENUMPREFIX@ 1003s # enumsince: @enumsince@ 1003s # type: @type@ 1003s # Type: @Type@ 1003s # TYPE: @TYPE@ 1003s # /*** END enumeration-production ***/ 1003s # 1003s # /*** BEGIN value-header ***/ 1003s # value-header 1003s # EnumName: @EnumName@ 1003s # enum_name: @enum_name@ 1003s # ENUMNAME: @ENUMNAME@ 1003s # ENUMSHORT: @ENUMSHORT@ 1003s # ENUMPREFIX: @ENUMPREFIX@ 1003s # enumsince: @enumsince@ 1003s # type: @type@ 1003s # Type: @Type@ 1003s # TYPE: @TYPE@ 1003s # /*** END value-header ***/ 1003s # 1003s # /*** BEGIN value-production ***/ 1003s # value-production 1003s # VALUENAME: @VALUENAME@ 1003s # valuenick: @valuenick@ 1003s # valuenum: @valuenum@ 1003s # type: @type@ 1003s # Type: @Type@ 1003s # TYPE: @TYPE@ 1003s # /*** END value-production ***/ 1003s # 1003s # /*** BEGIN value-tail ***/ 1003s # value-tail 1003s # EnumName: @EnumName@ 1003s # enum_name: @enum_name@ 1003s # ENUMNAME: @ENUMNAME@ 1003s # ENUMSHORT: @ENUMSHORT@ 1003s # ENUMPREFIX: @ENUMPREFIX@ 1003s # enumsince: @enumsince@ 1003s # type: @type@ 1003s # Type: @Type@ 1003s # TYPE: @TYPE@ 1003s # /*** END value-tail ***/ 1003s # 1003s # /*** BEGIN comment ***/ 1003s # comment 1003s # comment: @comment@ 1003s # /*** END comment ***/ 1003s # 1003s # /*** BEGIN file-tail ***/ 1003s # file-tail 1003s # /*** END file-tail ***/ 1003s # 1003s # Response file contains: --template /tmp/tmpgzv_iuy8/tmp93b4z280.template /tmp/tmpgzv_iuy8/tmpo927jasd.h 1003s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpgzv_iuy8/tmpw0_enm84'] 1003s # Return code: 0 1003s # Output: 1003s # comment 1003s # 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. 1003s # 1003s # 1003s # file-header 1003s # file-production 1003s # filename: /tmp/tmpgzv_iuy8/tmpo927jasd.h 1003s # basename: tmpo927jasd.h 1003s # enumeration-production 1003s # EnumName: GeglSamplerType 1003s # enum_name: gegl_sampler_type 1003s # ENUMNAME: GEGL_SAMPLER_TYPE 1003s # ENUMSHORT: SAMPLER_TYPE 1003s # ENUMPREFIX: GEGL 1003s # enumsince: 1003s # type: enum 1003s # Type: Enum 1003s # TYPE: ENUM 1003s # value-header 1003s # EnumName: GeglSamplerType 1003s # enum_name: gegl_sampler_type 1003s # ENUMNAME: GEGL_SAMPLER_TYPE 1003s # ENUMSHORT: SAMPLER_TYPE 1003s # ENUMPREFIX: GEGL 1003s # enumsince: 1003s # type: enum 1003s # Type: Enum 1003s # TYPE: ENUM 1003s # value-production 1003s # VALUENAME: GEGL_SAMPLER_NEAREST 1003s # valuenick: nearest 1003s # valuenum: 0 1003s # type: enum 1003s # Type: Enum 1003s # TYPE: ENUM 1003s # value-tail 1003s # EnumName: GeglSamplerType 1003s # enum_name: gegl_sampler_type 1003s # ENUMNAME: GEGL_SAMPLER_TYPE 1003s # ENUMSHORT: SAMPLER_TYPE 1003s # ENUMPREFIX: GEGL 1003s # enumsince: 1003s # type: enum 1003s # Type: Enum 1003s # TYPE: ENUM 1003s # file-tail 1003s # 1003s # comment 1003s # comment: Generated data ends here 1003s # Error: 1003s ok 33 __main__.TestRspMkenums.test_non_utf8_encoding 1003s # glib-mkenums: /usr/bin/glib-mkenums 1003s # tmpdir: /tmp/tmpiwgi8m_n 1003s # rspfile: True 1003s # /tmp/tmpiwgi8m_n/tmptbxx9anh.h: 1003s # /* Copyright © La Peña */ 1003s # typedef enum { 1003s # ENUM_VALUE 1003s # } SomeEnumIdentifier; 1003s # 1003s # /tmp/tmpiwgi8m_n/tmp0o_vjyg4.template: 1003s # /*** BEGIN file-header ***/ 1003s # file-header 1003s # /*** END file-header ***/ 1003s # 1003s # /*** BEGIN file-production ***/ 1003s # file-production 1003s # filename: @filename@ 1003s # basename: @basename@ 1003s # /*** END file-production ***/ 1003s # 1003s # /*** BEGIN enumeration-production ***/ 1003s # enumeration-production 1003s # EnumName: @EnumName@ 1003s # enum_name: @enum_name@ 1003s # ENUMNAME: @ENUMNAME@ 1003s # ENUMSHORT: @ENUMSHORT@ 1003s # ENUMPREFIX: @ENUMPREFIX@ 1003s # enumsince: @enumsince@ 1003s # type: @type@ 1003s # Type: @Type@ 1003s # TYPE: @TYPE@ 1003s # /*** END enumeration-production ***/ 1003s # 1003s # /*** BEGIN value-header ***/ 1003s # value-header 1003s # EnumName: @EnumName@ 1003s # enum_name: @enum_name@ 1003s # ENUMNAME: @ENUMNAME@ 1003s # ENUMSHORT: @ENUMSHORT@ 1003s # ENUMPREFIX: @ENUMPREFIX@ 1003s # enumsince: @enumsince@ 1003s # type: @type@ 1003s # Type: @Type@ 1003s # TYPE: @TYPE@ 1003s # /*** END value-header ***/ 1003s # 1003s # /*** BEGIN value-production ***/ 1003s # value-production 1003s # VALUENAME: @VALUENAME@ 1003s # valuenick: @valuenick@ 1003s # valuenum: @valuenum@ 1003s # type: @type@ 1003s # Type: @Type@ 1003s # TYPE: @TYPE@ 1003s # /*** END value-production ***/ 1003s # 1003s # /*** BEGIN value-tail ***/ 1003s # value-tail 1003s # EnumName: @EnumName@ 1003s # enum_name: @enum_name@ 1003s # ENUMNAME: @ENUMNAME@ 1003s # ENUMSHORT: @ENUMSHORT@ 1003s # ENUMPREFIX: @ENUMPREFIX@ 1003s # enumsince: @enumsince@ 1003s # type: @type@ 1003s # Type: @Type@ 1003s # TYPE: @TYPE@ 1003s # /*** END value-tail ***/ 1003s # 1003s # /*** BEGIN comment ***/ 1003s # comment 1003s # comment: @comment@ 1003s # /*** END comment ***/ 1003s # 1003s # /*** BEGIN file-tail ***/ 1003s # file-tail 1003s # /*** END file-tail ***/ 1003s # 1003s # Response file contains: --template /tmp/tmpiwgi8m_n/tmp0o_vjyg4.template /tmp/tmpiwgi8m_n/tmptbxx9anh.h 1003s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpiwgi8m_n/tmpy487umfh'] 1003s # Return code: 0 1003s # Output: 1003s # comment 1003s # 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. 1003s # 1003s # 1003s # file-header 1003s # file-production 1003s # filename: /tmp/tmpiwgi8m_n/tmptbxx9anh.h 1003s # basename: tmptbxx9anh.h 1003s # enumeration-production 1003s # EnumName: SomeEnumIdentifier 1003s # enum_name: some_enum_identifier 1003s # ENUMNAME: SOME_ENUM_IDENTIFIER 1003s # ENUMSHORT: ENUM_IDENTIFIER 1003s # ENUMPREFIX: SOME 1003s # enumsince: 1003s # type: enum 1003s # Type: Enum 1003s # TYPE: ENUM 1003s # value-header 1003s # EnumName: SomeEnumIdentifier 1003s # enum_name: some_enum_identifier 1003s # ENUMNAME: SOME_ENUM_IDENTIFIER 1003s # ENUMSHORT: ENUM_IDENTIFIER 1003s # ENUMPREFIX: SOME 1003s # enumsince: 1003s # type: enum 1003s # Type: Enum 1003s # TYPE: ENUM 1003s # value-production 1003s # VALUENAME: ENUM_VALUE 1003s # valuenick: value 1003s # valuenum: 0 1003s # type: enum 1003s # Type: Enum 1003s # TYPE: ENUM 1003s # value-tail 1003s # EnumName: SomeEnumIdentifier 1003s # enum_name: some_enum_identifier 1003s # ENUMNAME: SOME_ENUM_IDENTIFIER 1003s # ENUMSHORT: ENUM_IDENTIFIER 1003s # ENUMPREFIX: SOME 1003s # enumsince: 1003s # type: enum 1003s # Type: Enum 1003s # TYPE: ENUM 1003s # file-tail 1003s # 1003s # comment 1003s # comment: Generated data ends here 1003s # Error: 1003s # WARNING: UnicodeWarning: invalid start byte at 22 (b'yright \xa9 La Pe\xf1') 1003s # WARNING: UnicodeWarning: invalid continuation byte at 29 (b'\xa9 La Pe\xf1a */\n ') 1003s ok 34 __main__.TestRspMkenums.test_reproducible 1003s # glib-mkenums: /usr/bin/glib-mkenums 1003s # tmpdir: /tmp/tmp_n0bdzl1 1003s # rspfile: True 1003s # /tmp/tmp_n0bdzl1/tmpv5jn21vw.template: template 1003s # Response file contains: --template /tmp/tmp_n0bdzl1/tmpv5jn21vw.template /tmp/tmp_n0bdzl1/tmp6hg9nsds1.h /tmp/tmp_n0bdzl1/tmp0rf3sxf92.h 1003s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp_n0bdzl1/tmpoxr_cwfr'] 1003s # Return code: 0 1003s # Output: 1003s # /* 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. */ 1003s # 1003s # 1003s # /* Generated data ends here */ 1003s # Error: 1003s # 1003s # /tmp/tmp_n0bdzl1/tmpwxam3js5.template: template 1003s # Response file contains: --template /tmp/tmp_n0bdzl1/tmpwxam3js5.template /tmp/tmp_n0bdzl1/tmp0rf3sxf92.h /tmp/tmp_n0bdzl1/tmp6hg9nsds1.h 1003s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp_n0bdzl1/tmprz0m8fvj'] 1003s # Return code: 0 1003s # Output: 1003s # /* 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. */ 1003s # 1003s # 1003s # /* Generated data ends here */ 1003s # Error: 1003s ok 35 __main__.TestRspMkenums.test_since 1003s # glib-mkenums: /usr/bin/glib-mkenums 1003s # tmpdir: /tmp/tmp56ex1brq 1003s # rspfile: True 1003s # /tmp/tmp56ex1brq/tmpullsph_c.h: 1003s # typedef enum { /*< since=1.0 >*/ 1003s # QMI_WMS_MESSAGE_PROTOCOL_CDMA = 0, 1003s # } QmiWmsMessageProtocol; 1003s # 1003s # /tmp/tmp56ex1brq/tmpcazyfu6w.template: 1003s # /*** BEGIN file-header ***/ 1003s # file-header 1003s # /*** END file-header ***/ 1003s # 1003s # /*** BEGIN file-production ***/ 1003s # file-production 1003s # filename: @filename@ 1003s # basename: @basename@ 1003s # /*** END file-production ***/ 1003s # 1003s # /*** BEGIN enumeration-production ***/ 1003s # enumeration-production 1003s # EnumName: @EnumName@ 1003s # enum_name: @enum_name@ 1003s # ENUMNAME: @ENUMNAME@ 1003s # ENUMSHORT: @ENUMSHORT@ 1003s # ENUMPREFIX: @ENUMPREFIX@ 1003s # enumsince: @enumsince@ 1003s # type: @type@ 1003s # Type: @Type@ 1003s # TYPE: @TYPE@ 1003s # /*** END enumeration-production ***/ 1003s # 1003s # /*** BEGIN value-header ***/ 1003s # value-header 1003s # EnumName: @EnumName@ 1003s # enum_name: @enum_name@ 1003s # ENUMNAME: @ENUMNAME@ 1003s # ENUMSHORT: @ENUMSHORT@ 1003s # ENUMPREFIX: @ENUMPREFIX@ 1003s # enumsince: @enumsince@ 1003s # type: @type@ 1003s # Type: @Type@ 1003s # TYPE: @TYPE@ 1003s # /*** END value-header ***/ 1003s # 1003s # /*** BEGIN value-production ***/ 1003s # value-production 1003s # VALUENAME: @VALUENAME@ 1003s # valuenick: @valuenick@ 1003s # valuenum: @valuenum@ 1003s # type: @type@ 1003s # Type: @Type@ 1003s # TYPE: @TYPE@ 1003s # /*** END value-production ***/ 1003s # 1003s # /*** BEGIN value-tail ***/ 1003s # value-tail 1003s # EnumName: @EnumName@ 1003s # enum_name: @enum_name@ 1003s # ENUMNAME: @ENUMNAME@ 1003s # ENUMSHORT: @ENUMSHORT@ 1003s # ENUMPREFIX: @ENUMPREFIX@ 1003s # enumsince: @enumsince@ 1003s # type: @type@ 1003s # Type: @Type@ 1003s # TYPE: @TYPE@ 1003s # /*** END value-tail ***/ 1003s # 1003s # /*** BEGIN comment ***/ 1003s # comment 1003s # comment: @comment@ 1003s # /*** END comment ***/ 1003s # 1003s # /*** BEGIN file-tail ***/ 1003s # file-tail 1003s # /*** END file-tail ***/ 1003s # 1003s # Response file contains: --template /tmp/tmp56ex1brq/tmpcazyfu6w.template /tmp/tmp56ex1brq/tmpullsph_c.h 1003s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp56ex1brq/tmpt4z94snu'] 1003s # Return code: 0 1003s # Output: 1003s # comment 1003s # 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. 1003s # 1003s # 1003s # file-header 1003s # file-production 1003s # filename: /tmp/tmp56ex1brq/tmpullsph_c.h 1003s # basename: tmpullsph_c.h 1003s # enumeration-production 1003s # EnumName: QmiWmsMessageProtocol 1003s # enum_name: qmi_wms_message_protocol 1003s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1003s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1003s # ENUMPREFIX: QMI 1003s # enumsince: 1.0 1003s # type: enum 1003s # Type: Enum 1003s # TYPE: ENUM 1003s # value-header 1003s # EnumName: QmiWmsMessageProtocol 1003s # enum_name: qmi_wms_message_protocol 1003s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1003s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1003s # ENUMPREFIX: QMI 1003s # enumsince: 1.0 1003s # type: enum 1003s # Type: Enum 1003s # TYPE: ENUM 1003s # value-production 1003s # VALUENAME: QMI_WMS_MESSAGE_PROTOCOL_CDMA 1003s # valuenick: cdma 1003s # valuenum: 0 1003s # type: enum 1003s # Type: Enum 1003s # TYPE: ENUM 1003s # value-tail 1003s # EnumName: QmiWmsMessageProtocol 1003s # enum_name: qmi_wms_message_protocol 1003s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1003s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1003s # ENUMPREFIX: QMI 1003s # enumsince: 1.0 1003s # type: enum 1003s # Type: Enum 1003s # TYPE: ENUM 1003s # file-tail 1003s # 1003s # comment 1003s # comment: Generated data ends here 1003s # Error: 1003s ok 36 __main__.TestRspMkenums.test_with_double_quotes 1003s # glib-mkenums: /usr/bin/glib-mkenums 1003s # tmpdir: /tmp/tmpk7guuz06 1003s # rspfile: True 1003s # /tmp/tmpk7guuz06/tmpdufgyay8.h: 1003s # typedef enum { 1003s # FOO_VALUE /*< nick="eek, a comma" >*/ 1003s # } Foo; 1003s # 1003s # /tmp/tmpk7guuz06/tmpe8yigu9b.template: 1003s # /*** BEGIN file-header ***/ 1003s # file-header 1003s # /*** END file-header ***/ 1003s # 1003s # /*** BEGIN file-production ***/ 1003s # file-production 1003s # filename: @filename@ 1003s # basename: @basename@ 1003s # /*** END file-production ***/ 1003s # 1003s # /*** BEGIN enumeration-production ***/ 1003s # enumeration-production 1003s # EnumName: @EnumName@ 1003s # enum_name: @enum_name@ 1003s # ENUMNAME: @ENUMNAME@ 1003s # ENUMSHORT: @ENUMSHORT@ 1003s # ENUMPREFIX: @ENUMPREFIX@ 1003s # enumsince: @enumsince@ 1003s # type: @type@ 1003s # Type: @Type@ 1003s # TYPE: @TYPE@ 1003s # /*** END enumeration-production ***/ 1003s # 1003s # /*** BEGIN value-header ***/ 1003s # value-header 1003s # EnumName: @EnumName@ 1003s # enum_name: @enum_name@ 1003s # ENUMNAME: @ENUMNAME@ 1003s # ENUMSHORT: @ENUMSHORT@ 1003s # ENUMPREFIX: @ENUMPREFIX@ 1003s # enumsince: @enumsince@ 1003s # type: @type@ 1003s # Type: @Type@ 1003s # TYPE: @TYPE@ 1003s # /*** END value-header ***/ 1003s # 1003s # /*** BEGIN value-production ***/ 1003s # value-production 1003s # VALUENAME: @VALUENAME@ 1003s # valuenick: @valuenick@ 1003s # valuenum: @valuenum@ 1003s # type: @type@ 1003s # Type: @Type@ 1003s # TYPE: @TYPE@ 1003s # /*** END value-production ***/ 1003s # 1003s # /*** BEGIN value-tail ***/ 1003s # value-tail 1003s # EnumName: @EnumName@ 1003s # enum_name: @enum_name@ 1003s # ENUMNAME: @ENUMNAME@ 1003s # ENUMSHORT: @ENUMSHORT@ 1003s # ENUMPREFIX: @ENUMPREFIX@ 1003s # enumsince: @enumsince@ 1003s # type: @type@ 1003s # Type: @Type@ 1003s # TYPE: @TYPE@ 1003s # /*** END value-tail ***/ 1003s # 1003s # /*** BEGIN comment ***/ 1003s # comment 1003s # comment: @comment@ 1003s # /*** END comment ***/ 1003s # 1003s # /*** BEGIN file-tail ***/ 1003s # file-tail 1003s # /*** END file-tail ***/ 1003s # 1003s # Response file contains: --template /tmp/tmpk7guuz06/tmpe8yigu9b.template /tmp/tmpk7guuz06/tmpdufgyay8.h 1003s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpk7guuz06/tmphut58q0_'] 1003s # Return code: 0 1003s # Output: 1003s # comment 1003s # 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. 1003s # 1003s # 1003s # file-header 1003s # file-production 1003s # filename: /tmp/tmpk7guuz06/tmpdufgyay8.h 1003s # basename: tmpdufgyay8.h 1003s # enumeration-production 1003s # EnumName: Foo 1003s # enum_name: foo_ 1003s # ENUMNAME: FOO_ 1003s # ENUMSHORT: 1003s # ENUMPREFIX: FOO 1003s # enumsince: 1003s # type: enum 1003s # Type: Enum 1003s # TYPE: ENUM 1003s # value-header 1003s # EnumName: Foo 1003s # enum_name: foo_ 1003s # ENUMNAME: FOO_ 1003s # ENUMSHORT: 1003s # ENUMPREFIX: FOO 1003s # enumsince: 1003s # type: enum 1003s # Type: Enum 1003s # TYPE: ENUM 1003s # value-production 1003s # VALUENAME: FOO_VALUE 1003s # valuenick: eek, a comma 1003s # valuenum: 0 1003s # type: enum 1003s # Type: Enum 1003s # TYPE: ENUM 1003s # value-tail 1003s # EnumName: Foo 1003s # enum_name: foo_ 1003s # ENUMNAME: FOO_ 1003s # ENUMSHORT: 1003s # ENUMPREFIX: FOO 1003s # enumsince: 1003s # type: enum 1003s # Type: Enum 1003s # TYPE: ENUM 1003s # file-tail 1003s # 1003s # comment 1003s # comment: Generated data ends here 1003s # Error: 1003s 1..36 1003s ok - glib/mkenums.py.test 1003s # Running test: glib/gobject-query.py.test 1003s TAP version 13 1003s ok 1 __main__.TestGobjectQuery.test_froots 1003s # gobject-query: /usr/bin/gobject-query 1003s # tmpdir: /tmp/tmph1izvqog 1003s # Running: ['/usr/bin/gobject-query', 'froots'] 1003s # Return code: 0 1003s # Output: 1003s # ├void 1003s # ├GInterface 1003s # │ â””GTypePlugin 1003s # ├gchar 1003s # ├guchar 1003s # ├gboolean 1003s # ├gint 1003s # ├guint 1003s # ├glong 1003s # ├gulong 1003s # ├gint64 1003s # ├guint64 1003s # ├GEnum 1003s # ├GFlags 1003s # ├gfloat 1003s # ├gdouble 1003s # ├gchararray 1003s # ├gpointer 1003s # │ â””GType 1003s # ├GBoxed 1003s # │ â””GValueArray 1003s # ├GParam 1003s # │ ├GParamChar 1003s # │ ├GParamUChar 1003s # │ ├GParamBoolean 1003s # │ ├GParamInt 1003s # │ ├GParamUInt 1003s # │ ├GParamLong 1003s # │ ├GParamULong 1003s # │ ├GParamInt64 1003s # │ ├GParamUInt64 1003s # │ ├GParamUnichar 1003s # │ ├GParamEnum 1003s # │ ├GParamFlags 1003s # │ ├GParamFloat 1003s # │ ├GParamDouble 1003s # │ ├GParamString 1003s # │ ├GParamParam 1003s # │ ├GParamBoxed 1003s # │ ├GParamPointer 1003s # │ ├GParamValueArray 1003s # │ ├GParamObject 1003s # │ ├GParamOverride 1003s # │ ├GParamGType 1003s # │ â””GParamVariant 1003s # ├GObject 1003s # â””GVariant 1003s # Error: 1003s ok 2 __main__.TestGobjectQuery.test_help 1003s # gobject-query: /usr/bin/gobject-query 1003s # tmpdir: /tmp/tmpa52x1pxk 1003s # Running: ['/usr/bin/gobject-query', '--help'] 1003s # Return code: 0 1003s # Output: 1003s # usage: gobject-query [-r ] [-{i|b} ""] [-s #] [-{h|x|y}] 1003s # -r specify root type 1003s # -n don't descend type tree 1003s # -h show help 1003s # -b specify indent string 1003s # -i specify incremental indent string 1003s # -s specify line spacing 1003s # qualifiers: 1003s # froots iterate over fundamental roots 1003s # tree print type tree 1003s # Error: 1003s ok 3 __main__.TestGobjectQuery.test_tree 1003s # gobject-query: /usr/bin/gobject-query 1003s # tmpdir: /tmp/tmp3xvbxm22 1003s # Running: ['/usr/bin/gobject-query', 'tree'] 1003s # Return code: 0 1003s # Output: 1003s # GObject 1003s # Error: 1003s ok 4 __main__.TestGobjectQuery.test_version 1003s # gobject-query: /usr/bin/gobject-query 1003s # tmpdir: /tmp/tmple9dgich 1003s # Running: ['/usr/bin/gobject-query', '--version'] 1003s # Return code: 0 1003s # Output: 1003s # 2.84.1 1003s # Error: 1003s 1..4 1003s ok - glib/gobject-query.py.test 1003s # Running test: glib/application-command-line.test 1003s ok - glib/application-command-line.test 1003s TAP version 14 1003s # random seed: R02S84a9787d3d43d0d7e23e494e03c52499 1003s 1..1 1003s # Start of application-command-line tests 1003s ok 1 /application-command-line/basic-properties 1003s # End of application-command-line tests 1003s # Running test: glib/markup-parse.test 1003s TAP version 14 1003s # random seed: R02S573707cbc328a8e407fd3e705bb48d95 1003s 1..71 1003s # Start of markup tests 1003s # Start of parse tests 1003s ok 1 /markup/parse/fail-46.gmarkup 1003s ok 2 /markup/parse/fail-5.gmarkup 1003s ok 3 /markup/parse/fail-15.gmarkup 1003s ok 4 /markup/parse/fail-39.gmarkup 1003s ok 5 /markup/parse/fail-38.gmarkup 1003s ok 6 /markup/parse/fail-48.gmarkup 1003s ok 7 /markup/parse/valid-6.gmarkup 1003s ok 8 /markup/parse/fail-25.gmarkup 1003s ok 9 /markup/parse/fail-40.gmarkup 1003s ok 10 /markup/parse/fail-2.gmarkup 1003s ok 11 /markup/parse/valid-11.gmarkup 1003s ok 12 /markup/parse/fail-10.gmarkup 1003s ok 13 /markup/parse/fail-50.gmarkup 1003s ok 14 /markup/parse/fail-3.gmarkup 1003s ok 15 /markup/parse/fail-33.gmarkup 1003s ok 16 /markup/parse/fail-32.gmarkup 1003s ok 17 /markup/parse/fail-22.gmarkup 1003s ok 18 /markup/parse/valid-10.gmarkup 1003s ok 19 /markup/parse/fail-14.gmarkup 1003s ok 20 /markup/parse/fail-27.gmarkup 1003s ok 21 /markup/parse/fail-36.gmarkup 1003s ok 22 /markup/parse/fail-35.gmarkup 1003s ok 23 /markup/parse/fail-34.gmarkup 1003s ok 24 /markup/parse/fail-1.gmarkup 1003s ok 25 /markup/parse/valid-17.gmarkup 1003s ok 26 /markup/parse/fail-12.gmarkup 1003s ok 27 /markup/parse/fail-52.gmarkup 1003s ok 28 /markup/parse/fail-31.gmarkup 1003s ok 29 /markup/parse/valid-15.gmarkup 1003s ok 30 /markup/parse/fail-49.gmarkup 1003s ok 31 /markup/parse/fail-54.gmarkup 1003s ok 32 /markup/parse/fail-23.gmarkup 1003s ok 33 /markup/parse/fail-53.gmarkup 1003s ok 34 /markup/parse/fail-51.gmarkup 1003s ok 35 /markup/parse/fail-47.gmarkup 1003s ok 36 /markup/parse/fail-20.gmarkup 1003s ok 37 /markup/parse/fail-21.gmarkup 1003s ok 38 /markup/parse/valid-2.gmarkup 1003s ok 39 /markup/parse/fail-30.gmarkup 1003s ok 40 /markup/parse/fail-41.gmarkup 1003s ok 41 /markup/parse/valid-4.gmarkup 1003s ok 42 /markup/parse/fail-7.gmarkup 1003s ok 43 /markup/parse/fail-42.gmarkup 1003s ok 44 /markup/parse/fail-44.gmarkup 1003s ok 45 /markup/parse/valid-3.gmarkup 1003s ok 46 /markup/parse/valid-16.gmarkup 1003s ok 47 /markup/parse/fail-4.gmarkup 1003s ok 48 /markup/parse/valid-8.gmarkup 1003s ok 49 /markup/parse/fail-16.gmarkup 1003s ok 50 /markup/parse/fail-9.gmarkup 1003s ok 51 /markup/parse/fail-45.gmarkup 1003s ok 52 /markup/parse/valid-12.gmarkup 1003s ok 53 /markup/parse/fail-11.gmarkup 1003s ok 54 /markup/parse/fail-37.gmarkup 1003s ok 55 /markup/parse/fail-43.gmarkup 1003s ok 56 /markup/parse/fail-24.gmarkup 1003s ok 57 /markup/parse/fail-18.gmarkup 1003s ok 58 /markup/parse/valid-5.gmarkup 1003s ok 59 /markup/parse/fail-6.gmarkup 1003s ok 60 /markup/parse/fail-26.gmarkup 1003s ok 61 /markup/parse/valid-9.gmarkup 1003s ok 62 /markup/parse/fail-8.gmarkup 1003s ok 63 /markup/parse/fail-28.gmarkup 1003s ok 64 /markup/parse/valid-14.gmarkup 1003s ok 65 /markup/parse/fail-17.gmarkup 1003s ok 66 /markup/parse/fail-19.gmarkup 1003s ok 67 /markup/parse/valid-1.gmarkup 1003s ok 68 /markup/parse/valid-13.gmarkup 1003s ok 69 /markup/parse/fail-13.gmarkup 1003s ok 70 /markup/parse/valid-7.gmarkup 1003s ok - glib/markup-parse.test 1003s # Running test: glib/utils.test 1003s ok 71 /markup/parse/fail-29.gmarkup 1003s # End of parse tests 1003s # End of markup tests 1003s TAP version 14 1003s # random seed: R02Sa2297b0a622914b9b60102870878d21b 1003s 1..41 1003s # Start of utils tests 1003s ok 1 /utils/language-names 1003s ok 2 /utils/locale-variants 1003s ok 3 /utils/version 1003s ok 4 /utils/appname 1003s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1003s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1003s ok 5 /utils/prgname-thread-safety 1003s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1003s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1003s ok 6 /utils/tmpdir 1003s ok 7 /utils/basic_bits 1003s ok 8 /utils/bits 1003s ok 9 /utils/swap 1003s ok 10 /utils/find-program 1003s ok 11 /utils/find-program-for-path 1003s ok 12 /utils/debug 1003s ok 13 /utils/codeset 1003s ok 14 /utils/codeset2 1003s ok 15 /utils/console-charset 1003s ok 16 /utils/gettext 1003s ok 17 /utils/username 1003s ok 18 /utils/realname 1003s ok 19 /utils/hostname 1003s ok 20 /utils/xdgdirs 1003s ok 21 /utils/specialdir 1003s # NAME: Ubuntu 1003s ok 22 /utils/os-info 1003s ok 23 /utils/clear-pointer 1003s ok 24 /utils/clear-pointer-cast 1003s ok 25 /utils/take-pointer 1003s ok 26 /utils/clear-source 1003s ok 27 /utils/misc-mem 1003s # /utils/aligned-mem summary: Aligned memory allocator 1003s # Alignment must not be zero 1003s # Alignment must be a power of two 1003s # Alignment must be a multiple of sizeof(void*) 1003s ok 28 /utils/aligned-mem 1003s # /utils/free-sized summary: Check that g_free_sized() works 1003s ok 29 /utils/free-sized 1003s ok 30 /utils/nullify 1003s ok - glib/utils.test 1003s # Running test: glib/thread-pool-slow.test 1003s ok 31 /utils/atexit 1003s ok 32 /utils/check-setuid 1003s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1003s ok 33 /utils/int-limits 1003s ok 34 /utils/clear-list 1003s ok 35 /utils/clear-slist 1003s ok 36 /utils/steal-handle-id 1003s # Start of specialdir tests 1003s ok 37 /utils/specialdir/desktop 1003s # End of specialdir tests 1003s # Start of clear-pointer tests 1003s ok 38 /utils/clear-pointer/side-effects 1003s # End of clear-pointer tests 1003s # Start of aligned-mem tests 1003s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1003s ok 39 /utils/aligned-mem/alignment 1003s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1003s ok 40 /utils/aligned-mem/zeroed 1003s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1003s ok 41 /utils/aligned-mem/free-sized 1003s # Start of subprocess tests 1003s # End of subprocess tests 1003s # End of aligned-mem tests 1003s # End of utils tests 1003s TAP version 14 1003s # random seed: R02S26d32890c97dfaee0a3bc3c6925e10ac 1003s 1..7 1003s # Start of threadpool tests 1003s ok 1 /threadpool/functions 1004s ok 2 /threadpool/stop-unused 1004s # slow test /threadpool/stop-unused executed in 0.51 secs 1004s ok 3 /threadpool/pools 1004s # [unsorted] ===> pushed new thread with id:83, number of threads:1, unprocessed:1 1004s # [unsorted] ===> pushed new thread with id:79, number of threads:2, unprocessed:2 1004s # [unsorted] ===> pushed new thread with id:29, number of threads:3, unprocessed:3 1004s # [unsorted] ===> pushed new thread with id:36, number of threads:4, unprocessed:4 1004s # [unsorted] ===> pushed new thread with id:31, number of threads:5, unprocessed:4 1004s # [unsorted] ===> pushed new thread with id:83, number of threads:6, unprocessed:5 1004s # [unsorted] ===> pushed new thread with id:80, number of threads:7, unprocessed:6 1004s # [unsorted] ===> pushed new thread with id:39, number of threads:8, unprocessed:7 1004s # [unsorted] ===> pushed new thread with id:75, number of threads:9, unprocessed:8 1004s # [unsorted] ===> pushed new thread with id:75, number of threads:10, unprocessed:9 1004s # [unsorted] ===> pushed new thread with id:44, number of threads:10, unprocessed:10 1004s # [unsorted] ===> pushed new thread with id:88, number of threads:10, unprocessed:11 1004s # [unsorted] ===> pushed new thread with id:15, number of threads:10, unprocessed:12 1004s # [unsorted] ===> pushed new thread with id:6, number of threads:10, unprocessed:13 1004s # [unsorted] ===> pushed new thread with id:22, number of threads:10, unprocessed:14 1004s # [unsorted] ===> pushed new thread with id:65, number of threads:10, unprocessed:15 1004s # [unsorted] ===> pushed new thread with id:46, number of threads:10, unprocessed:16 1004s # [unsorted] ===> pushed new thread with id:87, number of threads:10, unprocessed:17 1004s # [unsorted] ===> pushed new thread with id:36, number of threads:10, unprocessed:18 1004s # [unsorted] ===> pushed new thread with id:99, number of threads:10, unprocessed:19 1004s # [unsorted] ===> pushed new thread with id:36, number of threads:10, unprocessed:20 1004s # [unsorted] ===> pushed new thread with id:35, number of threads:10, unprocessed:21 1004s # [unsorted] ===> pushed new thread with id:84, number of threads:10, unprocessed:22 1004s # [unsorted] ===> pushed new thread with id:79, number of threads:10, unprocessed:23 1004s # [unsorted] ===> pushed new thread with id:27, number of threads:10, unprocessed:24 1004s # [unsorted] ===> pushed new thread with id:80, number of threads:10, unprocessed:25 1004s # [unsorted] ===> pushed new thread with id:18, number of threads:10, unprocessed:25 1004s # [unsorted] ===> pushed new thread with id:98, number of threads:10, unprocessed:26 1004s # [unsorted] ===> pushed new thread with id:23, number of threads:10, unprocessed:27 1004s # [unsorted] ===> pushed new thread with id:81, number of threads:10, unprocessed:27 1004s # [unsorted] ===> pushed new thread with id:72, number of threads:10, unprocessed:28 1004s # [unsorted] ===> pushed new thread with id:28, number of threads:10, unprocessed:28 1004s # [unsorted] ===> pushed new thread with id:98, number of threads:10, unprocessed:28 1004s # [unsorted] ===> pushed new thread with id:68, number of threads:10, unprocessed:28 1004s # [unsorted] ===> pushed new thread with id:33, number of threads:10, unprocessed:29 1004s # [unsorted] ===> pushed new thread with id:13, number of threads:10, unprocessed:30 1004s # [unsorted] ===> pushed new thread with id:45, number of threads:10, unprocessed:31 1004s # [unsorted] ===> pushed new thread with id:16, number of threads:10, unprocessed:32 1004s # [unsorted] ===> pushed new thread with id:20, number of threads:10, unprocessed:31 1004s # [unsorted] ===> pushed new thread with id:17, number of threads:10, unprocessed:31 1004s # [unsorted] ===> pushed new thread with id:9, number of threads:10, unprocessed:32 1004s # [unsorted] ===> pushed new thread with id:73, number of threads:10, unprocessed:32 1004s # [unsorted] ===> pushed new thread with id:25, number of threads:10, unprocessed:33 1004s # [unsorted] ===> pushed new thread with id:61, number of threads:10, unprocessed:34 1004s # [unsorted] ===> pushed new thread with id:42, number of threads:10, unprocessed:35 1004s # [unsorted] ===> pushed new thread with id:58, number of threads:10, unprocessed:36 1004s # [unsorted] ===> pushed new thread with id:30, number of threads:10, unprocessed:37 1004s # [unsorted] ===> pushed new thread with id:36, number of threads:10, unprocessed:38 1004s # [unsorted] ===> pushed new thread with id:6, number of threads:10, unprocessed:39 1004s # [unsorted] ===> pushed new thread with id:50, number of threads:10, unprocessed:40 1004s # [unsorted] ===> pushed new thread with id:98, number of threads:10, unprocessed:41 1004s # [unsorted] ===> pushed new thread with id:31, number of threads:10, unprocessed:42 1004s # [unsorted] ===> pushed new thread with id:55, number of threads:10, unprocessed:43 1004s # [unsorted] ===> pushed new thread with id:14, number of threads:10, unprocessed:44 1004s # [unsorted] ===> pushed new thread with id:20, number of threads:10, unprocessed:45 1004s # [unsorted] ===> pushed new thread with id:53, number of threads:10, unprocessed:46 1004s # [unsorted] ===> pushed new thread with id:78, number of threads:10, unprocessed:47 1004s # [unsorted] ===> pushed new thread with id:12, number of threads:10, unprocessed:48 1004s # [unsorted] ===> pushed new thread with id:52, number of threads:10, unprocessed:49 1004s # [unsorted] ===> pushed new thread with id:7, number of threads:10, unprocessed:50 1004s # [unsorted] ===> pushed new thread with id:2, number of threads:10, unprocessed:51 1004s # [unsorted] ===> pushed new thread with id:61, number of threads:10, unprocessed:52 1004s # [unsorted] ===> pushed new thread with id:90, number of threads:10, unprocessed:53 1004s # [unsorted] ===> pushed new thread with id:100, number of threads:10, unprocessed:54 1004s # [unsorted] ===> pushed new thread with id:75, number of threads:10, unprocessed:55 1004s # [unsorted] ===> pushed new thread with id:69, number of threads:10, unprocessed:56 1004s # [unsorted] ===> pushed new thread with id:79, number of threads:10, unprocessed:57 1004s # [unsorted] ===> pushed new thread with id:63, number of threads:10, unprocessed:58 1004s # [unsorted] ===> pushed new thread with id:7, number of threads:10, unprocessed:59 1004s # [unsorted] ===> pushed new thread with id:57, number of threads:10, unprocessed:60 1004s # [unsorted] ===> pushed new thread with id:48, number of threads:10, unprocessed:61 1004s # [unsorted] ===> pushed new thread with id:3, number of threads:10, unprocessed:62 1004s # [unsorted] ===> pushed new thread with id:34, number of threads:10, unprocessed:63 1004s # [unsorted] ===> pushed new thread with id:10, number of threads:10, unprocessed:64 1004s # [unsorted] ===> pushed new thread with id:17, number of threads:10, unprocessed:65 1004s # [unsorted] ===> pushed new thread with id:60, number of threads:10, unprocessed:66 1004s # [unsorted] ===> pushed new thread with id:68, number of threads:10, unprocessed:67 1004s # [unsorted] ===> pushed new thread with id:38, number of threads:10, unprocessed:68 1004s # [unsorted] ===> pushed new thread with id:34, number of threads:10, unprocessed:69 1004s # [unsorted] ===> pushed new thread with id:95, number of threads:10, unprocessed:70 1004s # [unsorted] ===> pushed new thread with id:10, number of threads:10, unprocessed:71 1004s # [unsorted] ===> pushed new thread with id:27, number of threads:10, unprocessed:72 1004s # [unsorted] ===> pushed new thread with id:71, number of threads:10, unprocessed:73 1004s # [unsorted] ===> pushed new thread with id:88, number of threads:10, unprocessed:74 1004s # [unsorted] ===> pushed new thread with id:67, number of threads:10, unprocessed:75 1004s # [unsorted] ===> pushed new thread with id:48, number of threads:10, unprocessed:76 1004s # [unsorted] ===> pushed new thread with id:99, number of threads:10, unprocessed:77 1004s # [unsorted] ===> pushed new thread with id:34, number of threads:10, unprocessed:78 1004s # [unsorted] ===> pushed new thread with id:47, number of threads:10, unprocessed:79 1004s # [unsorted] ===> pushed new thread with id:39, number of threads:10, unprocessed:80 1004s # [unsorted] ===> pushed new thread with id:22, number of threads:10, unprocessed:81 1004s # [unsorted] ===> pushed new thread with id:63, number of threads:10, unprocessed:82 1004s # [unsorted] ===> pushed new thread with id:11, number of threads:10, unprocessed:83 1004s # [unsorted] ===> pushed new thread with id:42, number of threads:10, unprocessed:84 1004s # [unsorted] ===> pushed new thread with id:75, number of threads:10, unprocessed:85 1004s # [unsorted] ===> pushed new thread with id:83, number of threads:10, unprocessed:86 1004s # [unsorted] ===> pushed new thread with id:40, number of threads:10, unprocessed:87 1004s # [unsorted] ===> pushed new thread with id:61, number of threads:10, unprocessed:88 1004s # [unsorted] ===> pushed new thread with id:25, number of threads:10, unprocessed:89 1004s # [unsorted] ===> pushed new thread with id:100, number of threads:10, unprocessed:90 1004s ok 4 /threadpool/no-sort 1004s # [ sorted] ===> pushed new thread with id:69, number of threads:0, unprocessed:1 1004s # [ sorted] ===> pushed new thread with id:34, number of threads:0, unprocessed:2 1004s # [ sorted] ===> pushed new thread with id:55, number of threads:0, unprocessed:3 1004s # [ sorted] ===> pushed new thread with id:39, number of threads:0, unprocessed:4 1004s # [ sorted] ===> pushed new thread with id:49, number of threads:0, unprocessed:5 1004s # [ sorted] ===> pushed new thread with id:20, number of threads:0, unprocessed:6 1004s # [ sorted] ===> pushed new thread with id:90, number of threads:0, unprocessed:7 1004s # [ sorted] ===> pushed new thread with id:32, number of threads:0, unprocessed:8 1004s # [ sorted] ===> pushed new thread with id:42, number of threads:0, unprocessed:9 1004s # [ sorted] ===> pushed new thread with id:17, number of threads:0, unprocessed:10 1004s # [ sorted] ===> pushed new thread with id:99, number of threads:0, unprocessed:11 1004s # [ sorted] ===> pushed new thread with id:9, number of threads:0, unprocessed:12 1004s # [ sorted] ===> pushed new thread with id:54, number of threads:0, unprocessed:13 1004s # [ sorted] ===> pushed new thread with id:52, number of threads:0, unprocessed:14 1004s # [ sorted] ===> pushed new thread with id:89, number of threads:0, unprocessed:15 1004s # [ sorted] ===> pushed new thread with id:2, number of threads:0, unprocessed:16 1004s # [ sorted] ===> pushed new thread with id:11, number of threads:0, unprocessed:17 1004s # [ sorted] ===> pushed new thread with id:28, number of threads:0, unprocessed:18 1004s # [ sorted] ===> pushed new thread with id:19, number of threads:0, unprocessed:19 1004s # [ sorted] ===> pushed new thread with id:47, number of threads:0, unprocessed:20 1004s # [ sorted] ===> pushed new thread with id:31, number of threads:0, unprocessed:21 1004s # [ sorted] ===> pushed new thread with id:43, number of threads:0, unprocessed:22 1004s # [ sorted] ===> pushed new thread with id:41, number of threads:0, unprocessed:23 1004s # [ sorted] ===> pushed new thread with id:26, number of threads:0, unprocessed:24 1004s # [ sorted] ===> pushed new thread with id:74, number of threads:0, unprocessed:25 1004s # [ sorted] ===> pushed new thread with id:35, number of threads:0, unprocessed:26 1004s # [ sorted] ===> pushed new thread with id:4, number of threads:0, unprocessed:27 1004s # [ sorted] ===> pushed new thread with id:76, number of threads:0, unprocessed:28 1004s # [ sorted] ===> pushed new thread with id:65, number of threads:0, unprocessed:29 1004s # [ sorted] ===> pushed new thread with id:65, number of threads:0, unprocessed:30 1004s # [ sorted] ===> pushed new thread with id:53, number of threads:0, unprocessed:31 1004s # [ sorted] ===> pushed new thread with id:53, number of threads:0, unprocessed:32 1004s # [ sorted] ===> pushed new thread with id:10, number of threads:0, unprocessed:33 1004s # [ sorted] ===> pushed new thread with id:89, number of threads:0, unprocessed:34 1004s # [ sorted] ===> pushed new thread with id:66, number of threads:0, unprocessed:35 1004s # [ sorted] ===> pushed new thread with id:70, number of threads:0, unprocessed:36 1004s # [ sorted] ===> pushed new thread with id:99, number of threads:0, unprocessed:37 1004s # [ sorted] ===> pushed new thread with id:55, number of threads:0, unprocessed:38 1004s # [ sorted] ===> pushed new thread with id:29, number of threads:0, unprocessed:39 1004s # [ sorted] ===> pushed new thread with id:89, number of threads:0, unprocessed:40 1004s # [ sorted] ===> pushed new thread with id:40, number of threads:0, unprocessed:41 1004s # [ sorted] ===> pushed new thread with id:65, number of threads:0, unprocessed:42 1004s # [ sorted] ===> pushed new thread with id:22, number of threads:0, unprocessed:43 1004s # [ sorted] ===> pushed new thread with id:59, number of threads:0, unprocessed:44 1004s # [ sorted] ===> pushed new thread with id:94, number of threads:0, unprocessed:45 1004s # [ sorted] ===> pushed new thread with id:83, number of threads:0, unprocessed:46 1004s # [ sorted] ===> pushed new thread with id:43, number of threads:0, unprocessed:47 1004s # [ sorted] ===> pushed new thread with id:76, number of threads:0, unprocessed:48 1004s # [ sorted] ===> pushed new thread with id:91, number of threads:0, unprocessed:49 1004s # [ sorted] ===> pushed new thread with id:10, number of threads:0, unprocessed:50 1004s # [ sorted] ===> pushed new thread with id:39, number of threads:0, unprocessed:51 1004s # [ sorted] ===> pushed new thread with id:35, number of threads:0, unprocessed:52 1004s # [ sorted] ===> pushed new thread with id:28, number of threads:0, unprocessed:53 1004s # [ sorted] ===> pushed new thread with id:36, number of threads:0, unprocessed:54 1004s # [ sorted] ===> pushed new thread with id:75, number of threads:0, unprocessed:55 1004s # [ sorted] ===> pushed new thread with id:54, number of threads:0, unprocessed:56 1004s # [ sorted] ===> pushed new thread with id:99, number of threads:0, unprocessed:57 1004s # [ sorted] ===> pushed new thread with id:72, number of threads:0, unprocessed:58 1004s # [ sorted] ===> pushed new thread with id:74, number of threads:0, unprocessed:59 1004s # [ sorted] ===> pushed new thread with id:81, number of threads:0, unprocessed:60 1004s # [ sorted] ===> pushed new thread with id:36, number of threads:0, unprocessed:61 1004s # [ sorted] ===> pushed new thread with id:15, number of threads:0, unprocessed:62 1004s # [ sorted] ===> pushed new thread with id:80, number of threads:0, unprocessed:63 1004s # [ sorted] ===> pushed new thread with id:44, number of threads:0, unprocessed:64 1004s # [ sorted] ===> pushed new thread with id:83, number of threads:0, unprocessed:65 1004s # [ sorted] ===> pushed new thread with id:26, number of threads:0, unprocessed:66 1004s # [ sorted] ===> pushed new thread with id:15, number of threads:0, unprocessed:67 1004s # [ sorted] ===> pushed new thread with id:75, number of threads:0, unprocessed:68 1004s # [ sorted] ===> pushed new thread with id:52, number of threads:0, unprocessed:69 1004s # [ sorted] ===> pushed new thread with id:58, number of threads:0, unprocessed:70 1004s # [ sorted] ===> pushed new thread with id:43, number of threads:0, unprocessed:71 1004s # [ sorted] ===> pushed new thread with id:8, number of threads:0, unprocessed:72 1004s # [ sorted] ===> pushed new thread with id:42, number of threads:0, unprocessed:73 1004s # [ sorted] ===> pushed new thread with id:83, number of threads:0, unprocessed:74 1004s # [ sorted] ===> pushed new thread with id:89, number of threads:0, unprocessed:75 1004s # [ sorted] ===> pushed new thread with id:80, number of threads:0, unprocessed:76 1004s # [ sorted] ===> pushed new thread with id:53, number of threads:0, unprocessed:77 1004s # [ sorted] ===> pushed new thread with id:36, number of threads:0, unprocessed:78 1004s # [ sorted] ===> pushed new thread with id:57, number of threads:0, unprocessed:79 1004s # [ sorted] ===> pushed new thread with id:53, number of threads:0, unprocessed:80 1004s # [ sorted] ===> pushed new thread with id:10, number of threads:0, unprocessed:81 1004s # [ sorted] ===> pushed new thread with id:58, number of threads:0, unprocessed:82 1004s # [ sorted] ===> pushed new thread with id:80, number of threads:0, unprocessed:83 1004s # [ sorted] ===> pushed new thread with id:81, number of threads:0, unprocessed:84 1004s # [ sorted] ===> pushed new thread with id:4, number of threads:0, unprocessed:85 1004s # [ sorted] ===> pushed new thread with id:94, number of threads:0, unprocessed:86 1004s # [ sorted] ===> pushed new thread with id:53, number of threads:0, unprocessed:87 1004s # [ sorted] ===> pushed new thread with id:63, number of threads:0, unprocessed:88 1004s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:89 1004s # [ sorted] ===> pushed new thread with id:42, number of threads:0, unprocessed:90 1004s # [ sorted] ===> pushed new thread with id:9, number of threads:0, unprocessed:91 1004s # [ sorted] ===> pushed new thread with id:50, number of threads:0, unprocessed:92 1004s # [ sorted] ===> pushed new thread with id:6, number of threads:0, unprocessed:93 1004s # [ sorted] ===> pushed new thread with id:67, number of threads:0, unprocessed:94 1004s # [ sorted] ===> pushed new thread with id:66, number of threads:0, unprocessed:95 1004s # [ sorted] ===> pushed new thread with id:63, number of threads:0, unprocessed:96 1004s # [ sorted] ===> pushed new thread with id:14, number of threads:0, unprocessed:97 1004s # [ sorted] ===> pushed new thread with id:7, number of threads:0, unprocessed:98 1004s # [ sorted] ===> pushed new thread with id:15, number of threads:0, unprocessed:99 1004s # [ sorted] ===> pushed new thread with id:88, number of threads:0, unprocessed:100 1004s # Starting thread pool processing 1004s ok 5 /threadpool/sort 1004s ok 6 /threadpool/stop-unused-multiple 1004s # slow test /threadpool/stop-unused-multiple executed in 0.51 secs 1004s # Pool idle thread count: 0, unprocessed jobs: 40 1005s # Pool idle thread count: 0, unprocessed jobs: 0 1005s # Pool idle thread count: 0, unprocessed jobs: 0 1005s # Pool idle thread count: 10, unprocessed jobs: 0 1005s # Pool idle thread count: 10, unprocessed jobs: 0 1006s # Pool idle thread count: 10, unprocessed jobs: 0 1006s # Pool idle thread count: 10, unprocessed jobs: 0 1006s # Pool idle thread count: 10, unprocessed jobs: 0 1006s # Pool idle thread count: 10, unprocessed jobs: 0 1007s # Executing: glib/thread-pool-slow.test 1007s # Pool idle thread count: 10, unprocessed jobs: 0 1007s # Pool idle thread count: 10, unprocessed jobs: 0 1007s # Pool idle thread count: 10, unprocessed jobs: 0 1007s # Pool idle thread count: 10, unprocessed jobs: 0 1008s # Pool idle thread count: 10, unprocessed jobs: 0 1008s # Pool idle thread count: 10, unprocessed jobs: 0 1008s # Pool idle thread count: 10, unprocessed jobs: 0 1008s # Pool idle thread count: 10, unprocessed jobs: 0 1009s # Pool idle thread count: 10, unprocessed jobs: 0 1009s # Pool idle thread count: 10, unprocessed jobs: 0 1009s # Pool idle thread count: 10, unprocessed jobs: 0 1009s # Pool idle thread count: 10, unprocessed jobs: 0 1010s # Pool idle thread count: 10, unprocessed jobs: 0 1010s # Pool idle thread count: 10, unprocessed jobs: 0 1010s # Pool idle thread count: 10, unprocessed jobs: 0 1010s # Pool idle thread count: 10, unprocessed jobs: 0 1011s # Pool idle thread count: 10, unprocessed jobs: 0 1011s # Pool idle thread count: 10, unprocessed jobs: 0 1011s # Pool idle thread count: 10, unprocessed jobs: 0 1011s # Pool idle thread count: 10, unprocessed jobs: 0 1012s # Executing: glib/thread-pool-slow.test 1012s # Pool idle thread count: 10, unprocessed jobs: 0 1012s # Pool idle thread count: 10, unprocessed jobs: 0 1012s # Pool idle thread count: 10, unprocessed jobs: 0 1012s # Pool idle thread count: 10, unprocessed jobs: 0 1013s # Pool idle thread count: 10, unprocessed jobs: 0 1013s # Pool idle thread count: 10, unprocessed jobs: 0 1013s # Pool idle thread count: 10, unprocessed jobs: 2 1013s # Pool idle thread count: 10, unprocessed jobs: 2 1013s # Pool idle thread count: 8, unprocessed jobs: 0 1013s # Pool idle thread count: 8, unprocessed jobs: 0 1014s # Pool idle thread count: 10, unprocessed jobs: 0 1014s # Pool idle thread count: 10, unprocessed jobs: 0 1014s # Pool idle thread count: 10, unprocessed jobs: 0 1014s # Pool idle thread count: 10, unprocessed jobs: 0 1015s # Pool idle thread count: 10, unprocessed jobs: 0 1015s # Pool idle thread count: 10, unprocessed jobs: 0 1015s # Pool idle thread count: 2, unprocessed jobs: 0 1015s # Pool idle thread count: 2, unprocessed jobs: 0 1016s # Pool idle thread count: 2, unprocessed jobs: 0 1016s # Pool idle thread count: 2, unprocessed jobs: 0 1016s # Pool idle thread count: 2, unprocessed jobs: 0 1016s # Pool idle thread count: 2, unprocessed jobs: 0 1017s # Executing: glib/thread-pool-slow.test 1017s # Pool idle thread count: 2, unprocessed jobs: 0 1017s # Pool idle thread count: 2, unprocessed jobs: 0 1017s # Pool idle thread count: 2, unprocessed jobs: 0 1017s # Pool idle thread count: 2, unprocessed jobs: 0 1018s # Pool idle thread count: 2, unprocessed jobs: 0 1018s # Pool idle thread count: 2, unprocessed jobs: 0 1018s # Pool idle thread count: 2, unprocessed jobs: 0 1018s # Pool idle thread count: 2, unprocessed jobs: 0 1019s # Pool idle thread count: 2, unprocessed jobs: 0 1019s # Pool idle thread count: 2, unprocessed jobs: 0 1019s # Pool idle thread count: 2, unprocessed jobs: 0 1019s # Pool idle thread count: 2, unprocessed jobs: 0 1020s # Pool idle thread count: 2, unprocessed jobs: 0 1020s # Pool idle thread count: 2, unprocessed jobs: 0 1020s # Pool idle thread count: 2, unprocessed jobs: 0 1020s # Pool idle thread count: 2, unprocessed jobs: 0 1021s # Pool idle thread count: 2, unprocessed jobs: 0 1021s # Pool idle thread count: 2, unprocessed jobs: 0 1021s # Pool idle thread count: 2, unprocessed jobs: 0 1021s # Pool idle thread count: 2, unprocessed jobs: 0 1022s # Executing: glib/thread-pool-slow.test 1022s # Pool idle thread count: 2, unprocessed jobs: 0 1022s # Pool idle thread count: 2, unprocessed jobs: 0 1022s # Pool idle thread count: 2, unprocessed jobs: 0 1022s # Pool idle thread count: 2, unprocessed jobs: 0 1023s # Pool idle thread count: 2, unprocessed jobs: 0 1023s # Pool idle thread count: 2, unprocessed jobs: 0 1023s # Pool idle thread count: 2, unprocessed jobs: 0 1023s # Pool idle thread count: 2, unprocessed jobs: 0 1024s ok 7 /threadpool/idle-time 1024s # slow test /threadpool/idle-time executed in 19.53 secs 1024s # End of threadpool tests 1024s ok - glib/thread-pool-slow.test 1024s # Running test: glib/mimeapps.test 1024s TAP version 14 1024s # random seed: R02Se7700d53a6be5285646e640dedbdc10e 1024s 1..7 1024s # Start of appinfo tests 1024s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_WLBT52/appinfo/all/.dirs/home 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_WLBT52/appinfo/all/.dirs/cache 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_WLBT52/appinfo/all/.dirs/system-config1:/tmp/test_mimeapps_WLBT52/appinfo/all/.dirs/system-config2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_WLBT52/appinfo/all/.dirs/config 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_WLBT52/appinfo/all/.dirs/system-data1:/tmp/test_mimeapps_WLBT52/appinfo/all/.dirs/system-data2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_WLBT52/appinfo/all/.dirs/data 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_WLBT52/appinfo/all/.dirs/state 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_WLBT52/appinfo/all/.dirs/runtime 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/all/.dirs/system-data1/applications' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/all/.dirs/system-data1/applications/mimeapps.list' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/all/.dirs/data/applications' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/all/.dirs/data/applications/myapp.desktop' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/all/.dirs/data/applications/myapp2.desktop' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/all/.dirs/data/applications/myapp3.desktop' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/all/.dirs/data/applications/myapp4.desktop' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/all/.dirs/data/applications/myapp5.desktop' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/all/.dirs/data/applications/nosuchapp.desktop' 1024s # removing '/tmp/test_mimeapps_WLBT52/appinfo/all/.dirs/data/applications/mimeapps.list' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/all/.dirs/data/applications/mimeinfo.cache' 1024s ok 1 /appinfo/all 1024s # Start of mime tests 1024s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_WLBT52/appinfo/mime/api/.dirs/home 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_WLBT52/appinfo/mime/api/.dirs/cache 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_WLBT52/appinfo/mime/api/.dirs/system-config1:/tmp/test_mimeapps_WLBT52/appinfo/mime/api/.dirs/system-config2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_WLBT52/appinfo/mime/api/.dirs/config 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_WLBT52/appinfo/mime/api/.dirs/system-data1:/tmp/test_mimeapps_WLBT52/appinfo/mime/api/.dirs/system-data2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_WLBT52/appinfo/mime/api/.dirs/data 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_WLBT52/appinfo/mime/api/.dirs/state 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_WLBT52/appinfo/mime/api/.dirs/runtime 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/api/.dirs/system-data1/applications' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/api/.dirs/system-data1/applications/mimeapps.list' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/api/.dirs/data/applications' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/api/.dirs/data/applications/myapp.desktop' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/api/.dirs/data/applications/myapp2.desktop' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/api/.dirs/data/applications/myapp3.desktop' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/api/.dirs/data/applications/myapp4.desktop' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/api/.dirs/data/applications/myapp5.desktop' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/api/.dirs/data/applications/nosuchapp.desktop' 1024s # removing '/tmp/test_mimeapps_WLBT52/appinfo/mime/api/.dirs/data/applications/mimeapps.list' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/api/.dirs/data/applications/mimeinfo.cache' 1024s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_WLBT52/appinfo/mime/api/.dirs/config 1024s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_WLBT52/appinfo/all/.dirs/config to /tmp/test_mimeapps_WLBT52/appinfo/mime/api/.dirs/config 1024s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_WLBT52/appinfo/mime/api/.dirs/config 1024s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_WLBT52/appinfo/mime/api/.dirs/config 1024s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_WLBT52/appinfo/mime/api/.dirs/config 1024s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_WLBT52/appinfo/mime/api/.dirs/config 1024s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_WLBT52/appinfo/mime/api/.dirs/config 1024s ok 2 /appinfo/mime/api 1024s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_WLBT52/appinfo/mime/default/.dirs/home 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_WLBT52/appinfo/mime/default/.dirs/cache 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_WLBT52/appinfo/mime/default/.dirs/system-config1:/tmp/test_mimeapps_WLBT52/appinfo/mime/default/.dirs/system-config2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_WLBT52/appinfo/mime/default/.dirs/config 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_WLBT52/appinfo/mime/default/.dirs/system-data1:/tmp/test_mimeapps_WLBT52/appinfo/mime/default/.dirs/system-data2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_WLBT52/appinfo/mime/default/.dirs/data 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_WLBT52/appinfo/mime/default/.dirs/state 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_WLBT52/appinfo/mime/default/.dirs/runtime 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/default/.dirs/system-data1/applications' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/default/.dirs/system-data1/applications/mimeapps.list' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/default/.dirs/data/applications' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/default/.dirs/data/applications/myapp.desktop' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/default/.dirs/data/applications/myapp2.desktop' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/default/.dirs/data/applications/myapp3.desktop' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/default/.dirs/data/applications/myapp4.desktop' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/default/.dirs/data/applications/myapp5.desktop' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/default/.dirs/data/applications/nosuchapp.desktop' 1024s # removing '/tmp/test_mimeapps_WLBT52/appinfo/mime/default/.dirs/data/applications/mimeapps.list' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/default/.dirs/data/applications/mimeinfo.cache' 1024s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_WLBT52/appinfo/mime/default/.dirs/config 1024s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_WLBT52/appinfo/mime/api/.dirs/config to /tmp/test_mimeapps_WLBT52/appinfo/mime/default/.dirs/config 1024s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_WLBT52/appinfo/mime/default/.dirs/config 1024s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_WLBT52/appinfo/mime/default/.dirs/config 1024s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_WLBT52/appinfo/mime/default/.dirs/config 1024s ok 3 /appinfo/mime/default 1024s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_WLBT52/appinfo/mime/file/.dirs/home 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_WLBT52/appinfo/mime/file/.dirs/cache 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_WLBT52/appinfo/mime/file/.dirs/system-config1:/tmp/test_mimeapps_WLBT52/appinfo/mime/file/.dirs/system-config2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_WLBT52/appinfo/mime/file/.dirs/config 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_WLBT52/appinfo/mime/file/.dirs/system-data1:/tmp/test_mimeapps_WLBT52/appinfo/mime/file/.dirs/system-data2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_WLBT52/appinfo/mime/file/.dirs/data 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_WLBT52/appinfo/mime/file/.dirs/state 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_WLBT52/appinfo/mime/file/.dirs/runtime 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/file/.dirs/system-data1/applications' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/file/.dirs/system-data1/applications/mimeapps.list' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/file/.dirs/data/applications' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/file/.dirs/data/applications/myapp.desktop' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/file/.dirs/data/applications/myapp2.desktop' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/file/.dirs/data/applications/myapp3.desktop' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/file/.dirs/data/applications/myapp4.desktop' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/file/.dirs/data/applications/myapp5.desktop' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/file/.dirs/data/applications/nosuchapp.desktop' 1024s # removing '/tmp/test_mimeapps_WLBT52/appinfo/mime/file/.dirs/data/applications/mimeapps.list' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/file/.dirs/data/applications/mimeinfo.cache' 1024s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_WLBT52/appinfo/mime/file/.dirs/config 1024s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_WLBT52/appinfo/mime/default/.dirs/config to /tmp/test_mimeapps_WLBT52/appinfo/mime/file/.dirs/config 1024s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_WLBT52/appinfo/mime/file/.dirs/config 1024s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_WLBT52/appinfo/mime/file/.dirs/config 1024s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_WLBT52/appinfo/mime/file/.dirs/config 1024s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_WLBT52/appinfo/mime/file/.dirs/config 1024s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_WLBT52/appinfo/mime/file/.dirs/config 1024s ok 4 /appinfo/mime/file 1024s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_WLBT52/appinfo/mime/scheme-handler/.dirs/home 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_WLBT52/appinfo/mime/scheme-handler/.dirs/cache 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_WLBT52/appinfo/mime/scheme-handler/.dirs/system-config1:/tmp/test_mimeapps_WLBT52/appinfo/mime/scheme-handler/.dirs/system-config2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_WLBT52/appinfo/mime/scheme-handler/.dirs/config 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_WLBT52/appinfo/mime/scheme-handler/.dirs/system-data1:/tmp/test_mimeapps_WLBT52/appinfo/mime/scheme-handler/.dirs/system-data2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_WLBT52/appinfo/mime/scheme-handler/.dirs/data 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_WLBT52/appinfo/mime/scheme-handler/.dirs/state 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_WLBT52/appinfo/mime/scheme-handler/.dirs/runtime 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/scheme-handler/.dirs/system-data1/applications' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/scheme-handler/.dirs/system-data1/applications/mimeapps.list' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/scheme-handler/.dirs/data/applications' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/scheme-handler/.dirs/data/applications/myapp.desktop' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/scheme-handler/.dirs/data/applications/myapp2.desktop' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/scheme-handler/.dirs/data/applications/myapp3.desktop' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/scheme-handler/.dirs/data/applications/myapp4.desktop' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/scheme-handler/.dirs/data/applications/myapp5.desktop' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/scheme-handler/.dirs/data/applications/nosuchapp.desktop' 1024s # removing '/tmp/test_mimeapps_WLBT52/appinfo/mime/scheme-handler/.dirs/data/applications/mimeapps.list' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/scheme-handler/.dirs/data/applications/mimeinfo.cache' 1024s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_WLBT52/appinfo/mime/file/.dirs/config to /tmp/test_mimeapps_WLBT52/appinfo/mime/scheme-handler/.dirs/config 1024s ok 5 /appinfo/mime/scheme-handler 1024s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_WLBT52/appinfo/mime/default-last-used/.dirs/home 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_WLBT52/appinfo/mime/default-last-used/.dirs/cache 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_WLBT52/appinfo/mime/default-last-used/.dirs/system-config1:/tmp/test_mimeapps_WLBT52/appinfo/mime/default-last-used/.dirs/system-config2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_WLBT52/appinfo/mime/default-last-used/.dirs/config 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_WLBT52/appinfo/mime/default-last-used/.dirs/system-data1:/tmp/test_mimeapps_WLBT52/appinfo/mime/default-last-used/.dirs/system-data2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_WLBT52/appinfo/mime/default-last-used/.dirs/data 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_WLBT52/appinfo/mime/default-last-used/.dirs/state 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_WLBT52/appinfo/mime/default-last-used/.dirs/runtime 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/default-last-used/.dirs/system-data1/applications' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/default-last-used/.dirs/system-data1/applications/mimeapps.list' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/default-last-used/.dirs/data/applications' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/default-last-used/.dirs/data/applications/myapp.desktop' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/default-last-used/.dirs/data/applications/myapp2.desktop' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/default-last-used/.dirs/data/applications/myapp3.desktop' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/default-last-used/.dirs/data/applications/myapp4.desktop' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/default-last-used/.dirs/data/applications/myapp5.desktop' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/default-last-used/.dirs/data/applications/nosuchapp.desktop' 1024s # removing '/tmp/test_mimeapps_WLBT52/appinfo/mime/default-last-used/.dirs/data/applications/mimeapps.list' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/default-last-used/.dirs/data/applications/mimeinfo.cache' 1024s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_WLBT52/appinfo/mime/default-last-used/.dirs/config 1024s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_WLBT52/appinfo/mime/scheme-handler/.dirs/config to /tmp/test_mimeapps_WLBT52/appinfo/mime/default-last-used/.dirs/config 1024s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_WLBT52/appinfo/mime/default-last-used/.dirs/config 1024s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_WLBT52/appinfo/mime/default-last-used/.dirs/config 1024s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_WLBT52/appinfo/mime/default-last-used/.dirs/config 1024s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_WLBT52/appinfo/mime/default-last-used/.dirs/config 1024s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_WLBT52/appinfo/mime/default-last-used/.dirs/config 1024s ok 6 /appinfo/mime/default-last-used 1024s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_WLBT52/appinfo/mime/ignore-nonexisting/.dirs/home 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_WLBT52/appinfo/mime/ignore-nonexisting/.dirs/cache 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_WLBT52/appinfo/mime/ignore-nonexisting/.dirs/system-config1:/tmp/test_mimeapps_WLBT52/appinfo/mime/ignore-nonexisting/.dirs/system-config2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_WLBT52/appinfo/mime/ignore-nonexisting/.dirs/config 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_WLBT52/appinfo/mime/ignore-nonexisting/.dirs/system-data1:/tmp/test_mimeapps_WLBT52/appinfo/mime/ignore-nonexisting/.dirs/system-data2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_WLBT52/appinfo/mime/ignore-nonexisting/.dirs/data 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_WLBT52/appinfo/mime/ignore-nonexisting/.dirs/state 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_WLBT52/appinfo/mime/ignore-nonexisting/.dirs/runtime 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/ignore-nonexisting/.dirs/system-data1/applications' 1024s ok - glib/mimeapps.test 1024s # Running test: glib/value.test 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/ignore-nonexisting/.dirs/system-data1/applications/mimeapps.list' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/ignore-nonexisting/.dirs/data/applications' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp.desktop' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp2.desktop' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp3.desktop' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp4.desktop' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp5.desktop' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/ignore-nonexisting/.dirs/data/applications/nosuchapp.desktop' 1024s # removing '/tmp/test_mimeapps_WLBT52/appinfo/mime/ignore-nonexisting/.dirs/data/applications/mimeapps.list' 1024s # creating '/tmp/test_mimeapps_WLBT52/appinfo/mime/ignore-nonexisting/.dirs/data/applications/mimeinfo.cache' 1024s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_WLBT52/appinfo/mime/default-last-used/.dirs/config to /tmp/test_mimeapps_WLBT52/appinfo/mime/ignore-nonexisting/.dirs/config 1024s ok 7 /appinfo/mime/ignore-nonexisting 1024s # End of mime tests 1024s # End of appinfo tests 1024s TAP version 14 1024s # random seed: R02S9ab5bff92fe375b32f9ed3f32a4642f1 1024s 1..9 1024s # Start of value tests 1024s ok 1 /value/basic 1024s ok 2 /value/collection 1024s ok 3 /value/copying 1024s ok 4 /value/enum-transformation 1024s ok 5 /value/gtype 1024s # /value/string summary: Test that G_TYPE_STRING GValue copy properly 1024s ok 6 /value/string 1024s # Next: GObject object in GValue of GObject to GValue of GObject 1024s # Next: GObject object in GValue of GObject to GValue of TestInterface 1024s # Next: GObject object in GValue of GObject to GValue of TestObjectA 1024s # Next: GObject object in GValue of GObject to GValue of TestObjectB 1024s # Next: GObject object in GValue of GObject to GValue of TestObjectA1 1024s # Next: GObject object in GValue of GObject to GValue of TestObjectA2 1024s # Next: TestObjectA object in GValue of GObject to GValue of GObject 1024s # Next: TestObjectA object in GValue of GObject to GValue of TestInterface 1024s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA 1024s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectB 1024s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA1 1024s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA2 1024s # Next: TestObjectA object in GValue of TestObjectA to GValue of GObject 1024s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestInterface 1024s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA 1024s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectB 1024s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA1 1024s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA2 1024s # Next: TestObjectB object in GValue of GObject to GValue of GObject 1024s # Next: TestObjectB object in GValue of GObject to GValue of TestInterface 1024s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA 1024s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectB 1024s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA1 1024s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA2 1024s # Next: TestObjectB object in GValue of TestInterface to GValue of GObject 1024s # Next: TestObjectB object in GValue of TestInterface to GValue of TestInterface 1024s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA 1024s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectB 1024s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA1 1024s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA2 1024s # Next: TestObjectB object in GValue of TestObjectB to GValue of GObject 1024s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestInterface 1024s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA 1024s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectB 1024s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA1 1024s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA2 1024s # Next: TestObjectA1 object in GValue of GObject to GValue of GObject 1024s # Next: TestObjectA1 object in GValue of GObject to GValue of TestInterface 1024s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA 1024s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectB 1024s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA1 1024s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA2 1024s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of GObject 1024s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestInterface 1024s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA 1024s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectB 1024s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA1 1024s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA2 1024s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of GObject 1024s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestInterface 1024s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA 1024s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectB 1024s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA1 1024s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA2 1024s # Next: TestObjectA2 object in GValue of GObject to GValue of GObject 1024s # Next: TestObjectA2 object in GValue of GObject to GValue of TestInterface 1024s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA 1024s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectB 1024s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA1 1024s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA2 1024s # Next: TestObjectA2 object in GValue of TestInterface to GValue of GObject 1024s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestInterface 1024s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA 1024s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectB 1024s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA1 1024s ok - glib/value.test 1024s # Running test: glib/gdbus-export.test 1024s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA2 1024s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of GObject 1024s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestInterface 1024s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA 1024s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectB 1024s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA1 1024s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA2 1024s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of GObject 1024s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestInterface 1024s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA 1024s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectB 1024s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA1 1024s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA2 1024s ok 7 /value/transform-object 1024s # Start of array tests 1024s ok 8 /value/array/basic 1024s ok 9 /value/array/sort-with-data 1024s # End of array tests 1024s # End of value tests 1024s TAP version 14 1024s # random seed: R02Sc5b6ad8e71965fbf96ea4227fe76601b 1024s 1..7 1024s # Start of gdbus tests 1024s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_2RJV52/gdbus/object-registration/.dirs/home 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_2RJV52/gdbus/object-registration/.dirs/cache 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_2RJV52/gdbus/object-registration/.dirs/system-config1:/tmp/test_gdbus-export_2RJV52/gdbus/object-registration/.dirs/system-config2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_2RJV52/gdbus/object-registration/.dirs/config 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_2RJV52/gdbus/object-registration/.dirs/system-data1:/tmp/test_gdbus-export_2RJV52/gdbus/object-registration/.dirs/system-data2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_2RJV52/gdbus/object-registration/.dirs/data 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_2RJV52/gdbus/object-registration/.dirs/state 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_2RJV52/gdbus/object-registration/.dirs/runtime 1024s ok 1 /gdbus/object-registration 1024s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_2RJV52/gdbus/object-registration-with-closures/.dirs/home 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_2RJV52/gdbus/object-registration-with-closures/.dirs/cache 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_2RJV52/gdbus/object-registration-with-closures/.dirs/system-config1:/tmp/test_gdbus-export_2RJV52/gdbus/object-registration-with-closures/.dirs/system-config2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_2RJV52/gdbus/object-registration-with-closures/.dirs/config 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_2RJV52/gdbus/object-registration-with-closures/.dirs/system-data1:/tmp/test_gdbus-export_2RJV52/gdbus/object-registration-with-closures/.dirs/system-data2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_2RJV52/gdbus/object-registration-with-closures/.dirs/data 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_2RJV52/gdbus/object-registration-with-closures/.dirs/state 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_2RJV52/gdbus/object-registration-with-closures/.dirs/runtime 1024s ok 2 /gdbus/object-registration-with-closures 1024s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_2RJV52/gdbus/object-registration-with-closures2/.dirs/home 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_2RJV52/gdbus/object-registration-with-closures2/.dirs/cache 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_2RJV52/gdbus/object-registration-with-closures2/.dirs/system-config1:/tmp/test_gdbus-export_2RJV52/gdbus/object-registration-with-closures2/.dirs/system-config2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_2RJV52/gdbus/object-registration-with-closures2/.dirs/config 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_2RJV52/gdbus/object-registration-with-closures2/.dirs/system-data1:/tmp/test_gdbus-export_2RJV52/gdbus/object-registration-with-closures2/.dirs/system-data2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_2RJV52/gdbus/object-registration-with-closures2/.dirs/data 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_2RJV52/gdbus/object-registration-with-closures2/.dirs/state 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_2RJV52/gdbus/object-registration-with-closures2/.dirs/runtime 1024s ok 3 /gdbus/object-registration-with-closures2 1024s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_2RJV52/gdbus/registered-interfaces/.dirs/home 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_2RJV52/gdbus/registered-interfaces/.dirs/cache 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_2RJV52/gdbus/registered-interfaces/.dirs/system-config1:/tmp/test_gdbus-export_2RJV52/gdbus/registered-interfaces/.dirs/system-config2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_2RJV52/gdbus/registered-interfaces/.dirs/config 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_2RJV52/gdbus/registered-interfaces/.dirs/system-data1:/tmp/test_gdbus-export_2RJV52/gdbus/registered-interfaces/.dirs/system-data2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_2RJV52/gdbus/registered-interfaces/.dirs/data 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_2RJV52/gdbus/registered-interfaces/.dirs/state 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_2RJV52/gdbus/registered-interfaces/.dirs/runtime 1024s ok 4 /gdbus/registered-interfaces 1024s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_2RJV52/gdbus/async-properties/.dirs/home 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_2RJV52/gdbus/async-properties/.dirs/cache 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_2RJV52/gdbus/async-properties/.dirs/system-config1:/tmp/test_gdbus-export_2RJV52/gdbus/async-properties/.dirs/system-config2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_2RJV52/gdbus/async-properties/.dirs/config 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_2RJV52/gdbus/async-properties/.dirs/system-data1:/tmp/test_gdbus-export_2RJV52/gdbus/async-properties/.dirs/system-data2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_2RJV52/gdbus/async-properties/.dirs/data 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_2RJV52/gdbus/async-properties/.dirs/state 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_2RJV52/gdbus/async-properties/.dirs/runtime 1024s ok 5 /gdbus/async-properties 1024s # Start of threaded-unregistration tests 1024s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_2RJV52/gdbus/threaded-unregistration/object/.dirs/home 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_2RJV52/gdbus/threaded-unregistration/object/.dirs/cache 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_2RJV52/gdbus/threaded-unregistration/object/.dirs/system-config1:/tmp/test_gdbus-export_2RJV52/gdbus/threaded-unregistration/object/.dirs/system-config2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_2RJV52/gdbus/threaded-unregistration/object/.dirs/config 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_2RJV52/gdbus/threaded-unregistration/object/.dirs/system-data1:/tmp/test_gdbus-export_2RJV52/gdbus/threaded-unregistration/object/.dirs/system-data2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_2RJV52/gdbus/threaded-unregistration/object/.dirs/data 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_2RJV52/gdbus/threaded-unregistration/object/.dirs/state 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_2RJV52/gdbus/threaded-unregistration/object/.dirs/runtime 1024s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2400 1024s # /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 1025s ok 6 /gdbus/threaded-unregistration/object # SKIP Failed to reproduce race (5 iterations with unregistration first, 995 with call first); skipping test 1025s # slow test /gdbus/threaded-unregistration/object executed in 1.26 secs 1025s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_2RJV52/gdbus/threaded-unregistration/subtree/.dirs/home 1025s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_2RJV52/gdbus/threaded-unregistration/subtree/.dirs/cache 1025s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_2RJV52/gdbus/threaded-unregistration/subtree/.dirs/system-config1:/tmp/test_gdbus-export_2RJV52/gdbus/threaded-unregistration/subtree/.dirs/system-config2 1025s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_2RJV52/gdbus/threaded-unregistration/subtree/.dirs/config 1025s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_2RJV52/gdbus/threaded-unregistration/subtree/.dirs/system-data1:/tmp/test_gdbus-export_2RJV52/gdbus/threaded-unregistration/subtree/.dirs/system-data2 1025s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_2RJV52/gdbus/threaded-unregistration/subtree/.dirs/data 1025s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_2RJV52/gdbus/threaded-unregistration/subtree/.dirs/state 1025s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_2RJV52/gdbus/threaded-unregistration/subtree/.dirs/runtime 1025s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2400 1025s # /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 1027s # Executing: glib/gdbus-export.test 1027s ok 7 /gdbus/threaded-unregistration/subtree # SKIP Failed to reproduce race (8 iterations with unregistration first, 992 with call first); skipping test 1027s # slow test /gdbus/threaded-unregistration/subtree executed in 1.26 secs 1027s # End of threaded-unregistration tests 1027s # End of gdbus tests 1027s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1027s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1027s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1027s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1027s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1027s ok - glib/gdbus-export.test 1027s # Running test: glib/properties-introspection.test 1027s TAP version 14 1027s # random seed: R02S9c607f619a1b400da9ea7c7e8583a754 1027s 1..2 1027s # Start of properties tests 1027s # /properties/introspection summary: Verify that introspecting properties on an interface initializes the GParamSpecPool. 1027s ok 1 /properties/introspection 1027s # /properties/collision summary: Verify that multiple threads create a single GParamSpecPool. 1027s ok 2 /properties/collision 1027s # End of properties tests 1027s ok - glib/properties-introspection.test 1027s # Running test: glib/network-monitor-race.test 1027s TAP version 14 1027s # random seed: R02S95fded6c2ad275d924c93b31671a99df 1027s 1..1 1027s # Start of network-monitor tests 1027s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=793727 1029s ok 1 /network-monitor/create-in-thread 1029s # slow test /network-monitor/create-in-thread executed in 2.18 secs 1029s # End of network-monitor tests 1029s ok - glib/network-monitor-race.test 1029s # Running test: glib/gdbus-sasl.test 1029s TAP version 14 1029s # random seed: R02Sdcafab3442098569463c1b0db6e97815 1029s 1..1 1029s # Start of gdbus tests 1029s # Start of sasl tests 1029s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-sasl_C1Q152/gdbus/sasl/server/.dirs/home 1029s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-sasl_C1Q152/gdbus/sasl/server/.dirs/cache 1029s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-sasl_C1Q152/gdbus/sasl/server/.dirs/system-config1:/tmp/test_gdbus-sasl_C1Q152/gdbus/sasl/server/.dirs/system-config2 1029s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-sasl_C1Q152/gdbus/sasl/server/.dirs/config 1029s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-sasl_C1Q152/gdbus/sasl/server/.dirs/system-data1:/tmp/test_gdbus-sasl_C1Q152/gdbus/sasl/server/.dirs/system-data2 1029s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-sasl_C1Q152/gdbus/sasl/server/.dirs/data 1029s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-sasl_C1Q152/gdbus/sasl/server/.dirs/state 1029s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-sasl_C1Q152/gdbus/sasl/server/.dirs/runtime 1029s # New handshake: EXTERNAL with incorrect initial response 1029s # C:“AUTH EXTERNAL 30†1029s # Expect: /^REJECTED.*$/ 1029s # S:“REJECTED EXTERNAL DBUS_COOKIE_SHA1†1029s # New handshake: EXTERNAL without initial response, failing to authenticate 1029s # C:“AUTH EXTERNAL†1029s # Expect: /^DATA$/ 1029s # S:“DATA†1029s # C:“DATA 30†1029s # Expect: /^REJECTED.*$/ 1029s # S:“REJECTED EXTERNAL DBUS_COOKIE_SHA1†1029s # New handshake: EXTERNAL with initial response 1029s # C:“AUTH EXTERNAL 31303030†1029s # Expect: /^OK [0-9a-f]+$/ 1029s # S:“OK a4271c1b5dc95ab705141931681487a2†1029s # New handshake: EXTERNAL without initial response 1029s # C:“AUTH EXTERNAL†1029s # Expect: /^DATA$/ 1029s # S:“DATA†1029s # C:“DATA 31303030†1029s # Expect: /^OK [0-9a-f]+$/ 1029s # S:“OK a4271c1b5dc95ab705141931681487a2†1029s # New handshake: EXTERNAL with empty authorization identity 1029s # C:“AUTH EXTERNAL†1029s # Expect: /^DATA$/ 1029s # S:“DATA†1029s # C:“DATA†1029s # Expect: /^OK [0-9a-f]+$/ 1029s # S:“OK a4271c1b5dc95ab705141931681487a2†1029s # New handshake: EXTERNAL with empty authorization identity and whitespace 1029s # C:“AUTH EXTERNAL†1029s # Expect: /^DATA$/ 1029s # S:“DATA†1029s # C:“DATA †1029s # Expect: /^OK [0-9a-f]+$/ 1029s # S:“OK a4271c1b5dc95ab705141931681487a2†1029s ok 1 /gdbus/sasl/server 1029s # End of sasl tests 1029s # End of gdbus tests 1029s TAP version 14 1029s # random seed: R02S169a77c3731fe32b82a4ecbd0d940f8d 1029s 1..3 1029s # Start of error tests 1029s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_ONJ052/error/from-errno/.dirs/home 1029s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_ONJ052/error/from-errno/.dirs/cache 1029s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_ONJ052/error/from-errno/.dirs/system-config1:/tmp/test_error_ONJ052/error/from-errno/.dirs/system-config2 1029s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_ONJ052/error/from-errno/.dirs/config 1029s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_ONJ052/error/from-errno/.dirs/system-data1:/tmp/test_error_ONJ052/error/from-errno/.dirs/system-data2 1029s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_ONJ052/error/from-errno/.dirs/data 1029s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_ONJ052/error/from-errno/.dirs/state 1029s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_ONJ052/error/from-errno/.dirs/runtime 1029s ok 1 /error/from-errno 1029s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_ONJ052/error/from-file-error/.dirs/home 1029s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_ONJ052/error/from-file-error/.dirs/cache 1029s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_ONJ052/error/from-file-error/.dirs/system-config1:/tmp/test_error_ONJ052/error/from-file-error/.dirs/system-config2 1029s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_ONJ052/error/from-file-error/.dirs/config 1029s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_ONJ052/error/from-file-error/.dirs/system-data1:/tmp/test_error_ONJ052/error/from-file-error/.dirs/system-data2 1029s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_ONJ052/error/from-file-error/.dirs/data 1029s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_ONJ052/error/from-file-error/.dirs/state 1029s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_ONJ052/error/from-file-error/.dirs/runtime 1029s ok 2 /error/from-file-error 1029s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_ONJ052/error/from-win32-error/.dirs/home 1029s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_ONJ052/error/from-win32-error/.dirs/cache 1029s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_ONJ052/error/from-win32-error/.dirs/system-config1:/tmp/test_error_ONJ052/error/from-win32-error/.dirs/system-config2 1029s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_ONJ052/error/from-win32-error/.dirs/config 1029s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_ONJ052/error/from-win32-error/.dirs/system-data1:/tmp/test_error_ONJ052/error/from-win32-error/.dirs/system-data2 1029s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_ONJ052/error/from-win32-error/.dirs/data 1029s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_ONJ052/error/from-win32-error/.dirs/state 1029s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_ONJ052/error/from-win32-error/.dirs/runtime 1029s ok 3 /error/from-win32-error # SKIP Windows error codes can only be checked on Windows 1029s # End of error tests 1029s TAP version 14 1029s # random seed: R02S54fc4d13d4ca4b642a15d97d70e847d7 1029s 1..3 1029s # Start of close-async tests 1029s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 1029s ok 1 /close-async/without-flush 1029s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 1029s ok 2 /close-async/with-flush 1029s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 1029s ok 3 /close-async/with-async-flush 1029s # End of close-async tests 1029s TAP version 14 1029s # random seed: R02Sba8bca4356be177756ff5e19af24917b 1029s 1..2 1029s # Start of GObject tests 1029s ok 1 /GObject/threaded-dynamic-ref-unref-init 1029s ok 2 /GObject/dynamic-interface-properties 1029s # End of GObject tests 1029s ok - glib/gdbus-sasl.test 1029s # Running test: glib/error.test 1029s ok - glib/error.test 1029s # Running test: glib/async-close-output-stream.test 1029s ok - glib/async-close-output-stream.test 1029s # Running test: glib/dynamictests.test 1029s ok - glib/dynamictests.test 1029s # Running test: glib/filter-streams.test 1029s ok - glib/filter-streams.test 1029s # Running test: glib/autoptr-gio.test 1029s ok - glib/autoptr-gio.test 1029s # Running test: glib/io-stream.test 1029s ok - glib/io-stream.test 1029s TAP version 14 1029s # random seed: R02Sc3002f05743a93c78a9a30d15dbcbfc7 1029s 1..4 1029s # Start of filter-stream tests 1029s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=568394 1029s ok 1 /filter-stream/input 1029s ok 2 /filter-stream/output 1029s ok 3 /filter-stream/async-input 1029s ok 4 /filter-stream/async-output 1029s # End of filter-stream tests 1029s TAP version 14 1029s # random seed: R02S504c8a2314e4cb90a95b792b3573628d 1029s 1..1 1029s # Start of autoptr tests 1029s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1029s ok 1 /autoptr/autoptr 1029s # End of autoptr tests 1029s TAP version 14 1029s # random seed: R02S592fa342356292f606beae1e992323c4 1029s 1..3 1029s # Start of io-stream tests 1029s ok 1 /io-stream/copy-chunks 1029s # Start of close tests 1029s # Start of async tests 1029s ok 2 /io-stream/close/async/memory 1029s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1029s ok 3 /io-stream/close/async/file 1029s # End of async tests 1029s # End of close tests 1029s # End of io-stream tests 1029s # Running test: glib/unicode-encoding.test 1029s TAP version 14 1029s # random seed: R02Sdd6cd608d7ea08089fe515caea85e3f2 1029s 1..1 1029s # Start of unicode tests 1029s ok 1 /unicode/encoding 1029s # End of unicode tests 1029s ok - glib/unicode-encoding.test 1029s # Running test: glib/deftype.test 1029s ok - glib/deftype.test 1029s # Running test: glib/signal-handler.test 1029s TAP version 14 1029s # random seed: R02S151b4e177d6389fcadb85e62b85c2249 1029s 1..7 1029s # Start of signal tests 1029s # Start of handler tests 1029s # min perf: connected 1 handlers in 0.000 seconds 1029s ok 1 /signal/handler/connect-many 1029s # min perf: disconnected 1 handlers in 0.000 seconds 1029s ok 2 /signal/handler/disconnect-many-ordered 1029s # min perf: disconnected 1 handlers in 0.000 seconds 1029s ok 3 /signal/handler/disconnect-many-inverse 1029s # min perf: disconnected 1 handlers in 0.000 seconds 1029s ok 4 /signal/handler/disconnect-many-random 1029s # min perf: disconnected 1 handlers in 0.000 seconds 1029s ok 5 /signal/handler/disconnect-2-signals 1029s # min perf: disconnected 1 handlers in 0.000 seconds 1029s ok 6 /signal/handler/disconnect-2-objects 1029s # min perf: blocked and unblocked 1 handlers in 0.000 seconds 1029s ok 7 /signal/handler/block-many 1029s # End of handler tests 1029s # End of signal tests 1029s ok - glib/signal-handler.test 1029s # Running test: glib/date.test 1029s TAP version 14 1029s # random seed: R02Sfc08c39e6c996250d64f81804fd70a2a 1029s 1..121 1029s # Start of date tests 1029s ok 1 /date/basic 1029s ok 2 /date/empty 1029s ok 3 /date/dmy 1029s ok 4 /date/julian 1029s ok 5 /date/compare 1029s ok 6 /date/dates 1029s ok 7 /date/strftime 1029s ok 8 /date/two-digit-years 1029s ok 9 /date/parse 1029s ok 10 /date/parse_locale_change # SKIP locale th_TH not available 1029s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=793550 1029s ok 11 /date/month_substring 1029s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=749206 1029s ok 12 /date/month_names # SKIP libc doesn’t support all alternative month names 1029s ok 13 /date/clamp 1029s ok 14 /date/order 1029s ok 15 /date/copy 1029s # Vector 0: 0000-00-00, invalid 1029s # Vector 1: 0001-01-01, valid 1029s # Vector 2: 0000-01-01, invalid 1029s # Vector 3: 2000-02-30, invalid 1029s # Vector 4: 2000-02-29, valid 1029s # Vector 5: 2001-02-29, invalid 1029s # Vector 6: 65535-01-01, valid 1029s ok 16 /date/valid-dmy 1029s # Start of parse tests 1029s # Test 0 1029s # Test 1 1029s ok 17 /date/parse/invalid 1029s # End of parse tests 1029s # Start of year tests 1029s ok 18 /date/year/1 1029s ok 19 /date/year/2 1029s ok 20 /date/year/3 1029s ok 21 /date/year/4 1029s ok 22 /date/year/5 1029s ok 23 /date/year/6 1029s ok 24 /date/year/7 1029s ok 25 /date/year/8 1029s ok 26 /date/year/9 1029s ok 27 /date/year/10 1029s ok 28 /date/year/11 1029s ok 29 /date/year/12 1029s ok 30 /date/year/13 1029s ok 31 /date/year/14 1029s ok 32 /date/year/98 1029s ok 33 /date/year/99 1029s ok 34 /date/year/100 1029s ok 35 /date/year/101 1029s ok 36 /date/year/102 1029s ok 37 /date/year/103 1029s ok 38 /date/year/397 1029s ok 39 /date/year/398 1029s ok 40 /date/year/399 1029s ok 41 /date/year/400 1029s ok 42 /date/year/401 1029s ok 43 /date/year/402 1029s ok 44 /date/year/403 1029s ok 45 /date/year/404 1029s ok 46 /date/year/405 1029s ok 47 /date/year/406 1029s ok 48 /date/year/1598 1029s ok 49 /date/year/1599 1029s ok 50 /date/year/1600 1029s ok 51 /date/year/1601 1029s ok 52 /date/year/1602 1029s ok 53 /date/year/1650 1029s ok 54 /date/year/1651 1029s ok 55 /date/year/1897 1029s ok 56 /date/year/1898 1029s ok 57 /date/year/1899 1029s ok 58 /date/year/1900 1029s ok 59 /date/year/1901 1029s ok 60 /date/year/1902 1029s ok 61 /date/year/1903 1029s ok 62 /date/year/1961 1029s ok 63 /date/year/1962 1029s ok 64 /date/year/1963 1029s ok 65 /date/year/1964 1029s ok 66 /date/year/1965 1029s ok 67 /date/year/1967 1029s ok 68 /date/year/1968 1029s ok 69 /date/year/1969 1029s ok 70 /date/year/1970 1029s ok 71 /date/year/1971 1029s ok 72 /date/year/1972 1029s ok 73 /date/year/1973 1029s ok 74 /date/year/1974 1029s ok 75 /date/year/1975 1029s ok 76 /date/year/1976 1029s ok 77 /date/year/1977 1029s ok 78 /date/year/1978 1029s ok 79 /date/year/1979 1029s ok 80 /date/year/1980 1029s ok 81 /date/year/1981 1029s ok 82 /date/year/1982 1029s ok 83 /date/year/1983 1029s ok 84 /date/year/1984 1029s ok 85 /date/year/1985 1029s ok 86 /date/year/1986 1029s ok 87 /date/year/1987 1029s ok 88 /date/year/1988 1029s ok 89 /date/year/1989 1029s ok 90 /date/year/1990 1029s ok 91 /date/year/1991 1029s ok 92 /date/year/1992 1029s ok 93 /date/year/1993 1029s ok 94 /date/year/1994 1029s ok 95 /date/year/1995 1029s ok 96 /date/year/1996 1029s ok 97 /date/year/1997 1029s ok 98 /date/year/1998 1029s ok 99 /date/year/1999 1029s ok 100 /date/year/2000 1029s ok 101 /date/year/2001 1029s ok 102 /date/year/2002 1029s ok 103 /date/year/2003 1029s ok 104 /date/year/2004 1029s ok 105 /date/year/2005 1029s ok 106 /date/year/2006 1029s ok 107 /date/year/2007 1029s ok 108 /date/year/2008 1029s ok 109 /date/year/2009 1029s ok 110 /date/year/2010 1029s ok 111 /date/year/2011 1029s ok 112 /date/year/2012 1029s ok 113 /date/year/3000 1029s ok 114 /date/year/3001 1029s ok 115 /date/year/3002 1029s ok 116 /date/year/3998 1029s ok 117 /date/year/3999 1029s ok 118 /date/year/4000 1029s ok 119 /date/year/4001 1029s ok 120 /date/year/4002 1029s ok 121 /date/year/4003 1029s # End of year tests 1029s # End of date tests 1029s ok - glib/date.test 1029s # Running test: glib/utf8-misc.test 1029s TAP version 14 1029s # random seed: R02S0e868e690e22039ec7a83c57f3a5d7e6 1029s 1..7 1029s # Start of utf8 tests 1029s ok 1 /utf8/strlen 1029s ok 2 /utf8/strncpy 1029s ok 3 /utf8/strrchr 1029s ok 4 /utf8/reverse 1029s ok 5 /utf8/substring 1029s ok 6 /utf8/make-valid 1029s ok 7 /utf8/truncate-middle 1029s # End of utf8 tests 1029s ok - glib/utf8-misc.test 1029s # Running test: glib/contenttype.test 1029s TAP version 14 1029s # random seed: R02S91f4f9dea91f5ebcf086c72c960dead7 1029s 1..14 1029s # Start of contenttype tests 1029s ok 1 /contenttype/guess 1029s ok 2 /contenttype/guess_svg_from_data 1029s ok 3 /contenttype/mime_to_content # SKIP mime from content type test not implemented on UNIX 1029s ok 4 /contenttype/mime_from_content # SKIP mime from content type test not implemented on UNIX 1029s ok 5 /contenttype/unknown 1029s ok 6 /contenttype/subtype 1029s ok 7 /contenttype/list 1029s ok 8 /contenttype/executable 1029s ok 9 /contenttype/description 1029s ok 10 /contenttype/icon 1029s ok 11 /contenttype/symbolic-icon 1029s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1029s ok 12 /contenttype/tree 1029s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3168 1029s ok 13 /contenttype/tree_invalid_encoding 1029s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=782311 1029s ok 14 /contenttype/test_type_is_a_special_case 1029s # End of contenttype tests 1029s ok - glib/contenttype.test 1029s # Running test: glib/signals-refcount1.test 1029s TAP version 14 1029s # random seed: R02Sb3581d50b51b544f2a725f2c8a132f76 1029s 1..1 1029s # Start of gobject tests 1029s # Start of refcount tests 1029s # init 0xc167b008cde0 1029s # 1029s # init 0xc167b0083610 1029s # 1032s # Executing: glib/signals-refcount1.test 1034s # dispose 0xc167b008cde0! 1034s # 1034s # dispose 0xc167b0083610! 1034s # 1034s ok 1 /gobject/refcount/signals 1034s # slow test /gobject/refcount/signals executed in 5.00 secs 1034s # End of refcount tests 1034s # End of gobject tests 1034s ok - glib/signals-refcount1.test 1034s # Running test: glib/object-info.test 1034s ok - glib/object-info.test 1034s TAP version 14 1034s # random seed: R02S480a16009a63af7d56726f6238d4dbac 1034s 1..2 1034s # Start of object-info tests 1034s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_object-info_G51952/object-info/find-method-using-interfaces/.dirs/home 1034s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_object-info_G51952/object-info/find-method-using-interfaces/.dirs/cache 1034s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_object-info_G51952/object-info/find-method-using-interfaces/.dirs/system-config1:/tmp/test_object-info_G51952/object-info/find-method-using-interfaces/.dirs/system-config2 1034s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_object-info_G51952/object-info/find-method-using-interfaces/.dirs/config 1034s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_object-info_G51952/object-info/find-method-using-interfaces/.dirs/system-data1:/tmp/test_object-info_G51952/object-info/find-method-using-interfaces/.dirs/system-data2 1034s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_object-info_G51952/object-info/find-method-using-interfaces/.dirs/data 1034s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_object-info_G51952/object-info/find-method-using-interfaces/.dirs/state 1034s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_object-info_G51952/object-info/find-method-using-interfaces/.dirs/runtime 1034s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1034s ok 1 /object-info/find-method-using-interfaces 1034s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_object-info_G51952/object-info/find-vfunc-using-interfaces/.dirs/home 1034s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_object-info_G51952/object-info/find-vfunc-using-interfaces/.dirs/cache 1034s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_object-info_G51952/object-info/find-vfunc-using-interfaces/.dirs/system-config1:/tmp/test_object-info_G51952/object-info/find-vfunc-using-interfaces/.dirs/system-config2 1034s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_object-info_G51952/object-info/find-vfunc-using-interfaces/.dirs/config 1034s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_object-info_G51952/object-info/find-vfunc-using-interfaces/.dirs/system-data1:/tmp/test_object-info_G51952/object-info/find-vfunc-using-interfaces/.dirs/system-data2 1034s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_object-info_G51952/object-info/find-vfunc-using-interfaces/.dirs/data 1034s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_object-info_G51952/object-info/find-vfunc-using-interfaces/.dirs/state 1034s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_object-info_G51952/object-info/find-vfunc-using-interfaces/.dirs/runtime 1034s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1034s ok 2 /object-info/find-vfunc-using-interfaces 1034s # End of object-info tests 1034s # Running test: glib/checksum.test 1034s TAP version 14 1034s # random seed: R02S5428d5f27b786fa1260afc6738d6026f 1034s 1..1851 1034s # Start of checksum tests 1034s ok 1 /checksum/unsupported 1034s # Start of MD5 tests 1034s ok 2 /checksum/MD5/0 1034s ok 3 /checksum/MD5/1 1034s ok 4 /checksum/MD5/2 1034s ok 5 /checksum/MD5/3 1034s ok 6 /checksum/MD5/4 1034s ok 7 /checksum/MD5/5 1034s ok 8 /checksum/MD5/6 1034s ok 9 /checksum/MD5/7 1034s ok 10 /checksum/MD5/8 1034s ok 11 /checksum/MD5/9 1034s ok 12 /checksum/MD5/10 1034s ok 13 /checksum/MD5/11 1034s ok 14 /checksum/MD5/12 1034s ok 15 /checksum/MD5/13 1034s ok 16 /checksum/MD5/14 1034s ok 17 /checksum/MD5/15 1034s ok 18 /checksum/MD5/16 1034s ok 19 /checksum/MD5/17 1034s ok 20 /checksum/MD5/18 1034s ok 21 /checksum/MD5/19 1034s ok 22 /checksum/MD5/20 1034s ok 23 /checksum/MD5/21 1034s ok 24 /checksum/MD5/22 1034s ok 25 /checksum/MD5/23 1034s ok 26 /checksum/MD5/24 1034s ok 27 /checksum/MD5/25 1034s ok 28 /checksum/MD5/26 1034s ok 29 /checksum/MD5/27 1034s ok 30 /checksum/MD5/28 1034s ok 31 /checksum/MD5/29 1034s ok 32 /checksum/MD5/30 1034s ok 33 /checksum/MD5/31 1034s ok 34 /checksum/MD5/32 1034s ok 35 /checksum/MD5/33 1034s ok 36 /checksum/MD5/34 1034s ok 37 /checksum/MD5/35 1034s ok 38 /checksum/MD5/36 1034s ok 39 /checksum/MD5/37 1034s ok 40 /checksum/MD5/38 1034s ok 41 /checksum/MD5/39 1034s ok 42 /checksum/MD5/40 1034s ok 43 /checksum/MD5/41 1034s ok 44 /checksum/MD5/42 1034s ok 45 /checksum/MD5/43 1034s ok 46 /checksum/MD5/44 1034s ok 47 /checksum/MD5/45 1034s ok 48 /checksum/MD5/46 1034s ok 49 /checksum/MD5/47 1034s ok 50 /checksum/MD5/48 1034s ok 51 /checksum/MD5/49 1034s ok 52 /checksum/MD5/50 1034s ok 53 /checksum/MD5/51 1034s ok 54 /checksum/MD5/52 1034s ok 55 /checksum/MD5/53 1034s ok 56 /checksum/MD5/54 1034s ok 57 /checksum/MD5/55 1034s ok 58 /checksum/MD5/56 1034s ok 59 /checksum/MD5/57 1034s ok 60 /checksum/MD5/58 1034s ok 61 /checksum/MD5/59 1034s ok 62 /checksum/MD5/60 1034s ok 63 /checksum/MD5/61 1034s ok 64 /checksum/MD5/62 1034s ok 65 /checksum/MD5/63 1034s ok 66 /checksum/MD5/64 1034s ok 67 /checksum/MD5/65 1034s ok 68 /checksum/MD5/66 1034s ok 69 /checksum/MD5/67 1034s ok 70 /checksum/MD5/68 1034s ok 71 /checksum/MD5/69 1034s ok 72 /checksum/MD5/70 1034s ok 73 /checksum/MD5/71 1034s ok 74 /checksum/MD5/72 1034s ok 75 /checksum/MD5/73 1034s ok 76 /checksum/MD5/74 1034s ok 77 /checksum/MD5/75 1034s ok 78 /checksum/MD5/76 1034s ok 79 /checksum/MD5/77 1034s ok 80 /checksum/MD5/78 1034s ok 81 /checksum/MD5/79 1034s ok 82 /checksum/MD5/80 1034s ok 83 /checksum/MD5/81 1034s ok 84 /checksum/MD5/82 1034s ok 85 /checksum/MD5/83 1034s ok 86 /checksum/MD5/84 1034s ok 87 /checksum/MD5/85 1034s ok 88 /checksum/MD5/86 1034s ok 89 /checksum/MD5/87 1034s ok 90 /checksum/MD5/88 1034s ok 91 /checksum/MD5/89 1034s ok 92 /checksum/MD5/90 1034s ok 93 /checksum/MD5/91 1034s ok 94 /checksum/MD5/92 1034s ok 95 /checksum/MD5/93 1034s ok 96 /checksum/MD5/94 1034s ok 97 /checksum/MD5/95 1034s ok 98 /checksum/MD5/96 1034s ok 99 /checksum/MD5/97 1034s ok 100 /checksum/MD5/98 1034s ok 101 /checksum/MD5/99 1034s ok 102 /checksum/MD5/100 1034s ok 103 /checksum/MD5/101 1034s ok 104 /checksum/MD5/102 1034s ok 105 /checksum/MD5/103 1034s ok 106 /checksum/MD5/104 1034s ok 107 /checksum/MD5/105 1034s ok 108 /checksum/MD5/106 1034s ok 109 /checksum/MD5/107 1034s ok 110 /checksum/MD5/108 1034s ok 111 /checksum/MD5/109 1034s ok 112 /checksum/MD5/110 1034s ok 113 /checksum/MD5/111 1034s ok 114 /checksum/MD5/112 1034s ok 115 /checksum/MD5/113 1034s ok 116 /checksum/MD5/114 1034s ok 117 /checksum/MD5/115 1034s ok 118 /checksum/MD5/116 1034s ok 119 /checksum/MD5/117 1034s ok 120 /checksum/MD5/118 1034s ok 121 /checksum/MD5/119 1034s ok 122 /checksum/MD5/120 1034s ok 123 /checksum/MD5/121 1034s ok 124 /checksum/MD5/122 1034s ok 125 /checksum/MD5/123 1034s ok 126 /checksum/MD5/124 1034s ok 127 /checksum/MD5/125 1034s ok 128 /checksum/MD5/126 1034s ok 129 /checksum/MD5/127 1034s ok 130 /checksum/MD5/128 1034s ok 131 /checksum/MD5/129 1034s ok 132 /checksum/MD5/130 1034s ok 133 /checksum/MD5/131 1034s ok 134 /checksum/MD5/132 1034s ok 135 /checksum/MD5/133 1034s ok 136 /checksum/MD5/134 1034s ok 137 /checksum/MD5/135 1034s ok 138 /checksum/MD5/136 1034s ok 139 /checksum/MD5/137 1034s ok 140 /checksum/MD5/138 1034s ok 141 /checksum/MD5/139 1034s ok 142 /checksum/MD5/140 1034s ok 143 /checksum/MD5/141 1034s ok 144 /checksum/MD5/142 1034s ok 145 /checksum/MD5/143 1034s ok 146 /checksum/MD5/144 1034s ok 147 /checksum/MD5/145 1034s ok 148 /checksum/MD5/146 1034s ok 149 /checksum/MD5/147 1034s ok 150 /checksum/MD5/148 1034s ok 151 /checksum/MD5/149 1034s ok 152 /checksum/MD5/150 1034s ok 153 /checksum/MD5/151 1034s ok 154 /checksum/MD5/152 1034s ok 155 /checksum/MD5/153 1034s ok 156 /checksum/MD5/154 1034s ok 157 /checksum/MD5/155 1034s ok 158 /checksum/MD5/156 1034s ok 159 /checksum/MD5/157 1034s ok 160 /checksum/MD5/158 1034s ok 161 /checksum/MD5/159 1034s ok 162 /checksum/MD5/160 1034s ok 163 /checksum/MD5/161 1034s ok 164 /checksum/MD5/162 1034s ok 165 /checksum/MD5/163 1034s ok 166 /checksum/MD5/164 1034s ok 167 /checksum/MD5/165 1034s ok 168 /checksum/MD5/166 1034s ok 169 /checksum/MD5/167 1034s ok 170 /checksum/MD5/168 1034s ok 171 /checksum/MD5/169 1034s ok 172 /checksum/MD5/170 1034s ok 173 /checksum/MD5/171 1034s ok 174 /checksum/MD5/172 1034s ok 175 /checksum/MD5/173 1034s ok 176 /checksum/MD5/174 1034s ok 177 /checksum/MD5/175 1034s ok 178 /checksum/MD5/176 1034s ok 179 /checksum/MD5/177 1034s ok 180 /checksum/MD5/178 1034s ok 181 /checksum/MD5/179 1034s ok 182 /checksum/MD5/180 1034s ok 183 /checksum/MD5/181 1034s ok 184 /checksum/MD5/182 1034s ok 185 /checksum/MD5/183 1034s ok 186 /checksum/MD5/string 1034s ok 187 /checksum/MD5/bytes 1034s # Start of reset tests 1034s ok 188 /checksum/MD5/reset/0 1034s ok 189 /checksum/MD5/reset/1 1034s ok 190 /checksum/MD5/reset/2 1034s ok 191 /checksum/MD5/reset/3 1034s ok 192 /checksum/MD5/reset/4 1034s ok 193 /checksum/MD5/reset/5 1034s ok 194 /checksum/MD5/reset/6 1034s ok 195 /checksum/MD5/reset/7 1034s ok 196 /checksum/MD5/reset/8 1034s ok 197 /checksum/MD5/reset/9 1034s ok 198 /checksum/MD5/reset/10 1034s ok 199 /checksum/MD5/reset/11 1034s ok 200 /checksum/MD5/reset/12 1034s ok 201 /checksum/MD5/reset/13 1034s ok 202 /checksum/MD5/reset/14 1034s ok 203 /checksum/MD5/reset/15 1034s ok 204 /checksum/MD5/reset/16 1034s ok 205 /checksum/MD5/reset/17 1034s ok 206 /checksum/MD5/reset/18 1034s ok 207 /checksum/MD5/reset/19 1034s ok 208 /checksum/MD5/reset/20 1034s ok 209 /checksum/MD5/reset/21 1034s ok 210 /checksum/MD5/reset/22 1034s ok 211 /checksum/MD5/reset/23 1034s ok 212 /checksum/MD5/reset/24 1034s ok 213 /checksum/MD5/reset/25 1034s ok 214 /checksum/MD5/reset/26 1034s ok 215 /checksum/MD5/reset/27 1034s ok 216 /checksum/MD5/reset/28 1034s ok 217 /checksum/MD5/reset/29 1034s ok 218 /checksum/MD5/reset/30 1034s ok 219 /checksum/MD5/reset/31 1034s ok 220 /checksum/MD5/reset/32 1034s ok 221 /checksum/MD5/reset/33 1034s ok 222 /checksum/MD5/reset/34 1034s ok 223 /checksum/MD5/reset/35 1034s ok 224 /checksum/MD5/reset/36 1034s ok 225 /checksum/MD5/reset/37 1034s ok 226 /checksum/MD5/reset/38 1034s ok 227 /checksum/MD5/reset/39 1034s ok 228 /checksum/MD5/reset/40 1034s ok 229 /checksum/MD5/reset/41 1034s ok 230 /checksum/MD5/reset/42 1034s ok 231 /checksum/MD5/reset/43 1034s ok 232 /checksum/MD5/reset/44 1034s ok 233 /checksum/MD5/reset/45 1034s ok 234 /checksum/MD5/reset/46 1034s ok 235 /checksum/MD5/reset/47 1034s ok 236 /checksum/MD5/reset/48 1034s ok 237 /checksum/MD5/reset/49 1034s ok 238 /checksum/MD5/reset/50 1034s ok 239 /checksum/MD5/reset/51 1034s ok 240 /checksum/MD5/reset/52 1034s ok 241 /checksum/MD5/reset/53 1034s ok 242 /checksum/MD5/reset/54 1034s ok 243 /checksum/MD5/reset/55 1034s ok 244 /checksum/MD5/reset/56 1034s ok 245 /checksum/MD5/reset/57 1034s ok 246 /checksum/MD5/reset/58 1034s ok 247 /checksum/MD5/reset/59 1034s ok 248 /checksum/MD5/reset/60 1034s ok 249 /checksum/MD5/reset/61 1034s ok 250 /checksum/MD5/reset/62 1034s ok 251 /checksum/MD5/reset/63 1034s ok 252 /checksum/MD5/reset/64 1034s ok 253 /checksum/MD5/reset/65 1034s ok 254 /checksum/MD5/reset/66 1034s ok 255 /checksum/MD5/reset/67 1034s ok 256 /checksum/MD5/reset/68 1034s ok 257 /checksum/MD5/reset/69 1034s ok 258 /checksum/MD5/reset/70 1034s ok 259 /checksum/MD5/reset/71 1034s ok 260 /checksum/MD5/reset/72 1034s ok 261 /checksum/MD5/reset/73 1034s ok 262 /checksum/MD5/reset/74 1034s ok 263 /checksum/MD5/reset/75 1034s ok 264 /checksum/MD5/reset/76 1034s ok 265 /checksum/MD5/reset/77 1034s ok 266 /checksum/MD5/reset/78 1034s ok 267 /checksum/MD5/reset/79 1034s ok 268 /checksum/MD5/reset/80 1034s ok 269 /checksum/MD5/reset/81 1034s ok 270 /checksum/MD5/reset/82 1034s ok 271 /checksum/MD5/reset/83 1034s ok 272 /checksum/MD5/reset/84 1034s ok 273 /checksum/MD5/reset/85 1034s ok 274 /checksum/MD5/reset/86 1034s ok 275 /checksum/MD5/reset/87 1034s ok 276 /checksum/MD5/reset/88 1034s ok 277 /checksum/MD5/reset/89 1034s ok 278 /checksum/MD5/reset/90 1034s ok 279 /checksum/MD5/reset/91 1034s ok 280 /checksum/MD5/reset/92 1034s ok 281 /checksum/MD5/reset/93 1034s ok 282 /checksum/MD5/reset/94 1034s ok 283 /checksum/MD5/reset/95 1034s ok 284 /checksum/MD5/reset/96 1034s ok 285 /checksum/MD5/reset/97 1034s ok 286 /checksum/MD5/reset/98 1034s ok 287 /checksum/MD5/reset/99 1034s ok 288 /checksum/MD5/reset/100 1034s ok 289 /checksum/MD5/reset/101 1034s ok 290 /checksum/MD5/reset/102 1034s ok 291 /checksum/MD5/reset/103 1034s ok 292 /checksum/MD5/reset/104 1034s ok 293 /checksum/MD5/reset/105 1034s ok 294 /checksum/MD5/reset/106 1034s ok 295 /checksum/MD5/reset/107 1034s ok 296 /checksum/MD5/reset/108 1034s ok 297 /checksum/MD5/reset/109 1034s ok 298 /checksum/MD5/reset/110 1034s ok 299 /checksum/MD5/reset/111 1034s ok 300 /checksum/MD5/reset/112 1034s ok 301 /checksum/MD5/reset/113 1034s ok 302 /checksum/MD5/reset/114 1034s ok 303 /checksum/MD5/reset/115 1034s ok 304 /checksum/MD5/reset/116 1034s ok 305 /checksum/MD5/reset/117 1034s ok 306 /checksum/MD5/reset/118 1034s ok 307 /checksum/MD5/reset/119 1034s ok 308 /checksum/MD5/reset/120 1034s ok 309 /checksum/MD5/reset/121 1034s ok 310 /checksum/MD5/reset/122 1034s ok 311 /checksum/MD5/reset/123 1034s ok 312 /checksum/MD5/reset/124 1034s ok 313 /checksum/MD5/reset/125 1034s ok 314 /checksum/MD5/reset/126 1034s ok 315 /checksum/MD5/reset/127 1034s ok 316 /checksum/MD5/reset/128 1034s ok 317 /checksum/MD5/reset/129 1034s ok 318 /checksum/MD5/reset/130 1034s ok 319 /checksum/MD5/reset/131 1034s ok 320 /checksum/MD5/reset/132 1034s ok 321 /checksum/MD5/reset/133 1034s ok 322 /checksum/MD5/reset/134 1034s ok 323 /checksum/MD5/reset/135 1034s ok 324 /checksum/MD5/reset/136 1034s ok 325 /checksum/MD5/reset/137 1034s ok 326 /checksum/MD5/reset/138 1034s ok 327 /checksum/MD5/reset/139 1034s ok 328 /checksum/MD5/reset/140 1034s ok 329 /checksum/MD5/reset/141 1034s ok 330 /checksum/MD5/reset/142 1034s ok 331 /checksum/MD5/reset/143 1034s ok 332 /checksum/MD5/reset/144 1034s ok 333 /checksum/MD5/reset/145 1034s ok 334 /checksum/MD5/reset/146 1034s ok 335 /checksum/MD5/reset/147 1034s ok 336 /checksum/MD5/reset/148 1034s ok 337 /checksum/MD5/reset/149 1034s ok 338 /checksum/MD5/reset/150 1034s ok 339 /checksum/MD5/reset/151 1034s ok 340 /checksum/MD5/reset/152 1034s ok 341 /checksum/MD5/reset/153 1034s ok 342 /checksum/MD5/reset/154 1034s ok 343 /checksum/MD5/reset/155 1034s ok 344 /checksum/MD5/reset/156 1034s ok 345 /checksum/MD5/reset/157 1034s ok 346 /checksum/MD5/reset/158 1034s ok 347 /checksum/MD5/reset/159 1034s ok 348 /checksum/MD5/reset/160 1034s ok 349 /checksum/MD5/reset/161 1034s ok 350 /checksum/MD5/reset/162 1034s ok 351 /checksum/MD5/reset/163 1034s ok 352 /checksum/MD5/reset/164 1034s ok 353 /checksum/MD5/reset/165 1034s ok 354 /checksum/MD5/reset/166 1034s ok 355 /checksum/MD5/reset/167 1034s ok 356 /checksum/MD5/reset/168 1034s ok 357 /checksum/MD5/reset/169 1034s ok 358 /checksum/MD5/reset/170 1034s ok 359 /checksum/MD5/reset/171 1034s ok 360 /checksum/MD5/reset/172 1034s ok 361 /checksum/MD5/reset/173 1034s ok 362 /checksum/MD5/reset/174 1034s ok 363 /checksum/MD5/reset/175 1034s ok 364 /checksum/MD5/reset/176 1034s ok 365 /checksum/MD5/reset/177 1034s ok 366 /checksum/MD5/reset/178 1034s ok 367 /checksum/MD5/reset/179 1034s ok 368 /checksum/MD5/reset/180 1034s ok 369 /checksum/MD5/reset/181 1034s ok 370 /checksum/MD5/reset/182 1034s ok 371 /checksum/MD5/reset/183 1034s # End of reset tests 1034s # End of MD5 tests 1034s # Start of SHA1 tests 1034s ok 372 /checksum/SHA1/0 1034s ok 373 /checksum/SHA1/1 1034s ok 374 /checksum/SHA1/2 1034s ok 375 /checksum/SHA1/3 1034s ok 376 /checksum/SHA1/4 1034s ok 377 /checksum/SHA1/5 1034s ok 378 /checksum/SHA1/6 1034s ok 379 /checksum/SHA1/7 1034s ok 380 /checksum/SHA1/8 1034s ok 381 /checksum/SHA1/9 1034s ok 382 /checksum/SHA1/10 1034s ok 383 /checksum/SHA1/11 1034s ok 384 /checksum/SHA1/12 1034s ok 385 /checksum/SHA1/13 1034s ok 386 /checksum/SHA1/14 1034s ok 387 /checksum/SHA1/15 1034s ok 388 /checksum/SHA1/16 1034s ok 389 /checksum/SHA1/17 1034s ok 390 /checksum/SHA1/18 1034s ok 391 /checksum/SHA1/19 1034s ok 392 /checksum/SHA1/20 1034s ok 393 /checksum/SHA1/21 1034s ok 394 /checksum/SHA1/22 1034s ok 395 /checksum/SHA1/23 1034s ok 396 /checksum/SHA1/24 1034s ok 397 /checksum/SHA1/25 1034s ok 398 /checksum/SHA1/26 1034s ok 399 /checksum/SHA1/27 1034s ok 400 /checksum/SHA1/28 1034s ok 401 /checksum/SHA1/29 1034s ok 402 /checksum/SHA1/30 1034s ok 403 /checksum/SHA1/31 1034s ok 404 /checksum/SHA1/32 1034s ok 405 /checksum/SHA1/33 1034s ok 406 /checksum/SHA1/34 1034s ok 407 /checksum/SHA1/35 1034s ok 408 /checksum/SHA1/36 1034s ok 409 /checksum/SHA1/37 1034s ok 410 /checksum/SHA1/38 1034s ok 411 /checksum/SHA1/39 1034s ok 412 /checksum/SHA1/40 1034s ok 413 /checksum/SHA1/41 1034s ok 414 /checksum/SHA1/42 1034s ok 415 /checksum/SHA1/43 1034s ok 416 /checksum/SHA1/44 1034s ok 417 /checksum/SHA1/45 1034s ok 418 /checksum/SHA1/46 1034s ok 419 /checksum/SHA1/47 1034s ok 420 /checksum/SHA1/48 1034s ok 421 /checksum/SHA1/49 1034s ok 422 /checksum/SHA1/50 1034s ok 423 /checksum/SHA1/51 1034s ok 424 /checksum/SHA1/52 1034s ok 425 /checksum/SHA1/53 1034s ok 426 /checksum/SHA1/54 1034s ok 427 /checksum/SHA1/55 1034s ok 428 /checksum/SHA1/56 1034s ok 429 /checksum/SHA1/57 1034s ok 430 /checksum/SHA1/58 1034s ok 431 /checksum/SHA1/59 1034s ok 432 /checksum/SHA1/60 1034s ok 433 /checksum/SHA1/61 1034s ok 434 /checksum/SHA1/62 1034s ok 435 /checksum/SHA1/63 1034s ok 436 /checksum/SHA1/64 1034s ok 437 /checksum/SHA1/65 1034s ok 438 /checksum/SHA1/66 1034s ok 439 /checksum/SHA1/67 1034s ok 440 /checksum/SHA1/68 1034s ok 441 /checksum/SHA1/69 1034s ok 442 /checksum/SHA1/70 1034s ok 443 /checksum/SHA1/71 1034s ok 444 /checksum/SHA1/72 1034s ok 445 /checksum/SHA1/73 1034s ok 446 /checksum/SHA1/74 1034s ok 447 /checksum/SHA1/75 1034s ok 448 /checksum/SHA1/76 1034s ok 449 /checksum/SHA1/77 1034s ok 450 /checksum/SHA1/78 1034s ok 451 /checksum/SHA1/79 1034s ok 452 /checksum/SHA1/80 1034s ok 453 /checksum/SHA1/81 1034s ok 454 /checksum/SHA1/82 1034s ok 455 /checksum/SHA1/83 1034s ok 456 /checksum/SHA1/84 1034s ok 457 /checksum/SHA1/85 1034s ok 458 /checksum/SHA1/86 1034s ok 459 /checksum/SHA1/87 1034s ok 460 /checksum/SHA1/88 1034s ok 461 /checksum/SHA1/89 1034s ok 462 /checksum/SHA1/90 1034s ok 463 /checksum/SHA1/91 1034s ok 464 /checksum/SHA1/92 1034s ok 465 /checksum/SHA1/93 1034s ok 466 /checksum/SHA1/94 1034s ok 467 /checksum/SHA1/95 1034s ok 468 /checksum/SHA1/96 1034s ok 469 /checksum/SHA1/97 1034s ok 470 /checksum/SHA1/98 1034s ok 471 /checksum/SHA1/99 1034s ok 472 /checksum/SHA1/100 1034s ok 473 /checksum/SHA1/101 1034s ok 474 /checksum/SHA1/102 1034s ok 475 /checksum/SHA1/103 1034s ok 476 /checksum/SHA1/104 1034s ok 477 /checksum/SHA1/105 1034s ok 478 /checksum/SHA1/106 1034s ok 479 /checksum/SHA1/107 1034s ok 480 /checksum/SHA1/108 1034s ok 481 /checksum/SHA1/109 1034s ok 482 /checksum/SHA1/110 1034s ok 483 /checksum/SHA1/111 1034s ok 484 /checksum/SHA1/112 1034s ok 485 /checksum/SHA1/113 1034s ok 486 /checksum/SHA1/114 1034s ok 487 /checksum/SHA1/115 1034s ok 488 /checksum/SHA1/116 1034s ok 489 /checksum/SHA1/117 1034s ok 490 /checksum/SHA1/118 1034s ok 491 /checksum/SHA1/119 1034s ok 492 /checksum/SHA1/120 1034s ok 493 /checksum/SHA1/121 1034s ok 494 /checksum/SHA1/122 1034s ok 495 /checksum/SHA1/123 1034s ok 496 /checksum/SHA1/124 1034s ok 497 /checksum/SHA1/125 1034s ok 498 /checksum/SHA1/126 1034s ok 499 /checksum/SHA1/127 1034s ok 500 /checksum/SHA1/128 1034s ok 501 /checksum/SHA1/129 1034s ok 502 /checksum/SHA1/130 1034s ok 503 /checksum/SHA1/131 1034s ok 504 /checksum/SHA1/132 1034s ok 505 /checksum/SHA1/133 1034s ok 506 /checksum/SHA1/134 1034s ok 507 /checksum/SHA1/135 1034s ok 508 /checksum/SHA1/136 1034s ok 509 /checksum/SHA1/137 1034s ok 510 /checksum/SHA1/138 1034s ok 511 /checksum/SHA1/139 1034s ok 512 /checksum/SHA1/140 1034s ok 513 /checksum/SHA1/141 1034s ok 514 /checksum/SHA1/142 1034s ok 515 /checksum/SHA1/143 1034s ok 516 /checksum/SHA1/144 1034s ok 517 /checksum/SHA1/145 1034s ok 518 /checksum/SHA1/146 1034s ok 519 /checksum/SHA1/147 1034s ok 520 /checksum/SHA1/148 1034s ok 521 /checksum/SHA1/149 1034s ok 522 /checksum/SHA1/150 1034s ok 523 /checksum/SHA1/151 1034s ok 524 /checksum/SHA1/152 1034s ok 525 /checksum/SHA1/153 1034s ok 526 /checksum/SHA1/154 1034s ok 527 /checksum/SHA1/155 1034s ok 528 /checksum/SHA1/156 1034s ok 529 /checksum/SHA1/157 1034s ok 530 /checksum/SHA1/158 1034s ok 531 /checksum/SHA1/159 1034s ok 532 /checksum/SHA1/160 1034s ok 533 /checksum/SHA1/161 1034s ok 534 /checksum/SHA1/162 1034s ok 535 /checksum/SHA1/163 1034s ok 536 /checksum/SHA1/164 1034s ok 537 /checksum/SHA1/165 1034s ok 538 /checksum/SHA1/166 1034s ok 539 /checksum/SHA1/167 1034s ok 540 /checksum/SHA1/168 1034s ok 541 /checksum/SHA1/169 1034s ok 542 /checksum/SHA1/170 1034s ok 543 /checksum/SHA1/171 1034s ok 544 /checksum/SHA1/172 1034s ok 545 /checksum/SHA1/173 1034s ok 546 /checksum/SHA1/174 1034s ok 547 /checksum/SHA1/175 1034s ok 548 /checksum/SHA1/176 1034s ok 549 /checksum/SHA1/177 1034s ok 550 /checksum/SHA1/178 1034s ok 551 /checksum/SHA1/179 1034s ok 552 /checksum/SHA1/180 1034s ok 553 /checksum/SHA1/181 1034s ok 554 /checksum/SHA1/182 1034s ok 555 /checksum/SHA1/183 1034s ok 556 /checksum/SHA1/string 1034s ok 557 /checksum/SHA1/bytes 1034s # Start of reset tests 1034s ok 558 /checksum/SHA1/reset/0 1034s ok 559 /checksum/SHA1/reset/1 1034s ok 560 /checksum/SHA1/reset/2 1034s ok 561 /checksum/SHA1/reset/3 1034s ok 562 /checksum/SHA1/reset/4 1034s ok 563 /checksum/SHA1/reset/5 1034s ok 564 /checksum/SHA1/reset/6 1034s ok 565 /checksum/SHA1/reset/7 1034s ok 566 /checksum/SHA1/reset/8 1034s ok 567 /checksum/SHA1/reset/9 1034s ok 568 /checksum/SHA1/reset/10 1034s ok 569 /checksum/SHA1/reset/11 1034s ok 570 /checksum/SHA1/reset/12 1034s ok 571 /checksum/SHA1/reset/13 1034s ok 572 /checksum/SHA1/reset/14 1034s ok 573 /checksum/SHA1/reset/15 1034s ok 574 /checksum/SHA1/reset/16 1034s ok 575 /checksum/SHA1/reset/17 1034s ok 576 /checksum/SHA1/reset/18 1034s ok 577 /checksum/SHA1/reset/19 1034s ok 578 /checksum/SHA1/reset/20 1034s ok 579 /checksum/SHA1/reset/21 1034s ok 580 /checksum/SHA1/reset/22 1034s ok 581 /checksum/SHA1/reset/23 1034s ok 582 /checksum/SHA1/reset/24 1034s ok 583 /checksum/SHA1/reset/25 1034s ok 584 /checksum/SHA1/reset/26 1034s ok 585 /checksum/SHA1/reset/27 1034s ok 586 /checksum/SHA1/reset/28 1034s ok 587 /checksum/SHA1/reset/29 1034s ok 588 /checksum/SHA1/reset/30 1034s ok 589 /checksum/SHA1/reset/31 1034s ok 590 /checksum/SHA1/reset/32 1034s ok 591 /checksum/SHA1/reset/33 1034s ok 592 /checksum/SHA1/reset/34 1034s ok 593 /checksum/SHA1/reset/35 1034s ok 594 /checksum/SHA1/reset/36 1034s ok 595 /checksum/SHA1/reset/37 1034s ok 596 /checksum/SHA1/reset/38 1034s ok 597 /checksum/SHA1/reset/39 1034s ok 598 /checksum/SHA1/reset/40 1034s ok 599 /checksum/SHA1/reset/41 1034s ok 600 /checksum/SHA1/reset/42 1034s ok 601 /checksum/SHA1/reset/43 1034s ok 602 /checksum/SHA1/reset/44 1034s ok 603 /checksum/SHA1/reset/45 1034s ok 604 /checksum/SHA1/reset/46 1034s ok 605 /checksum/SHA1/reset/47 1034s ok 606 /checksum/SHA1/reset/48 1034s ok 607 /checksum/SHA1/reset/49 1034s ok 608 /checksum/SHA1/reset/50 1034s ok 609 /checksum/SHA1/reset/51 1034s ok 610 /checksum/SHA1/reset/52 1034s ok 611 /checksum/SHA1/reset/53 1034s ok 612 /checksum/SHA1/reset/54 1034s ok 613 /checksum/SHA1/reset/55 1034s ok 614 /checksum/SHA1/reset/56 1034s ok 615 /checksum/SHA1/reset/57 1034s ok 616 /checksum/SHA1/reset/58 1034s ok 617 /checksum/SHA1/reset/59 1034s ok 618 /checksum/SHA1/reset/60 1034s ok 619 /checksum/SHA1/reset/61 1034s ok 620 /checksum/SHA1/reset/62 1034s ok 621 /checksum/SHA1/reset/63 1034s ok 622 /checksum/SHA1/reset/64 1034s ok 623 /checksum/SHA1/reset/65 1034s ok 624 /checksum/SHA1/reset/66 1034s ok 625 /checksum/SHA1/reset/67 1034s ok 626 /checksum/SHA1/reset/68 1034s ok 627 /checksum/SHA1/reset/69 1034s ok 628 /checksum/SHA1/reset/70 1034s ok 629 /checksum/SHA1/reset/71 1034s ok 630 /checksum/SHA1/reset/72 1034s ok 631 /checksum/SHA1/reset/73 1034s ok 632 /checksum/SHA1/reset/74 1034s ok 633 /checksum/SHA1/reset/75 1034s ok 634 /checksum/SHA1/reset/76 1034s ok 635 /checksum/SHA1/reset/77 1034s ok 636 /checksum/SHA1/reset/78 1034s ok 637 /checksum/SHA1/reset/79 1034s ok 638 /checksum/SHA1/reset/80 1034s ok 639 /checksum/SHA1/reset/81 1034s ok 640 /checksum/SHA1/reset/82 1034s ok 641 /checksum/SHA1/reset/83 1034s ok 642 /checksum/SHA1/reset/84 1034s ok 643 /checksum/SHA1/reset/85 1034s ok 644 /checksum/SHA1/reset/86 1034s ok 645 /checksum/SHA1/reset/87 1034s ok 646 /checksum/SHA1/reset/88 1034s ok 647 /checksum/SHA1/reset/89 1034s ok 648 /checksum/SHA1/reset/90 1034s ok 649 /checksum/SHA1/reset/91 1034s ok 650 /checksum/SHA1/reset/92 1034s ok 651 /checksum/SHA1/reset/93 1034s ok 652 /checksum/SHA1/reset/94 1034s ok 653 /checksum/SHA1/reset/95 1034s ok 654 /checksum/SHA1/reset/96 1034s ok 655 /checksum/SHA1/reset/97 1034s ok 656 /checksum/SHA1/reset/98 1034s ok 657 /checksum/SHA1/reset/99 1034s ok 658 /checksum/SHA1/reset/100 1034s ok 659 /checksum/SHA1/reset/101 1034s ok 660 /checksum/SHA1/reset/102 1034s ok 661 /checksum/SHA1/reset/103 1034s ok 662 /checksum/SHA1/reset/104 1034s ok 663 /checksum/SHA1/reset/105 1034s ok 664 /checksum/SHA1/reset/106 1034s ok 665 /checksum/SHA1/reset/107 1034s ok 666 /checksum/SHA1/reset/108 1034s ok 667 /checksum/SHA1/reset/109 1034s ok 668 /checksum/SHA1/reset/110 1034s ok 669 /checksum/SHA1/reset/111 1034s ok 670 /checksum/SHA1/reset/112 1034s ok 671 /checksum/SHA1/reset/113 1034s ok 672 /checksum/SHA1/reset/114 1034s ok 673 /checksum/SHA1/reset/115 1034s ok 674 /checksum/SHA1/reset/116 1034s ok 675 /checksum/SHA1/reset/117 1034s ok 676 /checksum/SHA1/reset/118 1034s ok 677 /checksum/SHA1/reset/119 1034s ok 678 /checksum/SHA1/reset/120 1034s ok 679 /checksum/SHA1/reset/121 1034s ok 680 /checksum/SHA1/reset/122 1034s ok 681 /checksum/SHA1/reset/123 1034s ok 682 /checksum/SHA1/reset/124 1034s ok 683 /checksum/SHA1/reset/125 1034s ok 684 /checksum/SHA1/reset/126 1034s ok 685 /checksum/SHA1/reset/127 1034s ok 686 /checksum/SHA1/reset/128 1034s ok 687 /checksum/SHA1/reset/129 1034s ok 688 /checksum/SHA1/reset/130 1034s ok 689 /checksum/SHA1/reset/131 1034s ok 690 /checksum/SHA1/reset/132 1034s ok 691 /checksum/SHA1/reset/133 1034s ok 692 /checksum/SHA1/reset/134 1034s ok 693 /checksum/SHA1/reset/135 1034s ok 694 /checksum/SHA1/reset/136 1034s ok 695 /checksum/SHA1/reset/137 1034s ok 696 /checksum/SHA1/reset/138 1034s ok 697 /checksum/SHA1/reset/139 1034s ok 698 /checksum/SHA1/reset/140 1034s ok 699 /checksum/SHA1/reset/141 1034s ok 700 /checksum/SHA1/reset/142 1034s ok 701 /checksum/SHA1/reset/143 1034s ok 702 /checksum/SHA1/reset/144 1034s ok 703 /checksum/SHA1/reset/145 1034s ok 704 /checksum/SHA1/reset/146 1034s ok 705 /checksum/SHA1/reset/147 1034s ok 706 /checksum/SHA1/reset/148 1034s ok 707 /checksum/SHA1/reset/149 1034s ok 708 /checksum/SHA1/reset/150 1034s ok 709 /checksum/SHA1/reset/151 1034s ok 710 /checksum/SHA1/reset/152 1034s ok 711 /checksum/SHA1/reset/153 1034s ok 712 /checksum/SHA1/reset/154 1034s ok 713 /checksum/SHA1/reset/155 1034s ok 714 /checksum/SHA1/reset/156 1034s ok 715 /checksum/SHA1/reset/157 1034s ok 716 /checksum/SHA1/reset/158 1034s ok 717 /checksum/SHA1/reset/159 1034s ok 718 /checksum/SHA1/reset/160 1034s ok 719 /checksum/SHA1/reset/161 1034s ok 720 /checksum/SHA1/reset/162 1034s ok 721 /checksum/SHA1/reset/163 1034s ok 722 /checksum/SHA1/reset/164 1034s ok 723 /checksum/SHA1/reset/165 1034s ok 724 /checksum/SHA1/reset/166 1034s ok 725 /checksum/SHA1/reset/167 1034s ok 726 /checksum/SHA1/reset/168 1034s ok 727 /checksum/SHA1/reset/169 1034s ok 728 /checksum/SHA1/reset/170 1034s ok 729 /checksum/SHA1/reset/171 1034s ok 730 /checksum/SHA1/reset/172 1034s ok 731 /checksum/SHA1/reset/173 1034s ok 732 /checksum/SHA1/reset/174 1034s ok 733 /checksum/SHA1/reset/175 1034s ok 734 /checksum/SHA1/reset/176 1034s ok 735 /checksum/SHA1/reset/177 1034s ok 736 /checksum/SHA1/reset/178 1034s ok 737 /checksum/SHA1/reset/179 1034s ok 738 /checksum/SHA1/reset/180 1034s ok 739 /checksum/SHA1/reset/181 1034s ok 740 /checksum/SHA1/reset/182 1034s ok 741 /checksum/SHA1/reset/183 1034s # End of reset tests 1034s # End of SHA1 tests 1034s # Start of SHA256 tests 1034s ok 742 /checksum/SHA256/0 1034s ok 743 /checksum/SHA256/1 1034s ok 744 /checksum/SHA256/2 1034s ok 745 /checksum/SHA256/3 1034s ok 746 /checksum/SHA256/4 1034s ok 747 /checksum/SHA256/5 1034s ok 748 /checksum/SHA256/6 1034s ok 749 /checksum/SHA256/7 1034s ok 750 /checksum/SHA256/8 1034s ok 751 /checksum/SHA256/9 1034s ok 752 /checksum/SHA256/10 1034s ok 753 /checksum/SHA256/11 1034s ok 754 /checksum/SHA256/12 1034s ok 755 /checksum/SHA256/13 1034s ok 756 /checksum/SHA256/14 1034s ok 757 /checksum/SHA256/15 1034s ok 758 /checksum/SHA256/16 1034s ok 759 /checksum/SHA256/17 1034s ok 760 /checksum/SHA256/18 1034s ok 761 /checksum/SHA256/19 1034s ok 762 /checksum/SHA256/20 1034s ok 763 /checksum/SHA256/21 1034s ok 764 /checksum/SHA256/22 1034s ok 765 /checksum/SHA256/23 1034s ok 766 /checksum/SHA256/24 1034s ok 767 /checksum/SHA256/25 1034s ok 768 /checksum/SHA256/26 1034s ok 769 /checksum/SHA256/27 1034s ok 770 /checksum/SHA256/28 1034s ok 771 /checksum/SHA256/29 1034s ok 772 /checksum/SHA256/30 1034s ok 773 /checksum/SHA256/31 1034s ok 774 /checksum/SHA256/32 1034s ok 775 /checksum/SHA256/33 1034s ok 776 /checksum/SHA256/34 1034s ok 777 /checksum/SHA256/35 1034s ok 778 /checksum/SHA256/36 1034s ok 779 /checksum/SHA256/37 1034s ok 780 /checksum/SHA256/38 1034s ok 781 /checksum/SHA256/39 1034s ok 782 /checksum/SHA256/40 1034s ok 783 /checksum/SHA256/41 1034s ok 784 /checksum/SHA256/42 1034s ok 785 /checksum/SHA256/43 1034s ok 786 /checksum/SHA256/44 1034s ok 787 /checksum/SHA256/45 1034s ok 788 /checksum/SHA256/46 1034s ok 789 /checksum/SHA256/47 1034s ok 790 /checksum/SHA256/48 1034s ok 791 /checksum/SHA256/49 1034s ok 792 /checksum/SHA256/50 1034s ok 793 /checksum/SHA256/51 1034s ok 794 /checksum/SHA256/52 1034s ok 795 /checksum/SHA256/53 1034s ok 796 /checksum/SHA256/54 1034s ok 797 /checksum/SHA256/55 1034s ok 798 /checksum/SHA256/56 1034s ok 799 /checksum/SHA256/57 1034s ok 800 /checksum/SHA256/58 1034s ok 801 /checksum/SHA256/59 1034s ok 802 /checksum/SHA256/60 1034s ok 803 /checksum/SHA256/61 1034s ok 804 /checksum/SHA256/62 1034s ok 805 /checksum/SHA256/63 1034s ok 806 /checksum/SHA256/64 1034s ok 807 /checksum/SHA256/65 1034s ok 808 /checksum/SHA256/66 1034s ok 809 /checksum/SHA256/67 1034s ok 810 /checksum/SHA256/68 1034s ok 811 /checksum/SHA256/69 1034s ok 812 /checksum/SHA256/70 1034s ok 813 /checksum/SHA256/71 1034s ok 814 /checksum/SHA256/72 1034s ok 815 /checksum/SHA256/73 1034s ok 816 /checksum/SHA256/74 1034s ok 817 /checksum/SHA256/75 1034s ok 818 /checksum/SHA256/76 1034s ok 819 /checksum/SHA256/77 1034s ok 820 /checksum/SHA256/78 1034s ok 821 /checksum/SHA256/79 1034s ok 822 /checksum/SHA256/80 1034s ok 823 /checksum/SHA256/81 1034s ok 824 /checksum/SHA256/82 1034s ok 825 /checksum/SHA256/83 1034s ok 826 /checksum/SHA256/84 1034s ok 827 /checksum/SHA256/85 1034s ok 828 /checksum/SHA256/86 1034s ok 829 /checksum/SHA256/87 1034s ok 830 /checksum/SHA256/88 1034s ok 831 /checksum/SHA256/89 1034s ok 832 /checksum/SHA256/90 1034s ok 833 /checksum/SHA256/91 1034s ok 834 /checksum/SHA256/92 1034s ok 835 /checksum/SHA256/93 1034s ok 836 /checksum/SHA256/94 1034s ok 837 /checksum/SHA256/95 1034s ok 838 /checksum/SHA256/96 1034s ok 839 /checksum/SHA256/97 1034s ok 840 /checksum/SHA256/98 1034s ok 841 /checksum/SHA256/99 1034s ok 842 /checksum/SHA256/100 1034s ok 843 /checksum/SHA256/101 1034s ok 844 /checksum/SHA256/102 1034s ok 845 /checksum/SHA256/103 1034s ok 846 /checksum/SHA256/104 1034s ok 847 /checksum/SHA256/105 1034s ok 848 /checksum/SHA256/106 1034s ok 849 /checksum/SHA256/107 1034s ok 850 /checksum/SHA256/108 1034s ok 851 /checksum/SHA256/109 1034s ok 852 /checksum/SHA256/110 1034s ok 853 /checksum/SHA256/111 1034s ok 854 /checksum/SHA256/112 1034s ok 855 /checksum/SHA256/113 1034s ok 856 /checksum/SHA256/114 1034s ok 857 /checksum/SHA256/115 1034s ok 858 /checksum/SHA256/116 1034s ok 859 /checksum/SHA256/117 1034s ok 860 /checksum/SHA256/118 1034s ok 861 /checksum/SHA256/119 1034s ok 862 /checksum/SHA256/120 1034s ok 863 /checksum/SHA256/121 1034s ok 864 /checksum/SHA256/122 1034s ok 865 /checksum/SHA256/123 1034s ok 866 /checksum/SHA256/124 1034s ok 867 /checksum/SHA256/125 1034s ok 868 /checksum/SHA256/126 1034s ok 869 /checksum/SHA256/127 1034s ok 870 /checksum/SHA256/128 1034s ok 871 /checksum/SHA256/129 1034s ok 872 /checksum/SHA256/130 1034s ok 873 /checksum/SHA256/131 1034s ok 874 /checksum/SHA256/132 1034s ok 875 /checksum/SHA256/133 1034s ok 876 /checksum/SHA256/134 1034s ok 877 /checksum/SHA256/135 1034s ok 878 /checksum/SHA256/136 1034s ok 879 /checksum/SHA256/137 1034s ok 880 /checksum/SHA256/138 1034s ok 881 /checksum/SHA256/139 1034s ok 882 /checksum/SHA256/140 1034s ok 883 /checksum/SHA256/141 1034s ok 884 /checksum/SHA256/142 1034s ok 885 /checksum/SHA256/143 1034s ok 886 /checksum/SHA256/144 1034s ok 887 /checksum/SHA256/145 1034s ok 888 /checksum/SHA256/146 1034s ok 889 /checksum/SHA256/147 1034s ok 890 /checksum/SHA256/148 1034s ok 891 /checksum/SHA256/149 1034s ok 892 /checksum/SHA256/150 1034s ok 893 /checksum/SHA256/151 1034s ok 894 /checksum/SHA256/152 1034s ok 895 /checksum/SHA256/153 1034s ok 896 /checksum/SHA256/154 1034s ok 897 /checksum/SHA256/155 1034s ok 898 /checksum/SHA256/156 1034s ok 899 /checksum/SHA256/157 1034s ok 900 /checksum/SHA256/158 1034s ok 901 /checksum/SHA256/159 1034s ok 902 /checksum/SHA256/160 1034s ok 903 /checksum/SHA256/161 1034s ok 904 /checksum/SHA256/162 1034s ok 905 /checksum/SHA256/163 1034s ok 906 /checksum/SHA256/164 1034s ok 907 /checksum/SHA256/165 1034s ok 908 /checksum/SHA256/166 1034s ok 909 /checksum/SHA256/167 1034s ok 910 /checksum/SHA256/168 1034s ok 911 /checksum/SHA256/169 1034s ok 912 /checksum/SHA256/170 1034s ok 913 /checksum/SHA256/171 1034s ok 914 /checksum/SHA256/172 1034s ok 915 /checksum/SHA256/173 1034s ok 916 /checksum/SHA256/174 1034s ok 917 /checksum/SHA256/175 1034s ok 918 /checksum/SHA256/176 1034s ok 919 /checksum/SHA256/177 1034s ok 920 /checksum/SHA256/178 1034s ok 921 /checksum/SHA256/179 1034s ok 922 /checksum/SHA256/180 1034s ok 923 /checksum/SHA256/181 1034s ok 924 /checksum/SHA256/182 1034s ok 925 /checksum/SHA256/183 1034s ok 926 /checksum/SHA256/string 1034s ok 927 /checksum/SHA256/bytes 1034s # Start of reset tests 1034s ok 928 /checksum/SHA256/reset/0 1034s ok 929 /checksum/SHA256/reset/1 1034s ok 930 /checksum/SHA256/reset/2 1034s ok 931 /checksum/SHA256/reset/3 1034s ok 932 /checksum/SHA256/reset/4 1034s ok 933 /checksum/SHA256/reset/5 1034s ok 934 /checksum/SHA256/reset/6 1034s ok 935 /checksum/SHA256/reset/7 1034s ok 936 /checksum/SHA256/reset/8 1034s ok 937 /checksum/SHA256/reset/9 1034s ok 938 /checksum/SHA256/reset/10 1034s ok 939 /checksum/SHA256/reset/11 1034s ok 940 /checksum/SHA256/reset/12 1034s ok 941 /checksum/SHA256/reset/13 1034s ok 942 /checksum/SHA256/reset/14 1034s ok 943 /checksum/SHA256/reset/15 1034s ok 944 /checksum/SHA256/reset/16 1034s ok 945 /checksum/SHA256/reset/17 1034s ok 946 /checksum/SHA256/reset/18 1034s ok 947 /checksum/SHA256/reset/19 1034s ok 948 /checksum/SHA256/reset/20 1034s ok 949 /checksum/SHA256/reset/21 1034s ok 950 /checksum/SHA256/reset/22 1034s ok 951 /checksum/SHA256/reset/23 1034s ok 952 /checksum/SHA256/reset/24 1034s ok 953 /checksum/SHA256/reset/25 1034s ok 954 /checksum/SHA256/reset/26 1034s ok 955 /checksum/SHA256/reset/27 1034s ok 956 /checksum/SHA256/reset/28 1034s ok 957 /checksum/SHA256/reset/29 1034s ok 958 /checksum/SHA256/reset/30 1034s ok 959 /checksum/SHA256/reset/31 1034s ok 960 /checksum/SHA256/reset/32 1034s ok 961 /checksum/SHA256/reset/33 1034s ok 962 /checksum/SHA256/reset/34 1034s ok 963 /checksum/SHA256/reset/35 1034s ok 964 /checksum/SHA256/reset/36 1034s ok 965 /checksum/SHA256/reset/37 1034s ok 966 /checksum/SHA256/reset/38 1034s ok 967 /checksum/SHA256/reset/39 1034s ok 968 /checksum/SHA256/reset/40 1034s ok 969 /checksum/SHA256/reset/41 1034s ok 970 /checksum/SHA256/reset/42 1034s ok 971 /checksum/SHA256/reset/43 1034s ok 972 /checksum/SHA256/reset/44 1034s ok 973 /checksum/SHA256/reset/45 1034s ok 974 /checksum/SHA256/reset/46 1034s ok 975 /checksum/SHA256/reset/47 1034s ok 976 /checksum/SHA256/reset/48 1034s ok 977 /checksum/SHA256/reset/49 1034s ok 978 /checksum/SHA256/reset/50 1034s ok 979 /checksum/SHA256/reset/51 1034s ok 980 /checksum/SHA256/reset/52 1034s ok 981 /checksum/SHA256/reset/53 1034s ok 982 /checksum/SHA256/reset/54 1034s ok 983 /checksum/SHA256/reset/55 1034s ok 984 /checksum/SHA256/reset/56 1034s ok 985 /checksum/SHA256/reset/57 1034s ok 986 /checksum/SHA256/reset/58 1034s ok 987 /checksum/SHA256/reset/59 1034s ok 988 /checksum/SHA256/reset/60 1034s ok 989 /checksum/SHA256/reset/61 1034s ok 990 /checksum/SHA256/reset/62 1034s ok 991 /checksum/SHA256/reset/63 1034s ok 992 /checksum/SHA256/reset/64 1034s ok 993 /checksum/SHA256/reset/65 1034s ok 994 /checksum/SHA256/reset/66 1034s ok 995 /checksum/SHA256/reset/67 1034s ok 996 /checksum/SHA256/reset/68 1034s ok 997 /checksum/SHA256/reset/69 1034s ok 998 /checksum/SHA256/reset/70 1034s ok 999 /checksum/SHA256/reset/71 1034s ok 1000 /checksum/SHA256/reset/72 1034s ok 1001 /checksum/SHA256/reset/73 1034s ok 1002 /checksum/SHA256/reset/74 1034s ok 1003 /checksum/SHA256/reset/75 1034s ok 1004 /checksum/SHA256/reset/76 1034s ok 1005 /checksum/SHA256/reset/77 1034s ok 1006 /checksum/SHA256/reset/78 1034s ok 1007 /checksum/SHA256/reset/79 1034s ok 1008 /checksum/SHA256/reset/80 1034s ok 1009 /checksum/SHA256/reset/81 1034s ok 1010 /checksum/SHA256/reset/82 1034s ok 1011 /checksum/SHA256/reset/83 1034s ok 1012 /checksum/SHA256/reset/84 1034s ok 1013 /checksum/SHA256/reset/85 1034s ok 1014 /checksum/SHA256/reset/86 1034s ok 1015 /checksum/SHA256/reset/87 1034s ok 1016 /checksum/SHA256/reset/88 1034s ok 1017 /checksum/SHA256/reset/89 1034s ok 1018 /checksum/SHA256/reset/90 1034s ok 1019 /checksum/SHA256/reset/91 1034s ok 1020 /checksum/SHA256/reset/92 1034s ok 1021 /checksum/SHA256/reset/93 1034s ok 1022 /checksum/SHA256/reset/94 1034s ok 1023 /checksum/SHA256/reset/95 1034s ok 1024 /checksum/SHA256/reset/96 1034s ok 1025 /checksum/SHA256/reset/97 1034s ok 1026 /checksum/SHA256/reset/98 1034s ok 1027 /checksum/SHA256/reset/99 1034s ok 1028 /checksum/SHA256/reset/100 1034s ok 1029 /checksum/SHA256/reset/101 1034s ok 1030 /checksum/SHA256/reset/102 1034s ok 1031 /checksum/SHA256/reset/103 1034s ok 1032 /checksum/SHA256/reset/104 1034s ok 1033 /checksum/SHA256/reset/105 1034s ok 1034 /checksum/SHA256/reset/106 1034s ok 1035 /checksum/SHA256/reset/107 1034s ok 1036 /checksum/SHA256/reset/108 1034s ok 1037 /checksum/SHA256/reset/109 1034s ok 1038 /checksum/SHA256/reset/110 1034s ok 1039 /checksum/SHA256/reset/111 1034s ok 1040 /checksum/SHA256/reset/112 1034s ok 1041 /checksum/SHA256/reset/113 1034s ok 1042 /checksum/SHA256/reset/114 1034s ok 1043 /checksum/SHA256/reset/115 1034s ok 1044 /checksum/SHA256/reset/116 1034s ok 1045 /checksum/SHA256/reset/117 1034s ok 1046 /checksum/SHA256/reset/118 1034s ok 1047 /checksum/SHA256/reset/119 1034s ok 1048 /checksum/SHA256/reset/120 1034s ok 1049 /checksum/SHA256/reset/121 1034s ok 1050 /checksum/SHA256/reset/122 1034s ok 1051 /checksum/SHA256/reset/123 1034s ok 1052 /checksum/SHA256/reset/124 1034s ok 1053 /checksum/SHA256/reset/125 1034s ok 1054 /checksum/SHA256/reset/126 1034s ok 1055 /checksum/SHA256/reset/127 1034s ok 1056 /checksum/SHA256/reset/128 1034s ok 1057 /checksum/SHA256/reset/129 1034s ok 1058 /checksum/SHA256/reset/130 1034s ok 1059 /checksum/SHA256/reset/131 1034s ok 1060 /checksum/SHA256/reset/132 1034s ok 1061 /checksum/SHA256/reset/133 1034s ok 1062 /checksum/SHA256/reset/134 1034s ok 1063 /checksum/SHA256/reset/135 1034s ok 1064 /checksum/SHA256/reset/136 1034s ok 1065 /checksum/SHA256/reset/137 1034s ok 1066 /checksum/SHA256/reset/138 1034s ok 1067 /checksum/SHA256/reset/139 1034s ok 1068 /checksum/SHA256/reset/140 1034s ok 1069 /checksum/SHA256/reset/141 1034s ok 1070 /checksum/SHA256/reset/142 1034s ok 1071 /checksum/SHA256/reset/143 1034s ok 1072 /checksum/SHA256/reset/144 1034s ok 1073 /checksum/SHA256/reset/145 1034s ok 1074 /checksum/SHA256/reset/146 1034s ok 1075 /checksum/SHA256/reset/147 1034s ok 1076 /checksum/SHA256/reset/148 1034s ok 1077 /checksum/SHA256/reset/149 1034s ok 1078 /checksum/SHA256/reset/150 1034s ok 1079 /checksum/SHA256/reset/151 1034s ok 1080 /checksum/SHA256/reset/152 1034s ok 1081 /checksum/SHA256/reset/153 1034s ok 1082 /checksum/SHA256/reset/154 1034s ok 1083 /checksum/SHA256/reset/155 1034s ok 1084 /checksum/SHA256/reset/156 1034s ok 1085 /checksum/SHA256/reset/157 1034s ok 1086 /checksum/SHA256/reset/158 1034s ok 1087 /checksum/SHA256/reset/159 1034s ok 1088 /checksum/SHA256/reset/160 1034s ok 1089 /checksum/SHA256/reset/161 1034s ok 1090 /checksum/SHA256/reset/162 1034s ok 1091 /checksum/SHA256/reset/163 1034s ok 1092 /checksum/SHA256/reset/164 1034s ok 1093 /checksum/SHA256/reset/165 1034s ok 1094 /checksum/SHA256/reset/166 1034s ok 1095 /checksum/SHA256/reset/167 1034s ok 1096 /checksum/SHA256/reset/168 1034s ok 1097 /checksum/SHA256/reset/169 1034s ok 1098 /checksum/SHA256/reset/170 1034s ok 1099 /checksum/SHA256/reset/171 1034s ok 1100 /checksum/SHA256/reset/172 1034s ok 1101 /checksum/SHA256/reset/173 1034s ok 1102 /checksum/SHA256/reset/174 1034s ok 1103 /checksum/SHA256/reset/175 1034s ok 1104 /checksum/SHA256/reset/176 1034s ok 1105 /checksum/SHA256/reset/177 1034s ok 1106 /checksum/SHA256/reset/178 1034s ok 1107 /checksum/SHA256/reset/179 1034s ok 1108 /checksum/SHA256/reset/180 1034s ok 1109 /checksum/SHA256/reset/181 1034s ok 1110 /checksum/SHA256/reset/182 1034s ok 1111 /checksum/SHA256/reset/183 1034s # End of reset tests 1034s # End of SHA256 tests 1034s # Start of SHA384 tests 1034s ok 1112 /checksum/SHA384/0 1034s ok 1113 /checksum/SHA384/1 1034s ok 1114 /checksum/SHA384/2 1034s ok 1115 /checksum/SHA384/3 1034s ok 1116 /checksum/SHA384/4 1034s ok 1117 /checksum/SHA384/5 1034s ok 1118 /checksum/SHA384/6 1034s ok 1119 /checksum/SHA384/7 1034s ok 1120 /checksum/SHA384/8 1034s ok 1121 /checksum/SHA384/9 1034s ok 1122 /checksum/SHA384/10 1034s ok 1123 /checksum/SHA384/11 1034s ok 1124 /checksum/SHA384/12 1034s ok 1125 /checksum/SHA384/13 1034s ok 1126 /checksum/SHA384/14 1034s ok 1127 /checksum/SHA384/15 1034s ok 1128 /checksum/SHA384/16 1034s ok 1129 /checksum/SHA384/17 1034s ok 1130 /checksum/SHA384/18 1034s ok 1131 /checksum/SHA384/19 1034s ok 1132 /checksum/SHA384/20 1034s ok 1133 /checksum/SHA384/21 1034s ok 1134 /checksum/SHA384/22 1034s ok 1135 /checksum/SHA384/23 1034s ok 1136 /checksum/SHA384/24 1034s ok 1137 /checksum/SHA384/25 1034s ok 1138 /checksum/SHA384/26 1034s ok 1139 /checksum/SHA384/27 1034s ok 1140 /checksum/SHA384/28 1034s ok 1141 /checksum/SHA384/29 1034s ok 1142 /checksum/SHA384/30 1034s ok 1143 /checksum/SHA384/31 1034s ok 1144 /checksum/SHA384/32 1034s ok 1145 /checksum/SHA384/33 1034s ok 1146 /checksum/SHA384/34 1034s ok 1147 /checksum/SHA384/35 1034s ok 1148 /checksum/SHA384/36 1034s ok 1149 /checksum/SHA384/37 1034s ok 1150 /checksum/SHA384/38 1034s ok 1151 /checksum/SHA384/39 1034s ok 1152 /checksum/SHA384/40 1034s ok 1153 /checksum/SHA384/41 1034s ok 1154 /checksum/SHA384/42 1034s ok 1155 /checksum/SHA384/43 1034s ok 1156 /checksum/SHA384/44 1034s ok 1157 /checksum/SHA384/45 1034s ok 1158 /checksum/SHA384/46 1034s ok 1159 /checksum/SHA384/47 1034s ok 1160 /checksum/SHA384/48 1034s ok 1161 /checksum/SHA384/49 1034s ok 1162 /checksum/SHA384/50 1034s ok 1163 /checksum/SHA384/51 1034s ok 1164 /checksum/SHA384/52 1034s ok 1165 /checksum/SHA384/53 1034s ok 1166 /checksum/SHA384/54 1034s ok 1167 /checksum/SHA384/55 1034s ok 1168 /checksum/SHA384/56 1034s ok 1169 /checksum/SHA384/57 1034s ok 1170 /checksum/SHA384/58 1034s ok 1171 /checksum/SHA384/59 1034s ok 1172 /checksum/SHA384/60 1034s ok 1173 /checksum/SHA384/61 1034s ok 1174 /checksum/SHA384/62 1034s ok 1175 /checksum/SHA384/63 1034s ok 1176 /checksum/SHA384/64 1034s ok 1177 /checksum/SHA384/65 1034s ok 1178 /checksum/SHA384/66 1034s ok 1179 /checksum/SHA384/67 1034s ok 1180 /checksum/SHA384/68 1034s ok 1181 /checksum/SHA384/69 1034s ok 1182 /checksum/SHA384/70 1034s ok 1183 /checksum/SHA384/71 1034s ok 1184 /checksum/SHA384/72 1034s ok 1185 /checksum/SHA384/73 1034s ok 1186 /checksum/SHA384/74 1034s ok 1187 /checksum/SHA384/75 1034s ok 1188 /checksum/SHA384/76 1034s ok 1189 /checksum/SHA384/77 1034s ok 1190 /checksum/SHA384/78 1034s ok 1191 /checksum/SHA384/79 1034s ok 1192 /checksum/SHA384/80 1034s ok 1193 /checksum/SHA384/81 1034s ok 1194 /checksum/SHA384/82 1034s ok 1195 /checksum/SHA384/83 1034s ok 1196 /checksum/SHA384/84 1034s ok 1197 /checksum/SHA384/85 1034s ok 1198 /checksum/SHA384/86 1034s ok 1199 /checksum/SHA384/87 1034s ok 1200 /checksum/SHA384/88 1034s ok 1201 /checksum/SHA384/89 1034s ok 1202 /checksum/SHA384/90 1034s ok 1203 /checksum/SHA384/91 1034s ok 1204 /checksum/SHA384/92 1034s ok 1205 /checksum/SHA384/93 1034s ok 1206 /checksum/SHA384/94 1034s ok 1207 /checksum/SHA384/95 1034s ok 1208 /checksum/SHA384/96 1034s ok 1209 /checksum/SHA384/97 1034s ok 1210 /checksum/SHA384/98 1034s ok 1211 /checksum/SHA384/99 1034s ok 1212 /checksum/SHA384/100 1034s ok 1213 /checksum/SHA384/101 1034s ok 1214 /checksum/SHA384/102 1034s ok 1215 /checksum/SHA384/103 1034s ok 1216 /checksum/SHA384/104 1034s ok 1217 /checksum/SHA384/105 1034s ok 1218 /checksum/SHA384/106 1034s ok 1219 /checksum/SHA384/107 1034s ok 1220 /checksum/SHA384/108 1034s ok 1221 /checksum/SHA384/109 1034s ok 1222 /checksum/SHA384/110 1034s ok 1223 /checksum/SHA384/111 1034s ok 1224 /checksum/SHA384/112 1034s ok 1225 /checksum/SHA384/113 1034s ok 1226 /checksum/SHA384/114 1034s ok 1227 /checksum/SHA384/115 1034s ok 1228 /checksum/SHA384/116 1034s ok 1229 /checksum/SHA384/117 1034s ok 1230 /checksum/SHA384/118 1034s ok 1231 /checksum/SHA384/119 1034s ok 1232 /checksum/SHA384/120 1034s ok 1233 /checksum/SHA384/121 1034s ok 1234 /checksum/SHA384/122 1034s ok 1235 /checksum/SHA384/123 1034s ok 1236 /checksum/SHA384/124 1034s ok 1237 /checksum/SHA384/125 1034s ok 1238 /checksum/SHA384/126 1034s ok 1239 /checksum/SHA384/127 1034s ok 1240 /checksum/SHA384/128 1034s ok 1241 /checksum/SHA384/129 1034s ok 1242 /checksum/SHA384/130 1034s ok 1243 /checksum/SHA384/131 1034s ok 1244 /checksum/SHA384/132 1034s ok 1245 /checksum/SHA384/133 1034s ok 1246 /checksum/SHA384/134 1034s ok 1247 /checksum/SHA384/135 1034s ok 1248 /checksum/SHA384/136 1034s ok 1249 /checksum/SHA384/137 1034s ok 1250 /checksum/SHA384/138 1034s ok 1251 /checksum/SHA384/139 1034s ok 1252 /checksum/SHA384/140 1034s ok 1253 /checksum/SHA384/141 1034s ok 1254 /checksum/SHA384/142 1034s ok 1255 /checksum/SHA384/143 1034s ok 1256 /checksum/SHA384/144 1034s ok 1257 /checksum/SHA384/145 1034s ok 1258 /checksum/SHA384/146 1034s ok 1259 /checksum/SHA384/147 1034s ok 1260 /checksum/SHA384/148 1034s ok 1261 /checksum/SHA384/149 1034s ok 1262 /checksum/SHA384/150 1034s ok 1263 /checksum/SHA384/151 1034s ok 1264 /checksum/SHA384/152 1034s ok 1265 /checksum/SHA384/153 1034s ok 1266 /checksum/SHA384/154 1034s ok 1267 /checksum/SHA384/155 1034s ok 1268 /checksum/SHA384/156 1034s ok 1269 /checksum/SHA384/157 1034s ok 1270 /checksum/SHA384/158 1034s ok 1271 /checksum/SHA384/159 1034s ok 1272 /checksum/SHA384/160 1034s ok 1273 /checksum/SHA384/161 1034s ok 1274 /checksum/SHA384/162 1034s ok 1275 /checksum/SHA384/163 1034s ok 1276 /checksum/SHA384/164 1034s ok 1277 /checksum/SHA384/165 1034s ok 1278 /checksum/SHA384/166 1034s ok 1279 /checksum/SHA384/167 1034s ok 1280 /checksum/SHA384/168 1034s ok 1281 /checksum/SHA384/169 1034s ok 1282 /checksum/SHA384/170 1034s ok 1283 /checksum/SHA384/171 1034s ok 1284 /checksum/SHA384/172 1034s ok 1285 /checksum/SHA384/173 1034s ok 1286 /checksum/SHA384/174 1034s ok 1287 /checksum/SHA384/175 1034s ok 1288 /checksum/SHA384/176 1034s ok 1289 /checksum/SHA384/177 1034s ok 1290 /checksum/SHA384/178 1034s ok 1291 /checksum/SHA384/179 1034s ok 1292 /checksum/SHA384/180 1034s ok 1293 /checksum/SHA384/181 1034s ok 1294 /checksum/SHA384/182 1034s ok 1295 /checksum/SHA384/183 1034s ok 1296 /checksum/SHA384/string 1034s ok 1297 /checksum/SHA384/bytes 1034s # Start of reset tests 1034s ok 1298 /checksum/SHA384/reset/0 1034s ok 1299 /checksum/SHA384/reset/1 1034s ok 1300 /checksum/SHA384/reset/2 1034s ok 1301 /checksum/SHA384/reset/3 1034s ok 1302 /checksum/SHA384/reset/4 1034s ok 1303 /checksum/SHA384/reset/5 1034s ok 1304 /checksum/SHA384/reset/6 1034s ok 1305 /checksum/SHA384/reset/7 1034s ok 1306 /checksum/SHA384/reset/8 1034s ok 1307 /checksum/SHA384/reset/9 1034s ok 1308 /checksum/SHA384/reset/10 1034s ok 1309 /checksum/SHA384/reset/11 1034s ok 1310 /checksum/SHA384/reset/12 1034s ok 1311 /checksum/SHA384/reset/13 1034s ok 1312 /checksum/SHA384/reset/14 1034s ok 1313 /checksum/SHA384/reset/15 1034s ok 1314 /checksum/SHA384/reset/16 1034s ok 1315 /checksum/SHA384/reset/17 1034s ok 1316 /checksum/SHA384/reset/18 1034s ok 1317 /checksum/SHA384/reset/19 1034s ok 1318 /checksum/SHA384/reset/20 1034s ok 1319 /checksum/SHA384/reset/21 1034s ok 1320 /checksum/SHA384/reset/22 1034s ok 1321 /checksum/SHA384/reset/23 1034s ok 1322 /checksum/SHA384/reset/24 1034s ok 1323 /checksum/SHA384/reset/25 1034s ok 1324 /checksum/SHA384/reset/26 1034s ok 1325 /checksum/SHA384/reset/27 1034s ok 1326 /checksum/SHA384/reset/28 1034s ok 1327 /checksum/SHA384/reset/29 1034s ok 1328 /checksum/SHA384/reset/30 1034s ok 1329 /checksum/SHA384/reset/31 1034s ok 1330 /checksum/SHA384/reset/32 1034s ok 1331 /checksum/SHA384/reset/33 1034s ok 1332 /checksum/SHA384/reset/34 1034s ok 1333 /checksum/SHA384/reset/35 1034s ok 1334 /checksum/SHA384/reset/36 1034s ok 1335 /checksum/SHA384/reset/37 1034s ok 1336 /checksum/SHA384/reset/38 1034s ok 1337 /checksum/SHA384/reset/39 1034s ok 1338 /checksum/SHA384/reset/40 1034s ok 1339 /checksum/SHA384/reset/41 1034s ok 1340 /checksum/SHA384/reset/42 1034s ok 1341 /checksum/SHA384/reset/43 1034s ok 1342 /checksum/SHA384/reset/44 1034s ok 1343 /checksum/SHA384/reset/45 1034s ok 1344 /checksum/SHA384/reset/46 1034s ok 1345 /checksum/SHA384/reset/47 1034s ok 1346 /checksum/SHA384/reset/48 1034s ok 1347 /checksum/SHA384/reset/49 1034s ok 1348 /checksum/SHA384/reset/50 1034s ok 1349 /checksum/SHA384/reset/51 1034s ok 1350 /checksum/SHA384/reset/52 1034s ok 1351 /checksum/SHA384/reset/53 1034s ok 1352 /checksum/SHA384/reset/54 1034s ok 1353 /checksum/SHA384/reset/55 1034s ok 1354 /checksum/SHA384/reset/56 1034s ok 1355 /checksum/SHA384/reset/57 1034s ok 1356 /checksum/SHA384/reset/58 1034s ok 1357 /checksum/SHA384/reset/59 1034s ok 1358 /checksum/SHA384/reset/60 1034s ok 1359 /checksum/SHA384/reset/61 1034s ok 1360 /checksum/SHA384/reset/62 1034s ok 1361 /checksum/SHA384/reset/63 1034s ok 1362 /checksum/SHA384/reset/64 1034s ok 1363 /checksum/SHA384/reset/65 1034s ok 1364 /checksum/SHA384/reset/66 1034s ok 1365 /checksum/SHA384/reset/67 1034s ok 1366 /checksum/SHA384/reset/68 1034s ok 1367 /checksum/SHA384/reset/69 1034s ok 1368 /checksum/SHA384/reset/70 1034s ok 1369 /checksum/SHA384/reset/71 1034s ok 1370 /checksum/SHA384/reset/72 1034s ok 1371 /checksum/SHA384/reset/73 1034s ok 1372 /checksum/SHA384/reset/74 1034s ok 1373 /checksum/SHA384/reset/75 1034s ok 1374 /checksum/SHA384/reset/76 1034s ok 1375 /checksum/SHA384/reset/77 1034s ok 1376 /checksum/SHA384/reset/78 1034s ok 1377 /checksum/SHA384/reset/79 1034s ok 1378 /checksum/SHA384/reset/80 1034s ok 1379 /checksum/SHA384/reset/81 1034s ok 1380 /checksum/SHA384/reset/82 1034s ok 1381 /checksum/SHA384/reset/83 1034s ok 1382 /checksum/SHA384/reset/84 1034s ok 1383 /checksum/SHA384/reset/85 1034s ok 1384 /checksum/SHA384/reset/86 1034s ok 1385 /checksum/SHA384/reset/87 1034s ok 1386 /checksum/SHA384/reset/88 1034s ok 1387 /checksum/SHA384/reset/89 1034s ok 1388 /checksum/SHA384/reset/90 1034s ok 1389 /checksum/SHA384/reset/91 1034s ok 1390 /checksum/SHA384/reset/92 1034s ok 1391 /checksum/SHA384/reset/93 1034s ok 1392 /checksum/SHA384/reset/94 1034s ok 1393 /checksum/SHA384/reset/95 1034s ok 1394 /checksum/SHA384/reset/96 1034s ok 1395 /checksum/SHA384/reset/97 1034s ok 1396 /checksum/SHA384/reset/98 1034s ok 1397 /checksum/SHA384/reset/99 1034s ok 1398 /checksum/SHA384/reset/100 1034s ok 1399 /checksum/SHA384/reset/101 1034s ok 1400 /checksum/SHA384/reset/102 1034s ok 1401 /checksum/SHA384/reset/103 1034s ok 1402 /checksum/SHA384/reset/104 1034s ok 1403 /checksum/SHA384/reset/105 1034s ok 1404 /checksum/SHA384/reset/106 1034s ok 1405 /checksum/SHA384/reset/107 1034s ok 1406 /checksum/SHA384/reset/108 1034s ok 1407 /checksum/SHA384/reset/109 1034s ok 1408 /checksum/SHA384/reset/110 1034s ok 1409 /checksum/SHA384/reset/111 1034s ok 1410 /checksum/SHA384/reset/112 1034s ok 1411 /checksum/SHA384/reset/113 1034s ok 1412 /checksum/SHA384/reset/114 1034s ok 1413 /checksum/SHA384/reset/115 1034s ok 1414 /checksum/SHA384/reset/116 1034s ok 1415 /checksum/SHA384/reset/117 1034s ok 1416 /checksum/SHA384/reset/118 1034s ok 1417 /checksum/SHA384/reset/119 1034s ok 1418 /checksum/SHA384/reset/120 1034s ok 1419 /checksum/SHA384/reset/121 1034s ok 1420 /checksum/SHA384/reset/122 1034s ok 1421 /checksum/SHA384/reset/123 1034s ok 1422 /checksum/SHA384/reset/124 1034s ok 1423 /checksum/SHA384/reset/125 1034s ok 1424 /checksum/SHA384/reset/126 1034s ok 1425 /checksum/SHA384/reset/127 1034s ok 1426 /checksum/SHA384/reset/128 1034s ok 1427 /checksum/SHA384/reset/129 1034s ok 1428 /checksum/SHA384/reset/130 1034s ok 1429 /checksum/SHA384/reset/131 1034s ok 1430 /checksum/SHA384/reset/132 1034s ok 1431 /checksum/SHA384/reset/133 1034s ok 1432 /checksum/SHA384/reset/134 1034s ok 1433 /checksum/SHA384/reset/135 1034s ok 1434 /checksum/SHA384/reset/136 1034s ok 1435 /checksum/SHA384/reset/137 1034s ok 1436 /checksum/SHA384/reset/138 1034s ok 1437 /checksum/SHA384/reset/139 1034s ok 1438 /checksum/SHA384/reset/140 1034s ok 1439 /checksum/SHA384/reset/141 1034s ok 1440 /checksum/SHA384/reset/142 1034s ok 1441 /checksum/SHA384/reset/143 1034s ok 1442 /checksum/SHA384/reset/144 1034s ok 1443 /checksum/SHA384/reset/145 1034s ok 1444 /checksum/SHA384/reset/146 1034s ok 1445 /checksum/SHA384/reset/147 1034s ok 1446 /checksum/SHA384/reset/148 1034s ok 1447 /checksum/SHA384/reset/149 1034s ok 1448 /checksum/SHA384/reset/150 1034s ok 1449 /checksum/SHA384/reset/151 1034s ok 1450 /checksum/SHA384/reset/152 1034s ok 1451 /checksum/SHA384/reset/153 1034s ok 1452 /checksum/SHA384/reset/154 1034s ok 1453 /checksum/SHA384/reset/155 1034s ok 1454 /checksum/SHA384/reset/156 1034s ok 1455 /checksum/SHA384/reset/157 1034s ok 1456 /checksum/SHA384/reset/158 1034s ok 1457 /checksum/SHA384/reset/159 1034s ok 1458 /checksum/SHA384/reset/160 1034s ok 1459 /checksum/SHA384/reset/161 1034s ok 1460 /checksum/SHA384/reset/162 1034s ok 1461 /checksum/SHA384/reset/163 1034s ok 1462 /checksum/SHA384/reset/164 1034s ok 1463 /checksum/SHA384/reset/165 1034s ok 1464 /checksum/SHA384/reset/166 1034s ok 1465 /checksum/SHA384/reset/167 1034s ok 1466 /checksum/SHA384/reset/168 1034s ok 1467 /checksum/SHA384/reset/169 1034s ok 1468 /checksum/SHA384/reset/170 1034s ok 1469 /checksum/SHA384/reset/171 1034s ok 1470 /checksum/SHA384/reset/172 1034s ok 1471 /checksum/SHA384/reset/173 1034s ok 1472 /checksum/SHA384/reset/174 1034s ok 1473 /checksum/SHA384/reset/175 1034s ok 1474 /checksum/SHA384/reset/176 1034s ok 1475 /checksum/SHA384/reset/177 1034s ok 1476 /checksum/SHA384/reset/178 1034s ok 1477 /checksum/SHA384/reset/179 1034s ok 1478 /checksum/SHA384/reset/180 1034s ok 1479 /checksum/SHA384/reset/181 1034s ok 1480 /checksum/SHA384/reset/182 1034s ok 1481 /checksum/SHA384/reset/183 1034s # End of reset tests 1034s # End of SHA384 tests 1034s # Start of SHA512 tests 1034s ok 1482 /checksum/SHA512/0 1034s ok 1483 /checksum/SHA512/1 1034s ok 1484 /checksum/SHA512/2 1034s ok 1485 /checksum/SHA512/3 1034s ok 1486 /checksum/SHA512/4 1034s ok 1487 /checksum/SHA512/5 1034s ok 1488 /checksum/SHA512/6 1034s ok 1489 /checksum/SHA512/7 1034s ok 1490 /checksum/SHA512/8 1034s ok 1491 /checksum/SHA512/9 1034s ok 1492 /checksum/SHA512/10 1034s ok 1493 /checksum/SHA512/11 1034s ok 1494 /checksum/SHA512/12 1034s ok 1495 /checksum/SHA512/13 1034s ok 1496 /checksum/SHA512/14 1034s ok 1497 /checksum/SHA512/15 1034s ok 1498 /checksum/SHA512/16 1034s ok 1499 /checksum/SHA512/17 1034s ok 1500 /checksum/SHA512/18 1034s ok 1501 /checksum/SHA512/19 1034s ok 1502 /checksum/SHA512/20 1034s ok 1503 /checksum/SHA512/21 1034s ok 1504 /checksum/SHA512/22 1034s ok 1505 /checksum/SHA512/23 1034s ok 1506 /checksum/SHA512/24 1034s ok 1507 /checksum/SHA512/25 1034s ok 1508 /checksum/SHA512/26 1034s ok 1509 /checksum/SHA512/27 1034s ok 1510 /checksum/SHA512/28 1034s ok 1511 /checksum/SHA512/29 1034s ok 1512 /checksum/SHA512/30 1034s ok 1513 /checksum/SHA512/31 1034s ok 1514 /checksum/SHA512/32 1034s ok 1515 /checksum/SHA512/33 1034s ok 1516 /checksum/SHA512/34 1034s ok 1517 /checksum/SHA512/35 1034s ok 1518 /checksum/SHA512/36 1034s ok 1519 /checksum/SHA512/37 1034s ok 1520 /checksum/SHA512/38 1034s ok 1521 /checksum/SHA512/39 1034s ok 1522 /checksum/SHA512/40 1034s ok 1523 /checksum/SHA512/41 1034s ok 1524 /checksum/SHA512/42 1034s ok 1525 /checksum/SHA512/43 1034s ok 1526 /checksum/SHA512/44 1034s ok 1527 /checksum/SHA512/45 1034s ok 1528 /checksum/SHA512/46 1034s ok 1529 /checksum/SHA512/47 1034s ok 1530 /checksum/SHA512/48 1034s ok 1531 /checksum/SHA512/49 1034s ok 1532 /checksum/SHA512/50 1034s ok 1533 /checksum/SHA512/51 1034s ok 1534 /checksum/SHA512/52 1034s ok 1535 /checksum/SHA512/53 1034s ok 1536 /checksum/SHA512/54 1034s ok 1537 /checksum/SHA512/55 1034s ok 1538 /checksum/SHA512/56 1034s ok 1539 /checksum/SHA512/57 1034s ok 1540 /checksum/SHA512/58 1034s ok 1541 /checksum/SHA512/59 1034s ok 1542 /checksum/SHA512/60 1034s ok 1543 /checksum/SHA512/61 1034s ok 1544 /checksum/SHA512/62 1034s ok 1545 /checksum/SHA512/63 1034s ok 1546 /checksum/SHA512/64 1034s ok 1547 /checksum/SHA512/65 1034s ok 1548 /checksum/SHA512/66 1034s ok 1549 /checksum/SHA512/67 1034s ok 1550 /checksum/SHA512/68 1034s ok 1551 /checksum/SHA512/69 1034s ok 1552 /checksum/SHA512/70 1034s ok 1553 /checksum/SHA512/71 1034s ok 1554 /checksum/SHA512/72 1034s ok 1555 /checksum/SHA512/73 1034s ok 1556 /checksum/SHA512/74 1034s ok 1557 /checksum/SHA512/75 1034s ok 1558 /checksum/SHA512/76 1034s ok 1559 /checksum/SHA512/77 1034s ok 1560 /checksum/SHA512/78 1034s ok 1561 /checksum/SHA512/79 1034s ok 1562 /checksum/SHA512/80 1034s ok 1563 /checksum/SHA512/81 1034s ok 1564 /checksum/SHA512/82 1034s ok 1565 /checksum/SHA512/83 1034s ok 1566 /checksum/SHA512/84 1034s ok 1567 /checksum/SHA512/85 1034s ok 1568 /checksum/SHA512/86 1034s ok 1569 /checksum/SHA512/87 1034s ok 1570 /checksum/SHA512/88 1034s ok 1571 /checksum/SHA512/89 1034s ok 1572 /checksum/SHA512/90 1034s ok 1573 /checksum/SHA512/91 1034s ok 1574 /checksum/SHA512/92 1034s ok 1575 /checksum/SHA512/93 1034s ok 1576 /checksum/SHA512/94 1034s ok 1577 /checksum/SHA512/95 1034s ok 1578 /checksum/SHA512/96 1034s ok 1579 /checksum/SHA512/97 1034s ok 1580 /checksum/SHA512/98 1034s ok 1581 /checksum/SHA512/99 1034s ok 1582 /checksum/SHA512/100 1034s ok 1583 /checksum/SHA512/101 1034s ok 1584 /checksum/SHA512/102 1034s ok 1585 /checksum/SHA512/103 1034s ok 1586 /checksum/SHA512/104 1034s ok 1587 /checksum/SHA512/105 1034s ok 1588 /checksum/SHA512/106 1034s ok 1589 /checksum/SHA512/107 1034s ok 1590 /checksum/SHA512/108 1034s ok 1591 /checksum/SHA512/109 1034s ok 1592 /checksum/SHA512/110 1034s ok 1593 /checksum/SHA512/111 1034s ok 1594 /checksum/SHA512/112 1034s ok 1595 /checksum/SHA512/113 1034s ok 1596 /checksum/SHA512/114 1034s ok 1597 /checksum/SHA512/115 1034s ok 1598 /checksum/SHA512/116 1034s ok 1599 /checksum/SHA512/117 1034s ok 1600 /checksum/SHA512/118 1034s ok 1601 /checksum/SHA512/119 1034s ok 1602 /checksum/SHA512/120 1034s ok 1603 /checksum/SHA512/121 1034s ok 1604 /checksum/SHA512/122 1034s ok 1605 /checksum/SHA512/123 1034s ok 1606 /checksum/SHA512/124 1034s ok 1607 /checksum/SHA512/125 1034s ok 1608 /checksum/SHA512/126 1034s ok 1609 /checksum/SHA512/127 1034s ok 1610 /checksum/SHA512/128 1034s ok 1611 /checksum/SHA512/129 1034s ok 1612 /checksum/SHA512/130 1034s ok 1613 /checksum/SHA512/131 1034s ok 1614 /checksum/SHA512/132 1034s ok 1615 /checksum/SHA512/133 1034s ok 1616 /checksum/SHA512/134 1034s ok 1617 /checksum/SHA512/135 1034s ok 1618 /checksum/SHA512/136 1034s ok 1619 /checksum/SHA512/137 1034s ok 1620 /checksum/SHA512/138 1034s ok 1621 /checksum/SHA512/139 1034s ok 1622 /checksum/SHA512/140 1034s ok 1623 /checksum/SHA512/141 1034s ok 1624 /checksum/SHA512/142 1034s ok 1625 /checksum/SHA512/143 1034s ok 1626 /checksum/SHA512/144 1034s ok 1627 /checksum/SHA512/145 1034s ok 1628 /checksum/SHA512/146 1034s ok 1629 /checksum/SHA512/147 1034s ok 1630 /checksum/SHA512/148 1034s ok 1631 /checksum/SHA512/149 1034s ok 1632 /checksum/SHA512/150 1034s ok 1633 /checksum/SHA512/151 1034s ok 1634 /checksum/SHA512/152 1034s ok 1635 /checksum/SHA512/153 1034s ok 1636 /checksum/SHA512/154 1034s ok 1637 /checksum/SHA512/155 1034s ok 1638 /checksum/SHA512/156 1034s ok 1639 /checksum/SHA512/157 1034s ok 1640 /checksum/SHA512/158 1034s ok 1641 /checksum/SHA512/159 1034s ok 1642 /checksum/SHA512/160 1034s ok 1643 /checksum/SHA512/161 1034s ok 1644 /checksum/SHA512/162 1034s ok 1645 /checksum/SHA512/163 1034s ok 1646 /checksum/SHA512/164 1034s ok 1647 /checksum/SHA512/165 1034s ok 1648 /checksum/SHA512/166 1034s ok 1649 /checksum/SHA512/167 1034s ok 1650 /checksum/SHA512/168 1034s ok 1651 /checksum/SHA512/169 1034s ok 1652 /checksum/SHA512/170 1034s ok 1653 /checksum/SHA512/171 1034s ok 1654 /checksum/SHA512/172 1034s ok 1655 /checksum/SHA512/173 1034s ok 1656 /checksum/SHA512/174 1034s ok 1657 /checksum/SHA512/175 1034s ok 1658 /checksum/SHA512/176 1034s ok 1659 /checksum/SHA512/177 1034s ok 1660 /checksum/SHA512/178 1034s ok 1661 /checksum/SHA512/179 1034s ok 1662 /checksum/SHA512/180 1034s ok 1663 /checksum/SHA512/181 1034s ok 1664 /checksum/SHA512/182 1034s ok 1665 /checksum/SHA512/183 1034s ok 1666 /checksum/SHA512/string 1034s ok 1667 /checksum/SHA512/bytes 1034s # Start of reset tests 1034s ok 1668 /checksum/SHA512/reset/0 1034s ok 1669 /checksum/SHA512/reset/1 1034s ok 1670 /checksum/SHA512/reset/2 1034s ok 1671 /checksum/SHA512/reset/3 1034s ok 1672 /checksum/SHA512/reset/4 1034s ok 1673 /checksum/SHA512/reset/5 1034s ok 1674 /checksum/SHA512/reset/6 1034s ok 1675 /checksum/SHA512/reset/7 1034s ok 1676 /checksum/SHA512/reset/8 1034s ok 1677 /checksum/SHA512/reset/9 1034s ok 1678 /checksum/SHA512/reset/10 1034s ok 1679 /checksum/SHA512/reset/11 1034s ok 1680 /checksum/SHA512/reset/12 1034s ok 1681 /checksum/SHA512/reset/13 1034s ok 1682 /checksum/SHA512/reset/14 1034s ok 1683 /checksum/SHA512/reset/15 1034s ok 1684 /checksum/SHA512/reset/16 1034s ok 1685 /checksum/SHA512/reset/17 1034s ok 1686 /checksum/SHA512/reset/18 1034s ok 1687 /checksum/SHA512/reset/19 1034s ok 1688 /checksum/SHA512/reset/20 1034s ok 1689 /checksum/SHA512/reset/21 1034s ok 1690 /checksum/SHA512/reset/22 1034s ok 1691 /checksum/SHA512/reset/23 1034s ok 1692 /checksum/SHA512/reset/24 1034s ok 1693 /checksum/SHA512/reset/25 1034s ok 1694 /checksum/SHA512/reset/26 1034s ok 1695 /checksum/SHA512/reset/27 1034s ok 1696 /checksum/SHA512/reset/28 1034s ok 1697 /checksum/SHA512/reset/29 1034s ok 1698 /checksum/SHA512/reset/30 1034s ok 1699 /checksum/SHA512/reset/31 1034s ok 1700 /checksum/SHA512/reset/32 1034s ok 1701 /checksum/SHA512/reset/33 1034s ok 1702 /checksum/SHA512/reset/34 1034s ok 1703 /checksum/SHA512/reset/35 1034s ok 1704 /checksum/SHA512/reset/36 1034s ok 1705 /checksum/SHA512/reset/37 1034s ok 1706 /checksum/SHA512/reset/38 1034s ok 1707 /checksum/SHA512/reset/39 1034s ok 1708 /checksum/SHA512/reset/40 1034s ok 1709 /checksum/SHA512/reset/41 1034s ok 1710 /checksum/SHA512/reset/42 1034s ok 1711 /checksum/SHA512/reset/43 1034s ok 1712 /checksum/SHA512/reset/44 1034s ok 1713 /checksum/SHA512/reset/45 1034s ok 1714 /checksum/SHA512/reset/46 1034s ok 1715 /checksum/SHA512/reset/47 1034s ok 1716 /checksum/SHA512/reset/48 1034s ok 1717 /checksum/SHA512/reset/49 1034s ok 1718 /checksum/SHA512/reset/50 1034s ok 1719 /checksum/SHA512/reset/51 1034s ok 1720 /checksum/SHA512/reset/52 1034s ok 1721 /checksum/SHA512/reset/53 1034s ok 1722 /checksum/SHA512/reset/54 1034s ok 1723 /checksum/SHA512/reset/55 1034s ok 1724 /checksum/SHA512/reset/56 1034s ok 1725 /checksum/SHA512/reset/57 1034s ok 1726 /checksum/SHA512/reset/58 1034s ok 1727 /checksum/SHA512/reset/59 1034s ok 1728 /checksum/SHA512/reset/60 1034s ok 1729 /checksum/SHA512/reset/61 1034s ok 1730 /checksum/SHA512/reset/62 1034s ok 1731 /checksum/SHA512/reset/63 1034s ok 1732 /checksum/SHA512/reset/64 1034s ok 1733 /checksum/SHA512/reset/65 1034s ok 1734 /checksum/SHA512/reset/66 1034s ok 1735 /checksum/SHA512/reset/67 1034s ok 1736 /checksum/SHA512/reset/68 1034s ok 1737 /checksum/SHA512/reset/69 1034s ok 1738 /checksum/SHA512/reset/70 1034s ok 1739 /checksum/SHA512/reset/71 1034s ok 1740 /checksum/SHA512/reset/72 1034s ok 1741 /checksum/SHA512/reset/73 1034s ok 1742 /checksum/SHA512/reset/74 1034s ok 1743 /checksum/SHA512/reset/75 1034s ok 1744 /checksum/SHA512/reset/76 1034s ok 1745 /checksum/SHA512/reset/77 1034s ok 1746 /checksum/SHA512/reset/78 1034s ok 1747 /checksum/SHA512/reset/79 1034s ok 1748 /checksum/SHA512/reset/80 1034s ok 1749 /checksum/SHA512/reset/81 1034s ok 1750 /checksum/SHA512/reset/82 1034s ok 1751 /checksum/SHA512/reset/83 1034s ok 1752 /checksum/SHA512/reset/84 1034s ok 1753 /checksum/SHA512/reset/85 1034s ok 1754 /checksum/SHA512/reset/86 1034s ok 1755 /checksum/SHA512/reset/87 1034s ok 1756 /checksum/SHA512/reset/88 1034s ok 1757 /checksum/SHA512/reset/89 1034s ok 1758 /checksum/SHA512/reset/90 1034s ok 1759 /checksum/SHA512/reset/91 1034s ok 1760 /checksum/SHA512/reset/92 1034s ok 1761 /checksum/SHA512/reset/93 1034s ok 1762 /checksum/SHA512/reset/94 1034s ok 1763 /checksum/SHA512/reset/95 1034s ok 1764 /checksum/SHA512/reset/96 1034s ok 1765 /checksum/SHA512/reset/97 1034s ok 1766 /checksum/SHA512/reset/98 1034s ok 1767 /checksum/SHA512/reset/99 1034s ok 1768 /checksum/SHA512/reset/100 1034s ok 1769 /checksum/SHA512/reset/101 1034s ok 1770 /checksum/SHA512/reset/102 1034s ok 1771 /checksum/SHA512/reset/103 1034s ok 1772 /checksum/SHA512/reset/104 1034s ok 1773 /checksum/SHA512/reset/105 1034s ok 1774 /checksum/SHA512/reset/106 1034s ok 1775 /checksum/SHA512/reset/107 1034s ok 1776 /checksum/SHA512/reset/108 1034s ok 1777 /checksum/SHA512/reset/109 1034s ok 1778 /checksum/SHA512/reset/110 1034s ok 1779 /checksum/SHA512/reset/111 1034s ok 1780 /checksum/SHA512/reset/112 1034s ok 1781 /checksum/SHA512/reset/113 1034s ok 1782 /checksum/SHA512/reset/114 1034s ok 1783 /checksum/SHA512/reset/115 1034s ok 1784 /checksum/SHA512/reset/116 1034s ok 1785 /checksum/SHA512/reset/117 1034s ok 1786 /checksum/SHA512/reset/118 1034s ok 1787 /checksum/SHA512/reset/119 1034s ok 1788 /checksum/SHA512/reset/120 1034s ok 1789 /checksum/SHA512/reset/121 1034s ok 1790 /checksum/SHA512/reset/122 1034s ok 1791 /checksum/SHA512/reset/123 1034s ok 1792 /checksum/SHA512/reset/124 1034s ok 1793 /checksum/SHA512/reset/125 1034s ok 1794 /checksum/SHA512/reset/126 1034s ok 1795 /checksum/SHA512/reset/127 1034s ok 1796 /checksum/SHA512/reset/128 1034s ok 1797 /checksum/SHA512/reset/129 1034s ok 1798 /checksum/SHA512/reset/130 1034s ok 1799 /checksum/SHA512/reset/131 1034s ok 1800 /checksum/SHA512/reset/132 1034s ok 1801 /checksum/SHA512/reset/133 1034s ok 1802 /checksum/SHA512/reset/134 1034s ok 1803 /checksum/SHA512/reset/135 1034s ok 1804 /checksum/SHA512/reset/136 1034s ok 1805 /checksum/SHA512/reset/137 1034s ok 1806 /checksum/SHA512/reset/138 1034s ok 1807 /checksum/SHA512/reset/139 1034s ok 1808 /checksum/SHA512/reset/140 1034s ok 1809 /checksum/SHA512/reset/141 1034s ok 1810 /checksum/SHA512/reset/142 1034s ok 1811 /checksum/SHA512/reset/143 1034s ok 1812 /checksum/SHA512/reset/144 1034s ok 1813 /checksum/SHA512/reset/145 1034s ok 1814 /checksum/SHA512/reset/146 1034s ok 1815 /checksum/SHA512/reset/147 1034s ok 1816 /checksum/SHA512/reset/148 1034s ok 1817 /checksum/SHA512/reset/149 1034s ok 1818 /checksum/SHA512/reset/150 1034s ok 1819 /checksum/SHA512/reset/151 1034s ok 1820 /checksum/SHA512/reset/152 1034s ok 1821 /checksum/SHA512/reset/153 1034s ok 1822 /checksum/SHA512/reset/154 1034s ok 1823 /checksum/SHA512/reset/155 1034s ok 1824 /checksum/SHA512/reset/156 1034s ok 1825 /checksum/SHA512/reset/157 1034s ok 1826 /checksum/SHA512/reset/158 1034s ok 1827 /checksum/SHA512/reset/159 1034s ok 1828 /checksum/SHA512/reset/160 1034s ok 1829 /checksum/SHA512/reset/161 1034s ok 1830 /checksum/SHA512/reset/162 1034s ok 1831 /checksum/SHA512/reset/163 1034s ok 1832 /checksum/SHA512/reset/164 1034s ok 1833 /checksum/SHA512/reset/165 1034s ok 1834 /checksum/SHA512/reset/166 1034s ok 1835 /checksum/SHA512/reset/167 1034s ok 1836 /checksum/SHA512/reset/168 1034s ok 1837 /checksum/SHA512/reset/169 1034s ok 1838 /checksum/SHA512/reset/170 1034s ok 1839 /checksum/SHA512/reset/171 1034s ok 1840 /checksum/SHA512/reset/172 1034s ok 1841 /checksum/SHA512/reset/173 1034s ok 1842 /checksum/SHA512/reset/174 1034s ok 1843 /checksum/SHA512/reset/175 1034s ok 1844 /checksum/SHA512/reset/176 1034s ok 1845 /checksum/SHA512/reset/177 1034s ok 1846 /checksum/SHA512/reset/178 1034s ok 1847 /checksum/SHA512/reset/179 1034s ok 1848 /checksum/SHA512/reset/180 1034s ok 1849 /checksum/SHA512/reset/181 1034s ok 1850 /checksum/SHA512/reset/182 1034s ok 1851 /checksum/SHA512/reset/183 1034s # End of reset tests 1034s # End of SHA512 tests 1034s # End of checksum tests 1034s ok - glib/checksum.test 1034s # Running test: glib/pathbuf.test 1034s ok - glib/pathbuf.test 1034s # Running test: glib/properties-refcount4.test 1034s ok - glib/properties-refcount4.test 1034s # Running test: glib/sleepy-stream.test 1034s ok - glib/sleepy-stream.test 1034s # Running test: glib/cxx-03.test 1034s ok - glib/cxx-03.test 1034s # Running test: glib/sequence.test 1034s TAP version 14 1034s # random seed: R02Se98776cc47910d994ab47d507c7f087d 1034s 1..3 1034s # Start of pathbuf tests 1034s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_pathbuf_JTW152/pathbuf/init/.dirs/home 1034s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_pathbuf_JTW152/pathbuf/init/.dirs/cache 1034s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_pathbuf_JTW152/pathbuf/init/.dirs/system-config1:/tmp/test_pathbuf_JTW152/pathbuf/init/.dirs/system-config2 1034s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_pathbuf_JTW152/pathbuf/init/.dirs/config 1034s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_pathbuf_JTW152/pathbuf/init/.dirs/system-data1:/tmp/test_pathbuf_JTW152/pathbuf/init/.dirs/system-data2 1034s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_pathbuf_JTW152/pathbuf/init/.dirs/data 1034s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_pathbuf_JTW152/pathbuf/init/.dirs/state 1034s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_pathbuf_JTW152/pathbuf/init/.dirs/runtime 1034s # Initializing empty path buf 1034s # Initializing with empty path 1034s # Initializing with full path 1034s # Initializing with no path 1034s # Allocating GPathBuf on the heap 1034s ok 1 /pathbuf/init 1034s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_pathbuf_JTW152/pathbuf/push-pop/.dirs/home 1034s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_pathbuf_JTW152/pathbuf/push-pop/.dirs/cache 1034s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_pathbuf_JTW152/pathbuf/push-pop/.dirs/system-config1:/tmp/test_pathbuf_JTW152/pathbuf/push-pop/.dirs/system-config2 1034s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_pathbuf_JTW152/pathbuf/push-pop/.dirs/config 1034s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_pathbuf_JTW152/pathbuf/push-pop/.dirs/system-data1:/tmp/test_pathbuf_JTW152/pathbuf/push-pop/.dirs/system-data2 1034s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_pathbuf_JTW152/pathbuf/push-pop/.dirs/data 1034s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_pathbuf_JTW152/pathbuf/push-pop/.dirs/state 1034s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_pathbuf_JTW152/pathbuf/push-pop/.dirs/runtime 1034s # Pushing relative path component 1034s # Pushing absolute path component 1034s # Popping a path component 1034s # Can't pop the last element of a path buffer 1034s ok 2 /pathbuf/push-pop 1034s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_pathbuf_JTW152/pathbuf/filename-extension/.dirs/home 1034s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_pathbuf_JTW152/pathbuf/filename-extension/.dirs/cache 1034s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_pathbuf_JTW152/pathbuf/filename-extension/.dirs/system-config1:/tmp/test_pathbuf_JTW152/pathbuf/filename-extension/.dirs/system-config2 1034s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_pathbuf_JTW152/pathbuf/filename-extension/.dirs/config 1034s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_pathbuf_JTW152/pathbuf/filename-extension/.dirs/system-data1:/tmp/test_pathbuf_JTW152/pathbuf/filename-extension/.dirs/system-data2 1034s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_pathbuf_JTW152/pathbuf/filename-extension/.dirs/data 1034s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_pathbuf_JTW152/pathbuf/filename-extension/.dirs/state 1034s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_pathbuf_JTW152/pathbuf/filename-extension/.dirs/runtime 1034s ok 3 /pathbuf/filename-extension 1034s # End of pathbuf tests 1034s TAP version 14 1034s # random seed: R02S058c8bad4827d827baa20dd6948ab990 1034s 1..1 1034s # Start of gobject tests 1034s # Start of refcount tests 1034s ok 1 /gobject/refcount/properties-4 1034s # End of refcount tests 1034s # End of gobject tests 1034s TAP version 14 1034s # random seed: R02S7861ac8d028db3171e7859695afdfd88 1034s 1..2 1034s # Start of filter-stream tests 1034s ok 1 /filter-stream/input 1034s ok 2 /filter-stream/async 1034s # End of filter-stream tests 1034s TAP version 14 1034s # random seed: R02S651e94b4f3d44e60fdbd84783747cd7c 1034s 1..2 1034s # Start of gtask tests 1034s # 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. 1034s ok 1 /gtask/name 1034s # Start of name tests 1034s # 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. 1034s ok 2 /gtask/name/macro-wrapper 1034s # End of name tests 1034s # End of gtask tests 1034s TAP version 14 1034s # random seed: R02S86dae70ad41b5a66e76a4c05ffbd99f7 1034s 1..16 1034s # Start of sequence tests 1034s ok 1 /sequence/out-of-range-jump 1034s ok 2 /sequence/iter-move 1035s ok 3 /sequence/insert-sorted-non-pointer 1035s ok 4 /sequence/stable-sort 1035s ok 5 /sequence/is_empty 1035s # Start of random tests 1035s ok 6 /sequence/random/seed:825541564 1035s # slow test /sequence/random/seed:825541564 executed in 0.55 secs 1036s ok 7 /sequence/random/seed:801678400 1036s # slow test /sequence/random/seed:801678400 executed in 0.52 secs 1036s ok 8 /sequence/random/seed:1477639090 1036s # slow test /sequence/random/seed:1477639090 executed in 0.54 secs 1037s # Executing: glib/sequence.test 1037s ok 9 /sequence/random/seed:3369132895 1037s ok 10 /sequence/random/seed:1192944867 1037s # slow test /sequence/random/seed:1192944867 executed in 0.52 secs 1038s ok 11 /sequence/random/seed:770458294 1038s # slow test /sequence/random/seed:770458294 executed in 0.55 secs 1038s ok 12 /sequence/random/seed:1099575817 1038s # slow test /sequence/random/seed:1099575817 executed in 0.54 secs 1039s ok 13 /sequence/random/seed:590523467 1039s # slow test /sequence/random/seed:590523467 executed in 0.55 secs 1039s ok 14 /sequence/random/seed:3583571454 1039s # slow test /sequence/random/seed:3583571454 executed in 0.55 secs 1040s ok 15 /sequence/random/seed:579241222 1040s # slow test /sequence/random/seed:579241222 executed in 0.54 secs 1040s ok 16 /sequence/random/seed:1538347113 1040s # slow test /sequence/random/seed:1538347113 executed in 0.51 secs 1040s # End of random tests 1040s # End of sequence tests 1040s ok - glib/sequence.test 1040s # Running test: glib/codegen.py.test 1041s TAP version 13 1041s ok 1 __main__.TestCodegen.test_call_flags_and_timeout_method_args 1041s # gdbus-codegen: /usr/bin/gdbus-codegen 1041s # tmpdir: /tmp/tmpntaqmu1w 1041s # /tmp/tmpntaqmu1w/tmplrjss66r.xml: 1041s # 1041s # 1041s # 1041s # 1041s # 1041s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpntaqmu1w/tmplrjss66r.xml', '--output', '-', '--header'] 1041s # Return code: 0 1041s # Output: 1041s # /* 1041s # * This file is generated by gdbus-codegen, do not modify it. 1041s # * 1041s # * The license of this code is the same as for the D-Bus interface description 1041s # * it was derived from. Note that it links to GLib, so must comply with the 1041s # * LGPL linking clauses. 1041s # */ 1041s # 1041s # #ifndef __STDOUT__ 1041s # #define __STDOUT__ 1041s # 1041s # #include 1041s # 1041s # G_BEGIN_DECLS 1041s # 1041s # 1041s # /* ------------------------------------------------------------------------ */ 1041s # /* Declarations for org.project.UsefulInterface */ 1041s # 1041s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 1041s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 1041s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 1041s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 1041s # 1041s # struct _OrgProjectUsefulInterface; 1041s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 1041s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 1041s # 1041s # struct _OrgProjectUsefulInterfaceIface 1041s # { 1041s # GTypeInterface parent_iface; 1041s # 1041s # gboolean (*handle_useful_method) ( 1041s # OrgProjectUsefulInterface *object, 1041s # GDBusMethodInvocation *invocation); 1041s # 1041s # }; 1041s # 1041s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 1041s # 1041s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 1041s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 1041s # 1041s # 1041s # /* D-Bus method call completion functions: */ 1041s # void org_project_useful_interface_complete_useful_method ( 1041s # OrgProjectUsefulInterface *object, 1041s # GDBusMethodInvocation *invocation); 1041s # 1041s # 1041s # 1041s # /* D-Bus method calls: */ 1041s # void org_project_useful_interface_call_useful_method ( 1041s # OrgProjectUsefulInterface *proxy, 1041s # GCancellable *cancellable, 1041s # GAsyncReadyCallback callback, 1041s # gpointer user_data); 1041s # 1041s # gboolean org_project_useful_interface_call_useful_method_finish ( 1041s # OrgProjectUsefulInterface *proxy, 1041s # GAsyncResult *res, 1041s # GError **error); 1041s # 1041s # gboolean org_project_useful_interface_call_useful_method_sync ( 1041s # OrgProjectUsefulInterface *proxy, 1041s # GCancellable *cancellable, 1041s # GError **error); 1041s # 1041s # 1041s # 1041s # /* ---- */ 1041s # 1041s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 1041s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 1041s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1041s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1041s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1041s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1041s # 1041s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 1041s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 1041s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 1041s # 1041s # struct _OrgProjectUsefulInterfaceProxy 1041s # { 1041s # /*< private >*/ 1041s # GDBusProxy parent_instance; 1041s # OrgProjectUsefulInterfaceProxyPrivate *priv; 1041s # }; 1041s # 1041s # struct _OrgProjectUsefulInterfaceProxyClass 1041s # { 1041s # GDBusProxyClass parent_class; 1041s # }; 1041s # 1041s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 1041s # 1041s # #if GLIB_CHECK_VERSION(2, 44, 0) 1041s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 1041s # #endif 1041s # 1041s # void org_project_useful_interface_proxy_new ( 1041s # GDBusConnection *connection, 1041s # GDBusProxyFlags flags, 1041s # const gchar *name, 1041s # const gchar *object_path, 1041s # GCancellable *cancellable, 1041s # GAsyncReadyCallback callback, 1041s # gpointer user_data); 1041s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 1041s # GAsyncResult *res, 1041s # GError **error); 1041s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 1041s # GDBusConnection *connection, 1041s # GDBusProxyFlags flags, 1041s # const gchar *name, 1041s # const gchar *object_path, 1041s # GCancellable *cancellable, 1041s # GError **error); 1041s # 1041s # void org_project_useful_interface_proxy_new_for_bus ( 1041s # GBusType bus_type, 1041s # GDBusProxyFlags flags, 1041s # const gchar *name, 1041s # const gchar *object_path, 1041s # GCancellable *cancellable, 1041s # GAsyncReadyCallback callback, 1041s # gpointer user_data); 1041s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 1041s # GAsyncResult *res, 1041s # GError **error); 1041s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 1041s # GBusType bus_type, 1041s # GDBusProxyFlags flags, 1041s # const gchar *name, 1041s # const gchar *object_path, 1041s # GCancellable *cancellable, 1041s # GError **error); 1041s # 1041s # 1041s # /* ---- */ 1041s # 1041s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 1041s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 1041s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1041s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1041s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1041s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1041s # 1041s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 1041s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 1041s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 1041s # 1041s # struct _OrgProjectUsefulInterfaceSkeleton 1041s # { 1041s # /*< private >*/ 1041s # GDBusInterfaceSkeleton parent_instance; 1041s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 1041s # }; 1041s # 1041s # struct _OrgProjectUsefulInterfaceSkeletonClass 1041s # { 1041s # GDBusInterfaceSkeletonClass parent_class; 1041s # }; 1041s # 1041s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 1041s # 1041s # #if GLIB_CHECK_VERSION(2, 44, 0) 1041s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 1041s # #endif 1041s # 1041s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 1041s # 1041s # 1041s # G_END_DECLS 1041s # 1041s # #endif /* __STDOUT__ */ 1041s # Error: 1041s # 1041s # /tmp/tmpntaqmu1w/tmp8hu_u01f.xml: 1041s # 1041s # 1041s # 1041s # 1041s # 1041s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpntaqmu1w/tmp8hu_u01f.xml', '--output', '-', '--header', '--glib-min-required', '2.32'] 1041s # Return code: 0 1041s # Output: 1041s # /* 1041s # * This file is generated by gdbus-codegen, do not modify it. 1041s # * 1041s # * The license of this code is the same as for the D-Bus interface description 1041s # * it was derived from. Note that it links to GLib, so must comply with the 1041s # * LGPL linking clauses. 1041s # */ 1041s # 1041s # #ifndef __STDOUT__ 1041s # #define __STDOUT__ 1041s # 1041s # #include 1041s # 1041s # G_BEGIN_DECLS 1041s # 1041s # 1041s # /* ------------------------------------------------------------------------ */ 1041s # /* Declarations for org.project.UsefulInterface */ 1041s # 1041s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 1041s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 1041s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 1041s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 1041s # 1041s # struct _OrgProjectUsefulInterface; 1041s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 1041s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 1041s # 1041s # struct _OrgProjectUsefulInterfaceIface 1041s # { 1041s # GTypeInterface parent_iface; 1041s # 1041s # gboolean (*handle_useful_method) ( 1041s # OrgProjectUsefulInterface *object, 1041s # GDBusMethodInvocation *invocation); 1041s # 1041s # }; 1041s # 1041s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 1041s # 1041s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 1041s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 1041s # 1041s # 1041s # /* D-Bus method call completion functions: */ 1041s # void org_project_useful_interface_complete_useful_method ( 1041s # OrgProjectUsefulInterface *object, 1041s # GDBusMethodInvocation *invocation); 1041s # 1041s # 1041s # 1041s # /* D-Bus method calls: */ 1041s # void org_project_useful_interface_call_useful_method ( 1041s # OrgProjectUsefulInterface *proxy, 1041s # GCancellable *cancellable, 1041s # GAsyncReadyCallback callback, 1041s # gpointer user_data); 1041s # 1041s # gboolean org_project_useful_interface_call_useful_method_finish ( 1041s # OrgProjectUsefulInterface *proxy, 1041s # GAsyncResult *res, 1041s # GError **error); 1041s # 1041s # gboolean org_project_useful_interface_call_useful_method_sync ( 1041s # OrgProjectUsefulInterface *proxy, 1041s # GCancellable *cancellable, 1041s # GError **error); 1041s # 1041s # 1041s # 1041s # /* ---- */ 1041s # 1041s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 1041s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 1041s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1041s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1041s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1041s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1041s # 1041s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 1041s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 1041s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 1041s # 1041s # struct _OrgProjectUsefulInterfaceProxy 1041s # { 1041s # /*< private >*/ 1041s # GDBusProxy parent_instance; 1041s # OrgProjectUsefulInterfaceProxyPrivate *priv; 1041s # }; 1041s # 1041s # struct _OrgProjectUsefulInterfaceProxyClass 1041s # { 1041s # GDBusProxyClass parent_class; 1041s # }; 1041s # 1041s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 1041s # 1041s # #if GLIB_CHECK_VERSION(2, 44, 0) 1041s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 1041s # #endif 1041s # 1041s # void org_project_useful_interface_proxy_new ( 1041s # GDBusConnection *connection, 1041s # GDBusProxyFlags flags, 1041s # const gchar *name, 1041s # const gchar *object_path, 1041s # GCancellable *cancellable, 1041s # GAsyncReadyCallback callback, 1041s # gpointer user_data); 1041s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 1041s # GAsyncResult *res, 1041s # GError **error); 1041s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 1041s # GDBusConnection *connection, 1041s # GDBusProxyFlags flags, 1041s # const gchar *name, 1041s # const gchar *object_path, 1041s # GCancellable *cancellable, 1041s # GError **error); 1041s # 1041s # void org_project_useful_interface_proxy_new_for_bus ( 1041s # GBusType bus_type, 1041s # GDBusProxyFlags flags, 1041s # const gchar *name, 1041s # const gchar *object_path, 1041s # GCancellable *cancellable, 1041s # GAsyncReadyCallback callback, 1041s # gpointer user_data); 1041s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 1041s # GAsyncResult *res, 1041s # GError **error); 1041s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 1041s # GBusType bus_type, 1041s # GDBusProxyFlags flags, 1041s # const gchar *name, 1041s # const gchar *object_path, 1041s # GCancellable *cancellable, 1041s # GError **error); 1041s # 1041s # 1041s # /* ---- */ 1041s # 1041s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 1041s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 1041s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1041s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1041s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1041s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1041s # 1041s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 1041s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 1041s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 1041s # 1041s # struct _OrgProjectUsefulInterfaceSkeleton 1041s # { 1041s # /*< private >*/ 1041s # GDBusInterfaceSkeleton parent_instance; 1041s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 1041s # }; 1041s # 1041s # struct _OrgProjectUsefulInterfaceSkeletonClass 1041s # { 1041s # GDBusInterfaceSkeletonClass parent_class; 1041s # }; 1041s # 1041s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 1041s # 1041s # #if GLIB_CHECK_VERSION(2, 44, 0) 1041s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 1041s # #endif 1041s # 1041s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 1041s # 1041s # 1041s # G_END_DECLS 1041s # 1041s # #endif /* __STDOUT__ */ 1041s # Error: 1041s # 1041s # /tmp/tmpntaqmu1w/tmp728p_jg9.xml: 1041s # 1041s # 1041s # 1041s # 1041s # 1041s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpntaqmu1w/tmp728p_jg9.xml', '--output', '-', '--header', '--glib-min-required', '2.64'] 1041s # Return code: 0 1041s # Output: 1041s # /* 1041s # * This file is generated by gdbus-codegen, do not modify it. 1041s # * 1041s # * The license of this code is the same as for the D-Bus interface description 1041s # * it was derived from. Note that it links to GLib, so must comply with the 1041s # * LGPL linking clauses. 1041s # */ 1041s # 1041s # #ifndef __STDOUT__ 1041s # #define __STDOUT__ 1041s # 1041s # #include 1041s # 1041s # G_BEGIN_DECLS 1041s # 1041s # 1041s # /* ------------------------------------------------------------------------ */ 1041s # /* Declarations for org.project.UsefulInterface */ 1041s # 1041s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 1041s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 1041s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 1041s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 1041s # 1041s # struct _OrgProjectUsefulInterface; 1041s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 1041s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 1041s # 1041s # struct _OrgProjectUsefulInterfaceIface 1041s # { 1041s # GTypeInterface parent_iface; 1041s # 1041s # gboolean (*handle_useful_method) ( 1041s # OrgProjectUsefulInterface *object, 1041s # GDBusMethodInvocation *invocation); 1041s # 1041s # }; 1041s # 1041s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 1041s # 1041s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 1041s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 1041s # 1041s # 1041s # /* D-Bus method call completion functions: */ 1041s # void org_project_useful_interface_complete_useful_method ( 1041s # OrgProjectUsefulInterface *object, 1041s # GDBusMethodInvocation *invocation); 1041s # 1041s # 1041s # 1041s # /* D-Bus method calls: */ 1041s # void org_project_useful_interface_call_useful_method ( 1041s # OrgProjectUsefulInterface *proxy, 1041s # GDBusCallFlags call_flags, 1041s # gint timeout_msec, 1041s # GCancellable *cancellable, 1041s # GAsyncReadyCallback callback, 1041s # gpointer user_data); 1041s # 1041s # gboolean org_project_useful_interface_call_useful_method_finish ( 1041s # OrgProjectUsefulInterface *proxy, 1041s # GAsyncResult *res, 1041s # GError **error); 1041s # 1041s # gboolean org_project_useful_interface_call_useful_method_sync ( 1041s # OrgProjectUsefulInterface *proxy, 1041s # GDBusCallFlags call_flags, 1041s # gint timeout_msec, 1041s # GCancellable *cancellable, 1041s # GError **error); 1041s # 1041s # 1041s # 1041s # /* ---- */ 1041s # 1041s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 1041s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 1041s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1041s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1041s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1041s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1041s # 1041s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 1041s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 1041s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 1041s # 1041s # struct _OrgProjectUsefulInterfaceProxy 1041s # { 1041s # /*< private >*/ 1041s # GDBusProxy parent_instance; 1041s # OrgProjectUsefulInterfaceProxyPrivate *priv; 1041s # }; 1041s # 1041s # struct _OrgProjectUsefulInterfaceProxyClass 1041s # { 1041s # GDBusProxyClass parent_class; 1041s # }; 1041s # 1041s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 1041s # 1041s # #if GLIB_CHECK_VERSION(2, 44, 0) 1041s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 1041s # #endif 1041s # 1041s # void org_project_useful_interface_proxy_new ( 1041s # GDBusConnection *connection, 1041s # GDBusProxyFlags flags, 1041s # const gchar *name, 1041s # const gchar *object_path, 1041s # GCancellable *cancellable, 1041s # GAsyncReadyCallback callback, 1041s # gpointer user_data); 1041s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 1041s # GAsyncResult *res, 1041s # GError **error); 1041s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 1041s # GDBusConnection *connection, 1041s # GDBusProxyFlags flags, 1041s # const gchar *name, 1041s # const gchar *object_path, 1041s # GCancellable *cancellable, 1041s # GError **error); 1041s # 1041s # void org_project_useful_interface_proxy_new_for_bus ( 1041s # GBusType bus_type, 1041s # GDBusProxyFlags flags, 1041s # const gchar *name, 1041s # const gchar *object_path, 1041s # GCancellable *cancellable, 1041s # GAsyncReadyCallback callback, 1041s # gpointer user_data); 1041s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 1041s # GAsyncResult *res, 1041s # GError **error); 1041s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 1041s # GBusType bus_type, 1041s # GDBusProxyFlags flags, 1041s # const gchar *name, 1041s # const gchar *object_path, 1041s # GCancellable *cancellable, 1041s # GError **error); 1041s # 1041s # 1041s # /* ---- */ 1041s # 1041s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 1041s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 1041s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1041s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1041s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1041s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1041s # 1041s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 1041s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 1041s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 1041s # 1041s # struct _OrgProjectUsefulInterfaceSkeleton 1041s # { 1041s # /*< private >*/ 1041s # GDBusInterfaceSkeleton parent_instance; 1041s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 1041s # }; 1041s # 1041s # struct _OrgProjectUsefulInterfaceSkeletonClass 1041s # { 1041s # GDBusInterfaceSkeletonClass parent_class; 1041s # }; 1041s # 1041s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 1041s # 1041s # #if GLIB_CHECK_VERSION(2, 44, 0) 1041s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 1041s # #endif 1041s # 1041s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 1041s # 1041s # 1041s # G_END_DECLS 1041s # 1041s # #endif /* __STDOUT__ */ 1041s # Error: 1041s ok 2 __main__.TestCodegen.test_dbus_types 1041s # gdbus-codegen: /usr/bin/gdbus-codegen 1041s # tmpdir: /tmp/tmpw0gvr5ar 1041s # /tmp/tmpw0gvr5ar/tmp2t75ixfm.xml: 1041s # 1041s # 1041s # 1041s # 1041s # 1041s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpw0gvr5ar/tmp2t75ixfm.xml', '--output', '-', '--body'] 1041s # Return code: 1 1041s # Output: 1041s # 1041s # Error: 1041s # ERROR: Bad signature "{vs}". "v" is not a valid type for dictionary keys at position 1. 1041s # /tmp/tmpw0gvr5ar/tmp522i_2iz.xml: 1041s # 1041s # 1041s # 1041s # 1041s # 1041s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpw0gvr5ar/tmp522i_2iz.xml', '--output', '-', '--body'] 1041s # Return code: 1 1041s # Output: 1041s # 1041s # Error: 1041s # ERROR: Bad signature "(ss(s{{sv}s}))". "{" is not a valid type for dictionary keys at position 6. 1041s # /tmp/tmpw0gvr5ar/tmpdd13z7zs.xml: 1041s # 1041s # 1041s # 1041s # 1041s # 1041s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpw0gvr5ar/tmpdd13z7zs.xml', '--output', '-', '--body'] 1041s # Return code: 1 1041s # Output: 1041s # 1041s # Error: 1041s # ERROR: Bad signature "{s". Error parsing string or brackets not closed. 1041s # /tmp/tmpw0gvr5ar/tmpa6un0loh.xml: 1041s # 1041s # 1041s # 1041s # 1041s # 1041s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpw0gvr5ar/tmpa6un0loh.xml', '--output', '-', '--body'] 1041s # Return code: 1 1041s # Output: 1041s # 1041s # Error: 1041s # ERROR: Bad signature "(s{sss})". Dict must end with "}" at position 5. 1041s # /tmp/tmpw0gvr5ar/tmpogix3xiz.xml: 1041s # 1041s # 1041s # 1041s # 1041s # 1041s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpw0gvr5ar/tmpogix3xiz.xml', '--output', '-', '--body'] 1041s # Return code: 1 1041s # Output: 1041s # 1041s # Error: 1041s # ERROR: Bad signature "z". "z" is not a valid D-Bus type. 1041s # /tmp/tmpw0gvr5ar/tmpt7s6gpx7.xml: 1041s # 1041s # 1041s # 1041s # 1041s # 1041s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpw0gvr5ar/tmpt7s6gpx7.xml', '--output', '-', '--body'] 1041s # Return code: 1 1041s # Output: 1041s # 1041s # Error: 1041s # ERROR: Bad signature "(ssms)". "m" is not a valid D-Bus type. 1041s # /tmp/tmpw0gvr5ar/tmpdtjitlrr.xml: 1041s # 1041s # 1041s # 1041s # 1041s # 1041s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpw0gvr5ar/tmpdtjitlrr.xml', '--output', '-', '--body'] 1041s # Return code: 1 1041s # Output: 1041s # 1041s # Error: 1041s # ERROR: Bad signature "(". Error parsing string or brackets not closed. 1041s # /tmp/tmpw0gvr5ar/tmpvnr15yxb.xml: 1041s # 1041s # 1041s # 1041s # 1041s # 1041s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpw0gvr5ar/tmpvnr15yxb.xml', '--output', '-', '--body'] 1041s # Return code: 1 1041s # Output: 1041s # 1041s # Error: 1041s # ERROR: Bad signature "(((ss))". Error parsing string or brackets not closed. 1041s # /tmp/tmpw0gvr5ar/tmpacfb55k3.xml: 1041s # 1041s # 1041s # 1041s # 1041s # 1041s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpw0gvr5ar/tmpacfb55k3.xml', '--output', '-', '--body'] 1041s # Return code: 1 1041s # Output: 1041s # 1041s # Error: 1041s # ERROR: Bad signature "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas". Too much recursion beginning at 129. 1041s # /tmp/tmpw0gvr5ar/tmpiov9f87l.xml: 1041s # 1041s # 1041s # 1041s # 1041s # 1041s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpw0gvr5ar/tmpiov9f87l.xml', '--output', '-', '--body'] 1041s # Return code: 1 1041s # Output: 1041s # 1041s # Error: 1041s # ERROR: D-Bus maximum signature length of 255 exceeded. 1041s # /tmp/tmpw0gvr5ar/tmpwdqnkll3.xml: 1041s # 1041s # 1041s # 1041s # 1041s # 1041s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpw0gvr5ar/tmpwdqnkll3.xml', '--output', '-', '--body'] 1041s # Return code: 1 1041s # Output: 1041s # 1041s # Error: 1041s # ERROR: D-Bus maximum signature length of 255 exceeded. 1041s # /tmp/tmpw0gvr5ar/tmp3ps9bof7.xml: 1041s # 1041s # 1041s # 1041s # 1041s # 1041s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpw0gvr5ar/tmp3ps9bof7.xml', '--output', '-', '--body'] 1041s # Return code: 1 1041s # Output: 1041s # 1041s # Error: 1041s # ERROR: Bad signature "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaa{sv})". Too much recursion beginning at 129. 1041s # /tmp/tmpw0gvr5ar/tmps7znblfk.xml: 1041s # 1041s # 1041s # 1041s # 1041s # 1041s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpw0gvr5ar/tmps7znblfk.xml', '--output', '-', '--body'] 1041s # Return code: 1 1041s # Output: 1041s # 1041s # Error: 1041s # ERROR: D-Bus maximum signature length of 255 exceeded. 1041s # /tmp/tmpw0gvr5ar/tmpyw8g1bi5.xml: 1041s # 1041s # 1041s # 1041s # 1041s # 1041s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpw0gvr5ar/tmpyw8g1bi5.xml', '--output', '-', '--body'] 1041s # Return code: 0 1041s # Output: 1041s # /* 1041s # * This file is generated by gdbus-codegen, do not modify it. 1041s # * 1041s # * The license of this code is the same as for the D-Bus interface description 1041s # * it was derived from. Note that it links to GLib, so must comply with the 1041s # * LGPL linking clauses. 1041s # */ 1041s # 1041s # #ifdef HAVE_CONFIG_H 1041s # # include "config.h" 1041s # #endif 1041s # 1041s # #include 1041s # #ifdef G_OS_UNIX 1041s # # include 1041s # #endif 1041s # 1041s # #ifdef G_ENABLE_DEBUG 1041s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1041s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1041s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1041s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1041s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1041s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1041s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1041s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1041s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1041s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1041s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1041s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1041s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1041s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1041s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1041s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1041s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1041s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1041s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1041s # #else /* !G_ENABLE_DEBUG */ 1041s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1041s # * Do not access GValues directly in your code. Instead, use the 1041s # * g_value_get_*() functions 1041s # */ 1041s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1041s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1041s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1041s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1041s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1041s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1041s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1041s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1041s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1041s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1041s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1041s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1041s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1041s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1041s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1041s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1041s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1041s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1041s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1041s # #endif /* !G_ENABLE_DEBUG */ 1041s # 1041s # typedef struct 1041s # { 1041s # GDBusArgInfo parent_struct; 1041s # gboolean use_gvariant; 1041s # } _ExtendedGDBusArgInfo; 1041s # 1041s # typedef struct 1041s # { 1041s # GDBusMethodInfo parent_struct; 1041s # const gchar *signal_name; 1041s # gboolean pass_fdlist; 1041s # } _ExtendedGDBusMethodInfo; 1041s # 1041s # typedef struct 1041s # { 1041s # GDBusSignalInfo parent_struct; 1041s # const gchar *signal_name; 1041s # } _ExtendedGDBusSignalInfo; 1041s # 1041s # typedef struct 1041s # { 1041s # GDBusPropertyInfo parent_struct; 1041s # const gchar *hyphen_name; 1041s # guint use_gvariant : 1; 1041s # guint emits_changed_signal : 1; 1041s # } _ExtendedGDBusPropertyInfo; 1041s # 1041s # typedef struct 1041s # { 1041s # GDBusInterfaceInfo parent_struct; 1041s # const gchar *hyphen_name; 1041s # } _ExtendedGDBusInterfaceInfo; 1041s # 1041s # typedef struct 1041s # { 1041s # const _ExtendedGDBusPropertyInfo *info; 1041s # guint prop_id; 1041s # GValue orig_value; /* the value before the change */ 1041s # } ChangedProperty; 1041s # 1041s # static void 1041s # _changed_property_free (ChangedProperty *data) 1041s # { 1041s # g_value_unset (&data->orig_value); 1041s # g_free (data); 1041s # } 1041s # 1041s # static gboolean 1041s # _g_strv_equal0 (gchar **a, gchar **b) 1041s # { 1041s # gboolean ret = FALSE; 1041s # guint n; 1041s # if (a == NULL && b == NULL) 1041s # { 1041s # ret = TRUE; 1041s # goto out; 1041s # } 1041s # if (a == NULL || b == NULL) 1041s # goto out; 1041s # if (g_strv_length (a) != g_strv_length (b)) 1041s # goto out; 1041s # for (n = 0; a[n] != NULL; n++) 1041s # if (g_strcmp0 (a[n], b[n]) != 0) 1041s # goto out; 1041s # ret = TRUE; 1041s # out: 1041s # return ret; 1041s # } 1041s # 1041s # static gboolean 1041s # _g_variant_equal0 (GVariant *a, GVariant *b) 1041s # { 1041s # gboolean ret = FALSE; 1041s # if (a == NULL && b == NULL) 1041s # { 1041s # ret = TRUE; 1041s # goto out; 1041s # } 1041s # if (a == NULL || b == NULL) 1041s # goto out; 1041s # ret = g_variant_equal (a, b); 1041s # out: 1041s # return ret; 1041s # } 1041s # 1041s # G_GNUC_UNUSED static gboolean 1041s # _g_value_equal (const GValue *a, const GValue *b) 1041s # { 1041s # gboolean ret = FALSE; 1041s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1041s # switch (G_VALUE_TYPE (a)) 1041s # { 1041s # case G_TYPE_BOOLEAN: 1041s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1041s # break; 1041s # case G_TYPE_UCHAR: 1041s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1041s # break; 1041s # case G_TYPE_INT: 1041s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1041s # break; 1041s # case G_TYPE_UINT: 1041s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1041s # break; 1041s # case G_TYPE_INT64: 1041s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1041s # break; 1041s # case G_TYPE_UINT64: 1041s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1041s # break; 1041s # case G_TYPE_DOUBLE: 1041s # { 1041s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1041s # gdouble da = g_value_get_double (a); 1041s # gdouble db = g_value_get_double (b); 1041s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1041s # } 1041s # break; 1041s # case G_TYPE_STRING: 1041s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1041s # break; 1041s # case G_TYPE_VARIANT: 1041s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1041s # break; 1041s # default: 1041s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1041s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1041s # else 1041s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1041s # break; 1041s # } 1041s # return ret; 1041s # } 1041s # 1041s # /* ------------------------------------------------------------------------ 1041s # * Code for interface GoodTypes 1041s # * ------------------------------------------------------------------------ 1041s # */ 1041s # 1041s # /** 1041s # * SECTION:GoodTypes 1041s # * @title: GoodTypes 1041s # * @short_description: Generated C code for the GoodTypes D-Bus interface 1041s # * 1041s # * This section contains code for working with the GoodTypes D-Bus interface in C. 1041s # */ 1041s # 1041s # /* ---- Introspection data for GoodTypes ---- */ 1041s # 1041s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 1041s # { 1041s # { 1041s # -1, 1041s # (gchar *) "GoodPropertyType", 1041s # (gchar *) "si{s{b(ybnqiuxtdh)}}{yv}{nv}{dv}", 1041s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1041s # NULL 1041s # }, 1041s # "good-property-type", 1041s # FALSE, 1041s # TRUE 1041s # }; 1041s # 1041s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 1041s # { 1041s # &_good_types_property_info_good_property_type.parent_struct, 1041s # NULL 1041s # }; 1041s # 1041s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 1041s # { 1041s # { 1041s # -1, 1041s # (gchar *) "GoodTypes", 1041s # NULL, 1041s # NULL, 1041s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 1041s # NULL 1041s # }, 1041s # "good-types", 1041s # }; 1041s # 1041s # 1041s # /** 1041s # * good_types_interface_info: 1041s # * 1041s # * Gets a machine-readable description of the GoodTypes D-Bus interface. 1041s # * 1041s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1041s # */ 1041s # GDBusInterfaceInfo * 1041s # good_types_interface_info (void) 1041s # { 1041s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 1041s # } 1041s # 1041s # /** 1041s # * good_types_override_properties: 1041s # * @klass: The class structure for a #GObject derived class. 1041s # * @property_id_begin: The property id to assign to the first overridden property. 1041s # * 1041s # * Overrides all #GObject properties in the GoodTypes interface for a concrete class. 1041s # * The properties are overridden in the order they are defined. 1041s # * 1041s # * Returns: The last property id. 1041s # */ 1041s # guint 1041s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 1041s # { 1041s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 1041s # return property_id_begin - 1; 1041s # } 1041s # 1041s # 1041s # 1041s # /** 1041s # * GoodTypes: 1041s # * 1041s # * Abstract interface type for the D-Bus interface GoodTypes. 1041s # */ 1041s # 1041s # /** 1041s # * GoodTypesIface: 1041s # * @parent_iface: The parent interface. 1041s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 1041s # * 1041s # * Virtual table for the D-Bus interface GoodTypes. 1041s # */ 1041s # 1041s # typedef GoodTypesIface GoodTypesInterface; 1041s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 1041s # 1041s # static void 1041s # good_types_default_init (GoodTypesIface *iface) 1041s # { 1041s # /* GObject properties for D-Bus properties: */ 1041s # /** 1041s # * GoodTypes:good-property-type: 1041s # * 1041s # * Represents the D-Bus property "GoodPropertyType". 1041s # * 1041s # * 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. 1041s # */ 1041s # g_object_interface_install_property (iface, 1041s # 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)); 1041s # } 1041s # 1041s # /** 1041s # * good_types_get_good_property_type: (skip) 1041s # * @object: A GoodTypes. 1041s # * 1041s # * Gets the value of the "GoodPropertyType" D-Bus property. 1041s # * 1041s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1041s # * 1041s # * 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. 1041s # * 1041s # * 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. 1041s # */ 1041s # GVariant * 1041s # good_types_get_good_property_type (GoodTypes *object) 1041s # { 1041s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 1041s # 1041s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 1041s # } 1041s # 1041s # /** 1041s # * good_types_dup_good_property_type: (skip) 1041s # * @object: A GoodTypes. 1041s # * 1041s # * Gets a copy of the "GoodPropertyType" D-Bus property. 1041s # * 1041s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1041s # * 1041s # * 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(). 1041s # */ 1041s # GVariant * 1041s # good_types_dup_good_property_type (GoodTypes *object) 1041s # { 1041s # GVariant *value; 1041s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 1041s # return value; 1041s # } 1041s # 1041s # /** 1041s # * good_types_set_good_property_type: (skip) 1041s # * @object: A GoodTypes. 1041s # * @value: The value to set. 1041s # * 1041s # * Sets the "GoodPropertyType" D-Bus property to @value. 1041s # * 1041s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1041s # */ 1041s # void 1041s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 1041s # { 1041s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 1041s # } 1041s # 1041s # /* ------------------------------------------------------------------------ */ 1041s # 1041s # /** 1041s # * GoodTypesProxy: 1041s # * 1041s # * The GoodTypesProxy structure contains only private data and should only be accessed using the provided API. 1041s # */ 1041s # 1041s # /** 1041s # * GoodTypesProxyClass: 1041s # * @parent_class: The parent class. 1041s # * 1041s # * Class structure for GoodTypesProxy. 1041s # */ 1041s # 1041s # struct _GoodTypesProxyPrivate 1041s # { 1041s # GData *qdata; 1041s # }; 1041s # 1041s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 1041s # 1041s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1041s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1041s # G_ADD_PRIVATE (GoodTypesProxy) 1041s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1041s # 1041s # #else 1041s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1041s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1041s # 1041s # #endif 1041s # static void 1041s # good_types_proxy_finalize (GObject *object) 1041s # { 1041s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1041s # g_datalist_clear (&proxy->priv->qdata); 1041s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 1041s # } 1041s # 1041s # static void 1041s # good_types_proxy_get_property (GObject *object, 1041s # guint prop_id, 1041s # GValue *value, 1041s # GParamSpec *pspec G_GNUC_UNUSED) 1041s # { 1041s # const _ExtendedGDBusPropertyInfo *info; 1041s # GVariant *variant; 1041s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1041s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1041s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1041s # if (info->use_gvariant) 1041s # { 1041s # g_value_set_variant (value, variant); 1041s # } 1041s # else 1041s # { 1041s # if (variant != NULL) 1041s # g_dbus_gvariant_to_gvalue (variant, value); 1041s # } 1041s # if (variant != NULL) 1041s # g_variant_unref (variant); 1041s # } 1041s # 1041s # static void 1041s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 1041s # GAsyncResult *res, 1041s # gpointer user_data) 1041s # { 1041s # const _ExtendedGDBusPropertyInfo *info = user_data; 1041s # GError *error; 1041s # GVariant *_ret; 1041s # error = NULL; 1041s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1041s # if (!_ret) 1041s # { 1041s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 1041s # info->parent_struct.name, 1041s # error->message, g_quark_to_string (error->domain), error->code); 1041s # g_error_free (error); 1041s # } 1041s # else 1041s # { 1041s # g_variant_unref (_ret); 1041s # } 1041s # } 1041s # 1041s # static void 1041s # good_types_proxy_set_property (GObject *object, 1041s # guint prop_id, 1041s # const GValue *value, 1041s # GParamSpec *pspec G_GNUC_UNUSED) 1041s # { 1041s # const _ExtendedGDBusPropertyInfo *info; 1041s # GVariant *variant; 1041s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1041s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1041s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1041s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1041s # "org.freedesktop.DBus.Properties.Set", 1041s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 1041s # G_DBUS_CALL_FLAGS_NONE, 1041s # -1, 1041s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1041s # g_variant_unref (variant); 1041s # } 1041s # 1041s # static void 1041s # good_types_proxy_g_signal (GDBusProxy *proxy, 1041s # const gchar *sender_name G_GNUC_UNUSED, 1041s # const gchar *signal_name, 1041s # GVariant *parameters) 1041s # { 1041s # _ExtendedGDBusSignalInfo *info; 1041s # GVariantIter iter; 1041s # GVariant *child; 1041s # GValue *paramv; 1041s # gsize num_params; 1041s # gsize n; 1041s # guint signal_id; 1041s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 1041s # if (info == NULL) 1041s # return; 1041s # num_params = g_variant_n_children (parameters); 1041s # paramv = g_new0 (GValue, num_params + 1); 1041s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 1041s # g_value_set_object (¶mv[0], proxy); 1041s # g_variant_iter_init (&iter, parameters); 1041s # n = 1; 1041s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1041s # { 1041s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1041s # if (arg_info->use_gvariant) 1041s # { 1041s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1041s # g_value_set_variant (¶mv[n], child); 1041s # n++; 1041s # } 1041s # else 1041s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1041s # g_variant_unref (child); 1041s # } 1041s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1041s # g_signal_emitv (paramv, signal_id, 0, NULL); 1041s # for (n = 0; n < num_params + 1; n++) 1041s # g_value_unset (¶mv[n]); 1041s # g_free (paramv); 1041s # } 1041s # 1041s # static void 1041s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 1041s # GVariant *changed_properties, 1041s # const gchar *const *invalidated_properties) 1041s # { 1041s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 1041s # guint n; 1041s # const gchar *key; 1041s # GVariantIter *iter; 1041s # _ExtendedGDBusPropertyInfo *info; 1041s # g_variant_get (changed_properties, "a{sv}", &iter); 1041s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1041s # { 1041s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 1041s # g_datalist_remove_data (&proxy->priv->qdata, key); 1041s # if (info != NULL) 1041s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1041s # } 1041s # g_variant_iter_free (iter); 1041s # for (n = 0; invalidated_properties[n] != NULL; n++) 1041s # { 1041s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 1041s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1041s # if (info != NULL) 1041s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1041s # } 1041s # } 1041s # 1041s # static GVariant * 1041s # good_types_proxy_get_good_property_type (GoodTypes *object) 1041s # { 1041s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1041s # GVariant *variant; 1041s # GVariant *value = NULL; 1041s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 1041s # value = variant; 1041s # if (variant != NULL) 1041s # g_variant_unref (variant); 1041s # return value; 1041s # } 1041s # 1041s # static void 1041s # good_types_proxy_init (GoodTypesProxy *proxy) 1041s # { 1041s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1041s # proxy->priv = good_types_proxy_get_instance_private (proxy); 1041s # #else 1041s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 1041s # #endif 1041s # 1041s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 1041s # } 1041s # 1041s # static void 1041s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 1041s # { 1041s # GObjectClass *gobject_class; 1041s # GDBusProxyClass *proxy_class; 1041s # 1041s # gobject_class = G_OBJECT_CLASS (klass); 1041s # gobject_class->finalize = good_types_proxy_finalize; 1041s # gobject_class->get_property = good_types_proxy_get_property; 1041s # gobject_class->set_property = good_types_proxy_set_property; 1041s # 1041s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1041s # proxy_class->g_signal = good_types_proxy_g_signal; 1041s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 1041s # 1041s # good_types_override_properties (gobject_class, 1); 1041s # 1041s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1041s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 1041s # #endif 1041s # } 1041s # 1041s # static void 1041s # good_types_proxy_iface_init (GoodTypesIface *iface) 1041s # { 1041s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 1041s # } 1041s # 1041s # /** 1041s # * good_types_proxy_new: 1041s # * @connection: A #GDBusConnection. 1041s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1041s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1041s # * @object_path: An object path. 1041s # * @cancellable: (nullable): A #GCancellable or %NULL. 1041s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1041s # * @user_data: User data to pass to @callback. 1041s # * 1041s # * Asynchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new() for more details. 1041s # * 1041s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1041s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 1041s # * 1041s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 1041s # */ 1041s # void 1041s # good_types_proxy_new ( 1041s # GDBusConnection *connection, 1041s # GDBusProxyFlags flags, 1041s # const gchar *name, 1041s # const gchar *object_path, 1041s # GCancellable *cancellable, 1041s # GAsyncReadyCallback callback, 1041s # gpointer user_data) 1041s # { 1041s # 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); 1041s # } 1041s # 1041s # /** 1041s # * good_types_proxy_new_finish: 1041s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 1041s # * @error: Return location for error or %NULL 1041s # * 1041s # * Finishes an operation started with good_types_proxy_new(). 1041s # * 1041s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1041s # */ 1041s # GoodTypes * 1041s # good_types_proxy_new_finish ( 1041s # GAsyncResult *res, 1041s # GError **error) 1041s # { 1041s # GObject *ret; 1041s # GObject *source_object; 1041s # source_object = g_async_result_get_source_object (res); 1041s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1041s # g_object_unref (source_object); 1041s # if (ret != NULL) 1041s # return GOOD_TYPES (ret); 1041s # else 1041s # return NULL; 1041s # } 1041s # 1041s # /** 1041s # * good_types_proxy_new_sync: 1041s # * @connection: A #GDBusConnection. 1041s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1041s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1041s # * @object_path: An object path. 1041s # * @cancellable: (nullable): A #GCancellable or %NULL. 1041s # * @error: Return location for error or %NULL 1041s # * 1041s # * Synchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new_sync() for more details. 1041s # * 1041s # * The calling thread is blocked until a reply is received. 1041s # * 1041s # * See good_types_proxy_new() for the asynchronous version of this constructor. 1041s # * 1041s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1041s # */ 1041s # GoodTypes * 1041s # good_types_proxy_new_sync ( 1041s # GDBusConnection *connection, 1041s # GDBusProxyFlags flags, 1041s # const gchar *name, 1041s # const gchar *object_path, 1041s # GCancellable *cancellable, 1041s # GError **error) 1041s # { 1041s # GInitable *ret; 1041s # 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); 1041s # if (ret != NULL) 1041s # return GOOD_TYPES (ret); 1041s # else 1041s # return NULL; 1041s # } 1041s # 1041s # 1041s # /** 1041s # * good_types_proxy_new_for_bus: 1041s # * @bus_type: A #GBusType. 1041s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1041s # * @name: A bus name (well-known or unique). 1041s # * @object_path: An object path. 1041s # * @cancellable: (nullable): A #GCancellable or %NULL. 1041s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1041s # * @user_data: User data to pass to @callback. 1041s # * 1041s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1041s # * 1041s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1041s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 1041s # * 1041s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1041s # */ 1041s # void 1041s # good_types_proxy_new_for_bus ( 1041s # GBusType bus_type, 1041s # GDBusProxyFlags flags, 1041s # const gchar *name, 1041s # const gchar *object_path, 1041s # GCancellable *cancellable, 1041s # GAsyncReadyCallback callback, 1041s # gpointer user_data) 1041s # { 1041s # 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); 1041s # } 1041s # 1041s # /** 1041s # * good_types_proxy_new_for_bus_finish: 1041s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 1041s # * @error: Return location for error or %NULL 1041s # * 1041s # * Finishes an operation started with good_types_proxy_new_for_bus(). 1041s # * 1041s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1041s # */ 1041s # GoodTypes * 1041s # good_types_proxy_new_for_bus_finish ( 1041s # GAsyncResult *res, 1041s # GError **error) 1041s # { 1041s # GObject *ret; 1041s # GObject *source_object; 1041s # source_object = g_async_result_get_source_object (res); 1041s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1041s # g_object_unref (source_object); 1041s # if (ret != NULL) 1041s # return GOOD_TYPES (ret); 1041s # else 1041s # return NULL; 1041s # } 1041s # 1041s # /** 1041s # * good_types_proxy_new_for_bus_sync: 1041s # * @bus_type: A #GBusType. 1041s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1041s # * @name: A bus name (well-known or unique). 1041s # * @object_path: An object path. 1041s # * @cancellable: (nullable): A #GCancellable or %NULL. 1041s # * @error: Return location for error or %NULL 1041s # * 1041s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1041s # * 1041s # * The calling thread is blocked until a reply is received. 1041s # * 1041s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 1041s # * 1041s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1041s # */ 1041s # GoodTypes * 1041s # good_types_proxy_new_for_bus_sync ( 1041s # GBusType bus_type, 1041s # GDBusProxyFlags flags, 1041s # const gchar *name, 1041s # const gchar *object_path, 1041s # GCancellable *cancellable, 1041s # GError **error) 1041s # { 1041s # GInitable *ret; 1041s # 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); 1041s # if (ret != NULL) 1041s # return GOOD_TYPES (ret); 1041s # else 1041s # return NULL; 1041s # } 1041s # 1041s # 1041s # /* ------------------------------------------------------------------------ */ 1041s # 1041s # /** 1041s # * GoodTypesSkeleton: 1041s # * 1041s # * The GoodTypesSkeleton structure contains only private data and should only be accessed using the provided API. 1041s # */ 1041s # 1041s # /** 1041s # * GoodTypesSkeletonClass: 1041s # * @parent_class: The parent class. 1041s # * 1041s # * Class structure for GoodTypesSkeleton. 1041s # */ 1041s # 1041s # struct _GoodTypesSkeletonPrivate 1041s # { 1041s # GValue *properties; 1041s # GList *changed_properties; 1041s # GSource *changed_properties_idle_source; 1041s # GMainContext *context; 1041s # GMutex lock; 1041s # }; 1041s # 1041s # static void 1041s # _good_types_skeleton_handle_method_call ( 1041s # GDBusConnection *connection G_GNUC_UNUSED, 1041s # const gchar *sender G_GNUC_UNUSED, 1041s # const gchar *object_path G_GNUC_UNUSED, 1041s # const gchar *interface_name, 1041s # const gchar *method_name, 1041s # GVariant *parameters, 1041s # GDBusMethodInvocation *invocation, 1041s # gpointer user_data) 1041s # { 1041s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1041s # _ExtendedGDBusMethodInfo *info; 1041s # GVariantIter iter; 1041s # GVariant *child; 1041s # GValue *paramv; 1041s # gsize num_params; 1041s # guint num_extra; 1041s # gsize n; 1041s # guint signal_id; 1041s # GValue return_value = G_VALUE_INIT; 1041s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1041s # g_assert (info != NULL); 1041s # num_params = g_variant_n_children (parameters); 1041s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1041s # n = 0; 1041s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 1041s # g_value_set_object (¶mv[n++], skeleton); 1041s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1041s # g_value_set_object (¶mv[n++], invocation); 1041s # if (info->pass_fdlist) 1041s # { 1041s # #ifdef G_OS_UNIX 1041s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1041s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1041s # #else 1041s # g_assert_not_reached (); 1041s # #endif 1041s # } 1041s # g_variant_iter_init (&iter, parameters); 1041s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1041s # { 1041s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1041s # if (arg_info->use_gvariant) 1041s # { 1041s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1041s # g_value_set_variant (¶mv[n], child); 1041s # n++; 1041s # } 1041s # else 1041s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1041s # g_variant_unref (child); 1041s # } 1041s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1041s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1041s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1041s # if (!g_value_get_boolean (&return_value)) 1041s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1041s # g_value_unset (&return_value); 1041s # for (n = 0; n < num_params + num_extra; n++) 1041s # g_value_unset (¶mv[n]); 1041s # g_free (paramv); 1041s # } 1041s # 1041s # static GVariant * 1041s # _good_types_skeleton_handle_get_property ( 1041s # GDBusConnection *connection G_GNUC_UNUSED, 1041s # const gchar *sender G_GNUC_UNUSED, 1041s # const gchar *object_path G_GNUC_UNUSED, 1041s # const gchar *interface_name G_GNUC_UNUSED, 1041s # const gchar *property_name, 1041s # GError **error, 1041s # gpointer user_data) 1041s # { 1041s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1041s # GValue value = G_VALUE_INIT; 1041s # GParamSpec *pspec; 1041s # _ExtendedGDBusPropertyInfo *info; 1041s # GVariant *ret; 1041s # ret = NULL; 1041s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1041s # g_assert (info != NULL); 1041s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1041s # if (pspec == NULL) 1041s # { 1041s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1041s # } 1041s # else 1041s # { 1041s # g_value_init (&value, pspec->value_type); 1041s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1041s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1041s # g_value_unset (&value); 1041s # } 1041s # return ret; 1041s # } 1041s # 1041s # static gboolean 1041s # _good_types_skeleton_handle_set_property ( 1041s # GDBusConnection *connection G_GNUC_UNUSED, 1041s # const gchar *sender G_GNUC_UNUSED, 1041s # const gchar *object_path G_GNUC_UNUSED, 1041s # const gchar *interface_name G_GNUC_UNUSED, 1041s # const gchar *property_name, 1041s # GVariant *variant, 1041s # GError **error, 1041s # gpointer user_data) 1041s # { 1041s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1041s # GValue value = G_VALUE_INIT; 1041s # GParamSpec *pspec; 1041s # _ExtendedGDBusPropertyInfo *info; 1041s # gboolean ret; 1041s # ret = FALSE; 1041s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1041s # g_assert (info != NULL); 1041s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1041s # if (pspec == NULL) 1041s # { 1041s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1041s # } 1041s # else 1041s # { 1041s # if (info->use_gvariant) 1041s # g_value_set_variant (&value, variant); 1041s # else 1041s # g_dbus_gvariant_to_gvalue (variant, &value); 1041s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1041s # g_value_unset (&value); 1041s # ret = TRUE; 1041s # } 1041s # return ret; 1041s # } 1041s # 1041s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 1041s # { 1041s # _good_types_skeleton_handle_method_call, 1041s # _good_types_skeleton_handle_get_property, 1041s # _good_types_skeleton_handle_set_property, 1041s # {NULL} 1041s # }; 1041s # 1041s # static GDBusInterfaceInfo * 1041s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1041s # { 1041s # return good_types_interface_info (); 1041s # } 1041s # 1041s # static GDBusInterfaceVTable * 1041s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1041s # { 1041s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 1041s # } 1041s # 1041s # static GVariant * 1041s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1041s # { 1041s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1041s # 1041s # GVariantBuilder builder; 1041s # guint n; 1041s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1041s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1041s # #else 1041s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1041s # #endif 1041s # if (_good_types_interface_info.parent_struct.properties == NULL) 1041s # goto out; 1041s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 1041s # { 1041s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 1041s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1041s # { 1041s # GVariant *value; 1041s # 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); 1041s # if (value != NULL) 1041s # { 1041s # g_variant_take_ref (value); 1041s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1041s # g_variant_unref (value); 1041s # } 1041s # } 1041s # } 1041s # out: 1041s # return g_variant_builder_end (&builder); 1041s # } 1041s # 1041s # static gboolean _good_types_emit_changed (gpointer user_data); 1041s # 1041s # static void 1041s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1041s # { 1041s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1041s # gboolean emit_changed = FALSE; 1041s # 1041s # g_mutex_lock (&skeleton->priv->lock); 1041s # if (skeleton->priv->changed_properties_idle_source != NULL) 1041s # { 1041s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1041s # skeleton->priv->changed_properties_idle_source = NULL; 1041s # emit_changed = TRUE; 1041s # } 1041s # g_mutex_unlock (&skeleton->priv->lock); 1041s # 1041s # if (emit_changed) 1041s # _good_types_emit_changed (skeleton); 1041s # } 1041s # 1041s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 1041s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1041s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1041s # G_ADD_PRIVATE (GoodTypesSkeleton) 1041s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1041s # 1041s # #else 1041s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1041s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1041s # 1041s # #endif 1041s # static void 1041s # good_types_skeleton_finalize (GObject *object) 1041s # { 1041s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1041s # guint n; 1041s # for (n = 0; n < 1; n++) 1041s # g_value_unset (&skeleton->priv->properties[n]); 1041s # g_free (skeleton->priv->properties); 1041s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1041s # if (skeleton->priv->changed_properties_idle_source != NULL) 1041s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1041s # g_main_context_unref (skeleton->priv->context); 1041s # g_mutex_clear (&skeleton->priv->lock); 1041s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 1041s # } 1041s # 1041s # static void 1041s # good_types_skeleton_get_property (GObject *object, 1041s # guint prop_id, 1041s # GValue *value, 1041s # GParamSpec *pspec G_GNUC_UNUSED) 1041s # { 1041s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1041s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1041s # g_mutex_lock (&skeleton->priv->lock); 1041s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1041s # g_mutex_unlock (&skeleton->priv->lock); 1041s # } 1041s # 1041s # static gboolean 1041s # _good_types_emit_changed (gpointer user_data) 1041s # { 1041s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1041s # GList *l; 1041s # GVariantBuilder builder; 1041s # GVariantBuilder invalidated_builder; 1041s # guint num_changes; 1041s # 1041s # g_mutex_lock (&skeleton->priv->lock); 1041s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1041s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1041s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1041s # #else 1041s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1041s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1041s # #endif 1041s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1041s # { 1041s # ChangedProperty *cp = l->data; 1041s # GVariant *variant; 1041s # const GValue *cur_value; 1041s # 1041s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1041s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1041s # { 1041s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1041s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1041s # g_variant_unref (variant); 1041s # num_changes++; 1041s # } 1041s # } 1041s # if (num_changes > 0) 1041s # { 1041s # GList *connections, *ll; 1041s # GVariant *signal_variant; 1041s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 1041s # &builder, &invalidated_builder)); 1041s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1041s # for (ll = connections; ll != NULL; ll = ll->next) 1041s # { 1041s # GDBusConnection *connection = ll->data; 1041s # 1041s # g_dbus_connection_emit_signal (connection, 1041s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1041s # "org.freedesktop.DBus.Properties", 1041s # "PropertiesChanged", 1041s # signal_variant, 1041s # NULL); 1041s # } 1041s # g_variant_unref (signal_variant); 1041s # g_list_free_full (connections, g_object_unref); 1041s # } 1041s # else 1041s # { 1041s # g_variant_builder_clear (&builder); 1041s # g_variant_builder_clear (&invalidated_builder); 1041s # } 1041s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1041s # skeleton->priv->changed_properties = NULL; 1041s # skeleton->priv->changed_properties_idle_source = NULL; 1041s # g_mutex_unlock (&skeleton->priv->lock); 1041s # return FALSE; 1041s # } 1041s # 1041s # static void 1041s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1041s # { 1041s # ChangedProperty *cp; 1041s # GList *l; 1041s # cp = NULL; 1041s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1041s # { 1041s # ChangedProperty *i_cp = l->data; 1041s # if (i_cp->info == info) 1041s # { 1041s # cp = i_cp; 1041s # break; 1041s # } 1041s # } 1041s # if (cp == NULL) 1041s # { 1041s # cp = g_new0 (ChangedProperty, 1); 1041s # cp->prop_id = prop_id; 1041s # cp->info = info; 1041s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1041s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1041s # g_value_copy (orig_value, &cp->orig_value); 1041s # } 1041s # } 1041s # 1041s # static void 1041s # good_types_skeleton_notify (GObject *object, 1041s # GParamSpec *pspec G_GNUC_UNUSED) 1041s # { 1041s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1041s # g_mutex_lock (&skeleton->priv->lock); 1041s # if (skeleton->priv->changed_properties != NULL && 1041s # skeleton->priv->changed_properties_idle_source == NULL) 1041s # { 1041s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1041s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1041s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1041s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 1041s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1041s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1041s # } 1041s # g_mutex_unlock (&skeleton->priv->lock); 1041s # } 1041s # 1041s # static void 1041s # good_types_skeleton_set_property (GObject *object, 1041s # guint prop_id, 1041s # const GValue *value, 1041s # GParamSpec *pspec) 1041s # { 1041s # const _ExtendedGDBusPropertyInfo *info; 1041s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1041s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1041s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1041s # g_mutex_lock (&skeleton->priv->lock); 1041s # g_object_freeze_notify (object); 1041s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1041s # { 1041s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1041s # info->emits_changed_signal) 1041s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1041s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1041s # g_object_notify_by_pspec (object, pspec); 1041s # } 1041s # g_mutex_unlock (&skeleton->priv->lock); 1041s # g_object_thaw_notify (object); 1041s # } 1041s # 1041s # static void 1041s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 1041s # { 1041s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1041s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 1041s # #else 1041s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 1041s # #endif 1041s # 1041s # g_mutex_init (&skeleton->priv->lock); 1041s # skeleton->priv->context = g_main_context_ref_thread_default (); 1041s # skeleton->priv->properties = g_new0 (GValue, 1); 1041s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 1041s # } 1041s # 1041s # static GVariant * 1041s # good_types_skeleton_get_good_property_type (GoodTypes *object) 1041s # { 1041s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1041s # GVariant *value; 1041s # g_mutex_lock (&skeleton->priv->lock); 1041s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 1041s # g_mutex_unlock (&skeleton->priv->lock); 1041s # return value; 1041s # } 1041s # 1041s # static void 1041s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 1041s # { 1041s # GObjectClass *gobject_class; 1041s # GDBusInterfaceSkeletonClass *skeleton_class; 1041s # 1041s # gobject_class = G_OBJECT_CLASS (klass); 1041s # gobject_class->finalize = good_types_skeleton_finalize; 1041s # gobject_class->get_property = good_types_skeleton_get_property; 1041s # gobject_class->set_property = good_types_skeleton_set_property; 1041s # gobject_class->notify = good_types_skeleton_notify; 1041s # 1041s # 1041s # good_types_override_properties (gobject_class, 1); 1041s # 1041s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1041s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 1041s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 1041s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 1041s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 1041s # 1041s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1041s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 1041s # #endif 1041s # } 1041s # 1041s # static void 1041s # good_types_skeleton_iface_init (GoodTypesIface *iface) 1041s # { 1041s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 1041s # } 1041s # 1041s # /** 1041s # * good_types_skeleton_new: 1041s # * 1041s # * Creates a skeleton object for the D-Bus interface GoodTypes. 1041s # * 1041s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 1041s # */ 1041s # GoodTypes * 1041s # good_types_skeleton_new (void) 1041s # { 1041s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 1041s # } 1041s # Error: 1041s # 1041s # /tmp/tmpw0gvr5ar/tmp4j75ulgu.xml: 1041s # 1041s # 1041s # 1041s # 1041s # 1041s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpw0gvr5ar/tmp4j75ulgu.xml', '--output', '-', '--body'] 1041s # Return code: 0 1041s # Output: 1041s # /* 1041s # * This file is generated by gdbus-codegen, do not modify it. 1041s # * 1041s # * The license of this code is the same as for the D-Bus interface description 1041s # * it was derived from. Note that it links to GLib, so must comply with the 1041s # * LGPL linking clauses. 1041s # */ 1041s # 1041s # #ifdef HAVE_CONFIG_H 1041s # # include "config.h" 1041s # #endif 1041s # 1041s # #include 1041s # #ifdef G_OS_UNIX 1041s # # include 1041s # #endif 1041s # 1041s # #ifdef G_ENABLE_DEBUG 1041s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1041s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1041s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1041s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1041s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1041s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1041s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1041s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1041s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1041s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1041s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1041s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1041s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1041s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1041s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1041s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1041s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1041s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1041s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1041s # #else /* !G_ENABLE_DEBUG */ 1041s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1041s # * Do not access GValues directly in your code. Instead, use the 1041s # * g_value_get_*() functions 1041s # */ 1041s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1041s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1041s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1041s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1041s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1041s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1041s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1041s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1041s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1041s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1041s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1041s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1041s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1041s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1041s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1041s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1041s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1041s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1041s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1041s # #endif /* !G_ENABLE_DEBUG */ 1041s # 1041s # typedef struct 1041s # { 1041s # GDBusArgInfo parent_struct; 1041s # gboolean use_gvariant; 1041s # } _ExtendedGDBusArgInfo; 1041s # 1041s # typedef struct 1041s # { 1041s # GDBusMethodInfo parent_struct; 1041s # const gchar *signal_name; 1041s # gboolean pass_fdlist; 1041s # } _ExtendedGDBusMethodInfo; 1041s # 1041s # typedef struct 1041s # { 1041s # GDBusSignalInfo parent_struct; 1041s # const gchar *signal_name; 1041s # } _ExtendedGDBusSignalInfo; 1041s # 1041s # typedef struct 1041s # { 1041s # GDBusPropertyInfo parent_struct; 1041s # const gchar *hyphen_name; 1041s # guint use_gvariant : 1; 1041s # guint emits_changed_signal : 1; 1041s # } _ExtendedGDBusPropertyInfo; 1041s # 1041s # typedef struct 1041s # { 1041s # GDBusInterfaceInfo parent_struct; 1041s # const gchar *hyphen_name; 1041s # } _ExtendedGDBusInterfaceInfo; 1041s # 1041s # typedef struct 1041s # { 1041s # const _ExtendedGDBusPropertyInfo *info; 1041s # guint prop_id; 1041s # GValue orig_value; /* the value before the change */ 1041s # } ChangedProperty; 1041s # 1041s # static void 1041s # _changed_property_free (ChangedProperty *data) 1041s # { 1041s # g_value_unset (&data->orig_value); 1041s # g_free (data); 1041s # } 1041s # 1041s # static gboolean 1041s # _g_strv_equal0 (gchar **a, gchar **b) 1041s # { 1041s # gboolean ret = FALSE; 1041s # guint n; 1041s # if (a == NULL && b == NULL) 1041s # { 1041s # ret = TRUE; 1041s # goto out; 1041s # } 1041s # if (a == NULL || b == NULL) 1041s # goto out; 1041s # if (g_strv_length (a) != g_strv_length (b)) 1041s # goto out; 1041s # for (n = 0; a[n] != NULL; n++) 1041s # if (g_strcmp0 (a[n], b[n]) != 0) 1041s # goto out; 1041s # ret = TRUE; 1041s # out: 1041s # return ret; 1041s # } 1041s # 1041s # static gboolean 1041s # _g_variant_equal0 (GVariant *a, GVariant *b) 1041s # { 1041s # gboolean ret = FALSE; 1041s # if (a == NULL && b == NULL) 1041s # { 1041s # ret = TRUE; 1041s # goto out; 1041s # } 1041s # if (a == NULL || b == NULL) 1041s # goto out; 1041s # ret = g_variant_equal (a, b); 1041s # out: 1041s # return ret; 1041s # } 1041s # 1041s # G_GNUC_UNUSED static gboolean 1041s # _g_value_equal (const GValue *a, const GValue *b) 1041s # { 1041s # gboolean ret = FALSE; 1041s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1041s # switch (G_VALUE_TYPE (a)) 1041s # { 1041s # case G_TYPE_BOOLEAN: 1041s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1041s # break; 1041s # case G_TYPE_UCHAR: 1041s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1041s # break; 1041s # case G_TYPE_INT: 1041s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1041s # break; 1041s # case G_TYPE_UINT: 1041s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1041s # break; 1041s # case G_TYPE_INT64: 1041s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1041s # break; 1041s # case G_TYPE_UINT64: 1041s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1041s # break; 1041s # case G_TYPE_DOUBLE: 1041s # { 1041s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1041s # gdouble da = g_value_get_double (a); 1041s # gdouble db = g_value_get_double (b); 1041s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1041s # } 1041s # break; 1041s # case G_TYPE_STRING: 1041s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1041s # break; 1041s # case G_TYPE_VARIANT: 1041s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1041s # break; 1041s # default: 1041s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1041s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1041s # else 1041s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1041s # break; 1041s # } 1041s # return ret; 1041s # } 1041s # 1041s # /* ------------------------------------------------------------------------ 1041s # * Code for interface GoodTypes 1041s # * ------------------------------------------------------------------------ 1041s # */ 1041s # 1041s # /** 1041s # * SECTION:GoodTypes 1041s # * @title: GoodTypes 1041s # * @short_description: Generated C code for the GoodTypes D-Bus interface 1041s # * 1041s # * This section contains code for working with the GoodTypes D-Bus interface in C. 1041s # */ 1041s # 1041s # /* ---- Introspection data for GoodTypes ---- */ 1041s # 1041s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 1041s # { 1041s # { 1041s # -1, 1041s # (gchar *) "GoodPropertyType", 1041s # (gchar *) "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas", 1041s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1041s # NULL 1041s # }, 1041s # "good-property-type", 1041s # FALSE, 1041s # TRUE 1041s # }; 1041s # 1041s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 1041s # { 1041s # &_good_types_property_info_good_property_type.parent_struct, 1041s # NULL 1041s # }; 1041s # 1041s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 1041s # { 1041s # { 1041s # -1, 1041s # (gchar *) "GoodTypes", 1041s # NULL, 1041s # NULL, 1041s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 1041s # NULL 1041s # }, 1041s # "good-types", 1041s # }; 1041s # 1041s # 1041s # /** 1041s # * good_types_interface_info: 1041s # * 1041s # * Gets a machine-readable description of the GoodTypes D-Bus interface. 1041s # * 1041s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1041s # */ 1041s # GDBusInterfaceInfo * 1041s # good_types_interface_info (void) 1041s # { 1041s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 1041s # } 1041s # 1041s # /** 1041s # * good_types_override_properties: 1041s # * @klass: The class structure for a #GObject derived class. 1041s # * @property_id_begin: The property id to assign to the first overridden property. 1041s # * 1041s # * Overrides all #GObject properties in the GoodTypes interface for a concrete class. 1041s # * The properties are overridden in the order they are defined. 1041s # * 1041s # * Returns: The last property id. 1041s # */ 1041s # guint 1041s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 1041s # { 1041s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 1041s # return property_id_begin - 1; 1041s # } 1041s # 1041s # 1041s # 1041s # /** 1041s # * GoodTypes: 1041s # * 1041s # * Abstract interface type for the D-Bus interface GoodTypes. 1041s # */ 1041s # 1041s # /** 1041s # * GoodTypesIface: 1041s # * @parent_iface: The parent interface. 1041s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 1041s # * 1041s # * Virtual table for the D-Bus interface GoodTypes. 1041s # */ 1041s # 1041s # typedef GoodTypesIface GoodTypesInterface; 1041s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 1041s # 1041s # static void 1041s # good_types_default_init (GoodTypesIface *iface) 1041s # { 1041s # /* GObject properties for D-Bus properties: */ 1041s # /** 1041s # * GoodTypes:good-property-type: 1041s # * 1041s # * Represents the D-Bus property "GoodPropertyType". 1041s # * 1041s # * 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. 1041s # */ 1041s # g_object_interface_install_property (iface, 1041s # g_param_spec_variant ("good-property-type", "GoodPropertyType", "GoodPropertyType", G_VARIANT_TYPE ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas"), NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 1041s # } 1041s # 1041s # /** 1041s # * good_types_get_good_property_type: (skip) 1041s # * @object: A GoodTypes. 1041s # * 1041s # * Gets the value of the "GoodPropertyType" D-Bus property. 1041s # * 1041s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1041s # * 1041s # * 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. 1041s # * 1041s # * 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. 1041s # */ 1041s # GVariant * 1041s # good_types_get_good_property_type (GoodTypes *object) 1041s # { 1041s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 1041s # 1041s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 1041s # } 1041s # 1041s # /** 1041s # * good_types_dup_good_property_type: (skip) 1041s # * @object: A GoodTypes. 1041s # * 1041s # * Gets a copy of the "GoodPropertyType" D-Bus property. 1041s # * 1041s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1041s # * 1041s # * 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(). 1041s # */ 1041s # GVariant * 1041s # good_types_dup_good_property_type (GoodTypes *object) 1041s # { 1041s # GVariant *value; 1041s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 1041s # return value; 1041s # } 1041s # 1041s # /** 1041s # * good_types_set_good_property_type: (skip) 1041s # * @object: A GoodTypes. 1041s # * @value: The value to set. 1041s # * 1041s # * Sets the "GoodPropertyType" D-Bus property to @value. 1041s # * 1041s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1041s # */ 1041s # void 1041s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 1041s # { 1041s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 1041s # } 1041s # 1041s # /* ------------------------------------------------------------------------ */ 1041s # 1041s # /** 1041s # * GoodTypesProxy: 1041s # * 1041s # * The GoodTypesProxy structure contains only private data and should only be accessed using the provided API. 1041s # */ 1041s # 1041s # /** 1041s # * GoodTypesProxyClass: 1041s # * @parent_class: The parent class. 1041s # * 1041s # * Class structure for GoodTypesProxy. 1041s # */ 1041s # 1041s # struct _GoodTypesProxyPrivate 1041s # { 1041s # GData *qdata; 1041s # }; 1041s # 1041s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 1041s # 1041s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1041s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1041s # G_ADD_PRIVATE (GoodTypesProxy) 1041s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1041s # 1041s # #else 1041s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1041s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1041s # 1041s # #endif 1041s # static void 1041s # good_types_proxy_finalize (GObject *object) 1041s # { 1041s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1041s # g_datalist_clear (&proxy->priv->qdata); 1041s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 1041s # } 1041s # 1041s # static void 1041s # good_types_proxy_get_property (GObject *object, 1041s # guint prop_id, 1041s # GValue *value, 1041s # GParamSpec *pspec G_GNUC_UNUSED) 1041s # { 1041s # const _ExtendedGDBusPropertyInfo *info; 1041s # GVariant *variant; 1041s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1041s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1041s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1041s # if (info->use_gvariant) 1041s # { 1041s # g_value_set_variant (value, variant); 1041s # } 1041s # else 1041s # { 1041s # if (variant != NULL) 1041s # g_dbus_gvariant_to_gvalue (variant, value); 1041s # } 1041s # if (variant != NULL) 1041s # g_variant_unref (variant); 1041s # } 1041s # 1041s # static void 1041s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 1041s # GAsyncResult *res, 1041s # gpointer user_data) 1041s # { 1041s # const _ExtendedGDBusPropertyInfo *info = user_data; 1041s # GError *error; 1041s # GVariant *_ret; 1041s # error = NULL; 1041s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1041s # if (!_ret) 1041s # { 1041s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 1041s # info->parent_struct.name, 1041s # error->message, g_quark_to_string (error->domain), error->code); 1041s # g_error_free (error); 1041s # } 1041s # else 1041s # { 1041s # g_variant_unref (_ret); 1041s # } 1041s # } 1041s # 1041s # static void 1041s # good_types_proxy_set_property (GObject *object, 1041s # guint prop_id, 1041s # const GValue *value, 1041s # GParamSpec *pspec G_GNUC_UNUSED) 1041s # { 1041s # const _ExtendedGDBusPropertyInfo *info; 1041s # GVariant *variant; 1041s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1041s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1041s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1041s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1041s # "org.freedesktop.DBus.Properties.Set", 1041s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 1041s # G_DBUS_CALL_FLAGS_NONE, 1041s # -1, 1041s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1041s # g_variant_unref (variant); 1041s # } 1041s # 1041s # static void 1041s # good_types_proxy_g_signal (GDBusProxy *proxy, 1041s # const gchar *sender_name G_GNUC_UNUSED, 1041s # const gchar *signal_name, 1041s # GVariant *parameters) 1041s # { 1041s # _ExtendedGDBusSignalInfo *info; 1041s # GVariantIter iter; 1041s # GVariant *child; 1041s # GValue *paramv; 1041s # gsize num_params; 1041s # gsize n; 1041s # guint signal_id; 1041s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 1041s # if (info == NULL) 1041s # return; 1041s # num_params = g_variant_n_children (parameters); 1041s # paramv = g_new0 (GValue, num_params + 1); 1041s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 1041s # g_value_set_object (¶mv[0], proxy); 1041s # g_variant_iter_init (&iter, parameters); 1041s # n = 1; 1041s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1041s # { 1041s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1041s # if (arg_info->use_gvariant) 1041s # { 1041s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1041s # g_value_set_variant (¶mv[n], child); 1041s # n++; 1041s # } 1041s # else 1041s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1041s # g_variant_unref (child); 1041s # } 1041s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1041s # g_signal_emitv (paramv, signal_id, 0, NULL); 1041s # for (n = 0; n < num_params + 1; n++) 1041s # g_value_unset (¶mv[n]); 1041s # g_free (paramv); 1041s # } 1041s # 1041s # static void 1041s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 1041s # GVariant *changed_properties, 1041s # const gchar *const *invalidated_properties) 1041s # { 1041s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 1041s # guint n; 1041s # const gchar *key; 1041s # GVariantIter *iter; 1041s # _ExtendedGDBusPropertyInfo *info; 1041s # g_variant_get (changed_properties, "a{sv}", &iter); 1041s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1041s # { 1041s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 1041s # g_datalist_remove_data (&proxy->priv->qdata, key); 1041s # if (info != NULL) 1041s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1041s # } 1041s # g_variant_iter_free (iter); 1041s # for (n = 0; invalidated_properties[n] != NULL; n++) 1041s # { 1041s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 1041s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1041s # if (info != NULL) 1041s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1041s # } 1041s # } 1041s # 1041s # static GVariant * 1041s # good_types_proxy_get_good_property_type (GoodTypes *object) 1041s # { 1041s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1041s # GVariant *variant; 1041s # GVariant *value = NULL; 1041s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 1041s # value = variant; 1041s # if (variant != NULL) 1041s # g_variant_unref (variant); 1041s # return value; 1041s # } 1041s # 1041s # static void 1041s # good_types_proxy_init (GoodTypesProxy *proxy) 1041s # { 1041s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1041s # proxy->priv = good_types_proxy_get_instance_private (proxy); 1041s # #else 1041s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 1041s # #endif 1041s # 1041s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 1041s # } 1041s # 1041s # static void 1041s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 1041s # { 1041s # GObjectClass *gobject_class; 1041s # GDBusProxyClass *proxy_class; 1041s # 1041s # gobject_class = G_OBJECT_CLASS (klass); 1041s # gobject_class->finalize = good_types_proxy_finalize; 1041s # gobject_class->get_property = good_types_proxy_get_property; 1041s # gobject_class->set_property = good_types_proxy_set_property; 1041s # 1041s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1041s # proxy_class->g_signal = good_types_proxy_g_signal; 1041s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 1041s # 1041s # good_types_override_properties (gobject_class, 1); 1041s # 1041s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1041s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 1041s # #endif 1041s # } 1041s # 1041s # static void 1041s # good_types_proxy_iface_init (GoodTypesIface *iface) 1041s # { 1041s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 1041s # } 1041s # 1041s # /** 1041s # * good_types_proxy_new: 1041s # * @connection: A #GDBusConnection. 1041s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1041s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1041s # * @object_path: An object path. 1041s # * @cancellable: (nullable): A #GCancellable or %NULL. 1041s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1041s # * @user_data: User data to pass to @callback. 1041s # * 1041s # * Asynchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new() for more details. 1041s # * 1041s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1041s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 1041s # * 1041s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 1041s # */ 1041s # void 1041s # good_types_proxy_new ( 1041s # GDBusConnection *connection, 1041s # GDBusProxyFlags flags, 1041s # const gchar *name, 1041s # const gchar *object_path, 1041s # GCancellable *cancellable, 1041s # GAsyncReadyCallback callback, 1041s # gpointer user_data) 1041s # { 1041s # 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); 1041s # } 1041s # 1041s # /** 1041s # * good_types_proxy_new_finish: 1041s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 1041s # * @error: Return location for error or %NULL 1041s # * 1041s # * Finishes an operation started with good_types_proxy_new(). 1041s # * 1041s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1041s # */ 1041s # GoodTypes * 1041s # good_types_proxy_new_finish ( 1041s # GAsyncResult *res, 1041s # GError **error) 1041s # { 1041s # GObject *ret; 1041s # GObject *source_object; 1041s # source_object = g_async_result_get_source_object (res); 1041s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1042s # g_object_unref (source_object); 1042s # if (ret != NULL) 1042s # return GOOD_TYPES (ret); 1042s # else 1042s # return NULL; 1042s # } 1042s # 1042s # /** 1042s # * good_types_proxy_new_sync: 1042s # * @connection: A #GDBusConnection. 1042s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1042s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1042s # * @object_path: An object path. 1042s # * @cancellable: (nullable): A #GCancellable or %NULL. 1042s # * @error: Return location for error or %NULL 1042s # * 1042s # * Synchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new_sync() for more details. 1042s # * 1042s # * The calling thread is blocked until a reply is received. 1042s # * 1042s # * See good_types_proxy_new() for the asynchronous version of this constructor. 1042s # * 1042s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1042s # */ 1042s # GoodTypes * 1042s # good_types_proxy_new_sync ( 1042s # GDBusConnection *connection, 1042s # GDBusProxyFlags flags, 1042s # const gchar *name, 1042s # const gchar *object_path, 1042s # GCancellable *cancellable, 1042s # GError **error) 1042s # { 1042s # GInitable *ret; 1042s # 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); 1042s # if (ret != NULL) 1042s # return GOOD_TYPES (ret); 1042s # else 1042s # return NULL; 1042s # } 1042s # 1042s # 1042s # /** 1042s # * good_types_proxy_new_for_bus: 1042s # * @bus_type: A #GBusType. 1042s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1042s # * @name: A bus name (well-known or unique). 1042s # * @object_path: An object path. 1042s # * @cancellable: (nullable): A #GCancellable or %NULL. 1042s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1042s # * @user_data: User data to pass to @callback. 1042s # * 1042s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1042s # * 1042s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1042s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 1042s # * 1042s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1042s # */ 1042s # void 1042s # good_types_proxy_new_for_bus ( 1042s # GBusType bus_type, 1042s # GDBusProxyFlags flags, 1042s # const gchar *name, 1042s # const gchar *object_path, 1042s # GCancellable *cancellable, 1042s # GAsyncReadyCallback callback, 1042s # gpointer user_data) 1042s # { 1042s # 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); 1042s # } 1042s # 1042s # /** 1042s # * good_types_proxy_new_for_bus_finish: 1042s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 1042s # * @error: Return location for error or %NULL 1042s # * 1042s # * Finishes an operation started with good_types_proxy_new_for_bus(). 1042s # * 1042s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1042s # */ 1042s # GoodTypes * 1042s # good_types_proxy_new_for_bus_finish ( 1042s # GAsyncResult *res, 1042s # GError **error) 1042s # { 1042s # GObject *ret; 1042s # GObject *source_object; 1042s # source_object = g_async_result_get_source_object (res); 1042s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1042s # g_object_unref (source_object); 1042s # if (ret != NULL) 1042s # return GOOD_TYPES (ret); 1042s # else 1042s # return NULL; 1042s # } 1042s # 1042s # /** 1042s # * good_types_proxy_new_for_bus_sync: 1042s # * @bus_type: A #GBusType. 1042s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1042s # * @name: A bus name (well-known or unique). 1042s # * @object_path: An object path. 1042s # * @cancellable: (nullable): A #GCancellable or %NULL. 1042s # * @error: Return location for error or %NULL 1042s # * 1042s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1042s # * 1042s # * The calling thread is blocked until a reply is received. 1042s # * 1042s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 1042s # * 1042s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1042s # */ 1042s # GoodTypes * 1042s # good_types_proxy_new_for_bus_sync ( 1042s # GBusType bus_type, 1042s # GDBusProxyFlags flags, 1042s # const gchar *name, 1042s # const gchar *object_path, 1042s # GCancellable *cancellable, 1042s # GError **error) 1042s # { 1042s # GInitable *ret; 1042s # 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); 1042s # if (ret != NULL) 1042s # return GOOD_TYPES (ret); 1042s # else 1042s # return NULL; 1042s # } 1042s # 1042s # 1042s # /* ------------------------------------------------------------------------ */ 1042s # 1042s # /** 1042s # * GoodTypesSkeleton: 1042s # * 1042s # * The GoodTypesSkeleton structure contains only private data and should only be accessed using the provided API. 1042s # */ 1042s # 1042s # /** 1042s # * GoodTypesSkeletonClass: 1042s # * @parent_class: The parent class. 1042s # * 1042s # * Class structure for GoodTypesSkeleton. 1042s # */ 1042s # 1042s # struct _GoodTypesSkeletonPrivate 1042s # { 1042s # GValue *properties; 1042s # GList *changed_properties; 1042s # GSource *changed_properties_idle_source; 1042s # GMainContext *context; 1042s # GMutex lock; 1042s # }; 1042s # 1042s # static void 1042s # _good_types_skeleton_handle_method_call ( 1042s # GDBusConnection *connection G_GNUC_UNUSED, 1042s # const gchar *sender G_GNUC_UNUSED, 1042s # const gchar *object_path G_GNUC_UNUSED, 1042s # const gchar *interface_name, 1042s # const gchar *method_name, 1042s # GVariant *parameters, 1042s # GDBusMethodInvocation *invocation, 1042s # gpointer user_data) 1042s # { 1042s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1042s # _ExtendedGDBusMethodInfo *info; 1042s # GVariantIter iter; 1042s # GVariant *child; 1042s # GValue *paramv; 1042s # gsize num_params; 1042s # guint num_extra; 1042s # gsize n; 1042s # guint signal_id; 1042s # GValue return_value = G_VALUE_INIT; 1042s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1042s # g_assert (info != NULL); 1042s # num_params = g_variant_n_children (parameters); 1042s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1042s # n = 0; 1042s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 1042s # g_value_set_object (¶mv[n++], skeleton); 1042s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1042s # g_value_set_object (¶mv[n++], invocation); 1042s # if (info->pass_fdlist) 1042s # { 1042s # #ifdef G_OS_UNIX 1042s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1042s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1042s # #else 1042s # g_assert_not_reached (); 1042s # #endif 1042s # } 1042s # g_variant_iter_init (&iter, parameters); 1042s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1042s # { 1042s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1042s # if (arg_info->use_gvariant) 1042s # { 1042s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1042s # g_value_set_variant (¶mv[n], child); 1042s # n++; 1042s # } 1042s # else 1042s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1042s # g_variant_unref (child); 1042s # } 1042s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1042s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1042s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1042s # if (!g_value_get_boolean (&return_value)) 1042s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1042s # g_value_unset (&return_value); 1042s # for (n = 0; n < num_params + num_extra; n++) 1042s # g_value_unset (¶mv[n]); 1042s # g_free (paramv); 1042s # } 1042s # 1042s # static GVariant * 1042s # _good_types_skeleton_handle_get_property ( 1042s # GDBusConnection *connection G_GNUC_UNUSED, 1042s # const gchar *sender G_GNUC_UNUSED, 1042s # const gchar *object_path G_GNUC_UNUSED, 1042s # const gchar *interface_name G_GNUC_UNUSED, 1042s # const gchar *property_name, 1042s # GError **error, 1042s # gpointer user_data) 1042s # { 1042s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1042s # GValue value = G_VALUE_INIT; 1042s # GParamSpec *pspec; 1042s # _ExtendedGDBusPropertyInfo *info; 1042s # GVariant *ret; 1042s # ret = NULL; 1042s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1042s # g_assert (info != NULL); 1042s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1042s # if (pspec == NULL) 1042s # { 1042s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1042s # } 1042s # else 1042s # { 1042s # g_value_init (&value, pspec->value_type); 1042s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1042s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1042s # g_value_unset (&value); 1042s # } 1042s # return ret; 1042s # } 1042s # 1042s # static gboolean 1042s # _good_types_skeleton_handle_set_property ( 1042s # GDBusConnection *connection G_GNUC_UNUSED, 1042s # const gchar *sender G_GNUC_UNUSED, 1042s # const gchar *object_path G_GNUC_UNUSED, 1042s # const gchar *interface_name G_GNUC_UNUSED, 1042s # const gchar *property_name, 1042s # GVariant *variant, 1042s # GError **error, 1042s # gpointer user_data) 1042s # { 1042s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1042s # GValue value = G_VALUE_INIT; 1042s # GParamSpec *pspec; 1042s # _ExtendedGDBusPropertyInfo *info; 1042s # gboolean ret; 1042s # ret = FALSE; 1042s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1042s # g_assert (info != NULL); 1042s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1042s # if (pspec == NULL) 1042s # { 1042s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1042s # } 1042s # else 1042s # { 1042s # if (info->use_gvariant) 1042s # g_value_set_variant (&value, variant); 1042s # else 1042s # g_dbus_gvariant_to_gvalue (variant, &value); 1042s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1042s # g_value_unset (&value); 1042s # ret = TRUE; 1042s # } 1042s # return ret; 1042s # } 1042s # 1042s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 1042s # { 1042s # _good_types_skeleton_handle_method_call, 1042s # _good_types_skeleton_handle_get_property, 1042s # _good_types_skeleton_handle_set_property, 1042s # {NULL} 1042s # }; 1042s # 1042s # static GDBusInterfaceInfo * 1042s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1042s # { 1042s # return good_types_interface_info (); 1042s # } 1042s # 1042s # static GDBusInterfaceVTable * 1042s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1042s # { 1042s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 1042s # } 1042s # 1042s # static GVariant * 1042s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1042s # { 1042s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1042s # 1042s # GVariantBuilder builder; 1042s # guint n; 1042s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1042s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1042s # #else 1042s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1042s # #endif 1042s # if (_good_types_interface_info.parent_struct.properties == NULL) 1042s # goto out; 1042s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 1042s # { 1042s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 1042s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1042s # { 1042s # GVariant *value; 1042s # 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); 1042s # if (value != NULL) 1042s # { 1042s # g_variant_take_ref (value); 1042s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1042s # g_variant_unref (value); 1042s # } 1042s # } 1042s # } 1042s # out: 1042s # return g_variant_builder_end (&builder); 1042s # } 1042s # 1042s # static gboolean _good_types_emit_changed (gpointer user_data); 1042s # 1042s # static void 1042s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1042s # { 1042s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1042s # gboolean emit_changed = FALSE; 1042s # 1042s # g_mutex_lock (&skeleton->priv->lock); 1042s # if (skeleton->priv->changed_properties_idle_source != NULL) 1042s # { 1042s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1042s # skeleton->priv->changed_properties_idle_source = NULL; 1042s # emit_changed = TRUE; 1042s # } 1042s # g_mutex_unlock (&skeleton->priv->lock); 1042s # 1042s # if (emit_changed) 1042s # _good_types_emit_changed (skeleton); 1042s # } 1042s # 1042s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 1042s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1042s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1042s # G_ADD_PRIVATE (GoodTypesSkeleton) 1042s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1042s # 1042s # #else 1042s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1042s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1042s # 1042s # #endif 1042s # static void 1042s # good_types_skeleton_finalize (GObject *object) 1042s # { 1042s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1042s # guint n; 1042s # for (n = 0; n < 1; n++) 1042s # g_value_unset (&skeleton->priv->properties[n]); 1042s # g_free (skeleton->priv->properties); 1042s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1042s # if (skeleton->priv->changed_properties_idle_source != NULL) 1042s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1042s # g_main_context_unref (skeleton->priv->context); 1042s # g_mutex_clear (&skeleton->priv->lock); 1042s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 1042s # } 1042s # 1042s # static void 1042s # good_types_skeleton_get_property (GObject *object, 1042s # guint prop_id, 1042s # GValue *value, 1042s # GParamSpec *pspec G_GNUC_UNUSED) 1042s # { 1042s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1042s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1042s # g_mutex_lock (&skeleton->priv->lock); 1042s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1042s # g_mutex_unlock (&skeleton->priv->lock); 1042s # } 1042s # 1042s # static gboolean 1042s # _good_types_emit_changed (gpointer user_data) 1042s # { 1042s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1042s # GList *l; 1042s # GVariantBuilder builder; 1042s # GVariantBuilder invalidated_builder; 1042s # guint num_changes; 1042s # 1042s # g_mutex_lock (&skeleton->priv->lock); 1042s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1042s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1042s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1042s # #else 1042s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1042s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1042s # #endif 1042s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1042s # { 1042s # ChangedProperty *cp = l->data; 1042s # GVariant *variant; 1042s # const GValue *cur_value; 1042s # 1042s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1042s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1042s # { 1042s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1042s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1042s # g_variant_unref (variant); 1042s # num_changes++; 1042s # } 1042s # } 1042s # if (num_changes > 0) 1042s # { 1042s # GList *connections, *ll; 1042s # GVariant *signal_variant; 1042s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 1042s # &builder, &invalidated_builder)); 1042s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1042s # for (ll = connections; ll != NULL; ll = ll->next) 1042s # { 1042s # GDBusConnection *connection = ll->data; 1042s # 1042s # g_dbus_connection_emit_signal (connection, 1042s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1042s # "org.freedesktop.DBus.Properties", 1042s # "PropertiesChanged", 1042s # signal_variant, 1042s # NULL); 1042s # } 1042s # g_variant_unref (signal_variant); 1042s # g_list_free_full (connections, g_object_unref); 1042s # } 1042s # else 1042s # { 1042s # g_variant_builder_clear (&builder); 1042s # g_variant_builder_clear (&invalidated_builder); 1042s # } 1042s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1042s # skeleton->priv->changed_properties = NULL; 1042s # skeleton->priv->changed_properties_idle_source = NULL; 1042s # g_mutex_unlock (&skeleton->priv->lock); 1042s # return FALSE; 1042s # } 1042s # 1042s # static void 1042s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1042s # { 1042s # ChangedProperty *cp; 1042s # GList *l; 1042s # cp = NULL; 1042s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1042s # { 1042s # ChangedProperty *i_cp = l->data; 1042s # if (i_cp->info == info) 1042s # { 1042s # cp = i_cp; 1042s # break; 1042s # } 1042s # } 1042s # if (cp == NULL) 1042s # { 1042s # cp = g_new0 (ChangedProperty, 1); 1042s # cp->prop_id = prop_id; 1042s # cp->info = info; 1042s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1042s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1042s # g_value_copy (orig_value, &cp->orig_value); 1042s # } 1042s # } 1042s # 1042s # static void 1042s # good_types_skeleton_notify (GObject *object, 1042s # GParamSpec *pspec G_GNUC_UNUSED) 1042s # { 1042s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1042s # g_mutex_lock (&skeleton->priv->lock); 1042s # if (skeleton->priv->changed_properties != NULL && 1042s # skeleton->priv->changed_properties_idle_source == NULL) 1042s # { 1042s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1042s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1042s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1042s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 1042s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1042s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1042s # } 1042s # g_mutex_unlock (&skeleton->priv->lock); 1042s # } 1042s # 1042s # static void 1042s # good_types_skeleton_set_property (GObject *object, 1042s # guint prop_id, 1042s # const GValue *value, 1042s # GParamSpec *pspec) 1042s # { 1042s # const _ExtendedGDBusPropertyInfo *info; 1042s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1042s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1042s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1042s # g_mutex_lock (&skeleton->priv->lock); 1042s # g_object_freeze_notify (object); 1042s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1042s # { 1042s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1042s # info->emits_changed_signal) 1042s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1042s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1042s # g_object_notify_by_pspec (object, pspec); 1042s # } 1042s # g_mutex_unlock (&skeleton->priv->lock); 1042s # g_object_thaw_notify (object); 1042s # } 1042s # 1042s # static void 1042s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 1042s # { 1042s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1042s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 1042s # #else 1042s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 1042s # #endif 1042s # 1042s # g_mutex_init (&skeleton->priv->lock); 1042s # skeleton->priv->context = g_main_context_ref_thread_default (); 1042s # skeleton->priv->properties = g_new0 (GValue, 1); 1042s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 1042s # } 1042s # 1042s # static GVariant * 1042s # good_types_skeleton_get_good_property_type (GoodTypes *object) 1042s # { 1042s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1042s # GVariant *value; 1042s # g_mutex_lock (&skeleton->priv->lock); 1042s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 1042s # g_mutex_unlock (&skeleton->priv->lock); 1042s # return value; 1042s # } 1042s # 1042s # static void 1042s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 1042s # { 1042s # GObjectClass *gobject_class; 1042s # GDBusInterfaceSkeletonClass *skeleton_class; 1042s # 1042s # gobject_class = G_OBJECT_CLASS (klass); 1042s # gobject_class->finalize = good_types_skeleton_finalize; 1042s # gobject_class->get_property = good_types_skeleton_get_property; 1042s # gobject_class->set_property = good_types_skeleton_set_property; 1042s # gobject_class->notify = good_types_skeleton_notify; 1042s # 1042s # 1042s # good_types_override_properties (gobject_class, 1); 1042s # 1042s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1042s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 1042s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 1042s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 1042s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 1042s # 1042s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1042s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 1042s # #endif 1042s # } 1042s # 1042s # static void 1042s # good_types_skeleton_iface_init (GoodTypesIface *iface) 1042s # { 1042s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 1042s # } 1042s # 1042s # /** 1042s # * good_types_skeleton_new: 1042s # * 1042s # * Creates a skeleton object for the D-Bus interface GoodTypes. 1042s # * 1042s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 1042s # */ 1042s # GoodTypes * 1042s # good_types_skeleton_new (void) 1042s # { 1042s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 1042s # } 1042s # Error: 1042s # 1042s # /tmp/tmpw0gvr5ar/tmpv2ut_p2h.xml: 1042s # 1042s # 1042s # 1042s # 1042s # 1042s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpw0gvr5ar/tmpv2ut_p2h.xml', '--output', '-', '--body'] 1042s # Return code: 0 1042s # Output: 1042s # /* 1042s # * This file is generated by gdbus-codegen, do not modify it. 1042s # * 1042s # * The license of this code is the same as for the D-Bus interface description 1042s # * it was derived from. Note that it links to GLib, so must comply with the 1042s # * LGPL linking clauses. 1042s # */ 1042s # 1042s # #ifdef HAVE_CONFIG_H 1042s # # include "config.h" 1042s # #endif 1042s # 1042s # #include 1042s # #ifdef G_OS_UNIX 1042s # # include 1042s # #endif 1042s # 1042s # #ifdef G_ENABLE_DEBUG 1042s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1042s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1042s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1042s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1042s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1042s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1042s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1042s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1042s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1042s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1042s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1042s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1042s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1042s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1042s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1042s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1042s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1042s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1042s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1042s # #else /* !G_ENABLE_DEBUG */ 1042s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1042s # * Do not access GValues directly in your code. Instead, use the 1042s # * g_value_get_*() functions 1042s # */ 1042s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1042s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1042s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1042s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1042s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1042s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1042s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1042s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1042s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1042s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1042s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1042s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1042s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1042s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1042s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1042s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1042s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1042s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1042s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1042s # #endif /* !G_ENABLE_DEBUG */ 1042s # 1042s # typedef struct 1042s # { 1042s # GDBusArgInfo parent_struct; 1042s # gboolean use_gvariant; 1042s # } _ExtendedGDBusArgInfo; 1042s # 1042s # typedef struct 1042s # { 1042s # GDBusMethodInfo parent_struct; 1042s # const gchar *signal_name; 1042s # gboolean pass_fdlist; 1042s # } _ExtendedGDBusMethodInfo; 1042s # 1042s # typedef struct 1042s # { 1042s # GDBusSignalInfo parent_struct; 1042s # const gchar *signal_name; 1042s # } _ExtendedGDBusSignalInfo; 1042s # 1042s # typedef struct 1042s # { 1042s # GDBusPropertyInfo parent_struct; 1042s # const gchar *hyphen_name; 1042s # guint use_gvariant : 1; 1042s # guint emits_changed_signal : 1; 1042s # } _ExtendedGDBusPropertyInfo; 1042s # 1042s # typedef struct 1042s # { 1042s # GDBusInterfaceInfo parent_struct; 1042s # const gchar *hyphen_name; 1042s # } _ExtendedGDBusInterfaceInfo; 1042s # 1042s # typedef struct 1042s # { 1042s # const _ExtendedGDBusPropertyInfo *info; 1042s # guint prop_id; 1042s # GValue orig_value; /* the value before the change */ 1042s # } ChangedProperty; 1042s # 1042s # static void 1042s # _changed_property_free (ChangedProperty *data) 1042s # { 1042s # g_value_unset (&data->orig_value); 1042s # g_free (data); 1042s # } 1042s # 1042s # static gboolean 1042s # _g_strv_equal0 (gchar **a, gchar **b) 1042s # { 1042s # gboolean ret = FALSE; 1042s # guint n; 1042s # if (a == NULL && b == NULL) 1042s # { 1042s # ret = TRUE; 1042s # goto out; 1042s # } 1042s # if (a == NULL || b == NULL) 1042s # goto out; 1042s # if (g_strv_length (a) != g_strv_length (b)) 1042s # goto out; 1042s # for (n = 0; a[n] != NULL; n++) 1042s # if (g_strcmp0 (a[n], b[n]) != 0) 1042s # goto out; 1042s # ret = TRUE; 1042s # out: 1042s # return ret; 1042s # } 1042s # 1042s # static gboolean 1042s # _g_variant_equal0 (GVariant *a, GVariant *b) 1042s # { 1042s # gboolean ret = FALSE; 1042s # if (a == NULL && b == NULL) 1042s # { 1042s # ret = TRUE; 1042s # goto out; 1042s # } 1042s # if (a == NULL || b == NULL) 1042s # goto out; 1042s # ret = g_variant_equal (a, b); 1042s # out: 1042s # return ret; 1042s # } 1042s # 1042s # G_GNUC_UNUSED static gboolean 1042s # _g_value_equal (const GValue *a, const GValue *b) 1042s # { 1042s # gboolean ret = FALSE; 1042s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1042s # switch (G_VALUE_TYPE (a)) 1042s # { 1042s # case G_TYPE_BOOLEAN: 1042s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1042s # break; 1042s # case G_TYPE_UCHAR: 1042s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1042s # break; 1042s # case G_TYPE_INT: 1042s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1042s # break; 1042s # case G_TYPE_UINT: 1042s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1042s # break; 1042s # case G_TYPE_INT64: 1042s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1042s # break; 1042s # case G_TYPE_UINT64: 1042s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1042s # break; 1042s # case G_TYPE_DOUBLE: 1042s # { 1042s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1042s # gdouble da = g_value_get_double (a); 1042s # gdouble db = g_value_get_double (b); 1042s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1042s # } 1042s # break; 1042s # case G_TYPE_STRING: 1042s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1042s # break; 1042s # case G_TYPE_VARIANT: 1042s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1042s # break; 1042s # default: 1042s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1042s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1042s # else 1042s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1042s # break; 1042s # } 1042s # return ret; 1042s # } 1042s # 1042s # /* ------------------------------------------------------------------------ 1042s # * Code for interface GoodTypes 1042s # * ------------------------------------------------------------------------ 1042s # */ 1042s # 1042s # /** 1042s # * SECTION:GoodTypes 1042s # * @title: GoodTypes 1042s # * @short_description: Generated C code for the GoodTypes D-Bus interface 1042s # * 1042s # * This section contains code for working with the GoodTypes D-Bus interface in C. 1042s # */ 1042s # 1042s # /* ---- Introspection data for GoodTypes ---- */ 1042s # 1042s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 1042s # { 1042s # { 1042s # -1, 1042s # (gchar *) "GoodPropertyType", 1042s # (gchar *) "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaa{sv})", 1042s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1042s # NULL 1042s # }, 1042s # "good-property-type", 1042s # FALSE, 1042s # TRUE 1042s # }; 1042s # 1042s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 1042s # { 1042s # &_good_types_property_info_good_property_type.parent_struct, 1042s # NULL 1042s # }; 1042s # 1042s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 1042s # { 1042s # { 1042s # -1, 1042s # (gchar *) "GoodTypes", 1042s # NULL, 1042s # NULL, 1042s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 1042s # NULL 1042s # }, 1042s # "good-types", 1042s # }; 1042s # 1042s # 1042s # /** 1042s # * good_types_interface_info: 1042s # * 1042s # * Gets a machine-readable description of the GoodTypes D-Bus interface. 1042s # * 1042s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1042s # */ 1042s # GDBusInterfaceInfo * 1042s # good_types_interface_info (void) 1042s # { 1042s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 1042s # } 1042s # 1042s # /** 1042s # * good_types_override_properties: 1042s # * @klass: The class structure for a #GObject derived class. 1042s # * @property_id_begin: The property id to assign to the first overridden property. 1042s # * 1042s # * Overrides all #GObject properties in the GoodTypes interface for a concrete class. 1042s # * The properties are overridden in the order they are defined. 1042s # * 1042s # * Returns: The last property id. 1042s # */ 1042s # guint 1042s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 1042s # { 1042s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 1042s # return property_id_begin - 1; 1042s # } 1042s # 1042s # 1042s # 1042s # /** 1042s # * GoodTypes: 1042s # * 1042s # * Abstract interface type for the D-Bus interface GoodTypes. 1042s # */ 1042s # 1042s # /** 1042s # * GoodTypesIface: 1042s # * @parent_iface: The parent interface. 1042s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 1042s # * 1042s # * Virtual table for the D-Bus interface GoodTypes. 1042s # */ 1042s # 1042s # typedef GoodTypesIface GoodTypesInterface; 1042s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 1042s # 1042s # static void 1042s # good_types_default_init (GoodTypesIface *iface) 1042s # { 1042s # /* GObject properties for D-Bus properties: */ 1042s # /** 1042s # * GoodTypes:good-property-type: 1042s # * 1042s # * Represents the D-Bus property "GoodPropertyType". 1042s # * 1042s # * 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. 1042s # */ 1042s # g_object_interface_install_property (iface, 1042s # g_param_spec_variant ("good-property-type", "GoodPropertyType", "GoodPropertyType", G_VARIANT_TYPE ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaa{sv})"), NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 1042s # } 1042s # 1042s # /** 1042s # * good_types_get_good_property_type: (skip) 1042s # * @object: A GoodTypes. 1042s # * 1042s # * Gets the value of the "GoodPropertyType" D-Bus property. 1042s # * 1042s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1042s # * 1042s # * 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. 1042s # * 1042s # * 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. 1042s # */ 1042s # GVariant * 1042s # good_types_get_good_property_type (GoodTypes *object) 1042s # { 1042s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 1042s # 1042s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 1042s # } 1042s # 1042s # /** 1042s # * good_types_dup_good_property_type: (skip) 1042s # * @object: A GoodTypes. 1042s # * 1042s # * Gets a copy of the "GoodPropertyType" D-Bus property. 1042s # * 1042s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1042s # * 1042s # * 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(). 1042s # */ 1042s # GVariant * 1042s # good_types_dup_good_property_type (GoodTypes *object) 1042s # { 1042s # GVariant *value; 1042s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 1042s # return value; 1042s # } 1042s # 1042s # /** 1042s # * good_types_set_good_property_type: (skip) 1042s # * @object: A GoodTypes. 1042s # * @value: The value to set. 1042s # * 1042s # * Sets the "GoodPropertyType" D-Bus property to @value. 1042s # * 1042s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1042s # */ 1042s # void 1042s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 1042s # { 1042s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 1042s # } 1042s # 1042s # /* ------------------------------------------------------------------------ */ 1042s # 1042s # /** 1042s # * GoodTypesProxy: 1042s # * 1042s # * The GoodTypesProxy structure contains only private data and should only be accessed using the provided API. 1042s # */ 1042s # 1042s # /** 1042s # * GoodTypesProxyClass: 1042s # * @parent_class: The parent class. 1042s # * 1042s # * Class structure for GoodTypesProxy. 1042s # */ 1042s # 1042s # struct _GoodTypesProxyPrivate 1042s # { 1042s # GData *qdata; 1042s # }; 1042s # 1042s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 1042s # 1042s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1042s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1042s # G_ADD_PRIVATE (GoodTypesProxy) 1042s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1042s # 1042s # #else 1042s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1042s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1042s # 1042s # #endif 1042s # static void 1042s # good_types_proxy_finalize (GObject *object) 1042s # { 1042s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1042s # g_datalist_clear (&proxy->priv->qdata); 1042s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 1042s # } 1042s # 1042s # static void 1042s # good_types_proxy_get_property (GObject *object, 1042s # guint prop_id, 1042s # GValue *value, 1042s # GParamSpec *pspec G_GNUC_UNUSED) 1042s # { 1042s # const _ExtendedGDBusPropertyInfo *info; 1042s # GVariant *variant; 1042s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1042s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1042s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1042s # if (info->use_gvariant) 1042s # { 1042s # g_value_set_variant (value, variant); 1042s # } 1042s # else 1042s # { 1042s # if (variant != NULL) 1042s # g_dbus_gvariant_to_gvalue (variant, value); 1042s # } 1042s # if (variant != NULL) 1042s # g_variant_unref (variant); 1042s # } 1042s # 1042s # static void 1042s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 1042s # GAsyncResult *res, 1042s # gpointer user_data) 1042s # { 1042s # const _ExtendedGDBusPropertyInfo *info = user_data; 1042s # GError *error; 1042s # GVariant *_ret; 1042s # error = NULL; 1042s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1042s # if (!_ret) 1042s # { 1042s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 1042s # info->parent_struct.name, 1042s # error->message, g_quark_to_string (error->domain), error->code); 1042s # g_error_free (error); 1042s # } 1042s # else 1042s # { 1042s # g_variant_unref (_ret); 1042s # } 1042s # } 1042s # 1042s # static void 1042s # good_types_proxy_set_property (GObject *object, 1042s # guint prop_id, 1042s # const GValue *value, 1042s # GParamSpec *pspec G_GNUC_UNUSED) 1042s # { 1042s # const _ExtendedGDBusPropertyInfo *info; 1042s # GVariant *variant; 1042s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1042s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1042s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1042s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1042s # "org.freedesktop.DBus.Properties.Set", 1042s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 1042s # G_DBUS_CALL_FLAGS_NONE, 1042s # -1, 1042s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1042s # g_variant_unref (variant); 1042s # } 1042s # 1042s # static void 1042s # good_types_proxy_g_signal (GDBusProxy *proxy, 1042s # const gchar *sender_name G_GNUC_UNUSED, 1042s # const gchar *signal_name, 1042s # GVariant *parameters) 1042s # { 1042s # _ExtendedGDBusSignalInfo *info; 1042s # GVariantIter iter; 1042s # GVariant *child; 1042s # GValue *paramv; 1042s # gsize num_params; 1042s # gsize n; 1042s # guint signal_id; 1042s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 1042s # if (info == NULL) 1042s # return; 1042s # num_params = g_variant_n_children (parameters); 1042s # paramv = g_new0 (GValue, num_params + 1); 1042s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 1042s # g_value_set_object (¶mv[0], proxy); 1042s # g_variant_iter_init (&iter, parameters); 1042s # n = 1; 1042s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1042s # { 1042s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1042s # if (arg_info->use_gvariant) 1042s # { 1042s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1042s # g_value_set_variant (¶mv[n], child); 1042s # n++; 1042s # } 1042s # else 1042s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1042s # g_variant_unref (child); 1042s # } 1042s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1042s # g_signal_emitv (paramv, signal_id, 0, NULL); 1042s # for (n = 0; n < num_params + 1; n++) 1042s # g_value_unset (¶mv[n]); 1042s # g_free (paramv); 1042s # } 1042s # 1042s # static void 1042s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 1042s # GVariant *changed_properties, 1042s # const gchar *const *invalidated_properties) 1042s # { 1042s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 1042s # guint n; 1042s # const gchar *key; 1042s # GVariantIter *iter; 1042s # _ExtendedGDBusPropertyInfo *info; 1042s # g_variant_get (changed_properties, "a{sv}", &iter); 1042s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1042s # { 1042s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 1042s # g_datalist_remove_data (&proxy->priv->qdata, key); 1042s # if (info != NULL) 1042s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1042s # } 1042s # g_variant_iter_free (iter); 1042s # for (n = 0; invalidated_properties[n] != NULL; n++) 1042s # { 1042s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 1042s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1042s # if (info != NULL) 1042s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1042s # } 1042s # } 1042s # 1042s # static GVariant * 1042s # good_types_proxy_get_good_property_type (GoodTypes *object) 1042s # { 1042s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1042s # GVariant *variant; 1042s # GVariant *value = NULL; 1042s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 1042s # value = variant; 1042s # if (variant != NULL) 1042s # g_variant_unref (variant); 1042s # return value; 1042s # } 1042s # 1042s # static void 1042s # good_types_proxy_init (GoodTypesProxy *proxy) 1042s # { 1042s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1042s # proxy->priv = good_types_proxy_get_instance_private (proxy); 1042s # #else 1042s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 1042s # #endif 1042s # 1042s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 1042s # } 1042s # 1042s # static void 1042s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 1042s # { 1042s # GObjectClass *gobject_class; 1042s # GDBusProxyClass *proxy_class; 1042s # 1042s # gobject_class = G_OBJECT_CLASS (klass); 1042s # gobject_class->finalize = good_types_proxy_finalize; 1042s # gobject_class->get_property = good_types_proxy_get_property; 1042s # gobject_class->set_property = good_types_proxy_set_property; 1042s # 1042s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1042s # proxy_class->g_signal = good_types_proxy_g_signal; 1042s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 1042s # 1042s # good_types_override_properties (gobject_class, 1); 1042s # 1042s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1042s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 1042s # #endif 1042s # } 1042s # 1042s # static void 1042s # good_types_proxy_iface_init (GoodTypesIface *iface) 1042s # { 1042s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 1042s # } 1042s # 1042s # /** 1042s # * good_types_proxy_new: 1042s # * @connection: A #GDBusConnection. 1042s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1042s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1042s # * @object_path: An object path. 1042s # * @cancellable: (nullable): A #GCancellable or %NULL. 1042s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1042s # * @user_data: User data to pass to @callback. 1042s # * 1042s # * Asynchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new() for more details. 1042s # * 1042s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1042s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 1042s # * 1042s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 1042s # */ 1042s # void 1042s # good_types_proxy_new ( 1042s # GDBusConnection *connection, 1042s # GDBusProxyFlags flags, 1042s # const gchar *name, 1042s # const gchar *object_path, 1042s # GCancellable *cancellable, 1042s # GAsyncReadyCallback callback, 1042s # gpointer user_data) 1042s # { 1042s # 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); 1042s # } 1042s # 1042s # /** 1042s # * good_types_proxy_new_finish: 1042s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 1042s # * @error: Return location for error or %NULL 1042s # * 1042s # * Finishes an operation started with good_types_proxy_new(). 1042s # * 1042s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1042s # */ 1042s # GoodTypes * 1042s # good_types_proxy_new_finish ( 1042s # GAsyncResult *res, 1042s # GError **error) 1042s # { 1042s # GObject *ret; 1042s # GObject *source_object; 1042s # source_object = g_async_result_get_source_object (res); 1042s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1042s # g_object_unref (source_object); 1042s # if (ret != NULL) 1042s # return GOOD_TYPES (ret); 1042s # else 1042s # return NULL; 1042s # } 1042s # 1042s # /** 1042s # * good_types_proxy_new_sync: 1042s # * @connection: A #GDBusConnection. 1042s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1042s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1042s # * @object_path: An object path. 1042s # * @cancellable: (nullable): A #GCancellable or %NULL. 1042s # * @error: Return location for error or %NULL 1042s # * 1042s # * Synchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new_sync() for more details. 1042s # * 1042s # * The calling thread is blocked until a reply is received. 1042s # * 1042s # * See good_types_proxy_new() for the asynchronous version of this constructor. 1042s # * 1042s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1042s # */ 1042s # GoodTypes * 1042s # good_types_proxy_new_sync ( 1042s # GDBusConnection *connection, 1042s # GDBusProxyFlags flags, 1042s # const gchar *name, 1042s # const gchar *object_path, 1042s # GCancellable *cancellable, 1042s # GError **error) 1042s # { 1042s # GInitable *ret; 1042s # 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); 1042s # if (ret != NULL) 1042s # return GOOD_TYPES (ret); 1042s # else 1042s # return NULL; 1042s # } 1042s # 1042s # 1042s # /** 1042s # * good_types_proxy_new_for_bus: 1042s # * @bus_type: A #GBusType. 1042s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1042s # * @name: A bus name (well-known or unique). 1042s # * @object_path: An object path. 1042s # * @cancellable: (nullable): A #GCancellable or %NULL. 1042s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1042s # * @user_data: User data to pass to @callback. 1042s # * 1042s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1042s # * 1042s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1042s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 1042s # * 1042s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1042s # */ 1042s # void 1042s # good_types_proxy_new_for_bus ( 1042s # GBusType bus_type, 1042s # GDBusProxyFlags flags, 1042s # const gchar *name, 1042s # const gchar *object_path, 1042s # GCancellable *cancellable, 1042s # GAsyncReadyCallback callback, 1042s # gpointer user_data) 1042s # { 1042s # 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); 1042s # } 1042s # 1042s # /** 1042s # * good_types_proxy_new_for_bus_finish: 1042s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 1042s # * @error: Return location for error or %NULL 1042s # * 1042s # * Finishes an operation started with good_types_proxy_new_for_bus(). 1042s # * 1042s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1042s # */ 1042s # GoodTypes * 1042s # good_types_proxy_new_for_bus_finish ( 1042s # GAsyncResult *res, 1042s # GError **error) 1042s # { 1042s # GObject *ret; 1042s # GObject *source_object; 1042s # source_object = g_async_result_get_source_object (res); 1042s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1042s # g_object_unref (source_object); 1042s # if (ret != NULL) 1042s # return GOOD_TYPES (ret); 1042s # else 1042s # return NULL; 1042s # } 1042s # 1042s # /** 1042s # * good_types_proxy_new_for_bus_sync: 1042s # * @bus_type: A #GBusType. 1042s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1042s # * @name: A bus name (well-known or unique). 1042s # * @object_path: An object path. 1042s # * @cancellable: (nullable): A #GCancellable or %NULL. 1042s # * @error: Return location for error or %NULL 1042s # * 1042s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1042s # * 1042s # * The calling thread is blocked until a reply is received. 1042s # * 1042s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 1042s # * 1042s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1042s # */ 1042s # GoodTypes * 1042s # good_types_proxy_new_for_bus_sync ( 1042s # GBusType bus_type, 1042s # GDBusProxyFlags flags, 1042s # const gchar *name, 1042s # const gchar *object_path, 1042s # GCancellable *cancellable, 1042s # GError **error) 1042s # { 1042s # GInitable *ret; 1042s # 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); 1042s # if (ret != NULL) 1042s # return GOOD_TYPES (ret); 1042s # else 1042s # return NULL; 1042s # } 1042s # 1042s # 1042s # /* ------------------------------------------------------------------------ */ 1042s # 1042s # /** 1042s # * GoodTypesSkeleton: 1042s # * 1042s # * The GoodTypesSkeleton structure contains only private data and should only be accessed using the provided API. 1042s # */ 1042s # 1042s # /** 1042s # * GoodTypesSkeletonClass: 1042s # * @parent_class: The parent class. 1042s # * 1042s # * Class structure for GoodTypesSkeleton. 1042s # */ 1042s # 1042s # struct _GoodTypesSkeletonPrivate 1042s # { 1042s # GValue *properties; 1042s # GList *changed_properties; 1042s # GSource *changed_properties_idle_source; 1042s # GMainContext *context; 1042s # GMutex lock; 1042s # }; 1042s # 1042s # static void 1042s # _good_types_skeleton_handle_method_call ( 1042s # GDBusConnection *connection G_GNUC_UNUSED, 1042s # const gchar *sender G_GNUC_UNUSED, 1042s # const gchar *object_path G_GNUC_UNUSED, 1042s # const gchar *interface_name, 1042s # const gchar *method_name, 1042s # GVariant *parameters, 1042s # GDBusMethodInvocation *invocation, 1042s # gpointer user_data) 1042s # { 1042s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1042s # _ExtendedGDBusMethodInfo *info; 1042s # GVariantIter iter; 1042s # GVariant *child; 1042s # GValue *paramv; 1042s # gsize num_params; 1042s # guint num_extra; 1042s # gsize n; 1042s # guint signal_id; 1042s # GValue return_value = G_VALUE_INIT; 1042s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1042s # g_assert (info != NULL); 1042s # num_params = g_variant_n_children (parameters); 1042s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1042s # n = 0; 1042s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 1042s # g_value_set_object (¶mv[n++], skeleton); 1042s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1042s # g_value_set_object (¶mv[n++], invocation); 1042s # if (info->pass_fdlist) 1042s # { 1042s # #ifdef G_OS_UNIX 1042s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1042s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1042s # #else 1042s # g_assert_not_reached (); 1042s # #endif 1042s # } 1042s # g_variant_iter_init (&iter, parameters); 1042s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1042s # { 1042s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1042s # if (arg_info->use_gvariant) 1042s # { 1042s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1042s # g_value_set_variant (¶mv[n], child); 1042s # n++; 1042s # } 1042s # else 1042s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1042s # g_variant_unref (child); 1042s # } 1042s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1042s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1042s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1042s # if (!g_value_get_boolean (&return_value)) 1042s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1042s # g_value_unset (&return_value); 1042s # for (n = 0; n < num_params + num_extra; n++) 1042s # g_value_unset (¶mv[n]); 1042s # g_free (paramv); 1042s # } 1042s # 1042s # static GVariant * 1042s # _good_types_skeleton_handle_get_property ( 1042s # GDBusConnection *connection G_GNUC_UNUSED, 1042s # const gchar *sender G_GNUC_UNUSED, 1042s # const gchar *object_path G_GNUC_UNUSED, 1042s # const gchar *interface_name G_GNUC_UNUSED, 1042s # const gchar *property_name, 1042s # GError **error, 1042s # gpointer user_data) 1042s # { 1042s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1042s # GValue value = G_VALUE_INIT; 1042s # GParamSpec *pspec; 1042s # _ExtendedGDBusPropertyInfo *info; 1042s # GVariant *ret; 1042s # ret = NULL; 1042s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1042s # g_assert (info != NULL); 1042s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1042s # if (pspec == NULL) 1042s # { 1042s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1042s # } 1042s # else 1042s # { 1042s # g_value_init (&value, pspec->value_type); 1042s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1042s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1042s # g_value_unset (&value); 1042s # } 1042s # return ret; 1042s # } 1042s # 1042s # static gboolean 1042s # _good_types_skeleton_handle_set_property ( 1042s # GDBusConnection *connection G_GNUC_UNUSED, 1042s # const gchar *sender G_GNUC_UNUSED, 1042s # const gchar *object_path G_GNUC_UNUSED, 1042s # const gchar *interface_name G_GNUC_UNUSED, 1042s # const gchar *property_name, 1042s # GVariant *variant, 1042s # GError **error, 1042s # gpointer user_data) 1042s # { 1042s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1042s # GValue value = G_VALUE_INIT; 1042s # GParamSpec *pspec; 1042s # _ExtendedGDBusPropertyInfo *info; 1042s # gboolean ret; 1042s # ret = FALSE; 1042s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1042s # g_assert (info != NULL); 1042s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1042s # if (pspec == NULL) 1042s # { 1042s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1042s # } 1042s # else 1042s # { 1042s # if (info->use_gvariant) 1042s # g_value_set_variant (&value, variant); 1042s # else 1042s # g_dbus_gvariant_to_gvalue (variant, &value); 1042s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1042s # g_value_unset (&value); 1042s # ret = TRUE; 1042s # } 1042s # return ret; 1042s # } 1042s # 1042s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 1042s # { 1042s # _good_types_skeleton_handle_method_call, 1042s # _good_types_skeleton_handle_get_property, 1042s # _good_types_skeleton_handle_set_property, 1042s # {NULL} 1042s # }; 1042s # 1042s # static GDBusInterfaceInfo * 1042s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1042s # { 1042s # return good_types_interface_info (); 1042s # } 1042s # 1042s # static GDBusInterfaceVTable * 1042s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1042s # { 1042s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 1042s # } 1042s # 1042s # static GVariant * 1042s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1042s # { 1042s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1042s # 1042s # GVariantBuilder builder; 1042s # guint n; 1042s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1042s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1042s # #else 1042s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1042s # #endif 1042s # if (_good_types_interface_info.parent_struct.properties == NULL) 1042s # goto out; 1042s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 1042s # { 1042s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 1042s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1042s # { 1042s # GVariant *value; 1042s # 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); 1042s # if (value != NULL) 1042s # { 1042s # g_variant_take_ref (value); 1042s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1042s # g_variant_unref (value); 1042s # } 1042s # } 1042s # } 1042s # out: 1042s # return g_variant_builder_end (&builder); 1042s # } 1042s # 1042s # static gboolean _good_types_emit_changed (gpointer user_data); 1042s # 1042s # static void 1042s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1042s # { 1042s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1042s # gboolean emit_changed = FALSE; 1042s # 1042s # g_mutex_lock (&skeleton->priv->lock); 1042s # if (skeleton->priv->changed_properties_idle_source != NULL) 1042s # { 1042s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1042s # skeleton->priv->changed_properties_idle_source = NULL; 1042s # emit_changed = TRUE; 1042s # } 1042s # g_mutex_unlock (&skeleton->priv->lock); 1042s # 1042s # if (emit_changed) 1042s # _good_types_emit_changed (skeleton); 1042s # } 1042s # 1042s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 1042s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1042s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1042s # G_ADD_PRIVATE (GoodTypesSkeleton) 1042s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1042s # 1042s # #else 1042s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1042s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1042s # 1042s # #endif 1042s # static void 1042s # good_types_skeleton_finalize (GObject *object) 1042s # { 1042s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1042s # guint n; 1042s # for (n = 0; n < 1; n++) 1042s # g_value_unset (&skeleton->priv->properties[n]); 1042s # g_free (skeleton->priv->properties); 1042s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1042s # if (skeleton->priv->changed_properties_idle_source != NULL) 1042s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1042s # g_main_context_unref (skeleton->priv->context); 1042s # g_mutex_clear (&skeleton->priv->lock); 1042s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 1042s # } 1042s # 1042s # static void 1042s # good_types_skeleton_get_property (GObject *object, 1042s # guint prop_id, 1042s # GValue *value, 1042s # GParamSpec *pspec G_GNUC_UNUSED) 1042s # { 1042s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1042s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1042s # g_mutex_lock (&skeleton->priv->lock); 1042s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1042s # g_mutex_unlock (&skeleton->priv->lock); 1042s # } 1042s # 1042s # static gboolean 1042s # _good_types_emit_changed (gpointer user_data) 1042s # { 1042s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1042s # GList *l; 1042s # GVariantBuilder builder; 1042s # GVariantBuilder invalidated_builder; 1042s # guint num_changes; 1042s # 1042s # g_mutex_lock (&skeleton->priv->lock); 1042s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1042s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1042s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1042s # #else 1042s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1042s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1042s # #endif 1042s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1042s # { 1042s # ChangedProperty *cp = l->data; 1042s # GVariant *variant; 1042s # const GValue *cur_value; 1042s # 1042s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1042s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1042s # { 1042s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1042s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1042s # g_variant_unref (variant); 1042s # num_changes++; 1042s # } 1042s # } 1042s # if (num_changes > 0) 1042s # { 1042s # GList *connections, *ll; 1042s # GVariant *signal_variant; 1042s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 1042s # &builder, &invalidated_builder)); 1042s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1042s # for (ll = connections; ll != NULL; ll = ll->next) 1042s # { 1042s # GDBusConnection *connection = ll->data; 1042s # 1042s # g_dbus_connection_emit_signal (connection, 1042s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1042s # "org.freedesktop.DBus.Properties", 1042s # "PropertiesChanged", 1042s # signal_variant, 1042s # NULL); 1042s # } 1042s # g_variant_unref (signal_variant); 1042s # g_list_free_full (connections, g_object_unref); 1042s # } 1042s # else 1042s # { 1042s # g_variant_builder_clear (&builder); 1042s # g_variant_builder_clear (&invalidated_builder); 1042s # } 1042s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1042s # skeleton->priv->changed_properties = NULL; 1042s # skeleton->priv->changed_properties_idle_source = NULL; 1042s # g_mutex_unlock (&skeleton->priv->lock); 1042s # return FALSE; 1042s # } 1042s # 1042s # static void 1042s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1042s # { 1042s # ChangedProperty *cp; 1042s # GList *l; 1042s # cp = NULL; 1042s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1042s # { 1042s # ChangedProperty *i_cp = l->data; 1042s # if (i_cp->info == info) 1042s # { 1042s # cp = i_cp; 1042s # break; 1042s # } 1042s # } 1042s # if (cp == NULL) 1042s # { 1042s # cp = g_new0 (ChangedProperty, 1); 1042s # cp->prop_id = prop_id; 1042s # cp->info = info; 1042s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1042s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1042s # g_value_copy (orig_value, &cp->orig_value); 1042s # } 1042s # } 1042s # 1042s # static void 1042s # good_types_skeleton_notify (GObject *object, 1042s # GParamSpec *pspec G_GNUC_UNUSED) 1042s # { 1042s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1042s # g_mutex_lock (&skeleton->priv->lock); 1042s # if (skeleton->priv->changed_properties != NULL && 1042s # skeleton->priv->changed_properties_idle_source == NULL) 1042s # { 1042s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1042s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1042s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1042s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 1042s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1042s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1042s # } 1042s # g_mutex_unlock (&skeleton->priv->lock); 1042s # } 1042s # 1042s # static void 1042s # good_types_skeleton_set_property (GObject *object, 1042s # guint prop_id, 1042s # const GValue *value, 1042s # GParamSpec *pspec) 1042s # { 1042s # const _ExtendedGDBusPropertyInfo *info; 1042s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1042s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1042s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1042s # g_mutex_lock (&skeleton->priv->lock); 1042s # g_object_freeze_notify (object); 1042s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1042s # { 1042s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1042s # info->emits_changed_signal) 1042s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1042s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1042s # g_object_notify_by_pspec (object, pspec); 1042s # } 1042s # g_mutex_unlock (&skeleton->priv->lock); 1042s # g_object_thaw_notify (object); 1042s # } 1042s # 1042s # static void 1042s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 1042s # { 1042s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1042s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 1042s # #else 1042s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 1042s # #endif 1042s # 1042s # g_mutex_init (&skeleton->priv->lock); 1042s # skeleton->priv->context = g_main_context_ref_thread_default (); 1042s # skeleton->priv->properties = g_new0 (GValue, 1); 1042s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 1042s # } 1042s # 1042s # static GVariant * 1042s # good_types_skeleton_get_good_property_type (GoodTypes *object) 1042s # { 1042s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1042s # GVariant *value; 1042s # g_mutex_lock (&skeleton->priv->lock); 1042s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 1042s # g_mutex_unlock (&skeleton->priv->lock); 1042s # return value; 1042s # } 1042s # 1042s # static void 1042s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 1042s # { 1042s # GObjectClass *gobject_class; 1042s # GDBusInterfaceSkeletonClass *skeleton_class; 1042s # 1042s # gobject_class = G_OBJECT_CLASS (klass); 1042s # gobject_class->finalize = good_types_skeleton_finalize; 1042s # gobject_class->get_property = good_types_skeleton_get_property; 1042s # gobject_class->set_property = good_types_skeleton_set_property; 1042s # gobject_class->notify = good_types_skeleton_notify; 1042s # 1042s # 1042s # good_types_override_properties (gobject_class, 1); 1042s # 1042s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1042s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 1042s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 1042s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 1042s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 1042s # 1042s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1042s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 1042s # #endif 1042s # } 1042s # 1042s # static void 1042s # good_types_skeleton_iface_init (GoodTypesIface *iface) 1042s # { 1042s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 1042s # } 1042s # 1042s # /** 1042s # * good_types_skeleton_new: 1042s # * 1042s # * Creates a skeleton object for the D-Bus interface GoodTypes. 1042s # * 1042s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 1042s # */ 1042s # GoodTypes * 1042s # good_types_skeleton_new (void) 1042s # { 1042s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 1042s # } 1042s # Error: 1042s ok 3 __main__.TestCodegen.test_empty_interface_body 1042s # gdbus-codegen: /usr/bin/gdbus-codegen 1042s # tmpdir: /tmp/tmpc4ic8axr 1042s # /tmp/tmpc4ic8axr/tmpadgtwv0a.xml: 1042s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpc4ic8axr/tmpadgtwv0a.xml', '--output', '-', '--body'] 1042s # Return code: 0 1042s # Output: 1042s # /* 1042s # * This file is generated by gdbus-codegen, do not modify it. 1042s # * 1042s # * The license of this code is the same as for the D-Bus interface description 1042s # * it was derived from. Note that it links to GLib, so must comply with the 1042s # * LGPL linking clauses. 1042s # */ 1042s # 1042s # #ifdef HAVE_CONFIG_H 1042s # # include "config.h" 1042s # #endif 1042s # 1042s # #include 1042s # #ifdef G_OS_UNIX 1042s # # include 1042s # #endif 1042s # 1042s # #ifdef G_ENABLE_DEBUG 1042s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1042s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1042s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1042s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1042s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1042s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1042s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1042s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1042s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1042s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1042s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1042s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1042s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1042s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1042s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1042s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1042s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1042s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1042s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1042s # #else /* !G_ENABLE_DEBUG */ 1042s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1042s # * Do not access GValues directly in your code. Instead, use the 1042s # * g_value_get_*() functions 1042s # */ 1042s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1042s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1042s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1042s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1042s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1042s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1042s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1042s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1042s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1042s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1042s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1042s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1042s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1042s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1042s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1042s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1042s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1042s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1042s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1042s # #endif /* !G_ENABLE_DEBUG */ 1042s # 1042s # typedef struct 1042s # { 1042s # GDBusArgInfo parent_struct; 1042s # gboolean use_gvariant; 1042s # } _ExtendedGDBusArgInfo; 1042s # 1042s # typedef struct 1042s # { 1042s # GDBusMethodInfo parent_struct; 1042s # const gchar *signal_name; 1042s # gboolean pass_fdlist; 1042s # } _ExtendedGDBusMethodInfo; 1042s # 1042s # typedef struct 1042s # { 1042s # GDBusSignalInfo parent_struct; 1042s # const gchar *signal_name; 1042s # } _ExtendedGDBusSignalInfo; 1042s # 1042s # typedef struct 1042s # { 1042s # GDBusPropertyInfo parent_struct; 1042s # const gchar *hyphen_name; 1042s # guint use_gvariant : 1; 1042s # guint emits_changed_signal : 1; 1042s # } _ExtendedGDBusPropertyInfo; 1042s # 1042s # typedef struct 1042s # { 1042s # GDBusInterfaceInfo parent_struct; 1042s # const gchar *hyphen_name; 1042s # } _ExtendedGDBusInterfaceInfo; 1042s # 1042s # typedef struct 1042s # { 1042s # const _ExtendedGDBusPropertyInfo *info; 1042s # guint prop_id; 1042s # GValue orig_value; /* the value before the change */ 1042s # } ChangedProperty; 1042s # 1042s # static void 1042s # _changed_property_free (ChangedProperty *data) 1042s # { 1042s # g_value_unset (&data->orig_value); 1042s # g_free (data); 1042s # } 1042s # 1042s # static gboolean 1042s # _g_strv_equal0 (gchar **a, gchar **b) 1042s # { 1042s # gboolean ret = FALSE; 1042s # guint n; 1042s # if (a == NULL && b == NULL) 1042s # { 1042s # ret = TRUE; 1042s # goto out; 1042s # } 1042s # if (a == NULL || b == NULL) 1042s # goto out; 1042s # if (g_strv_length (a) != g_strv_length (b)) 1042s # goto out; 1042s # for (n = 0; a[n] != NULL; n++) 1042s # if (g_strcmp0 (a[n], b[n]) != 0) 1042s # goto out; 1042s # ret = TRUE; 1042s # out: 1042s # return ret; 1042s # } 1042s # 1042s # static gboolean 1042s # _g_variant_equal0 (GVariant *a, GVariant *b) 1042s # { 1042s # gboolean ret = FALSE; 1042s # if (a == NULL && b == NULL) 1042s # { 1042s # ret = TRUE; 1042s # goto out; 1042s # } 1042s # if (a == NULL || b == NULL) 1042s # goto out; 1042s # ret = g_variant_equal (a, b); 1042s # out: 1042s # return ret; 1042s # } 1042s # 1042s # G_GNUC_UNUSED static gboolean 1042s # _g_value_equal (const GValue *a, const GValue *b) 1042s # { 1042s # gboolean ret = FALSE; 1042s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1042s # switch (G_VALUE_TYPE (a)) 1042s # { 1042s # case G_TYPE_BOOLEAN: 1042s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1042s # break; 1042s # case G_TYPE_UCHAR: 1042s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1042s # break; 1042s # case G_TYPE_INT: 1042s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1042s # break; 1042s # case G_TYPE_UINT: 1042s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1042s # break; 1042s # case G_TYPE_INT64: 1042s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1042s # break; 1042s # case G_TYPE_UINT64: 1042s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1042s # break; 1042s # case G_TYPE_DOUBLE: 1042s # { 1042s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1042s # gdouble da = g_value_get_double (a); 1042s # gdouble db = g_value_get_double (b); 1042s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1042s # } 1042s # break; 1042s # case G_TYPE_STRING: 1042s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1042s # break; 1042s # case G_TYPE_VARIANT: 1042s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1042s # break; 1042s # default: 1042s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1042s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1042s # else 1042s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1042s # break; 1042s # } 1042s # return ret; 1042s # } 1042s # Error: 1042s ok 4 __main__.TestCodegen.test_empty_interface_header 1042s # gdbus-codegen: /usr/bin/gdbus-codegen 1042s # tmpdir: /tmp/tmp2tq5pch3 1042s # /tmp/tmp2tq5pch3/tmp_hrb00u7.xml: 1042s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2tq5pch3/tmp_hrb00u7.xml', '--output', '-', '--header'] 1042s # Return code: 0 1042s # Output: 1042s # /* 1042s # * This file is generated by gdbus-codegen, do not modify it. 1042s # * 1042s # * The license of this code is the same as for the D-Bus interface description 1042s # * it was derived from. Note that it links to GLib, so must comply with the 1042s # * LGPL linking clauses. 1042s # */ 1042s # 1042s # #ifndef __STDOUT__ 1042s # #define __STDOUT__ 1042s # 1042s # #include 1042s # 1042s # G_BEGIN_DECLS 1042s # 1042s # 1042s # G_END_DECLS 1042s # 1042s # #endif /* __STDOUT__ */ 1042s # Error: 1042s ok 5 __main__.TestCodegen.test_empty_interface_info_body 1042s # gdbus-codegen: /usr/bin/gdbus-codegen 1042s # tmpdir: /tmp/tmpj3oweyif 1042s # /tmp/tmpj3oweyif/tmps0il1ute.xml: 1042s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpj3oweyif/tmps0il1ute.xml', '--output', '-', '--interface-info-body'] 1042s # Return code: 0 1042s # Output: 1042s # /* 1042s # * This file is generated by gdbus-codegen, do not modify it. 1042s # * 1042s # * The license of this code is the same as for the D-Bus interface description 1042s # * it was derived from. Note that it links to GLib, so must comply with the 1042s # * LGPL linking clauses. 1042s # */ 1042s # 1042s # #ifdef HAVE_CONFIG_H 1042s # # include "config.h" 1042s # #endif 1042s # 1042s # #include 1042s # Error: 1042s ok 6 __main__.TestCodegen.test_empty_interface_info_header 1042s # gdbus-codegen: /usr/bin/gdbus-codegen 1042s # tmpdir: /tmp/tmp4jfj2qer 1042s # /tmp/tmp4jfj2qer/tmppvl1eqsg.xml: 1042s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp4jfj2qer/tmppvl1eqsg.xml', '--output', '-', '--interface-info-header'] 1042s # Return code: 0 1042s # Output: 1042s # /* 1042s # * This file is generated by gdbus-codegen, do not modify it. 1042s # * 1042s # * The license of this code is the same as for the D-Bus interface description 1042s # * it was derived from. Note that it links to GLib, so must comply with the 1042s # * LGPL linking clauses. 1042s # */ 1042s # 1042s # #ifndef __STDOUT__ 1042s # #define __STDOUT__ 1042s # 1042s # #include 1042s # 1042s # G_BEGIN_DECLS 1042s # 1042s # 1042s # G_END_DECLS 1042s # 1042s # #endif /* __STDOUT__ */ 1042s # Error: 1042s # Executing: glib/codegen.py.test 1042s ok 7 __main__.TestCodegen.test_generate_docbook 1042s # gdbus-codegen: /usr/bin/gdbus-codegen 1042s # tmpdir: /tmp/tmp7qn7kezu 1042s # /tmp/tmp7qn7kezu/tmpshgh05mv.xml: 1042s # 1042s # 1042s # 1042s # 1042s # 1042s # 1042s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7qn7kezu/tmpshgh05mv.xml', '--generate-docbook', 'test'] 1042s # Return code: 0 1042s # Output: 1042s # 1042s # Error: 1042s ok 8 __main__.TestCodegen.test_generate_md 1042s # gdbus-codegen: /usr/bin/gdbus-codegen 1042s # tmpdir: /tmp/tmpsigti8gv 1042s # /tmp/tmpsigti8gv/tmputri7hwo.xml: 1042s # 1042s # 1042s # 1042s # 1042s # 1042s # 1042s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpsigti8gv/tmputri7hwo.xml', '--generate-md', 'test'] 1042s # Return code: 0 1042s # Output: 1042s # 1042s # Error: 1042s ok 9 __main__.TestCodegen.test_generate_methods_marshaller_simple_method 1042s # gdbus-codegen: /usr/bin/gdbus-codegen 1042s # tmpdir: /tmp/tmpl3g5pv4w 1042s # /tmp/tmpl3g5pv4w/tmp7cl2kxhw.xml: 1042s # 1042s # 1042s # 1042s # 1042s # 1042s # 1042s # 1042s # 1042s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpl3g5pv4w/tmp7cl2kxhw.xml', '--output', '-', '--body'] 1042s # Return code: 0 1042s # Output: 1042s # /* 1042s # * This file is generated by gdbus-codegen, do not modify it. 1042s # * 1042s # * The license of this code is the same as for the D-Bus interface description 1042s # * it was derived from. Note that it links to GLib, so must comply with the 1042s # * LGPL linking clauses. 1042s # */ 1042s # 1042s # #ifdef HAVE_CONFIG_H 1042s # # include "config.h" 1042s # #endif 1042s # 1042s # #include 1042s # #ifdef G_OS_UNIX 1042s # # include 1042s # #endif 1042s # 1042s # #ifdef G_ENABLE_DEBUG 1042s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1042s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1042s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1042s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1042s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1042s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1042s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1042s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1042s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1042s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1042s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1042s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1042s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1042s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1042s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1042s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1042s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1042s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1042s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1042s # #else /* !G_ENABLE_DEBUG */ 1042s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1042s # * Do not access GValues directly in your code. Instead, use the 1042s # * g_value_get_*() functions 1042s # */ 1042s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1042s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1042s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1042s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1042s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1042s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1042s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1042s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1042s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1042s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1042s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1042s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1042s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1042s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1042s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1042s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1042s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1042s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1042s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1042s # #endif /* !G_ENABLE_DEBUG */ 1042s # 1042s # typedef struct 1042s # { 1042s # GDBusArgInfo parent_struct; 1042s # gboolean use_gvariant; 1042s # } _ExtendedGDBusArgInfo; 1042s # 1042s # typedef struct 1042s # { 1042s # GDBusMethodInfo parent_struct; 1042s # const gchar *signal_name; 1042s # gboolean pass_fdlist; 1042s # } _ExtendedGDBusMethodInfo; 1042s # 1042s # typedef struct 1042s # { 1042s # GDBusSignalInfo parent_struct; 1042s # const gchar *signal_name; 1042s # } _ExtendedGDBusSignalInfo; 1042s # 1042s # typedef struct 1042s # { 1042s # GDBusPropertyInfo parent_struct; 1042s # const gchar *hyphen_name; 1042s # guint use_gvariant : 1; 1042s # guint emits_changed_signal : 1; 1042s # } _ExtendedGDBusPropertyInfo; 1042s # 1042s # typedef struct 1042s # { 1042s # GDBusInterfaceInfo parent_struct; 1042s # const gchar *hyphen_name; 1042s # } _ExtendedGDBusInterfaceInfo; 1042s # 1042s # typedef struct 1042s # { 1042s # const _ExtendedGDBusPropertyInfo *info; 1042s # guint prop_id; 1042s # GValue orig_value; /* the value before the change */ 1042s # } ChangedProperty; 1042s # 1042s # static void 1042s # _changed_property_free (ChangedProperty *data) 1042s # { 1042s # g_value_unset (&data->orig_value); 1042s # g_free (data); 1042s # } 1042s # 1042s # static gboolean 1042s # _g_strv_equal0 (gchar **a, gchar **b) 1042s # { 1042s # gboolean ret = FALSE; 1042s # guint n; 1042s # if (a == NULL && b == NULL) 1042s # { 1042s # ret = TRUE; 1042s # goto out; 1042s # } 1042s # if (a == NULL || b == NULL) 1042s # goto out; 1042s # if (g_strv_length (a) != g_strv_length (b)) 1042s # goto out; 1042s # for (n = 0; a[n] != NULL; n++) 1042s # if (g_strcmp0 (a[n], b[n]) != 0) 1042s # goto out; 1042s # ret = TRUE; 1042s # out: 1042s # return ret; 1042s # } 1042s # 1042s # static gboolean 1042s # _g_variant_equal0 (GVariant *a, GVariant *b) 1042s # { 1042s # gboolean ret = FALSE; 1042s # if (a == NULL && b == NULL) 1042s # { 1042s # ret = TRUE; 1042s # goto out; 1042s # } 1042s # if (a == NULL || b == NULL) 1042s # goto out; 1042s # ret = g_variant_equal (a, b); 1042s # out: 1042s # return ret; 1042s # } 1042s # 1042s # G_GNUC_UNUSED static gboolean 1042s # _g_value_equal (const GValue *a, const GValue *b) 1042s # { 1042s # gboolean ret = FALSE; 1042s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1042s # switch (G_VALUE_TYPE (a)) 1042s # { 1042s # case G_TYPE_BOOLEAN: 1042s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1042s # break; 1042s # case G_TYPE_UCHAR: 1042s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1042s # break; 1042s # case G_TYPE_INT: 1042s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1042s # break; 1042s # case G_TYPE_UINT: 1042s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1042s # break; 1042s # case G_TYPE_INT64: 1042s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1042s # break; 1042s # case G_TYPE_UINT64: 1042s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1042s # break; 1042s # case G_TYPE_DOUBLE: 1042s # { 1042s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1042s # gdouble da = g_value_get_double (a); 1042s # gdouble db = g_value_get_double (b); 1042s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1042s # } 1042s # break; 1042s # case G_TYPE_STRING: 1042s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1042s # break; 1042s # case G_TYPE_VARIANT: 1042s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1042s # break; 1042s # default: 1042s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1042s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1042s # else 1042s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1042s # break; 1042s # } 1042s # return ret; 1042s # } 1042s # 1042s # static void 1042s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1042s # GClosure *closure, 1042s # GValue *return_value, 1042s # unsigned int n_param_values, 1042s # const GValue *param_values, 1042s # void *invocation_hint G_GNUC_UNUSED, 1042s # void *marshal_data) 1042s # { 1042s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1042s # (void *data1, 1042s # GDBusMethodInvocation *arg_method_invocation, 1042s # void *data2); 1042s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1042s # GCClosure *cc = (GCClosure*) closure; 1042s # void *data1, *data2; 1042s # gboolean v_return; 1042s # 1042s # g_return_if_fail (return_value != NULL); 1042s # g_return_if_fail (n_param_values == 2); 1042s # 1042s # if (G_CCLOSURE_SWAP_DATA (closure)) 1042s # { 1042s # data1 = closure->data; 1042s # data2 = g_value_peek_pointer (param_values + 0); 1042s # } 1042s # else 1042s # { 1042s # data1 = g_value_peek_pointer (param_values + 0); 1042s # data2 = closure->data; 1042s # } 1042s # 1042s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1042s # (marshal_data ? marshal_data : cc->callback); 1042s # 1042s # v_return = 1042s # callback (data1, 1042s # g_marshal_value_peek_object (param_values + 1), 1042s # data2); 1042s # 1042s # g_value_set_boolean (return_value, v_return); 1042s # } 1042s # 1042s # /* ------------------------------------------------------------------------ 1042s # * Code for interface org.project.CallableIface 1042s # * ------------------------------------------------------------------------ 1042s # */ 1042s # 1042s # /** 1042s # * SECTION:OrgProjectCallableIface 1042s # * @title: OrgProjectCallableIface 1042s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 1042s # * 1042s # * This section contains code for working with the org.project.CallableIface D-Bus interface in C. 1042s # */ 1042s # 1042s # /* ---- Introspection data for org.project.CallableIface ---- */ 1042s # 1042s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_simple_method = 1042s # { 1042s # { 1042s # -1, 1042s # (gchar *) "SimpleMethod", 1042s # NULL, 1042s # NULL, 1042s # NULL 1042s # }, 1042s # "handle-simple-method", 1042s # FALSE 1042s # }; 1042s # 1042s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 1042s # { 1042s # &_org_project_callable_iface_method_info_simple_method.parent_struct, 1042s # NULL 1042s # }; 1042s # 1042s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 1042s # { 1042s # { 1042s # -1, 1042s # (gchar *) "org.project.CallableIface", 1042s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 1042s # NULL, 1042s # NULL, 1042s # NULL 1042s # }, 1042s # "org-project-callable-iface", 1042s # }; 1042s # 1042s # 1042s # /** 1042s # * org_project_callable_iface_interface_info: 1042s # * 1042s # * Gets a machine-readable description of the org.project.CallableIface D-Bus interface. 1042s # * 1042s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1042s # */ 1042s # GDBusInterfaceInfo * 1042s # org_project_callable_iface_interface_info (void) 1042s # { 1042s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 1042s # } 1042s # 1042s # /** 1042s # * org_project_callable_iface_override_properties: 1042s # * @klass: The class structure for a #GObject derived class. 1042s # * @property_id_begin: The property id to assign to the first overridden property. 1042s # * 1042s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 1042s # * The properties are overridden in the order they are defined. 1042s # * 1042s # * Returns: The last property id. 1042s # */ 1042s # guint 1042s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1042s # { 1042s # return property_id_begin - 1; 1042s # } 1042s # 1042s # 1042s # inline static void 1042s # org_project_callable_iface_method_marshal_simple_method ( 1042s # GClosure *closure, 1042s # GValue *return_value, 1042s # unsigned int n_param_values, 1042s # const GValue *param_values, 1042s # void *invocation_hint, 1042s # void *marshal_data) 1042s # { 1042s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1042s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1042s # } 1042s # 1042s # 1042s # /** 1042s # * OrgProjectCallableIface: 1042s # * 1042s # * Abstract interface type for the D-Bus interface org.project.CallableIface. 1042s # */ 1042s # 1042s # /** 1042s # * OrgProjectCallableIfaceIface: 1042s # * @parent_iface: The parent interface. 1042s # * @handle_simple_method: Handler for the #OrgProjectCallableIface::handle-simple-method signal. 1042s # * 1042s # * Virtual table for the D-Bus interface org.project.CallableIface. 1042s # */ 1042s # 1042s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 1042s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 1042s # 1042s # static void 1042s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 1042s # { 1042s # /* GObject signals for incoming D-Bus method calls: */ 1042s # /** 1042s # * OrgProjectCallableIface::handle-simple-method: 1042s # * @object: A #OrgProjectCallableIface. 1042s # * @invocation: A #GDBusMethodInvocation. 1042s # * 1042s # * Signal emitted when a remote caller is invoking the SimpleMethod() D-Bus method. 1042s # * 1042s # * 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. 1042s # * 1042s # * 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. 1042s # */ 1042s # g_signal_new ("handle-simple-method", 1042s # G_TYPE_FROM_INTERFACE (iface), 1042s # G_SIGNAL_RUN_LAST, 1042s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_simple_method), 1042s # g_signal_accumulator_true_handled, 1042s # NULL, 1042s # org_project_callable_iface_method_marshal_simple_method, 1042s # G_TYPE_BOOLEAN, 1042s # 1, 1042s # G_TYPE_DBUS_METHOD_INVOCATION); 1042s # 1042s # } 1042s # 1042s # /** 1042s # * org_project_callable_iface_call_simple_method: 1042s # * @proxy: A #OrgProjectCallableIfaceProxy. 1042s # * @cancellable: (nullable): A #GCancellable or %NULL. 1042s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1042s # * @user_data: User data to pass to @callback. 1042s # * 1042s # * Asynchronously invokes the SimpleMethod() D-Bus method on @proxy. 1042s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1042s # * You can then call org_project_callable_iface_call_simple_method_finish() to get the result of the operation. 1042s # * 1042s # * See org_project_callable_iface_call_simple_method_sync() for the synchronous, blocking version of this method. 1042s # */ 1042s # void 1042s # org_project_callable_iface_call_simple_method ( 1042s # OrgProjectCallableIface *proxy, 1042s # GCancellable *cancellable, 1042s # GAsyncReadyCallback callback, 1042s # gpointer user_data) 1042s # { 1042s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1042s # "SimpleMethod", 1042s # g_variant_new ("()"), 1042s # G_DBUS_CALL_FLAGS_NONE, 1042s # -1, 1042s # cancellable, 1042s # callback, 1042s # user_data); 1042s # } 1042s # 1042s # /** 1042s # * org_project_callable_iface_call_simple_method_finish: 1042s # * @proxy: A #OrgProjectCallableIfaceProxy. 1042s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_simple_method(). 1042s # * @error: Return location for error or %NULL. 1042s # * 1042s # * Finishes an operation started with org_project_callable_iface_call_simple_method(). 1042s # * 1042s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1042s # */ 1042s # gboolean 1042s # org_project_callable_iface_call_simple_method_finish ( 1042s # OrgProjectCallableIface *proxy, 1042s # GAsyncResult *res, 1042s # GError **error) 1042s # { 1042s # GVariant *_ret; 1042s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1042s # if (_ret == NULL) 1042s # goto _out; 1042s # g_variant_get (_ret, 1042s # "()"); 1042s # g_variant_unref (_ret); 1042s # _out: 1042s # return _ret != NULL; 1042s # } 1042s # 1042s # /** 1042s # * org_project_callable_iface_call_simple_method_sync: 1042s # * @proxy: A #OrgProjectCallableIfaceProxy. 1042s # * @cancellable: (nullable): A #GCancellable or %NULL. 1042s # * @error: Return location for error or %NULL. 1042s # * 1042s # * Synchronously invokes the SimpleMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1042s # * 1042s # * See org_project_callable_iface_call_simple_method() for the asynchronous version of this method. 1042s # * 1042s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1042s # */ 1042s # gboolean 1042s # org_project_callable_iface_call_simple_method_sync ( 1042s # OrgProjectCallableIface *proxy, 1042s # GCancellable *cancellable, 1042s # GError **error) 1042s # { 1042s # GVariant *_ret; 1042s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1042s # "SimpleMethod", 1042s # g_variant_new ("()"), 1042s # G_DBUS_CALL_FLAGS_NONE, 1042s # -1, 1042s # cancellable, 1042s # error); 1042s # if (_ret == NULL) 1042s # goto _out; 1042s # g_variant_get (_ret, 1042s # "()"); 1042s # g_variant_unref (_ret); 1042s # _out: 1042s # return _ret != NULL; 1042s # } 1042s # 1042s # /** 1042s # * org_project_callable_iface_complete_simple_method: 1042s # * @object: A #OrgProjectCallableIface. 1042s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1042s # * 1042s # * 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. 1042s # * 1042s # * This method will free @invocation, you cannot use it afterwards. 1042s # */ 1042s # void 1042s # org_project_callable_iface_complete_simple_method ( 1042s # OrgProjectCallableIface *object G_GNUC_UNUSED, 1042s # GDBusMethodInvocation *invocation) 1042s # { 1042s # g_dbus_method_invocation_return_value (invocation, 1042s # g_variant_new ("()")); 1042s # } 1042s # 1042s # /* ------------------------------------------------------------------------ */ 1042s # 1042s # /** 1042s # * OrgProjectCallableIfaceProxy: 1042s # * 1042s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1042s # */ 1042s # 1042s # /** 1042s # * OrgProjectCallableIfaceProxyClass: 1042s # * @parent_class: The parent class. 1042s # * 1042s # * Class structure for #OrgProjectCallableIfaceProxy. 1042s # */ 1042s # 1042s # struct _OrgProjectCallableIfaceProxyPrivate 1042s # { 1042s # GData *qdata; 1042s # }; 1042s # 1042s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 1042s # 1042s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1042s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1042s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 1042s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1042s # 1042s # #else 1042s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1042s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1042s # 1042s # #endif 1042s # static void 1042s # org_project_callable_iface_proxy_finalize (GObject *object) 1042s # { 1042s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 1042s # g_datalist_clear (&proxy->priv->qdata); 1042s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 1042s # } 1042s # 1042s # static void 1042s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1042s # guint prop_id G_GNUC_UNUSED, 1042s # GValue *value G_GNUC_UNUSED, 1042s # GParamSpec *pspec G_GNUC_UNUSED) 1042s # { 1042s # } 1042s # 1042s # static void 1042s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1042s # guint prop_id G_GNUC_UNUSED, 1042s # const GValue *value G_GNUC_UNUSED, 1042s # GParamSpec *pspec G_GNUC_UNUSED) 1042s # { 1042s # } 1042s # 1042s # static void 1042s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1042s # const gchar *sender_name G_GNUC_UNUSED, 1042s # const gchar *signal_name, 1042s # GVariant *parameters) 1042s # { 1042s # _ExtendedGDBusSignalInfo *info; 1042s # GVariantIter iter; 1042s # GVariant *child; 1042s # GValue *paramv; 1042s # gsize num_params; 1042s # gsize n; 1042s # guint signal_id; 1042s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 1042s # if (info == NULL) 1042s # return; 1042s # num_params = g_variant_n_children (parameters); 1042s # paramv = g_new0 (GValue, num_params + 1); 1042s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1042s # g_value_set_object (¶mv[0], proxy); 1042s # g_variant_iter_init (&iter, parameters); 1042s # n = 1; 1042s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1042s # { 1042s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1042s # if (arg_info->use_gvariant) 1042s # { 1042s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1042s # g_value_set_variant (¶mv[n], child); 1042s # n++; 1042s # } 1042s # else 1042s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1042s # g_variant_unref (child); 1042s # } 1042s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1042s # g_signal_emitv (paramv, signal_id, 0, NULL); 1042s # for (n = 0; n < num_params + 1; n++) 1042s # g_value_unset (¶mv[n]); 1042s # g_free (paramv); 1042s # } 1042s # 1042s # static void 1042s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1042s # GVariant *changed_properties, 1042s # const gchar *const *invalidated_properties) 1042s # { 1042s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 1042s # guint n; 1042s # const gchar *key; 1042s # GVariantIter *iter; 1042s # _ExtendedGDBusPropertyInfo *info; 1042s # g_variant_get (changed_properties, "a{sv}", &iter); 1042s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1042s # { 1042s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 1042s # g_datalist_remove_data (&proxy->priv->qdata, key); 1042s # if (info != NULL) 1042s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1042s # } 1042s # g_variant_iter_free (iter); 1042s # for (n = 0; invalidated_properties[n] != NULL; n++) 1042s # { 1042s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1042s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1042s # if (info != NULL) 1042s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1042s # } 1042s # } 1042s # 1042s # static void 1042s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 1042s # { 1042s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1042s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 1042s # #else 1042s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 1042s # #endif 1042s # 1042s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 1042s # } 1042s # 1042s # static void 1042s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 1042s # { 1042s # GObjectClass *gobject_class; 1042s # GDBusProxyClass *proxy_class; 1042s # 1042s # gobject_class = G_OBJECT_CLASS (klass); 1042s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 1042s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 1042s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 1042s # 1042s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1042s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 1042s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 1042s # 1042s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1042s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 1042s # #endif 1042s # } 1042s # 1042s # static void 1042s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1042s # { 1042s # } 1042s # 1042s # /** 1042s # * org_project_callable_iface_proxy_new: 1042s # * @connection: A #GDBusConnection. 1042s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1042s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1042s # * @object_path: An object path. 1042s # * @cancellable: (nullable): A #GCancellable or %NULL. 1042s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1042s # * @user_data: User data to pass to @callback. 1042s # * 1042s # * Asynchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new() for more details. 1042s # * 1042s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1042s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 1042s # * 1042s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1042s # */ 1042s # void 1042s # org_project_callable_iface_proxy_new ( 1042s # GDBusConnection *connection, 1042s # GDBusProxyFlags flags, 1042s # const gchar *name, 1042s # const gchar *object_path, 1042s # GCancellable *cancellable, 1042s # GAsyncReadyCallback callback, 1042s # gpointer user_data) 1042s # { 1042s # 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); 1042s # } 1042s # 1042s # /** 1042s # * org_project_callable_iface_proxy_new_finish: 1042s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 1042s # * @error: Return location for error or %NULL 1042s # * 1042s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 1042s # * 1042s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1042s # */ 1042s # OrgProjectCallableIface * 1042s # org_project_callable_iface_proxy_new_finish ( 1042s # GAsyncResult *res, 1042s # GError **error) 1042s # { 1042s # GObject *ret; 1042s # GObject *source_object; 1042s # source_object = g_async_result_get_source_object (res); 1042s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1042s # g_object_unref (source_object); 1042s # if (ret != NULL) 1042s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1042s # else 1042s # return NULL; 1042s # } 1042s # 1042s # /** 1042s # * org_project_callable_iface_proxy_new_sync: 1042s # * @connection: A #GDBusConnection. 1042s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1042s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1042s # * @object_path: An object path. 1042s # * @cancellable: (nullable): A #GCancellable or %NULL. 1042s # * @error: Return location for error or %NULL 1042s # * 1042s # * Synchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new_sync() for more details. 1042s # * 1042s # * The calling thread is blocked until a reply is received. 1042s # * 1042s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 1042s # * 1042s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1042s # */ 1042s # OrgProjectCallableIface * 1042s # org_project_callable_iface_proxy_new_sync ( 1042s # GDBusConnection *connection, 1042s # GDBusProxyFlags flags, 1042s # const gchar *name, 1042s # const gchar *object_path, 1042s # GCancellable *cancellable, 1042s # GError **error) 1042s # { 1042s # GInitable *ret; 1042s # 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); 1042s # if (ret != NULL) 1042s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1042s # else 1042s # return NULL; 1042s # } 1042s # 1042s # 1042s # /** 1042s # * org_project_callable_iface_proxy_new_for_bus: 1042s # * @bus_type: A #GBusType. 1042s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1042s # * @name: A bus name (well-known or unique). 1042s # * @object_path: An object path. 1042s # * @cancellable: (nullable): A #GCancellable or %NULL. 1042s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1042s # * @user_data: User data to pass to @callback. 1042s # * 1042s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1042s # * 1042s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1042s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1042s # * 1042s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1042s # */ 1042s # void 1042s # org_project_callable_iface_proxy_new_for_bus ( 1042s # GBusType bus_type, 1042s # GDBusProxyFlags flags, 1042s # const gchar *name, 1042s # const gchar *object_path, 1042s # GCancellable *cancellable, 1042s # GAsyncReadyCallback callback, 1042s # gpointer user_data) 1042s # { 1042s # 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); 1042s # } 1042s # 1042s # /** 1042s # * org_project_callable_iface_proxy_new_for_bus_finish: 1042s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 1042s # * @error: Return location for error or %NULL 1042s # * 1042s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 1042s # * 1042s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1042s # */ 1042s # OrgProjectCallableIface * 1042s # org_project_callable_iface_proxy_new_for_bus_finish ( 1042s # GAsyncResult *res, 1042s # GError **error) 1042s # { 1042s # GObject *ret; 1042s # GObject *source_object; 1042s # source_object = g_async_result_get_source_object (res); 1042s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1042s # g_object_unref (source_object); 1042s # if (ret != NULL) 1042s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1042s # else 1042s # return NULL; 1042s # } 1042s # 1042s # /** 1042s # * org_project_callable_iface_proxy_new_for_bus_sync: 1042s # * @bus_type: A #GBusType. 1042s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1042s # * @name: A bus name (well-known or unique). 1042s # * @object_path: An object path. 1042s # * @cancellable: (nullable): A #GCancellable or %NULL. 1042s # * @error: Return location for error or %NULL 1042s # * 1042s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1042s # * 1042s # * The calling thread is blocked until a reply is received. 1042s # * 1042s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1042s # * 1042s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1042s # */ 1042s # OrgProjectCallableIface * 1042s # org_project_callable_iface_proxy_new_for_bus_sync ( 1042s # GBusType bus_type, 1042s # GDBusProxyFlags flags, 1042s # const gchar *name, 1042s # const gchar *object_path, 1042s # GCancellable *cancellable, 1042s # GError **error) 1042s # { 1042s # GInitable *ret; 1042s # 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); 1042s # if (ret != NULL) 1042s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1042s # else 1042s # return NULL; 1042s # } 1042s # 1042s # 1042s # /* ------------------------------------------------------------------------ */ 1042s # 1042s # /** 1042s # * OrgProjectCallableIfaceSkeleton: 1042s # * 1042s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1042s # */ 1042s # 1042s # /** 1042s # * OrgProjectCallableIfaceSkeletonClass: 1042s # * @parent_class: The parent class. 1042s # * 1042s # * Class structure for #OrgProjectCallableIfaceSkeleton. 1042s # */ 1042s # 1042s # struct _OrgProjectCallableIfaceSkeletonPrivate 1042s # { 1042s # GValue *properties; 1042s # GList *changed_properties; 1042s # GSource *changed_properties_idle_source; 1042s # GMainContext *context; 1042s # GMutex lock; 1042s # }; 1042s # 1042s # static void 1042s # _org_project_callable_iface_skeleton_handle_method_call ( 1042s # GDBusConnection *connection G_GNUC_UNUSED, 1042s # const gchar *sender G_GNUC_UNUSED, 1042s # const gchar *object_path G_GNUC_UNUSED, 1042s # const gchar *interface_name, 1042s # const gchar *method_name, 1042s # GVariant *parameters, 1042s # GDBusMethodInvocation *invocation, 1042s # gpointer user_data) 1042s # { 1042s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1042s # _ExtendedGDBusMethodInfo *info; 1042s # GVariantIter iter; 1042s # GVariant *child; 1042s # GValue *paramv; 1042s # gsize num_params; 1042s # guint num_extra; 1042s # gsize n; 1042s # guint signal_id; 1042s # GValue return_value = G_VALUE_INIT; 1042s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1042s # g_assert (info != NULL); 1042s # num_params = g_variant_n_children (parameters); 1042s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1042s # n = 0; 1042s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1042s # g_value_set_object (¶mv[n++], skeleton); 1042s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1042s # g_value_set_object (¶mv[n++], invocation); 1042s # if (info->pass_fdlist) 1042s # { 1042s # #ifdef G_OS_UNIX 1042s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1042s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1042s # #else 1042s # g_assert_not_reached (); 1042s # #endif 1042s # } 1042s # g_variant_iter_init (&iter, parameters); 1042s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1042s # { 1042s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1042s # if (arg_info->use_gvariant) 1042s # { 1042s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1042s # g_value_set_variant (¶mv[n], child); 1042s # n++; 1042s # } 1042s # else 1042s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1042s # g_variant_unref (child); 1042s # } 1042s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1042s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1042s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1042s # if (!g_value_get_boolean (&return_value)) 1042s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1042s # g_value_unset (&return_value); 1042s # for (n = 0; n < num_params + num_extra; n++) 1042s # g_value_unset (¶mv[n]); 1042s # g_free (paramv); 1042s # } 1042s # 1042s # static GVariant * 1042s # _org_project_callable_iface_skeleton_handle_get_property ( 1042s # GDBusConnection *connection G_GNUC_UNUSED, 1042s # const gchar *sender G_GNUC_UNUSED, 1042s # const gchar *object_path G_GNUC_UNUSED, 1042s # const gchar *interface_name G_GNUC_UNUSED, 1042s # const gchar *property_name, 1042s # GError **error, 1042s # gpointer user_data) 1042s # { 1042s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1042s # GValue value = G_VALUE_INIT; 1042s # GParamSpec *pspec; 1042s # _ExtendedGDBusPropertyInfo *info; 1042s # GVariant *ret; 1042s # ret = NULL; 1042s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1042s # g_assert (info != NULL); 1042s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1042s # if (pspec == NULL) 1042s # { 1042s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1042s # } 1042s # else 1042s # { 1042s # g_value_init (&value, pspec->value_type); 1042s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1042s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1042s # g_value_unset (&value); 1042s # } 1042s # return ret; 1042s # } 1042s # 1042s # static gboolean 1042s # _org_project_callable_iface_skeleton_handle_set_property ( 1042s # GDBusConnection *connection G_GNUC_UNUSED, 1042s # const gchar *sender G_GNUC_UNUSED, 1042s # const gchar *object_path G_GNUC_UNUSED, 1042s # const gchar *interface_name G_GNUC_UNUSED, 1042s # const gchar *property_name, 1042s # GVariant *variant, 1042s # GError **error, 1042s # gpointer user_data) 1042s # { 1042s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1042s # GValue value = G_VALUE_INIT; 1042s # GParamSpec *pspec; 1042s # _ExtendedGDBusPropertyInfo *info; 1042s # gboolean ret; 1042s # ret = FALSE; 1042s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1042s # g_assert (info != NULL); 1042s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1042s # if (pspec == NULL) 1042s # { 1042s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1042s # } 1042s # else 1042s # { 1042s # if (info->use_gvariant) 1042s # g_value_set_variant (&value, variant); 1042s # else 1042s # g_dbus_gvariant_to_gvalue (variant, &value); 1042s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1042s # g_value_unset (&value); 1042s # ret = TRUE; 1042s # } 1042s # return ret; 1042s # } 1042s # 1042s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 1042s # { 1042s # _org_project_callable_iface_skeleton_handle_method_call, 1042s # _org_project_callable_iface_skeleton_handle_get_property, 1042s # _org_project_callable_iface_skeleton_handle_set_property, 1042s # {NULL} 1042s # }; 1042s # 1042s # static GDBusInterfaceInfo * 1042s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1042s # { 1042s # return org_project_callable_iface_interface_info (); 1042s # } 1042s # 1042s # static GDBusInterfaceVTable * 1042s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1042s # { 1042s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 1042s # } 1042s # 1042s # static GVariant * 1042s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1042s # { 1042s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 1042s # 1042s # GVariantBuilder builder; 1042s # guint n; 1042s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1042s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1042s # #else 1042s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1042s # #endif 1042s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 1042s # goto out; 1042s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1042s # { 1042s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 1042s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1042s # { 1042s # GVariant *value; 1042s # 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); 1042s # if (value != NULL) 1042s # { 1042s # g_variant_take_ref (value); 1042s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1042s # g_variant_unref (value); 1042s # } 1042s # } 1042s # } 1042s # out: 1042s # return g_variant_builder_end (&builder); 1042s # } 1042s # 1042s # static void 1042s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1042s # { 1042s # } 1042s # 1042s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 1042s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1042s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1042s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 1042s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1042s # 1042s # #else 1042s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1042s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1042s # 1042s # #endif 1042s # static void 1042s # org_project_callable_iface_skeleton_finalize (GObject *object) 1042s # { 1042s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 1042s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1042s # if (skeleton->priv->changed_properties_idle_source != NULL) 1042s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1042s # g_main_context_unref (skeleton->priv->context); 1042s # g_mutex_clear (&skeleton->priv->lock); 1042s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 1042s # } 1042s # 1042s # static void 1042s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 1042s # { 1042s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1042s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 1042s # #else 1042s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 1042s # #endif 1042s # 1042s # g_mutex_init (&skeleton->priv->lock); 1042s # skeleton->priv->context = g_main_context_ref_thread_default (); 1042s # } 1042s # 1042s # static void 1042s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 1042s # { 1042s # GObjectClass *gobject_class; 1042s # GDBusInterfaceSkeletonClass *skeleton_class; 1042s # 1042s # gobject_class = G_OBJECT_CLASS (klass); 1042s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 1042s # 1042s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1042s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 1042s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 1042s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 1042s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 1042s # 1042s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1042s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 1042s # #endif 1042s # } 1042s # 1042s # static void 1042s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1042s # { 1042s # } 1042s # 1042s # /** 1042s # * org_project_callable_iface_skeleton_new: 1042s # * 1042s # * Creates a skeleton object for the D-Bus interface org.project.CallableIface. 1042s # * 1042s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 1042s # */ 1042s # OrgProjectCallableIface * 1042s # org_project_callable_iface_skeleton_new (void) 1042s # { 1042s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 1042s # } 1042s # 1042s # /* ------------------------------------------------------------------------ 1042s # * Code for interface org.project.OtherCallableIface 1042s # * ------------------------------------------------------------------------ 1042s # */ 1042s # 1042s # /** 1042s # * SECTION:OrgProjectOtherCallableIface 1042s # * @title: OrgProjectOtherCallableIface 1042s # * @short_description: Generated C code for the org.project.OtherCallableIface D-Bus interface 1042s # * 1042s # * This section contains code for working with the org.project.OtherCallableIface D-Bus interface in C. 1042s # */ 1042s # 1042s # /* ---- Introspection data for org.project.OtherCallableIface ---- */ 1042s # 1042s # static const _ExtendedGDBusMethodInfo _org_project_other_callable_iface_method_info_simple_method = 1042s # { 1042s # { 1042s # -1, 1042s # (gchar *) "SimpleMethod", 1042s # NULL, 1042s # NULL, 1042s # NULL 1042s # }, 1042s # "handle-simple-method", 1042s # FALSE 1042s # }; 1042s # 1042s # static const GDBusMethodInfo * const _org_project_other_callable_iface_method_info_pointers[] = 1042s # { 1042s # &_org_project_other_callable_iface_method_info_simple_method.parent_struct, 1042s # NULL 1042s # }; 1042s # 1042s # static const _ExtendedGDBusInterfaceInfo _org_project_other_callable_iface_interface_info = 1042s # { 1042s # { 1042s # -1, 1042s # (gchar *) "org.project.OtherCallableIface", 1042s # (GDBusMethodInfo **) &_org_project_other_callable_iface_method_info_pointers, 1042s # NULL, 1042s # NULL, 1042s # NULL 1042s # }, 1042s # "org-project-other-callable-iface", 1042s # }; 1042s # 1042s # 1042s # /** 1042s # * org_project_other_callable_iface_interface_info: 1042s # * 1042s # * Gets a machine-readable description of the org.project.OtherCallableIface D-Bus interface. 1042s # * 1042s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1042s # */ 1042s # GDBusInterfaceInfo * 1042s # org_project_other_callable_iface_interface_info (void) 1042s # { 1042s # return (GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct; 1042s # } 1042s # 1042s # /** 1042s # * org_project_other_callable_iface_override_properties: 1042s # * @klass: The class structure for a #GObject derived class. 1042s # * @property_id_begin: The property id to assign to the first overridden property. 1042s # * 1042s # * Overrides all #GObject properties in the #OrgProjectOtherCallableIface interface for a concrete class. 1042s # * The properties are overridden in the order they are defined. 1042s # * 1042s # * Returns: The last property id. 1042s # */ 1042s # guint 1042s # org_project_other_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1042s # { 1042s # return property_id_begin - 1; 1042s # } 1042s # 1042s # 1042s # inline static void 1042s # org_project_other_callable_iface_method_marshal_simple_method ( 1042s # GClosure *closure, 1042s # GValue *return_value, 1042s # unsigned int n_param_values, 1042s # const GValue *param_values, 1042s # void *invocation_hint, 1042s # void *marshal_data) 1042s # { 1042s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1042s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1042s # } 1042s # 1042s # 1042s # /** 1042s # * OrgProjectOtherCallableIface: 1042s # * 1042s # * Abstract interface type for the D-Bus interface org.project.OtherCallableIface. 1042s # */ 1042s # 1042s # /** 1042s # * OrgProjectOtherCallableIfaceIface: 1042s # * @parent_iface: The parent interface. 1042s # * @handle_simple_method: Handler for the #OrgProjectOtherCallableIface::handle-simple-method signal. 1042s # * 1042s # * Virtual table for the D-Bus interface org.project.OtherCallableIface. 1042s # */ 1042s # 1042s # typedef OrgProjectOtherCallableIfaceIface OrgProjectOtherCallableIfaceInterface; 1042s # G_DEFINE_INTERFACE (OrgProjectOtherCallableIface, org_project_other_callable_iface, G_TYPE_OBJECT) 1042s # 1042s # static void 1042s # org_project_other_callable_iface_default_init (OrgProjectOtherCallableIfaceIface *iface) 1042s # { 1042s # /* GObject signals for incoming D-Bus method calls: */ 1042s # /** 1042s # * OrgProjectOtherCallableIface::handle-simple-method: 1042s # * @object: A #OrgProjectOtherCallableIface. 1042s # * @invocation: A #GDBusMethodInvocation. 1042s # * 1042s # * Signal emitted when a remote caller is invoking the SimpleMethod() D-Bus method. 1042s # * 1042s # * 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. 1042s # * 1042s # * 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. 1042s # */ 1042s # g_signal_new ("handle-simple-method", 1042s # G_TYPE_FROM_INTERFACE (iface), 1042s # G_SIGNAL_RUN_LAST, 1042s # G_STRUCT_OFFSET (OrgProjectOtherCallableIfaceIface, handle_simple_method), 1042s # g_signal_accumulator_true_handled, 1042s # NULL, 1042s # org_project_other_callable_iface_method_marshal_simple_method, 1042s # G_TYPE_BOOLEAN, 1042s # 1, 1042s # G_TYPE_DBUS_METHOD_INVOCATION); 1042s # 1042s # } 1042s # 1042s # /** 1042s # * org_project_other_callable_iface_call_simple_method: 1042s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1042s # * @cancellable: (nullable): A #GCancellable or %NULL. 1042s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1042s # * @user_data: User data to pass to @callback. 1042s # * 1042s # * Asynchronously invokes the SimpleMethod() D-Bus method on @proxy. 1042s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1042s # * You can then call org_project_other_callable_iface_call_simple_method_finish() to get the result of the operation. 1042s # * 1042s # * See org_project_other_callable_iface_call_simple_method_sync() for the synchronous, blocking version of this method. 1042s # */ 1042s # void 1042s # org_project_other_callable_iface_call_simple_method ( 1042s # OrgProjectOtherCallableIface *proxy, 1042s # GCancellable *cancellable, 1042s # GAsyncReadyCallback callback, 1042s # gpointer user_data) 1042s # { 1042s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1042s # "SimpleMethod", 1042s # g_variant_new ("()"), 1042s # G_DBUS_CALL_FLAGS_NONE, 1042s # -1, 1042s # cancellable, 1042s # callback, 1042s # user_data); 1042s # } 1042s # 1042s # /** 1042s # * org_project_other_callable_iface_call_simple_method_finish: 1042s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1042s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_call_simple_method(). 1042s # * @error: Return location for error or %NULL. 1042s # * 1042s # * Finishes an operation started with org_project_other_callable_iface_call_simple_method(). 1042s # * 1042s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1042s # */ 1042s # gboolean 1042s # org_project_other_callable_iface_call_simple_method_finish ( 1042s # OrgProjectOtherCallableIface *proxy, 1042s # GAsyncResult *res, 1042s # GError **error) 1042s # { 1042s # GVariant *_ret; 1042s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1042s # if (_ret == NULL) 1042s # goto _out; 1042s # g_variant_get (_ret, 1042s # "()"); 1042s # g_variant_unref (_ret); 1042s # _out: 1042s # return _ret != NULL; 1042s # } 1042s # 1042s # /** 1042s # * org_project_other_callable_iface_call_simple_method_sync: 1042s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1042s # * @cancellable: (nullable): A #GCancellable or %NULL. 1042s # * @error: Return location for error or %NULL. 1042s # * 1042s # * Synchronously invokes the SimpleMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1042s # * 1042s # * See org_project_other_callable_iface_call_simple_method() for the asynchronous version of this method. 1042s # * 1042s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1042s # */ 1042s # gboolean 1042s # org_project_other_callable_iface_call_simple_method_sync ( 1042s # OrgProjectOtherCallableIface *proxy, 1042s # GCancellable *cancellable, 1042s # GError **error) 1042s # { 1042s # GVariant *_ret; 1042s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1042s # "SimpleMethod", 1042s # g_variant_new ("()"), 1042s # G_DBUS_CALL_FLAGS_NONE, 1042s # -1, 1042s # cancellable, 1042s # error); 1042s # if (_ret == NULL) 1042s # goto _out; 1042s # g_variant_get (_ret, 1042s # "()"); 1042s # g_variant_unref (_ret); 1042s # _out: 1042s # return _ret != NULL; 1042s # } 1042s # 1042s # /** 1042s # * org_project_other_callable_iface_complete_simple_method: 1042s # * @object: A #OrgProjectOtherCallableIface. 1042s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1042s # * 1042s # * 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. 1042s # * 1042s # * This method will free @invocation, you cannot use it afterwards. 1042s # */ 1042s # void 1042s # org_project_other_callable_iface_complete_simple_method ( 1042s # OrgProjectOtherCallableIface *object G_GNUC_UNUSED, 1042s # GDBusMethodInvocation *invocation) 1042s # { 1042s # g_dbus_method_invocation_return_value (invocation, 1042s # g_variant_new ("()")); 1042s # } 1042s # 1042s # /* ------------------------------------------------------------------------ */ 1042s # 1042s # /** 1042s # * OrgProjectOtherCallableIfaceProxy: 1042s # * 1042s # * The #OrgProjectOtherCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1042s # */ 1042s # 1042s # /** 1042s # * OrgProjectOtherCallableIfaceProxyClass: 1042s # * @parent_class: The parent class. 1042s # * 1042s # * Class structure for #OrgProjectOtherCallableIfaceProxy. 1042s # */ 1042s # 1042s # struct _OrgProjectOtherCallableIfaceProxyPrivate 1042s # { 1042s # GData *qdata; 1042s # }; 1042s # 1042s # static void org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface); 1042s # 1042s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1042s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1042s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceProxy) 1042s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 1042s # 1042s # #else 1042s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1042s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 1042s # 1042s # #endif 1042s # static void 1042s # org_project_other_callable_iface_proxy_finalize (GObject *object) 1042s # { 1042s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (object); 1042s # g_datalist_clear (&proxy->priv->qdata); 1042s # G_OBJECT_CLASS (org_project_other_callable_iface_proxy_parent_class)->finalize (object); 1042s # } 1042s # 1042s # static void 1042s # org_project_other_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1042s # guint prop_id G_GNUC_UNUSED, 1042s # GValue *value G_GNUC_UNUSED, 1042s # GParamSpec *pspec G_GNUC_UNUSED) 1042s # { 1042s # } 1042s # 1042s # static void 1042s # org_project_other_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1042s # guint prop_id G_GNUC_UNUSED, 1042s # const GValue *value G_GNUC_UNUSED, 1042s # GParamSpec *pspec G_GNUC_UNUSED) 1042s # { 1042s # } 1042s # 1042s # static void 1042s # org_project_other_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1042s # const gchar *sender_name G_GNUC_UNUSED, 1042s # const gchar *signal_name, 1042s # GVariant *parameters) 1042s # { 1042s # _ExtendedGDBusSignalInfo *info; 1042s # GVariantIter iter; 1042s # GVariant *child; 1042s # GValue *paramv; 1042s # gsize num_params; 1042s # gsize n; 1042s # guint signal_id; 1042s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, signal_name); 1042s # if (info == NULL) 1042s # return; 1042s # num_params = g_variant_n_children (parameters); 1042s # paramv = g_new0 (GValue, num_params + 1); 1042s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1042s # g_value_set_object (¶mv[0], proxy); 1042s # g_variant_iter_init (&iter, parameters); 1042s # n = 1; 1042s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1042s # { 1042s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1042s # if (arg_info->use_gvariant) 1042s # { 1042s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1042s # g_value_set_variant (¶mv[n], child); 1042s # n++; 1042s # } 1042s # else 1042s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1042s # g_variant_unref (child); 1042s # } 1042s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1042s # g_signal_emitv (paramv, signal_id, 0, NULL); 1042s # for (n = 0; n < num_params + 1; n++) 1042s # g_value_unset (¶mv[n]); 1042s # g_free (paramv); 1042s # } 1042s # 1042s # static void 1042s # org_project_other_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1042s # GVariant *changed_properties, 1042s # const gchar *const *invalidated_properties) 1042s # { 1042s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (_proxy); 1042s # guint n; 1042s # const gchar *key; 1042s # GVariantIter *iter; 1042s # _ExtendedGDBusPropertyInfo *info; 1042s # g_variant_get (changed_properties, "a{sv}", &iter); 1042s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1042s # { 1042s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, key); 1042s # g_datalist_remove_data (&proxy->priv->qdata, key); 1042s # if (info != NULL) 1042s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1042s # } 1042s # g_variant_iter_free (iter); 1042s # for (n = 0; invalidated_properties[n] != NULL; n++) 1042s # { 1042s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1042s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1042s # if (info != NULL) 1042s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1042s # } 1042s # } 1042s # 1042s # static void 1042s # org_project_other_callable_iface_proxy_init (OrgProjectOtherCallableIfaceProxy *proxy) 1042s # { 1042s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1042s # proxy->priv = org_project_other_callable_iface_proxy_get_instance_private (proxy); 1042s # #else 1042s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY, OrgProjectOtherCallableIfaceProxyPrivate); 1042s # #endif 1042s # 1042s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_callable_iface_interface_info ()); 1042s # } 1042s # 1042s # static void 1042s # org_project_other_callable_iface_proxy_class_init (OrgProjectOtherCallableIfaceProxyClass *klass) 1042s # { 1042s # GObjectClass *gobject_class; 1042s # GDBusProxyClass *proxy_class; 1042s # 1042s # gobject_class = G_OBJECT_CLASS (klass); 1042s # gobject_class->finalize = org_project_other_callable_iface_proxy_finalize; 1042s # gobject_class->get_property = org_project_other_callable_iface_proxy_get_property; 1042s # gobject_class->set_property = org_project_other_callable_iface_proxy_set_property; 1042s # 1042s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1042s # proxy_class->g_signal = org_project_other_callable_iface_proxy_g_signal; 1042s # proxy_class->g_properties_changed = org_project_other_callable_iface_proxy_g_properties_changed; 1042s # 1042s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1042s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceProxyPrivate)); 1042s # #endif 1042s # } 1042s # 1042s # static void 1042s # org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 1042s # { 1042s # } 1042s # 1042s # /** 1042s # * org_project_other_callable_iface_proxy_new: 1042s # * @connection: A #GDBusConnection. 1042s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1042s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1042s # * @object_path: An object path. 1042s # * @cancellable: (nullable): A #GCancellable or %NULL. 1042s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1042s # * @user_data: User data to pass to @callback. 1042s # * 1042s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new() for more details. 1042s # * 1042s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1042s # * You can then call org_project_other_callable_iface_proxy_new_finish() to get the result of the operation. 1042s # * 1042s # * See org_project_other_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1042s # */ 1042s # void 1042s # org_project_other_callable_iface_proxy_new ( 1042s # GDBusConnection *connection, 1042s # GDBusProxyFlags flags, 1042s # const gchar *name, 1042s # const gchar *object_path, 1042s # GCancellable *cancellable, 1042s # GAsyncReadyCallback callback, 1042s # gpointer user_data) 1042s # { 1042s # 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); 1042s # } 1042s # 1042s # /** 1042s # * org_project_other_callable_iface_proxy_new_finish: 1042s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new(). 1042s # * @error: Return location for error or %NULL 1042s # * 1042s # * Finishes an operation started with org_project_other_callable_iface_proxy_new(). 1042s # * 1042s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1042s # */ 1042s # OrgProjectOtherCallableIface * 1042s # org_project_other_callable_iface_proxy_new_finish ( 1042s # GAsyncResult *res, 1042s # GError **error) 1042s # { 1042s # GObject *ret; 1042s # GObject *source_object; 1042s # source_object = g_async_result_get_source_object (res); 1042s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1042s # g_object_unref (source_object); 1042s # if (ret != NULL) 1042s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1042s # else 1042s # return NULL; 1042s # } 1042s # 1042s # /** 1042s # * org_project_other_callable_iface_proxy_new_sync: 1042s # * @connection: A #GDBusConnection. 1042s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1042s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1042s # * @object_path: An object path. 1042s # * @cancellable: (nullable): A #GCancellable or %NULL. 1042s # * @error: Return location for error or %NULL 1042s # * 1042s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new_sync() for more details. 1042s # * 1042s # * The calling thread is blocked until a reply is received. 1042s # * 1042s # * See org_project_other_callable_iface_proxy_new() for the asynchronous version of this constructor. 1042s # * 1042s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1042s # */ 1042s # OrgProjectOtherCallableIface * 1042s # org_project_other_callable_iface_proxy_new_sync ( 1042s # GDBusConnection *connection, 1042s # GDBusProxyFlags flags, 1042s # const gchar *name, 1042s # const gchar *object_path, 1042s # GCancellable *cancellable, 1042s # GError **error) 1042s # { 1042s # GInitable *ret; 1042s # 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); 1042s # if (ret != NULL) 1042s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1042s # else 1042s # return NULL; 1042s # } 1042s # 1042s # 1042s # /** 1042s # * org_project_other_callable_iface_proxy_new_for_bus: 1042s # * @bus_type: A #GBusType. 1042s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1042s # * @name: A bus name (well-known or unique). 1042s # * @object_path: An object path. 1042s # * @cancellable: (nullable): A #GCancellable or %NULL. 1042s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1042s # * @user_data: User data to pass to @callback. 1042s # * 1042s # * Like org_project_other_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1042s # * 1042s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1042s # * You can then call org_project_other_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1042s # * 1042s # * See org_project_other_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1042s # */ 1042s # void 1042s # org_project_other_callable_iface_proxy_new_for_bus ( 1042s # GBusType bus_type, 1042s # GDBusProxyFlags flags, 1042s # const gchar *name, 1042s # const gchar *object_path, 1042s # GCancellable *cancellable, 1042s # GAsyncReadyCallback callback, 1042s # gpointer user_data) 1042s # { 1042s # 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); 1042s # } 1042s # 1042s # /** 1042s # * org_project_other_callable_iface_proxy_new_for_bus_finish: 1042s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new_for_bus(). 1042s # * @error: Return location for error or %NULL 1042s # * 1042s # * Finishes an operation started with org_project_other_callable_iface_proxy_new_for_bus(). 1042s # * 1042s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1042s # */ 1042s # OrgProjectOtherCallableIface * 1042s # org_project_other_callable_iface_proxy_new_for_bus_finish ( 1042s # GAsyncResult *res, 1042s # GError **error) 1042s # { 1042s # GObject *ret; 1042s # GObject *source_object; 1042s # source_object = g_async_result_get_source_object (res); 1042s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1042s # g_object_unref (source_object); 1042s # if (ret != NULL) 1042s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1042s # else 1042s # return NULL; 1042s # } 1042s # 1042s # /** 1042s # * org_project_other_callable_iface_proxy_new_for_bus_sync: 1042s # * @bus_type: A #GBusType. 1042s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1042s # * @name: A bus name (well-known or unique). 1042s # * @object_path: An object path. 1042s # * @cancellable: (nullable): A #GCancellable or %NULL. 1042s # * @error: Return location for error or %NULL 1042s # * 1042s # * Like org_project_other_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1042s # * 1042s # * The calling thread is blocked until a reply is received. 1042s # * 1042s # * See org_project_other_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1042s # * 1042s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1042s # */ 1042s # OrgProjectOtherCallableIface * 1042s # org_project_other_callable_iface_proxy_new_for_bus_sync ( 1042s # GBusType bus_type, 1042s # GDBusProxyFlags flags, 1042s # const gchar *name, 1042s # const gchar *object_path, 1042s # GCancellable *cancellable, 1042s # GError **error) 1042s # { 1042s # GInitable *ret; 1042s # 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); 1042s # if (ret != NULL) 1042s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1042s # else 1042s # return NULL; 1042s # } 1042s # 1042s # 1042s # /* ------------------------------------------------------------------------ */ 1042s # 1042s # /** 1042s # * OrgProjectOtherCallableIfaceSkeleton: 1042s # * 1042s # * The #OrgProjectOtherCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1042s # */ 1042s # 1042s # /** 1042s # * OrgProjectOtherCallableIfaceSkeletonClass: 1042s # * @parent_class: The parent class. 1042s # * 1042s # * Class structure for #OrgProjectOtherCallableIfaceSkeleton. 1042s # */ 1042s # 1042s # struct _OrgProjectOtherCallableIfaceSkeletonPrivate 1042s # { 1042s # GValue *properties; 1042s # GList *changed_properties; 1042s # GSource *changed_properties_idle_source; 1042s # GMainContext *context; 1042s # GMutex lock; 1042s # }; 1042s # 1042s # static void 1042s # _org_project_other_callable_iface_skeleton_handle_method_call ( 1042s # GDBusConnection *connection G_GNUC_UNUSED, 1042s # const gchar *sender G_GNUC_UNUSED, 1042s # const gchar *object_path G_GNUC_UNUSED, 1042s # const gchar *interface_name, 1042s # const gchar *method_name, 1042s # GVariant *parameters, 1042s # GDBusMethodInvocation *invocation, 1042s # gpointer user_data) 1042s # { 1042s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1042s # _ExtendedGDBusMethodInfo *info; 1042s # GVariantIter iter; 1042s # GVariant *child; 1042s # GValue *paramv; 1042s # gsize num_params; 1042s # guint num_extra; 1042s # gsize n; 1042s # guint signal_id; 1042s # GValue return_value = G_VALUE_INIT; 1042s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1042s # g_assert (info != NULL); 1042s # num_params = g_variant_n_children (parameters); 1042s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1042s # n = 0; 1042s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1042s # g_value_set_object (¶mv[n++], skeleton); 1042s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1042s # g_value_set_object (¶mv[n++], invocation); 1042s # if (info->pass_fdlist) 1042s # { 1042s # #ifdef G_OS_UNIX 1042s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1042s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1042s # #else 1042s # g_assert_not_reached (); 1042s # #endif 1042s # } 1042s # g_variant_iter_init (&iter, parameters); 1042s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1042s # { 1042s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1042s # if (arg_info->use_gvariant) 1042s # { 1042s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1042s # g_value_set_variant (¶mv[n], child); 1042s # n++; 1042s # } 1042s # else 1042s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1042s # g_variant_unref (child); 1042s # } 1042s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1042s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1042s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1042s # if (!g_value_get_boolean (&return_value)) 1042s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1042s # g_value_unset (&return_value); 1042s # for (n = 0; n < num_params + num_extra; n++) 1042s # g_value_unset (¶mv[n]); 1042s # g_free (paramv); 1042s # } 1042s # 1042s # static GVariant * 1042s # _org_project_other_callable_iface_skeleton_handle_get_property ( 1042s # GDBusConnection *connection G_GNUC_UNUSED, 1042s # const gchar *sender G_GNUC_UNUSED, 1042s # const gchar *object_path G_GNUC_UNUSED, 1042s # const gchar *interface_name G_GNUC_UNUSED, 1042s # const gchar *property_name, 1042s # GError **error, 1042s # gpointer user_data) 1042s # { 1042s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1042s # GValue value = G_VALUE_INIT; 1042s # GParamSpec *pspec; 1042s # _ExtendedGDBusPropertyInfo *info; 1042s # GVariant *ret; 1042s # ret = NULL; 1042s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 1042s # g_assert (info != NULL); 1042s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1042s # if (pspec == NULL) 1042s # { 1042s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1042s # } 1042s # else 1042s # { 1042s # g_value_init (&value, pspec->value_type); 1042s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1042s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1042s # g_value_unset (&value); 1042s # } 1042s # return ret; 1042s # } 1042s # 1042s # static gboolean 1042s # _org_project_other_callable_iface_skeleton_handle_set_property ( 1042s # GDBusConnection *connection G_GNUC_UNUSED, 1042s # const gchar *sender G_GNUC_UNUSED, 1042s # const gchar *object_path G_GNUC_UNUSED, 1042s # const gchar *interface_name G_GNUC_UNUSED, 1042s # const gchar *property_name, 1042s # GVariant *variant, 1042s # GError **error, 1042s # gpointer user_data) 1042s # { 1042s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1042s # GValue value = G_VALUE_INIT; 1042s # GParamSpec *pspec; 1042s # _ExtendedGDBusPropertyInfo *info; 1042s # gboolean ret; 1042s # ret = FALSE; 1042s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 1042s # g_assert (info != NULL); 1042s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1042s # if (pspec == NULL) 1042s # { 1042s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1042s # } 1042s # else 1042s # { 1042s # if (info->use_gvariant) 1042s # g_value_set_variant (&value, variant); 1042s # else 1042s # g_dbus_gvariant_to_gvalue (variant, &value); 1042s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1042s # g_value_unset (&value); 1042s # ret = TRUE; 1042s # } 1042s # return ret; 1042s # } 1042s # 1042s # static const GDBusInterfaceVTable _org_project_other_callable_iface_skeleton_vtable = 1042s # { 1042s # _org_project_other_callable_iface_skeleton_handle_method_call, 1042s # _org_project_other_callable_iface_skeleton_handle_get_property, 1042s # _org_project_other_callable_iface_skeleton_handle_set_property, 1042s # {NULL} 1042s # }; 1042s # 1042s # static GDBusInterfaceInfo * 1042s # org_project_other_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1042s # { 1042s # return org_project_other_callable_iface_interface_info (); 1042s # } 1042s # 1042s # static GDBusInterfaceVTable * 1042s # org_project_other_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1042s # { 1042s # return (GDBusInterfaceVTable *) &_org_project_other_callable_iface_skeleton_vtable; 1042s # } 1042s # 1042s # static GVariant * 1042s # org_project_other_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1042s # { 1042s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (_skeleton); 1042s # 1042s # GVariantBuilder builder; 1042s # guint n; 1042s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1042s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1042s # #else 1042s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1042s # #endif 1042s # if (_org_project_other_callable_iface_interface_info.parent_struct.properties == NULL) 1042s # goto out; 1042s # for (n = 0; _org_project_other_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1042s # { 1042s # GDBusPropertyInfo *info = _org_project_other_callable_iface_interface_info.parent_struct.properties[n]; 1042s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1042s # { 1042s # GVariant *value; 1042s # 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); 1042s # if (value != NULL) 1042s # { 1042s # g_variant_take_ref (value); 1042s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1042s # g_variant_unref (value); 1042s # } 1042s # } 1042s # } 1042s # out: 1042s # return g_variant_builder_end (&builder); 1042s # } 1042s # 1042s # static void 1042s # org_project_other_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1042s # { 1042s # } 1042s # 1042s # static void org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface); 1042s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1042s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1042s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceSkeleton) 1042s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 1042s # 1042s # #else 1042s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1042s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 1042s # 1042s # #endif 1042s # static void 1042s # org_project_other_callable_iface_skeleton_finalize (GObject *object) 1042s # { 1042s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (object); 1042s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1042s # if (skeleton->priv->changed_properties_idle_source != NULL) 1042s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1042s # g_main_context_unref (skeleton->priv->context); 1042s # g_mutex_clear (&skeleton->priv->lock); 1042s # G_OBJECT_CLASS (org_project_other_callable_iface_skeleton_parent_class)->finalize (object); 1042s # } 1042s # 1042s # static void 1042s # org_project_other_callable_iface_skeleton_init (OrgProjectOtherCallableIfaceSkeleton *skeleton) 1042s # { 1042s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1042s # skeleton->priv = org_project_other_callable_iface_skeleton_get_instance_private (skeleton); 1042s # #else 1042s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, OrgProjectOtherCallableIfaceSkeletonPrivate); 1042s # #endif 1042s # 1042s # g_mutex_init (&skeleton->priv->lock); 1042s # skeleton->priv->context = g_main_context_ref_thread_default (); 1042s # } 1042s # 1042s # static void 1042s # org_project_other_callable_iface_skeleton_class_init (OrgProjectOtherCallableIfaceSkeletonClass *klass) 1042s # { 1042s # GObjectClass *gobject_class; 1042s # GDBusInterfaceSkeletonClass *skeleton_class; 1042s # 1042s # gobject_class = G_OBJECT_CLASS (klass); 1042s # gobject_class->finalize = org_project_other_callable_iface_skeleton_finalize; 1042s # 1042s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1042s # skeleton_class->get_info = org_project_other_callable_iface_skeleton_dbus_interface_get_info; 1042s # skeleton_class->get_properties = org_project_other_callable_iface_skeleton_dbus_interface_get_properties; 1042s # skeleton_class->flush = org_project_other_callable_iface_skeleton_dbus_interface_flush; 1042s # skeleton_class->get_vtable = org_project_other_callable_iface_skeleton_dbus_interface_get_vtable; 1042s # 1042s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1042s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceSkeletonPrivate)); 1042s # #endif 1042s # } 1042s # 1042s # static void 1042s # org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 1042s # { 1042s # } 1042s # 1042s # /** 1042s # * org_project_other_callable_iface_skeleton_new: 1042s # * 1042s # * Creates a skeleton object for the D-Bus interface org.project.OtherCallableIface. 1042s # * 1042s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceSkeleton): The skeleton object. 1042s # */ 1042s # OrgProjectOtherCallableIface * 1042s # org_project_other_callable_iface_skeleton_new (void) 1042s # { 1042s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, NULL)); 1042s # } 1042s # Error: 1043s ok 10 __main__.TestCodegen.test_generate_methods_marshaller_single_typed_in_args 1043s # gdbus-codegen: /usr/bin/gdbus-codegen 1043s # tmpdir: /tmp/tmpd1ucwcbz 1043s # /tmp/tmpd1ucwcbz/tmpansuystl.xml: 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpd1ucwcbz/tmpansuystl.xml', '--output', '-', '--body'] 1043s # Return code: 0 1043s # Output: 1043s # /* 1043s # * This file is generated by gdbus-codegen, do not modify it. 1043s # * 1043s # * The license of this code is the same as for the D-Bus interface description 1043s # * it was derived from. Note that it links to GLib, so must comply with the 1043s # * LGPL linking clauses. 1043s # */ 1043s # 1043s # #ifdef HAVE_CONFIG_H 1043s # # include "config.h" 1043s # #endif 1043s # 1043s # #include 1043s # #ifdef G_OS_UNIX 1043s # # include 1043s # #endif 1043s # 1043s # #ifdef G_ENABLE_DEBUG 1043s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1043s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1043s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1043s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1043s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1043s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1043s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1043s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1043s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1043s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1043s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1043s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1043s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1043s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1043s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1043s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1043s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1043s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1043s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1043s # #else /* !G_ENABLE_DEBUG */ 1043s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1043s # * Do not access GValues directly in your code. Instead, use the 1043s # * g_value_get_*() functions 1043s # */ 1043s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1043s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1043s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1043s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1043s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1043s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1043s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1043s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1043s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1043s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1043s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1043s # #endif /* !G_ENABLE_DEBUG */ 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusArgInfo parent_struct; 1043s # gboolean use_gvariant; 1043s # } _ExtendedGDBusArgInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusMethodInfo parent_struct; 1043s # const gchar *signal_name; 1043s # gboolean pass_fdlist; 1043s # } _ExtendedGDBusMethodInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusSignalInfo parent_struct; 1043s # const gchar *signal_name; 1043s # } _ExtendedGDBusSignalInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusPropertyInfo parent_struct; 1043s # const gchar *hyphen_name; 1043s # guint use_gvariant : 1; 1043s # guint emits_changed_signal : 1; 1043s # } _ExtendedGDBusPropertyInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusInterfaceInfo parent_struct; 1043s # const gchar *hyphen_name; 1043s # } _ExtendedGDBusInterfaceInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # const _ExtendedGDBusPropertyInfo *info; 1043s # guint prop_id; 1043s # GValue orig_value; /* the value before the change */ 1043s # } ChangedProperty; 1043s # 1043s # static void 1043s # _changed_property_free (ChangedProperty *data) 1043s # { 1043s # g_value_unset (&data->orig_value); 1043s # g_free (data); 1043s # } 1043s # 1043s # static gboolean 1043s # _g_strv_equal0 (gchar **a, gchar **b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # guint n; 1043s # if (a == NULL && b == NULL) 1043s # { 1043s # ret = TRUE; 1043s # goto out; 1043s # } 1043s # if (a == NULL || b == NULL) 1043s # goto out; 1043s # if (g_strv_length (a) != g_strv_length (b)) 1043s # goto out; 1043s # for (n = 0; a[n] != NULL; n++) 1043s # if (g_strcmp0 (a[n], b[n]) != 0) 1043s # goto out; 1043s # ret = TRUE; 1043s # out: 1043s # return ret; 1043s # } 1043s # 1043s # static gboolean 1043s # _g_variant_equal0 (GVariant *a, GVariant *b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # if (a == NULL && b == NULL) 1043s # { 1043s # ret = TRUE; 1043s # goto out; 1043s # } 1043s # if (a == NULL || b == NULL) 1043s # goto out; 1043s # ret = g_variant_equal (a, b); 1043s # out: 1043s # return ret; 1043s # } 1043s # 1043s # G_GNUC_UNUSED static gboolean 1043s # _g_value_equal (const GValue *a, const GValue *b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1043s # switch (G_VALUE_TYPE (a)) 1043s # { 1043s # case G_TYPE_BOOLEAN: 1043s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1043s # break; 1043s # case G_TYPE_UCHAR: 1043s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1043s # break; 1043s # case G_TYPE_INT: 1043s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1043s # break; 1043s # case G_TYPE_UINT: 1043s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1043s # break; 1043s # case G_TYPE_INT64: 1043s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1043s # break; 1043s # case G_TYPE_UINT64: 1043s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1043s # break; 1043s # case G_TYPE_DOUBLE: 1043s # { 1043s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1043s # gdouble da = g_value_get_double (a); 1043s # gdouble db = g_value_get_double (b); 1043s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1043s # } 1043s # break; 1043s # case G_TYPE_STRING: 1043s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1043s # break; 1043s # case G_TYPE_VARIANT: 1043s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1043s # break; 1043s # default: 1043s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1043s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1043s # else 1043s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1043s # break; 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static void 1043s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN ( 1043s # GClosure *closure, 1043s # GValue *return_value, 1043s # unsigned int n_param_values, 1043s # const GValue *param_values, 1043s # void *invocation_hint G_GNUC_UNUSED, 1043s # void *marshal_data) 1043s # { 1043s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBooleanFunc) 1043s # (void *data1, 1043s # GDBusMethodInvocation *arg_method_invocation, 1043s # gboolean arg_arg_b, 1043s # void *data2); 1043s # _GDbusCodegenMarshalBoolean_ObjectBooleanFunc callback; 1043s # GCClosure *cc = (GCClosure*) closure; 1043s # void *data1, *data2; 1043s # gboolean v_return; 1043s # 1043s # g_return_if_fail (return_value != NULL); 1043s # g_return_if_fail (n_param_values == 3); 1043s # 1043s # if (G_CCLOSURE_SWAP_DATA (closure)) 1043s # { 1043s # data1 = closure->data; 1043s # data2 = g_value_peek_pointer (param_values + 0); 1043s # } 1043s # else 1043s # { 1043s # data1 = g_value_peek_pointer (param_values + 0); 1043s # data2 = closure->data; 1043s # } 1043s # 1043s # callback = (_GDbusCodegenMarshalBoolean_ObjectBooleanFunc) 1043s # (marshal_data ? marshal_data : cc->callback); 1043s # 1043s # v_return = 1043s # callback (data1, 1043s # g_marshal_value_peek_object (param_values + 1), 1043s # g_marshal_value_peek_boolean (param_values + 2), 1043s # data2); 1043s # 1043s # g_value_set_boolean (return_value, v_return); 1043s # } 1043s # 1043s # /* ------------------------------------------------------------------------ 1043s # * Code for interface org.project.UsefulInterface 1043s # * ------------------------------------------------------------------------ 1043s # */ 1043s # 1043s # /** 1043s # * SECTION:OrgProjectUsefulInterface 1043s # * @title: OrgProjectUsefulInterface 1043s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1043s # * 1043s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1043s # */ 1043s # 1043s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1043s # 1043s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_arg_b = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "arg_b", 1043s # (gchar *) "b", 1043s # NULL 1043s # }, 1043s # FALSE 1043s # }; 1043s # 1043s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_pointers[] = 1043s # { 1043s # &_org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_arg_b.parent_struct, 1043s # NULL 1043s # }; 1043s # 1043s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_b = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "SingleArgMethodB", 1043s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_pointers, 1043s # NULL, 1043s # NULL 1043s # }, 1043s # "handle-single-arg-method-b", 1043s # FALSE 1043s # }; 1043s # 1043s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1043s # { 1043s # &_org_project_useful_interface_method_info_single_arg_method_b.parent_struct, 1043s # NULL 1043s # }; 1043s # 1043s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "org.project.UsefulInterface", 1043s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1043s # NULL, 1043s # NULL, 1043s # NULL 1043s # }, 1043s # "org-project-useful-interface", 1043s # }; 1043s # 1043s # 1043s # /** 1043s # * org_project_useful_interface_interface_info: 1043s # * 1043s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1043s # * 1043s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1043s # */ 1043s # GDBusInterfaceInfo * 1043s # org_project_useful_interface_interface_info (void) 1043s # { 1043s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_override_properties: 1043s # * @klass: The class structure for a #GObject derived class. 1043s # * @property_id_begin: The property id to assign to the first overridden property. 1043s # * 1043s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1043s # * The properties are overridden in the order they are defined. 1043s # * 1043s # * Returns: The last property id. 1043s # */ 1043s # guint 1043s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1043s # { 1043s # return property_id_begin - 1; 1043s # } 1043s # 1043s # 1043s # inline static void 1043s # org_project_useful_interface_method_marshal_single_arg_method_b ( 1043s # GClosure *closure, 1043s # GValue *return_value, 1043s # unsigned int n_param_values, 1043s # const GValue *param_values, 1043s # void *invocation_hint, 1043s # void *marshal_data) 1043s # { 1043s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN (closure, 1043s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1043s # } 1043s # 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterface: 1043s # * 1043s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceIface: 1043s # * @parent_iface: The parent interface. 1043s # * @handle_single_arg_method_b: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-b signal. 1043s # * 1043s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1043s # */ 1043s # 1043s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1043s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1043s # 1043s # static void 1043s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1043s # { 1043s # /* GObject signals for incoming D-Bus method calls: */ 1043s # /** 1043s # * OrgProjectUsefulInterface::handle-single-arg-method-b: 1043s # * @object: A #OrgProjectUsefulInterface. 1043s # * @invocation: A #GDBusMethodInvocation. 1043s # * @arg_arg_b: Argument passed by remote caller. 1043s # * 1043s # * Signal emitted when a remote caller is invoking the SingleArgMethodB() D-Bus method. 1043s # * 1043s # * 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. 1043s # * 1043s # * 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. 1043s # */ 1043s # g_signal_new ("handle-single-arg-method-b", 1043s # G_TYPE_FROM_INTERFACE (iface), 1043s # G_SIGNAL_RUN_LAST, 1043s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_b), 1043s # g_signal_accumulator_true_handled, 1043s # NULL, 1043s # org_project_useful_interface_method_marshal_single_arg_method_b, 1043s # G_TYPE_BOOLEAN, 1043s # 2, 1043s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_BOOLEAN); 1043s # 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_b: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @arg_arg_b: Argument to pass with the method invocation. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Asynchronously invokes the SingleArgMethodB() D-Bus method on @proxy. 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_call_single_arg_method_b_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_call_single_arg_method_b_sync() for the synchronous, blocking version of this method. 1043s # */ 1043s # void 1043s # org_project_useful_interface_call_single_arg_method_b ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # gboolean arg_arg_b, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1043s # "SingleArgMethodB", 1043s # g_variant_new ("(b)", 1043s # arg_arg_b), 1043s # G_DBUS_CALL_FLAGS_NONE, 1043s # -1, 1043s # cancellable, 1043s # callback, 1043s # user_data); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_b_finish: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_b(). 1043s # * @error: Return location for error or %NULL. 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_b(). 1043s # * 1043s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1043s # */ 1043s # gboolean 1043s # org_project_useful_interface_call_single_arg_method_b_finish ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GVariant *_ret; 1043s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1043s # if (_ret == NULL) 1043s # goto _out; 1043s # g_variant_get (_ret, 1043s # "()"); 1043s # g_variant_unref (_ret); 1043s # _out: 1043s # return _ret != NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_b_sync: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @arg_arg_b: Argument to pass with the method invocation. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL. 1043s # * 1043s # * Synchronously invokes the SingleArgMethodB() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_call_single_arg_method_b() for the asynchronous version of this method. 1043s # * 1043s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1043s # */ 1043s # gboolean 1043s # org_project_useful_interface_call_single_arg_method_b_sync ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # gboolean arg_arg_b, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GVariant *_ret; 1043s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1043s # "SingleArgMethodB", 1043s # g_variant_new ("(b)", 1043s # arg_arg_b), 1043s # G_DBUS_CALL_FLAGS_NONE, 1043s # -1, 1043s # cancellable, 1043s # error); 1043s # if (_ret == NULL) 1043s # goto _out; 1043s # g_variant_get (_ret, 1043s # "()"); 1043s # g_variant_unref (_ret); 1043s # _out: 1043s # return _ret != NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_complete_single_arg_method_b: 1043s # * @object: A #OrgProjectUsefulInterface. 1043s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1043s # * 1043s # * 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. 1043s # * 1043s # * This method will free @invocation, you cannot use it afterwards. 1043s # */ 1043s # void 1043s # org_project_useful_interface_complete_single_arg_method_b ( 1043s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1043s # GDBusMethodInvocation *invocation) 1043s # { 1043s # g_dbus_method_invocation_return_value (invocation, 1043s # g_variant_new ("()")); 1043s # } 1043s # 1043s # /* ------------------------------------------------------------------------ */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceProxy: 1043s # * 1043s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceProxyClass: 1043s # * @parent_class: The parent class. 1043s # * 1043s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1043s # */ 1043s # 1043s # struct _OrgProjectUsefulInterfaceProxyPrivate 1043s # { 1043s # GData *qdata; 1043s # }; 1043s # 1043s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1043s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1043s # 1043s # #else 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1043s # 1043s # #endif 1043s # static void 1043s # org_project_useful_interface_proxy_finalize (GObject *object) 1043s # { 1043s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1043s # g_datalist_clear (&proxy->priv->qdata); 1043s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1043s # guint prop_id G_GNUC_UNUSED, 1043s # GValue *value G_GNUC_UNUSED, 1043s # GParamSpec *pspec G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1043s # guint prop_id G_GNUC_UNUSED, 1043s # const GValue *value G_GNUC_UNUSED, 1043s # GParamSpec *pspec G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1043s # const gchar *sender_name G_GNUC_UNUSED, 1043s # const gchar *signal_name, 1043s # GVariant *parameters) 1043s # { 1043s # _ExtendedGDBusSignalInfo *info; 1043s # GVariantIter iter; 1043s # GVariant *child; 1043s # GValue *paramv; 1043s # gsize num_params; 1043s # gsize n; 1043s # guint signal_id; 1043s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1043s # if (info == NULL) 1043s # return; 1043s # num_params = g_variant_n_children (parameters); 1043s # paramv = g_new0 (GValue, num_params + 1); 1043s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_set_object (¶mv[0], proxy); 1043s # g_variant_iter_init (&iter, parameters); 1043s # n = 1; 1043s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1043s # { 1043s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1043s # if (arg_info->use_gvariant) 1043s # { 1043s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1043s # g_value_set_variant (¶mv[n], child); 1043s # n++; 1043s # } 1043s # else 1043s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1043s # g_variant_unref (child); 1043s # } 1043s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_signal_emitv (paramv, signal_id, 0, NULL); 1043s # for (n = 0; n < num_params + 1; n++) 1043s # g_value_unset (¶mv[n]); 1043s # g_free (paramv); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1043s # GVariant *changed_properties, 1043s # const gchar *const *invalidated_properties) 1043s # { 1043s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1043s # guint n; 1043s # const gchar *key; 1043s # GVariantIter *iter; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # g_variant_get (changed_properties, "a{sv}", &iter); 1043s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1043s # { 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1043s # g_datalist_remove_data (&proxy->priv->qdata, key); 1043s # if (info != NULL) 1043s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1043s # } 1043s # g_variant_iter_free (iter); 1043s # for (n = 0; invalidated_properties[n] != NULL; n++) 1043s # { 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1043s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1043s # if (info != NULL) 1043s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1043s # } 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1043s # { 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1043s # #else 1043s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1043s # #endif 1043s # 1043s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1043s # { 1043s # GObjectClass *gobject_class; 1043s # GDBusProxyClass *proxy_class; 1043s # 1043s # gobject_class = G_OBJECT_CLASS (klass); 1043s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1043s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1043s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1043s # 1043s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1043s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1043s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1043s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1043s # #endif 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new: 1043s # * @connection: A #GDBusConnection. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1043s # * 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1043s # */ 1043s # void 1043s # org_project_useful_interface_proxy_new ( 1043s # GDBusConnection *connection, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_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); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_finish: 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_finish ( 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GObject *ret; 1043s # GObject *source_object; 1043s # source_object = g_async_result_get_source_object (res); 1043s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1043s # g_object_unref (source_object); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_sync: 1043s # * @connection: A #GDBusConnection. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1043s # * 1043s # * The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_sync ( 1043s # GDBusConnection *connection, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GInitable *ret; 1043s # 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); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus: 1043s # * @bus_type: A #GBusType. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: A bus name (well-known or unique). 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1043s # * 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1043s # */ 1043s # void 1043s # org_project_useful_interface_proxy_new_for_bus ( 1043s # GBusType bus_type, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_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); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus_finish: 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_for_bus_finish ( 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GObject *ret; 1043s # GObject *source_object; 1043s # source_object = g_async_result_get_source_object (res); 1043s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1043s # g_object_unref (source_object); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus_sync: 1043s # * @bus_type: A #GBusType. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: A bus name (well-known or unique). 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1043s # * 1043s # * The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_for_bus_sync ( 1043s # GBusType bus_type, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GInitable *ret; 1043s # 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); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # 1043s # /* ------------------------------------------------------------------------ */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceSkeleton: 1043s # * 1043s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceSkeletonClass: 1043s # * @parent_class: The parent class. 1043s # * 1043s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1043s # */ 1043s # 1043s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1043s # { 1043s # GValue *properties; 1043s # GList *changed_properties; 1043s # GSource *changed_properties_idle_source; 1043s # GMainContext *context; 1043s # GMutex lock; 1043s # }; 1043s # 1043s # static void 1043s # _org_project_useful_interface_skeleton_handle_method_call ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name, 1043s # const gchar *method_name, 1043s # GVariant *parameters, 1043s # GDBusMethodInvocation *invocation, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # _ExtendedGDBusMethodInfo *info; 1043s # GVariantIter iter; 1043s # GVariant *child; 1043s # GValue *paramv; 1043s # gsize num_params; 1043s # guint num_extra; 1043s # gsize n; 1043s # guint signal_id; 1043s # GValue return_value = G_VALUE_INIT; 1043s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1043s # g_assert (info != NULL); 1043s # num_params = g_variant_n_children (parameters); 1043s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1043s # n = 0; 1043s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_set_object (¶mv[n++], skeleton); 1043s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1043s # g_value_set_object (¶mv[n++], invocation); 1043s # if (info->pass_fdlist) 1043s # { 1043s # #ifdef G_OS_UNIX 1043s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1043s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1043s # #else 1043s # g_assert_not_reached (); 1043s # #endif 1043s # } 1043s # g_variant_iter_init (&iter, parameters); 1043s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1043s # { 1043s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1043s # if (arg_info->use_gvariant) 1043s # { 1043s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1043s # g_value_set_variant (¶mv[n], child); 1043s # n++; 1043s # } 1043s # else 1043s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1043s # g_variant_unref (child); 1043s # } 1043s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1043s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1043s # if (!g_value_get_boolean (&return_value)) 1043s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1043s # g_value_unset (&return_value); 1043s # for (n = 0; n < num_params + num_extra; n++) 1043s # g_value_unset (¶mv[n]); 1043s # g_free (paramv); 1043s # } 1043s # 1043s # static GVariant * 1043s # _org_project_useful_interface_skeleton_handle_get_property ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name G_GNUC_UNUSED, 1043s # const gchar *property_name, 1043s # GError **error, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # GValue value = G_VALUE_INIT; 1043s # GParamSpec *pspec; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # GVariant *ret; 1043s # ret = NULL; 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1043s # g_assert (info != NULL); 1043s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1043s # if (pspec == NULL) 1043s # { 1043s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1043s # } 1043s # else 1043s # { 1043s # g_value_init (&value, pspec->value_type); 1043s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1043s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1043s # g_value_unset (&value); 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static gboolean 1043s # _org_project_useful_interface_skeleton_handle_set_property ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name G_GNUC_UNUSED, 1043s # const gchar *property_name, 1043s # GVariant *variant, 1043s # GError **error, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # GValue value = G_VALUE_INIT; 1043s # GParamSpec *pspec; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # gboolean ret; 1043s # ret = FALSE; 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1043s # g_assert (info != NULL); 1043s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1043s # if (pspec == NULL) 1043s # { 1043s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1043s # } 1043s # else 1043s # { 1043s # if (info->use_gvariant) 1043s # g_value_set_variant (&value, variant); 1043s # else 1043s # g_dbus_gvariant_to_gvalue (variant, &value); 1043s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1043s # g_value_unset (&value); 1043s # ret = TRUE; 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1043s # { 1043s # _org_project_useful_interface_skeleton_handle_method_call, 1043s # _org_project_useful_interface_skeleton_handle_get_property, 1043s # _org_project_useful_interface_skeleton_handle_set_property, 1043s # {NULL} 1043s # }; 1043s # 1043s # static GDBusInterfaceInfo * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1043s # { 1043s # return org_project_useful_interface_interface_info (); 1043s # } 1043s # 1043s # static GDBusInterfaceVTable * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1043s # { 1043s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1043s # } 1043s # 1043s # static GVariant * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1043s # 1043s # GVariantBuilder builder; 1043s # guint n; 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1043s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1043s # #else 1043s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1043s # #endif 1043s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1043s # goto out; 1043s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1043s # { 1043s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1043s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1043s # { 1043s # GVariant *value; 1043s # 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); 1043s # if (value != NULL) 1043s # { 1043s # g_variant_take_ref (value); 1043s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1043s # g_variant_unref (value); 1043s # } 1043s # } 1043s # } 1043s # out: 1043s # return g_variant_builder_end (&builder); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1043s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1043s # 1043s # #else 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1043s # 1043s # #endif 1043s # static void 1043s # org_project_useful_interface_skeleton_finalize (GObject *object) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1043s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1043s # if (skeleton->priv->changed_properties_idle_source != NULL) 1043s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1043s # g_main_context_unref (skeleton->priv->context); 1043s # g_mutex_clear (&skeleton->priv->lock); 1043s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1043s # { 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1043s # #else 1043s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1043s # #endif 1043s # 1043s # g_mutex_init (&skeleton->priv->lock); 1043s # skeleton->priv->context = g_main_context_ref_thread_default (); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1043s # { 1043s # GObjectClass *gobject_class; 1043s # GDBusInterfaceSkeletonClass *skeleton_class; 1043s # 1043s # gobject_class = G_OBJECT_CLASS (klass); 1043s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1043s # 1043s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1043s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1043s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1043s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1043s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1043s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1043s # #endif 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_skeleton_new: 1043s # * 1043s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_skeleton_new (void) 1043s # { 1043s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1043s # } 1043s # Error: 1043s # 1043s # /tmp/tmpd1ucwcbz/tmp1jzhxet4.xml: 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpd1ucwcbz/tmp1jzhxet4.xml', '--output', '-', '--body'] 1043s # Return code: 0 1043s # Output: 1043s # /* 1043s # * This file is generated by gdbus-codegen, do not modify it. 1043s # * 1043s # * The license of this code is the same as for the D-Bus interface description 1043s # * it was derived from. Note that it links to GLib, so must comply with the 1043s # * LGPL linking clauses. 1043s # */ 1043s # 1043s # #ifdef HAVE_CONFIG_H 1043s # # include "config.h" 1043s # #endif 1043s # 1043s # #include 1043s # #ifdef G_OS_UNIX 1043s # # include 1043s # #endif 1043s # 1043s # #ifdef G_ENABLE_DEBUG 1043s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1043s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1043s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1043s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1043s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1043s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1043s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1043s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1043s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1043s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1043s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1043s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1043s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1043s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1043s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1043s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1043s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1043s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1043s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1043s # #else /* !G_ENABLE_DEBUG */ 1043s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1043s # * Do not access GValues directly in your code. Instead, use the 1043s # * g_value_get_*() functions 1043s # */ 1043s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1043s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1043s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1043s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1043s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1043s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1043s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1043s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1043s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1043s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1043s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1043s # #endif /* !G_ENABLE_DEBUG */ 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusArgInfo parent_struct; 1043s # gboolean use_gvariant; 1043s # } _ExtendedGDBusArgInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusMethodInfo parent_struct; 1043s # const gchar *signal_name; 1043s # gboolean pass_fdlist; 1043s # } _ExtendedGDBusMethodInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusSignalInfo parent_struct; 1043s # const gchar *signal_name; 1043s # } _ExtendedGDBusSignalInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusPropertyInfo parent_struct; 1043s # const gchar *hyphen_name; 1043s # guint use_gvariant : 1; 1043s # guint emits_changed_signal : 1; 1043s # } _ExtendedGDBusPropertyInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusInterfaceInfo parent_struct; 1043s # const gchar *hyphen_name; 1043s # } _ExtendedGDBusInterfaceInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # const _ExtendedGDBusPropertyInfo *info; 1043s # guint prop_id; 1043s # GValue orig_value; /* the value before the change */ 1043s # } ChangedProperty; 1043s # 1043s # static void 1043s # _changed_property_free (ChangedProperty *data) 1043s # { 1043s # g_value_unset (&data->orig_value); 1043s # g_free (data); 1043s # } 1043s # 1043s # static gboolean 1043s # _g_strv_equal0 (gchar **a, gchar **b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # guint n; 1043s # if (a == NULL && b == NULL) 1043s # { 1043s # ret = TRUE; 1043s # goto out; 1043s # } 1043s # if (a == NULL || b == NULL) 1043s # goto out; 1043s # if (g_strv_length (a) != g_strv_length (b)) 1043s # goto out; 1043s # for (n = 0; a[n] != NULL; n++) 1043s # if (g_strcmp0 (a[n], b[n]) != 0) 1043s # goto out; 1043s # ret = TRUE; 1043s # out: 1043s # return ret; 1043s # } 1043s # 1043s # static gboolean 1043s # _g_variant_equal0 (GVariant *a, GVariant *b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # if (a == NULL && b == NULL) 1043s # { 1043s # ret = TRUE; 1043s # goto out; 1043s # } 1043s # if (a == NULL || b == NULL) 1043s # goto out; 1043s # ret = g_variant_equal (a, b); 1043s # out: 1043s # return ret; 1043s # } 1043s # 1043s # G_GNUC_UNUSED static gboolean 1043s # _g_value_equal (const GValue *a, const GValue *b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1043s # switch (G_VALUE_TYPE (a)) 1043s # { 1043s # case G_TYPE_BOOLEAN: 1043s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1043s # break; 1043s # case G_TYPE_UCHAR: 1043s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1043s # break; 1043s # case G_TYPE_INT: 1043s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1043s # break; 1043s # case G_TYPE_UINT: 1043s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1043s # break; 1043s # case G_TYPE_INT64: 1043s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1043s # break; 1043s # case G_TYPE_UINT64: 1043s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1043s # break; 1043s # case G_TYPE_DOUBLE: 1043s # { 1043s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1043s # gdouble da = g_value_get_double (a); 1043s # gdouble db = g_value_get_double (b); 1043s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1043s # } 1043s # break; 1043s # case G_TYPE_STRING: 1043s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1043s # break; 1043s # case G_TYPE_VARIANT: 1043s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1043s # break; 1043s # default: 1043s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1043s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1043s # else 1043s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1043s # break; 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static void 1043s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UCHAR ( 1043s # GClosure *closure, 1043s # GValue *return_value, 1043s # unsigned int n_param_values, 1043s # const GValue *param_values, 1043s # void *invocation_hint G_GNUC_UNUSED, 1043s # void *marshal_data) 1043s # { 1043s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUcharFunc) 1043s # (void *data1, 1043s # GDBusMethodInvocation *arg_method_invocation, 1043s # guchar arg_arg_y, 1043s # void *data2); 1043s # _GDbusCodegenMarshalBoolean_ObjectUcharFunc callback; 1043s # GCClosure *cc = (GCClosure*) closure; 1043s # void *data1, *data2; 1043s # gboolean v_return; 1043s # 1043s # g_return_if_fail (return_value != NULL); 1043s # g_return_if_fail (n_param_values == 3); 1043s # 1043s # if (G_CCLOSURE_SWAP_DATA (closure)) 1043s # { 1043s # data1 = closure->data; 1043s # data2 = g_value_peek_pointer (param_values + 0); 1043s # } 1043s # else 1043s # { 1043s # data1 = g_value_peek_pointer (param_values + 0); 1043s # data2 = closure->data; 1043s # } 1043s # 1043s # callback = (_GDbusCodegenMarshalBoolean_ObjectUcharFunc) 1043s # (marshal_data ? marshal_data : cc->callback); 1043s # 1043s # v_return = 1043s # callback (data1, 1043s # g_marshal_value_peek_object (param_values + 1), 1043s # g_marshal_value_peek_uchar (param_values + 2), 1043s # data2); 1043s # 1043s # g_value_set_boolean (return_value, v_return); 1043s # } 1043s # 1043s # /* ------------------------------------------------------------------------ 1043s # * Code for interface org.project.UsefulInterface 1043s # * ------------------------------------------------------------------------ 1043s # */ 1043s # 1043s # /** 1043s # * SECTION:OrgProjectUsefulInterface 1043s # * @title: OrgProjectUsefulInterface 1043s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1043s # * 1043s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1043s # */ 1043s # 1043s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1043s # 1043s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_arg_y = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "arg_y", 1043s # (gchar *) "y", 1043s # NULL 1043s # }, 1043s # FALSE 1043s # }; 1043s # 1043s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_pointers[] = 1043s # { 1043s # &_org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_arg_y.parent_struct, 1043s # NULL 1043s # }; 1043s # 1043s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_y = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "SingleArgMethodY", 1043s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_pointers, 1043s # NULL, 1043s # NULL 1043s # }, 1043s # "handle-single-arg-method-y", 1043s # FALSE 1043s # }; 1043s # 1043s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1043s # { 1043s # &_org_project_useful_interface_method_info_single_arg_method_y.parent_struct, 1043s # NULL 1043s # }; 1043s # 1043s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "org.project.UsefulInterface", 1043s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1043s # NULL, 1043s # NULL, 1043s # NULL 1043s # }, 1043s # "org-project-useful-interface", 1043s # }; 1043s # 1043s # 1043s # /** 1043s # * org_project_useful_interface_interface_info: 1043s # * 1043s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1043s # * 1043s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1043s # */ 1043s # GDBusInterfaceInfo * 1043s # org_project_useful_interface_interface_info (void) 1043s # { 1043s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_override_properties: 1043s # * @klass: The class structure for a #GObject derived class. 1043s # * @property_id_begin: The property id to assign to the first overridden property. 1043s # * 1043s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1043s # * The properties are overridden in the order they are defined. 1043s # * 1043s # * Returns: The last property id. 1043s # */ 1043s # guint 1043s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1043s # { 1043s # return property_id_begin - 1; 1043s # } 1043s # 1043s # 1043s # inline static void 1043s # org_project_useful_interface_method_marshal_single_arg_method_y ( 1043s # GClosure *closure, 1043s # GValue *return_value, 1043s # unsigned int n_param_values, 1043s # const GValue *param_values, 1043s # void *invocation_hint, 1043s # void *marshal_data) 1043s # { 1043s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UCHAR (closure, 1043s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1043s # } 1043s # 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterface: 1043s # * 1043s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceIface: 1043s # * @parent_iface: The parent interface. 1043s # * @handle_single_arg_method_y: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-y signal. 1043s # * 1043s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1043s # */ 1043s # 1043s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1043s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1043s # 1043s # static void 1043s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1043s # { 1043s # /* GObject signals for incoming D-Bus method calls: */ 1043s # /** 1043s # * OrgProjectUsefulInterface::handle-single-arg-method-y: 1043s # * @object: A #OrgProjectUsefulInterface. 1043s # * @invocation: A #GDBusMethodInvocation. 1043s # * @arg_arg_y: Argument passed by remote caller. 1043s # * 1043s # * Signal emitted when a remote caller is invoking the SingleArgMethodY() D-Bus method. 1043s # * 1043s # * 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. 1043s # * 1043s # * 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. 1043s # */ 1043s # g_signal_new ("handle-single-arg-method-y", 1043s # G_TYPE_FROM_INTERFACE (iface), 1043s # G_SIGNAL_RUN_LAST, 1043s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_y), 1043s # g_signal_accumulator_true_handled, 1043s # NULL, 1043s # org_project_useful_interface_method_marshal_single_arg_method_y, 1043s # G_TYPE_BOOLEAN, 1043s # 2, 1043s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UCHAR); 1043s # 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_y: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @arg_arg_y: Argument to pass with the method invocation. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Asynchronously invokes the SingleArgMethodY() D-Bus method on @proxy. 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_call_single_arg_method_y_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_call_single_arg_method_y_sync() for the synchronous, blocking version of this method. 1043s # */ 1043s # void 1043s # org_project_useful_interface_call_single_arg_method_y ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # guchar arg_arg_y, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1043s # "SingleArgMethodY", 1043s # g_variant_new ("(y)", 1043s # arg_arg_y), 1043s # G_DBUS_CALL_FLAGS_NONE, 1043s # -1, 1043s # cancellable, 1043s # callback, 1043s # user_data); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_y_finish: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_y(). 1043s # * @error: Return location for error or %NULL. 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_y(). 1043s # * 1043s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1043s # */ 1043s # gboolean 1043s # org_project_useful_interface_call_single_arg_method_y_finish ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GVariant *_ret; 1043s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1043s # if (_ret == NULL) 1043s # goto _out; 1043s # g_variant_get (_ret, 1043s # "()"); 1043s # g_variant_unref (_ret); 1043s # _out: 1043s # return _ret != NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_y_sync: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @arg_arg_y: Argument to pass with the method invocation. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL. 1043s # * 1043s # * Synchronously invokes the SingleArgMethodY() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_call_single_arg_method_y() for the asynchronous version of this method. 1043s # * 1043s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1043s # */ 1043s # gboolean 1043s # org_project_useful_interface_call_single_arg_method_y_sync ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # guchar arg_arg_y, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GVariant *_ret; 1043s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1043s # "SingleArgMethodY", 1043s # g_variant_new ("(y)", 1043s # arg_arg_y), 1043s # G_DBUS_CALL_FLAGS_NONE, 1043s # -1, 1043s # cancellable, 1043s # error); 1043s # if (_ret == NULL) 1043s # goto _out; 1043s # g_variant_get (_ret, 1043s # "()"); 1043s # g_variant_unref (_ret); 1043s # _out: 1043s # return _ret != NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_complete_single_arg_method_y: 1043s # * @object: A #OrgProjectUsefulInterface. 1043s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1043s # * 1043s # * 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. 1043s # * 1043s # * This method will free @invocation, you cannot use it afterwards. 1043s # */ 1043s # void 1043s # org_project_useful_interface_complete_single_arg_method_y ( 1043s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1043s # GDBusMethodInvocation *invocation) 1043s # { 1043s # g_dbus_method_invocation_return_value (invocation, 1043s # g_variant_new ("()")); 1043s # } 1043s # 1043s # /* ------------------------------------------------------------------------ */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceProxy: 1043s # * 1043s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceProxyClass: 1043s # * @parent_class: The parent class. 1043s # * 1043s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1043s # */ 1043s # 1043s # struct _OrgProjectUsefulInterfaceProxyPrivate 1043s # { 1043s # GData *qdata; 1043s # }; 1043s # 1043s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1043s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1043s # 1043s # #else 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1043s # 1043s # #endif 1043s # static void 1043s # org_project_useful_interface_proxy_finalize (GObject *object) 1043s # { 1043s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1043s # g_datalist_clear (&proxy->priv->qdata); 1043s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1043s # guint prop_id G_GNUC_UNUSED, 1043s # GValue *value G_GNUC_UNUSED, 1043s # GParamSpec *pspec G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1043s # guint prop_id G_GNUC_UNUSED, 1043s # const GValue *value G_GNUC_UNUSED, 1043s # GParamSpec *pspec G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1043s # const gchar *sender_name G_GNUC_UNUSED, 1043s # const gchar *signal_name, 1043s # GVariant *parameters) 1043s # { 1043s # _ExtendedGDBusSignalInfo *info; 1043s # GVariantIter iter; 1043s # GVariant *child; 1043s # GValue *paramv; 1043s # gsize num_params; 1043s # gsize n; 1043s # guint signal_id; 1043s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1043s # if (info == NULL) 1043s # return; 1043s # num_params = g_variant_n_children (parameters); 1043s # paramv = g_new0 (GValue, num_params + 1); 1043s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_set_object (¶mv[0], proxy); 1043s # g_variant_iter_init (&iter, parameters); 1043s # n = 1; 1043s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1043s # { 1043s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1043s # if (arg_info->use_gvariant) 1043s # { 1043s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1043s # g_value_set_variant (¶mv[n], child); 1043s # n++; 1043s # } 1043s # else 1043s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1043s # g_variant_unref (child); 1043s # } 1043s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_signal_emitv (paramv, signal_id, 0, NULL); 1043s # for (n = 0; n < num_params + 1; n++) 1043s # g_value_unset (¶mv[n]); 1043s # g_free (paramv); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1043s # GVariant *changed_properties, 1043s # const gchar *const *invalidated_properties) 1043s # { 1043s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1043s # guint n; 1043s # const gchar *key; 1043s # GVariantIter *iter; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # g_variant_get (changed_properties, "a{sv}", &iter); 1043s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1043s # { 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1043s # g_datalist_remove_data (&proxy->priv->qdata, key); 1043s # if (info != NULL) 1043s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1043s # } 1043s # g_variant_iter_free (iter); 1043s # for (n = 0; invalidated_properties[n] != NULL; n++) 1043s # { 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1043s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1043s # if (info != NULL) 1043s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1043s # } 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1043s # { 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1043s # #else 1043s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1043s # #endif 1043s # 1043s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1043s # { 1043s # GObjectClass *gobject_class; 1043s # GDBusProxyClass *proxy_class; 1043s # 1043s # gobject_class = G_OBJECT_CLASS (klass); 1043s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1043s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1043s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1043s # 1043s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1043s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1043s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1043s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1043s # #endif 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new: 1043s # * @connection: A #GDBusConnection. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1043s # * 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1043s # */ 1043s # void 1043s # org_project_useful_interface_proxy_new ( 1043s # GDBusConnection *connection, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_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); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_finish: 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_finish ( 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GObject *ret; 1043s # GObject *source_object; 1043s # source_object = g_async_result_get_source_object (res); 1043s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1043s # g_object_unref (source_object); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_sync: 1043s # * @connection: A #GDBusConnection. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1043s # * 1043s # * The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_sync ( 1043s # GDBusConnection *connection, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GInitable *ret; 1043s # 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); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus: 1043s # * @bus_type: A #GBusType. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: A bus name (well-known or unique). 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1043s # * 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1043s # */ 1043s # void 1043s # org_project_useful_interface_proxy_new_for_bus ( 1043s # GBusType bus_type, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_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); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus_finish: 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_for_bus_finish ( 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GObject *ret; 1043s # GObject *source_object; 1043s # source_object = g_async_result_get_source_object (res); 1043s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1043s # g_object_unref (source_object); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus_sync: 1043s # * @bus_type: A #GBusType. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: A bus name (well-known or unique). 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1043s # * 1043s # * The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_for_bus_sync ( 1043s # GBusType bus_type, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GInitable *ret; 1043s # 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); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # 1043s # /* ------------------------------------------------------------------------ */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceSkeleton: 1043s # * 1043s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceSkeletonClass: 1043s # * @parent_class: The parent class. 1043s # * 1043s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1043s # */ 1043s # 1043s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1043s # { 1043s # GValue *properties; 1043s # GList *changed_properties; 1043s # GSource *changed_properties_idle_source; 1043s # GMainContext *context; 1043s # GMutex lock; 1043s # }; 1043s # 1043s # static void 1043s # _org_project_useful_interface_skeleton_handle_method_call ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name, 1043s # const gchar *method_name, 1043s # GVariant *parameters, 1043s # GDBusMethodInvocation *invocation, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # _ExtendedGDBusMethodInfo *info; 1043s # GVariantIter iter; 1043s # GVariant *child; 1043s # GValue *paramv; 1043s # gsize num_params; 1043s # guint num_extra; 1043s # gsize n; 1043s # guint signal_id; 1043s # GValue return_value = G_VALUE_INIT; 1043s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1043s # g_assert (info != NULL); 1043s # num_params = g_variant_n_children (parameters); 1043s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1043s # n = 0; 1043s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_set_object (¶mv[n++], skeleton); 1043s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1043s # g_value_set_object (¶mv[n++], invocation); 1043s # if (info->pass_fdlist) 1043s # { 1043s # #ifdef G_OS_UNIX 1043s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1043s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1043s # #else 1043s # g_assert_not_reached (); 1043s # #endif 1043s # } 1043s # g_variant_iter_init (&iter, parameters); 1043s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1043s # { 1043s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1043s # if (arg_info->use_gvariant) 1043s # { 1043s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1043s # g_value_set_variant (¶mv[n], child); 1043s # n++; 1043s # } 1043s # else 1043s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1043s # g_variant_unref (child); 1043s # } 1043s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1043s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1043s # if (!g_value_get_boolean (&return_value)) 1043s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1043s # g_value_unset (&return_value); 1043s # for (n = 0; n < num_params + num_extra; n++) 1043s # g_value_unset (¶mv[n]); 1043s # g_free (paramv); 1043s # } 1043s # 1043s # static GVariant * 1043s # _org_project_useful_interface_skeleton_handle_get_property ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name G_GNUC_UNUSED, 1043s # const gchar *property_name, 1043s # GError **error, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # GValue value = G_VALUE_INIT; 1043s # GParamSpec *pspec; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # GVariant *ret; 1043s # ret = NULL; 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1043s # g_assert (info != NULL); 1043s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1043s # if (pspec == NULL) 1043s # { 1043s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1043s # } 1043s # else 1043s # { 1043s # g_value_init (&value, pspec->value_type); 1043s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1043s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1043s # g_value_unset (&value); 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static gboolean 1043s # _org_project_useful_interface_skeleton_handle_set_property ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name G_GNUC_UNUSED, 1043s # const gchar *property_name, 1043s # GVariant *variant, 1043s # GError **error, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # GValue value = G_VALUE_INIT; 1043s # GParamSpec *pspec; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # gboolean ret; 1043s # ret = FALSE; 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1043s # g_assert (info != NULL); 1043s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1043s # if (pspec == NULL) 1043s # { 1043s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1043s # } 1043s # else 1043s # { 1043s # if (info->use_gvariant) 1043s # g_value_set_variant (&value, variant); 1043s # else 1043s # g_dbus_gvariant_to_gvalue (variant, &value); 1043s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1043s # g_value_unset (&value); 1043s # ret = TRUE; 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1043s # { 1043s # _org_project_useful_interface_skeleton_handle_method_call, 1043s # _org_project_useful_interface_skeleton_handle_get_property, 1043s # _org_project_useful_interface_skeleton_handle_set_property, 1043s # {NULL} 1043s # }; 1043s # 1043s # static GDBusInterfaceInfo * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1043s # { 1043s # return org_project_useful_interface_interface_info (); 1043s # } 1043s # 1043s # static GDBusInterfaceVTable * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1043s # { 1043s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1043s # } 1043s # 1043s # static GVariant * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1043s # 1043s # GVariantBuilder builder; 1043s # guint n; 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1043s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1043s # #else 1043s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1043s # #endif 1043s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1043s # goto out; 1043s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1043s # { 1043s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1043s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1043s # { 1043s # GVariant *value; 1043s # 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); 1043s # if (value != NULL) 1043s # { 1043s # g_variant_take_ref (value); 1043s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1043s # g_variant_unref (value); 1043s # } 1043s # } 1043s # } 1043s # out: 1043s # return g_variant_builder_end (&builder); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1043s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1043s # 1043s # #else 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1043s # 1043s # #endif 1043s # static void 1043s # org_project_useful_interface_skeleton_finalize (GObject *object) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1043s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1043s # if (skeleton->priv->changed_properties_idle_source != NULL) 1043s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1043s # g_main_context_unref (skeleton->priv->context); 1043s # g_mutex_clear (&skeleton->priv->lock); 1043s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1043s # { 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1043s # #else 1043s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1043s # #endif 1043s # 1043s # g_mutex_init (&skeleton->priv->lock); 1043s # skeleton->priv->context = g_main_context_ref_thread_default (); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1043s # { 1043s # GObjectClass *gobject_class; 1043s # GDBusInterfaceSkeletonClass *skeleton_class; 1043s # 1043s # gobject_class = G_OBJECT_CLASS (klass); 1043s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1043s # 1043s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1043s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1043s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1043s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1043s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1043s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1043s # #endif 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_skeleton_new: 1043s # * 1043s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_skeleton_new (void) 1043s # { 1043s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1043s # } 1043s # Error: 1043s # 1043s # /tmp/tmpd1ucwcbz/tmp8kn_2ln2.xml: 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpd1ucwcbz/tmp8kn_2ln2.xml', '--output', '-', '--body'] 1043s # Return code: 0 1043s # Output: 1043s # /* 1043s # * This file is generated by gdbus-codegen, do not modify it. 1043s # * 1043s # * The license of this code is the same as for the D-Bus interface description 1043s # * it was derived from. Note that it links to GLib, so must comply with the 1043s # * LGPL linking clauses. 1043s # */ 1043s # 1043s # #ifdef HAVE_CONFIG_H 1043s # # include "config.h" 1043s # #endif 1043s # 1043s # #include 1043s # #ifdef G_OS_UNIX 1043s # # include 1043s # #endif 1043s # 1043s # #ifdef G_ENABLE_DEBUG 1043s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1043s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1043s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1043s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1043s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1043s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1043s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1043s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1043s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1043s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1043s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1043s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1043s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1043s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1043s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1043s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1043s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1043s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1043s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1043s # #else /* !G_ENABLE_DEBUG */ 1043s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1043s # * Do not access GValues directly in your code. Instead, use the 1043s # * g_value_get_*() functions 1043s # */ 1043s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1043s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1043s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1043s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1043s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1043s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1043s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1043s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1043s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1043s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1043s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1043s # #endif /* !G_ENABLE_DEBUG */ 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusArgInfo parent_struct; 1043s # gboolean use_gvariant; 1043s # } _ExtendedGDBusArgInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusMethodInfo parent_struct; 1043s # const gchar *signal_name; 1043s # gboolean pass_fdlist; 1043s # } _ExtendedGDBusMethodInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusSignalInfo parent_struct; 1043s # const gchar *signal_name; 1043s # } _ExtendedGDBusSignalInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusPropertyInfo parent_struct; 1043s # const gchar *hyphen_name; 1043s # guint use_gvariant : 1; 1043s # guint emits_changed_signal : 1; 1043s # } _ExtendedGDBusPropertyInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusInterfaceInfo parent_struct; 1043s # const gchar *hyphen_name; 1043s # } _ExtendedGDBusInterfaceInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # const _ExtendedGDBusPropertyInfo *info; 1043s # guint prop_id; 1043s # GValue orig_value; /* the value before the change */ 1043s # } ChangedProperty; 1043s # 1043s # static void 1043s # _changed_property_free (ChangedProperty *data) 1043s # { 1043s # g_value_unset (&data->orig_value); 1043s # g_free (data); 1043s # } 1043s # 1043s # static gboolean 1043s # _g_strv_equal0 (gchar **a, gchar **b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # guint n; 1043s # if (a == NULL && b == NULL) 1043s # { 1043s # ret = TRUE; 1043s # goto out; 1043s # } 1043s # if (a == NULL || b == NULL) 1043s # goto out; 1043s # if (g_strv_length (a) != g_strv_length (b)) 1043s # goto out; 1043s # for (n = 0; a[n] != NULL; n++) 1043s # if (g_strcmp0 (a[n], b[n]) != 0) 1043s # goto out; 1043s # ret = TRUE; 1043s # out: 1043s # return ret; 1043s # } 1043s # 1043s # static gboolean 1043s # _g_variant_equal0 (GVariant *a, GVariant *b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # if (a == NULL && b == NULL) 1043s # { 1043s # ret = TRUE; 1043s # goto out; 1043s # } 1043s # if (a == NULL || b == NULL) 1043s # goto out; 1043s # ret = g_variant_equal (a, b); 1043s # out: 1043s # return ret; 1043s # } 1043s # 1043s # G_GNUC_UNUSED static gboolean 1043s # _g_value_equal (const GValue *a, const GValue *b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1043s # switch (G_VALUE_TYPE (a)) 1043s # { 1043s # case G_TYPE_BOOLEAN: 1043s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1043s # break; 1043s # case G_TYPE_UCHAR: 1043s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1043s # break; 1043s # case G_TYPE_INT: 1043s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1043s # break; 1043s # case G_TYPE_UINT: 1043s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1043s # break; 1043s # case G_TYPE_INT64: 1043s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1043s # break; 1043s # case G_TYPE_UINT64: 1043s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1043s # break; 1043s # case G_TYPE_DOUBLE: 1043s # { 1043s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1043s # gdouble da = g_value_get_double (a); 1043s # gdouble db = g_value_get_double (b); 1043s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1043s # } 1043s # break; 1043s # case G_TYPE_STRING: 1043s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1043s # break; 1043s # case G_TYPE_VARIANT: 1043s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1043s # break; 1043s # default: 1043s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1043s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1043s # else 1043s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1043s # break; 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static void 1043s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT ( 1043s # GClosure *closure, 1043s # GValue *return_value, 1043s # unsigned int n_param_values, 1043s # const GValue *param_values, 1043s # void *invocation_hint G_GNUC_UNUSED, 1043s # void *marshal_data) 1043s # { 1043s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectIntFunc) 1043s # (void *data1, 1043s # GDBusMethodInvocation *arg_method_invocation, 1043s # gint16 arg_arg_n, 1043s # void *data2); 1043s # _GDbusCodegenMarshalBoolean_ObjectIntFunc callback; 1043s # GCClosure *cc = (GCClosure*) closure; 1043s # void *data1, *data2; 1043s # gboolean v_return; 1043s # 1043s # g_return_if_fail (return_value != NULL); 1043s # g_return_if_fail (n_param_values == 3); 1043s # 1043s # if (G_CCLOSURE_SWAP_DATA (closure)) 1043s # { 1043s # data1 = closure->data; 1043s # data2 = g_value_peek_pointer (param_values + 0); 1043s # } 1043s # else 1043s # { 1043s # data1 = g_value_peek_pointer (param_values + 0); 1043s # data2 = closure->data; 1043s # } 1043s # 1043s # callback = (_GDbusCodegenMarshalBoolean_ObjectIntFunc) 1043s # (marshal_data ? marshal_data : cc->callback); 1043s # 1043s # v_return = 1043s # callback (data1, 1043s # g_marshal_value_peek_object (param_values + 1), 1043s # g_marshal_value_peek_int (param_values + 2), 1043s # data2); 1043s # 1043s # g_value_set_boolean (return_value, v_return); 1043s # } 1043s # 1043s # /* ------------------------------------------------------------------------ 1043s # * Code for interface org.project.UsefulInterface 1043s # * ------------------------------------------------------------------------ 1043s # */ 1043s # 1043s # /** 1043s # * SECTION:OrgProjectUsefulInterface 1043s # * @title: OrgProjectUsefulInterface 1043s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1043s # * 1043s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1043s # */ 1043s # 1043s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1043s # 1043s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_arg_n = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "arg_n", 1043s # (gchar *) "n", 1043s # NULL 1043s # }, 1043s # FALSE 1043s # }; 1043s # 1043s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_pointers[] = 1043s # { 1043s # &_org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_arg_n.parent_struct, 1043s # NULL 1043s # }; 1043s # 1043s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_n = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "SingleArgMethodN", 1043s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_pointers, 1043s # NULL, 1043s # NULL 1043s # }, 1043s # "handle-single-arg-method-n", 1043s # FALSE 1043s # }; 1043s # 1043s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1043s # { 1043s # &_org_project_useful_interface_method_info_single_arg_method_n.parent_struct, 1043s # NULL 1043s # }; 1043s # 1043s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "org.project.UsefulInterface", 1043s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1043s # NULL, 1043s # NULL, 1043s # NULL 1043s # }, 1043s # "org-project-useful-interface", 1043s # }; 1043s # 1043s # 1043s # /** 1043s # * org_project_useful_interface_interface_info: 1043s # * 1043s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1043s # * 1043s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1043s # */ 1043s # GDBusInterfaceInfo * 1043s # org_project_useful_interface_interface_info (void) 1043s # { 1043s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_override_properties: 1043s # * @klass: The class structure for a #GObject derived class. 1043s # * @property_id_begin: The property id to assign to the first overridden property. 1043s # * 1043s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1043s # * The properties are overridden in the order they are defined. 1043s # * 1043s # * Returns: The last property id. 1043s # */ 1043s # guint 1043s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1043s # { 1043s # return property_id_begin - 1; 1043s # } 1043s # 1043s # 1043s # inline static void 1043s # org_project_useful_interface_method_marshal_single_arg_method_n ( 1043s # GClosure *closure, 1043s # GValue *return_value, 1043s # unsigned int n_param_values, 1043s # const GValue *param_values, 1043s # void *invocation_hint, 1043s # void *marshal_data) 1043s # { 1043s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT (closure, 1043s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1043s # } 1043s # 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterface: 1043s # * 1043s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceIface: 1043s # * @parent_iface: The parent interface. 1043s # * @handle_single_arg_method_n: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-n signal. 1043s # * 1043s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1043s # */ 1043s # 1043s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1043s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1043s # 1043s # static void 1043s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1043s # { 1043s # /* GObject signals for incoming D-Bus method calls: */ 1043s # /** 1043s # * OrgProjectUsefulInterface::handle-single-arg-method-n: 1043s # * @object: A #OrgProjectUsefulInterface. 1043s # * @invocation: A #GDBusMethodInvocation. 1043s # * @arg_arg_n: Argument passed by remote caller. 1043s # * 1043s # * Signal emitted when a remote caller is invoking the SingleArgMethodN() D-Bus method. 1043s # * 1043s # * 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. 1043s # * 1043s # * 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. 1043s # */ 1043s # g_signal_new ("handle-single-arg-method-n", 1043s # G_TYPE_FROM_INTERFACE (iface), 1043s # G_SIGNAL_RUN_LAST, 1043s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_n), 1043s # g_signal_accumulator_true_handled, 1043s # NULL, 1043s # org_project_useful_interface_method_marshal_single_arg_method_n, 1043s # G_TYPE_BOOLEAN, 1043s # 2, 1043s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT); 1043s # 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_n: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @arg_arg_n: Argument to pass with the method invocation. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Asynchronously invokes the SingleArgMethodN() D-Bus method on @proxy. 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_call_single_arg_method_n_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_call_single_arg_method_n_sync() for the synchronous, blocking version of this method. 1043s # */ 1043s # void 1043s # org_project_useful_interface_call_single_arg_method_n ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # gint16 arg_arg_n, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1043s # "SingleArgMethodN", 1043s # g_variant_new ("(n)", 1043s # arg_arg_n), 1043s # G_DBUS_CALL_FLAGS_NONE, 1043s # -1, 1043s # cancellable, 1043s # callback, 1043s # user_data); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_n_finish: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_n(). 1043s # * @error: Return location for error or %NULL. 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_n(). 1043s # * 1043s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1043s # */ 1043s # gboolean 1043s # org_project_useful_interface_call_single_arg_method_n_finish ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GVariant *_ret; 1043s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1043s # if (_ret == NULL) 1043s # goto _out; 1043s # g_variant_get (_ret, 1043s # "()"); 1043s # g_variant_unref (_ret); 1043s # _out: 1043s # return _ret != NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_n_sync: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @arg_arg_n: Argument to pass with the method invocation. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL. 1043s # * 1043s # * Synchronously invokes the SingleArgMethodN() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_call_single_arg_method_n() for the asynchronous version of this method. 1043s # * 1043s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1043s # */ 1043s # gboolean 1043s # org_project_useful_interface_call_single_arg_method_n_sync ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # gint16 arg_arg_n, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GVariant *_ret; 1043s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1043s # "SingleArgMethodN", 1043s # g_variant_new ("(n)", 1043s # arg_arg_n), 1043s # G_DBUS_CALL_FLAGS_NONE, 1043s # -1, 1043s # cancellable, 1043s # error); 1043s # if (_ret == NULL) 1043s # goto _out; 1043s # g_variant_get (_ret, 1043s # "()"); 1043s # g_variant_unref (_ret); 1043s # _out: 1043s # return _ret != NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_complete_single_arg_method_n: 1043s # * @object: A #OrgProjectUsefulInterface. 1043s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1043s # * 1043s # * 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. 1043s # * 1043s # * This method will free @invocation, you cannot use it afterwards. 1043s # */ 1043s # void 1043s # org_project_useful_interface_complete_single_arg_method_n ( 1043s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1043s # GDBusMethodInvocation *invocation) 1043s # { 1043s # g_dbus_method_invocation_return_value (invocation, 1043s # g_variant_new ("()")); 1043s # } 1043s # 1043s # /* ------------------------------------------------------------------------ */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceProxy: 1043s # * 1043s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceProxyClass: 1043s # * @parent_class: The parent class. 1043s # * 1043s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1043s # */ 1043s # 1043s # struct _OrgProjectUsefulInterfaceProxyPrivate 1043s # { 1043s # GData *qdata; 1043s # }; 1043s # 1043s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1043s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1043s # 1043s # #else 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1043s # 1043s # #endif 1043s # static void 1043s # org_project_useful_interface_proxy_finalize (GObject *object) 1043s # { 1043s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1043s # g_datalist_clear (&proxy->priv->qdata); 1043s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1043s # guint prop_id G_GNUC_UNUSED, 1043s # GValue *value G_GNUC_UNUSED, 1043s # GParamSpec *pspec G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1043s # guint prop_id G_GNUC_UNUSED, 1043s # const GValue *value G_GNUC_UNUSED, 1043s # GParamSpec *pspec G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1043s # const gchar *sender_name G_GNUC_UNUSED, 1043s # const gchar *signal_name, 1043s # GVariant *parameters) 1043s # { 1043s # _ExtendedGDBusSignalInfo *info; 1043s # GVariantIter iter; 1043s # GVariant *child; 1043s # GValue *paramv; 1043s # gsize num_params; 1043s # gsize n; 1043s # guint signal_id; 1043s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1043s # if (info == NULL) 1043s # return; 1043s # num_params = g_variant_n_children (parameters); 1043s # paramv = g_new0 (GValue, num_params + 1); 1043s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_set_object (¶mv[0], proxy); 1043s # g_variant_iter_init (&iter, parameters); 1043s # n = 1; 1043s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1043s # { 1043s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1043s # if (arg_info->use_gvariant) 1043s # { 1043s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1043s # g_value_set_variant (¶mv[n], child); 1043s # n++; 1043s # } 1043s # else 1043s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1043s # g_variant_unref (child); 1043s # } 1043s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_signal_emitv (paramv, signal_id, 0, NULL); 1043s # for (n = 0; n < num_params + 1; n++) 1043s # g_value_unset (¶mv[n]); 1043s # g_free (paramv); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1043s # GVariant *changed_properties, 1043s # const gchar *const *invalidated_properties) 1043s # { 1043s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1043s # guint n; 1043s # const gchar *key; 1043s # GVariantIter *iter; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # g_variant_get (changed_properties, "a{sv}", &iter); 1043s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1043s # { 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1043s # g_datalist_remove_data (&proxy->priv->qdata, key); 1043s # if (info != NULL) 1043s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1043s # } 1043s # g_variant_iter_free (iter); 1043s # for (n = 0; invalidated_properties[n] != NULL; n++) 1043s # { 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1043s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1043s # if (info != NULL) 1043s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1043s # } 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1043s # { 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1043s # #else 1043s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1043s # #endif 1043s # 1043s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1043s # { 1043s # GObjectClass *gobject_class; 1043s # GDBusProxyClass *proxy_class; 1043s # 1043s # gobject_class = G_OBJECT_CLASS (klass); 1043s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1043s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1043s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1043s # 1043s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1043s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1043s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1043s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1043s # #endif 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new: 1043s # * @connection: A #GDBusConnection. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1043s # * 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1043s # */ 1043s # void 1043s # org_project_useful_interface_proxy_new ( 1043s # GDBusConnection *connection, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_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); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_finish: 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_finish ( 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GObject *ret; 1043s # GObject *source_object; 1043s # source_object = g_async_result_get_source_object (res); 1043s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1043s # g_object_unref (source_object); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_sync: 1043s # * @connection: A #GDBusConnection. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1043s # * 1043s # * The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_sync ( 1043s # GDBusConnection *connection, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GInitable *ret; 1043s # 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); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus: 1043s # * @bus_type: A #GBusType. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: A bus name (well-known or unique). 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1043s # * 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1043s # */ 1043s # void 1043s # org_project_useful_interface_proxy_new_for_bus ( 1043s # GBusType bus_type, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_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); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus_finish: 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_for_bus_finish ( 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GObject *ret; 1043s # GObject *source_object; 1043s # source_object = g_async_result_get_source_object (res); 1043s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1043s # g_object_unref (source_object); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus_sync: 1043s # * @bus_type: A #GBusType. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: A bus name (well-known or unique). 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1043s # * 1043s # * The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_for_bus_sync ( 1043s # GBusType bus_type, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GInitable *ret; 1043s # 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); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # 1043s # /* ------------------------------------------------------------------------ */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceSkeleton: 1043s # * 1043s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceSkeletonClass: 1043s # * @parent_class: The parent class. 1043s # * 1043s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1043s # */ 1043s # 1043s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1043s # { 1043s # GValue *properties; 1043s # GList *changed_properties; 1043s # GSource *changed_properties_idle_source; 1043s # GMainContext *context; 1043s # GMutex lock; 1043s # }; 1043s # 1043s # static void 1043s # _org_project_useful_interface_skeleton_handle_method_call ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name, 1043s # const gchar *method_name, 1043s # GVariant *parameters, 1043s # GDBusMethodInvocation *invocation, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # _ExtendedGDBusMethodInfo *info; 1043s # GVariantIter iter; 1043s # GVariant *child; 1043s # GValue *paramv; 1043s # gsize num_params; 1043s # guint num_extra; 1043s # gsize n; 1043s # guint signal_id; 1043s # GValue return_value = G_VALUE_INIT; 1043s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1043s # g_assert (info != NULL); 1043s # num_params = g_variant_n_children (parameters); 1043s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1043s # n = 0; 1043s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_set_object (¶mv[n++], skeleton); 1043s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1043s # g_value_set_object (¶mv[n++], invocation); 1043s # if (info->pass_fdlist) 1043s # { 1043s # #ifdef G_OS_UNIX 1043s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1043s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1043s # #else 1043s # g_assert_not_reached (); 1043s # #endif 1043s # } 1043s # g_variant_iter_init (&iter, parameters); 1043s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1043s # { 1043s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1043s # if (arg_info->use_gvariant) 1043s # { 1043s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1043s # g_value_set_variant (¶mv[n], child); 1043s # n++; 1043s # } 1043s # else 1043s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1043s # g_variant_unref (child); 1043s # } 1043s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1043s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1043s # if (!g_value_get_boolean (&return_value)) 1043s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1043s # g_value_unset (&return_value); 1043s # for (n = 0; n < num_params + num_extra; n++) 1043s # g_value_unset (¶mv[n]); 1043s # g_free (paramv); 1043s # } 1043s # 1043s # static GVariant * 1043s # _org_project_useful_interface_skeleton_handle_get_property ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name G_GNUC_UNUSED, 1043s # const gchar *property_name, 1043s # GError **error, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # GValue value = G_VALUE_INIT; 1043s # GParamSpec *pspec; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # GVariant *ret; 1043s # ret = NULL; 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1043s # g_assert (info != NULL); 1043s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1043s # if (pspec == NULL) 1043s # { 1043s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1043s # } 1043s # else 1043s # { 1043s # g_value_init (&value, pspec->value_type); 1043s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1043s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1043s # g_value_unset (&value); 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static gboolean 1043s # _org_project_useful_interface_skeleton_handle_set_property ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name G_GNUC_UNUSED, 1043s # const gchar *property_name, 1043s # GVariant *variant, 1043s # GError **error, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # GValue value = G_VALUE_INIT; 1043s # GParamSpec *pspec; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # gboolean ret; 1043s # ret = FALSE; 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1043s # g_assert (info != NULL); 1043s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1043s # if (pspec == NULL) 1043s # { 1043s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1043s # } 1043s # else 1043s # { 1043s # if (info->use_gvariant) 1043s # g_value_set_variant (&value, variant); 1043s # else 1043s # g_dbus_gvariant_to_gvalue (variant, &value); 1043s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1043s # g_value_unset (&value); 1043s # ret = TRUE; 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1043s # { 1043s # _org_project_useful_interface_skeleton_handle_method_call, 1043s # _org_project_useful_interface_skeleton_handle_get_property, 1043s # _org_project_useful_interface_skeleton_handle_set_property, 1043s # {NULL} 1043s # }; 1043s # 1043s # static GDBusInterfaceInfo * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1043s # { 1043s # return org_project_useful_interface_interface_info (); 1043s # } 1043s # 1043s # static GDBusInterfaceVTable * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1043s # { 1043s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1043s # } 1043s # 1043s # static GVariant * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1043s # 1043s # GVariantBuilder builder; 1043s # guint n; 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1043s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1043s # #else 1043s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1043s # #endif 1043s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1043s # goto out; 1043s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1043s # { 1043s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1043s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1043s # { 1043s # GVariant *value; 1043s # 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); 1043s # if (value != NULL) 1043s # { 1043s # g_variant_take_ref (value); 1043s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1043s # g_variant_unref (value); 1043s # } 1043s # } 1043s # } 1043s # out: 1043s # return g_variant_builder_end (&builder); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1043s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1043s # 1043s # #else 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1043s # 1043s # #endif 1043s # static void 1043s # org_project_useful_interface_skeleton_finalize (GObject *object) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1043s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1043s # if (skeleton->priv->changed_properties_idle_source != NULL) 1043s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1043s # g_main_context_unref (skeleton->priv->context); 1043s # g_mutex_clear (&skeleton->priv->lock); 1043s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1043s # { 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1043s # #else 1043s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1043s # #endif 1043s # 1043s # g_mutex_init (&skeleton->priv->lock); 1043s # skeleton->priv->context = g_main_context_ref_thread_default (); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1043s # { 1043s # GObjectClass *gobject_class; 1043s # GDBusInterfaceSkeletonClass *skeleton_class; 1043s # 1043s # gobject_class = G_OBJECT_CLASS (klass); 1043s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1043s # 1043s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1043s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1043s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1043s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1043s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1043s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1043s # #endif 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_skeleton_new: 1043s # * 1043s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_skeleton_new (void) 1043s # { 1043s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1043s # } 1043s # Error: 1043s # 1043s # /tmp/tmpd1ucwcbz/tmpr1fa7y_2.xml: 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpd1ucwcbz/tmpr1fa7y_2.xml', '--output', '-', '--body'] 1043s # Return code: 0 1043s # Output: 1043s # /* 1043s # * This file is generated by gdbus-codegen, do not modify it. 1043s # * 1043s # * The license of this code is the same as for the D-Bus interface description 1043s # * it was derived from. Note that it links to GLib, so must comply with the 1043s # * LGPL linking clauses. 1043s # */ 1043s # 1043s # #ifdef HAVE_CONFIG_H 1043s # # include "config.h" 1043s # #endif 1043s # 1043s # #include 1043s # #ifdef G_OS_UNIX 1043s # # include 1043s # #endif 1043s # 1043s # #ifdef G_ENABLE_DEBUG 1043s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1043s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1043s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1043s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1043s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1043s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1043s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1043s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1043s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1043s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1043s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1043s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1043s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1043s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1043s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1043s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1043s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1043s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1043s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1043s # #else /* !G_ENABLE_DEBUG */ 1043s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1043s # * Do not access GValues directly in your code. Instead, use the 1043s # * g_value_get_*() functions 1043s # */ 1043s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1043s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1043s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1043s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1043s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1043s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1043s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1043s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1043s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1043s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1043s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1043s # #endif /* !G_ENABLE_DEBUG */ 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusArgInfo parent_struct; 1043s # gboolean use_gvariant; 1043s # } _ExtendedGDBusArgInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusMethodInfo parent_struct; 1043s # const gchar *signal_name; 1043s # gboolean pass_fdlist; 1043s # } _ExtendedGDBusMethodInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusSignalInfo parent_struct; 1043s # const gchar *signal_name; 1043s # } _ExtendedGDBusSignalInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusPropertyInfo parent_struct; 1043s # const gchar *hyphen_name; 1043s # guint use_gvariant : 1; 1043s # guint emits_changed_signal : 1; 1043s # } _ExtendedGDBusPropertyInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusInterfaceInfo parent_struct; 1043s # const gchar *hyphen_name; 1043s # } _ExtendedGDBusInterfaceInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # const _ExtendedGDBusPropertyInfo *info; 1043s # guint prop_id; 1043s # GValue orig_value; /* the value before the change */ 1043s # } ChangedProperty; 1043s # 1043s # static void 1043s # _changed_property_free (ChangedProperty *data) 1043s # { 1043s # g_value_unset (&data->orig_value); 1043s # g_free (data); 1043s # } 1043s # 1043s # static gboolean 1043s # _g_strv_equal0 (gchar **a, gchar **b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # guint n; 1043s # if (a == NULL && b == NULL) 1043s # { 1043s # ret = TRUE; 1043s # goto out; 1043s # } 1043s # if (a == NULL || b == NULL) 1043s # goto out; 1043s # if (g_strv_length (a) != g_strv_length (b)) 1043s # goto out; 1043s # for (n = 0; a[n] != NULL; n++) 1043s # if (g_strcmp0 (a[n], b[n]) != 0) 1043s # goto out; 1043s # ret = TRUE; 1043s # out: 1043s # return ret; 1043s # } 1043s # 1043s # static gboolean 1043s # _g_variant_equal0 (GVariant *a, GVariant *b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # if (a == NULL && b == NULL) 1043s # { 1043s # ret = TRUE; 1043s # goto out; 1043s # } 1043s # if (a == NULL || b == NULL) 1043s # goto out; 1043s # ret = g_variant_equal (a, b); 1043s # out: 1043s # return ret; 1043s # } 1043s # 1043s # G_GNUC_UNUSED static gboolean 1043s # _g_value_equal (const GValue *a, const GValue *b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1043s # switch (G_VALUE_TYPE (a)) 1043s # { 1043s # case G_TYPE_BOOLEAN: 1043s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1043s # break; 1043s # case G_TYPE_UCHAR: 1043s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1043s # break; 1043s # case G_TYPE_INT: 1043s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1043s # break; 1043s # case G_TYPE_UINT: 1043s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1043s # break; 1043s # case G_TYPE_INT64: 1043s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1043s # break; 1043s # case G_TYPE_UINT64: 1043s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1043s # break; 1043s # case G_TYPE_DOUBLE: 1043s # { 1043s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1043s # gdouble da = g_value_get_double (a); 1043s # gdouble db = g_value_get_double (b); 1043s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1043s # } 1043s # break; 1043s # case G_TYPE_STRING: 1043s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1043s # break; 1043s # case G_TYPE_VARIANT: 1043s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1043s # break; 1043s # default: 1043s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1043s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1043s # else 1043s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1043s # break; 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static void 1043s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT ( 1043s # GClosure *closure, 1043s # GValue *return_value, 1043s # unsigned int n_param_values, 1043s # const GValue *param_values, 1043s # void *invocation_hint G_GNUC_UNUSED, 1043s # void *marshal_data) 1043s # { 1043s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUintFunc) 1043s # (void *data1, 1043s # GDBusMethodInvocation *arg_method_invocation, 1043s # guint16 arg_arg_q, 1043s # void *data2); 1043s # _GDbusCodegenMarshalBoolean_ObjectUintFunc callback; 1043s # GCClosure *cc = (GCClosure*) closure; 1043s # void *data1, *data2; 1043s # gboolean v_return; 1043s # 1043s # g_return_if_fail (return_value != NULL); 1043s # g_return_if_fail (n_param_values == 3); 1043s # 1043s # if (G_CCLOSURE_SWAP_DATA (closure)) 1043s # { 1043s # data1 = closure->data; 1043s # data2 = g_value_peek_pointer (param_values + 0); 1043s # } 1043s # else 1043s # { 1043s # data1 = g_value_peek_pointer (param_values + 0); 1043s # data2 = closure->data; 1043s # } 1043s # 1043s # callback = (_GDbusCodegenMarshalBoolean_ObjectUintFunc) 1043s # (marshal_data ? marshal_data : cc->callback); 1043s # 1043s # v_return = 1043s # callback (data1, 1043s # g_marshal_value_peek_object (param_values + 1), 1043s # g_marshal_value_peek_uint (param_values + 2), 1043s # data2); 1043s # 1043s # g_value_set_boolean (return_value, v_return); 1043s # } 1043s # 1043s # /* ------------------------------------------------------------------------ 1043s # * Code for interface org.project.UsefulInterface 1043s # * ------------------------------------------------------------------------ 1043s # */ 1043s # 1043s # /** 1043s # * SECTION:OrgProjectUsefulInterface 1043s # * @title: OrgProjectUsefulInterface 1043s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1043s # * 1043s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1043s # */ 1043s # 1043s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1043s # 1043s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_arg_q = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "arg_q", 1043s # (gchar *) "q", 1043s # NULL 1043s # }, 1043s # FALSE 1043s # }; 1043s # 1043s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_pointers[] = 1043s # { 1043s # &_org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_arg_q.parent_struct, 1043s # NULL 1043s # }; 1043s # 1043s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_q = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "SingleArgMethodQ", 1043s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_pointers, 1043s # NULL, 1043s # NULL 1043s # }, 1043s # "handle-single-arg-method-q", 1043s # FALSE 1043s # }; 1043s # 1043s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1043s # { 1043s # &_org_project_useful_interface_method_info_single_arg_method_q.parent_struct, 1043s # NULL 1043s # }; 1043s # 1043s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "org.project.UsefulInterface", 1043s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1043s # NULL, 1043s # NULL, 1043s # NULL 1043s # }, 1043s # "org-project-useful-interface", 1043s # }; 1043s # 1043s # 1043s # /** 1043s # * org_project_useful_interface_interface_info: 1043s # * 1043s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1043s # * 1043s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1043s # */ 1043s # GDBusInterfaceInfo * 1043s # org_project_useful_interface_interface_info (void) 1043s # { 1043s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_override_properties: 1043s # * @klass: The class structure for a #GObject derived class. 1043s # * @property_id_begin: The property id to assign to the first overridden property. 1043s # * 1043s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1043s # * The properties are overridden in the order they are defined. 1043s # * 1043s # * Returns: The last property id. 1043s # */ 1043s # guint 1043s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1043s # { 1043s # return property_id_begin - 1; 1043s # } 1043s # 1043s # 1043s # inline static void 1043s # org_project_useful_interface_method_marshal_single_arg_method_q ( 1043s # GClosure *closure, 1043s # GValue *return_value, 1043s # unsigned int n_param_values, 1043s # const GValue *param_values, 1043s # void *invocation_hint, 1043s # void *marshal_data) 1043s # { 1043s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT (closure, 1043s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1043s # } 1043s # 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterface: 1043s # * 1043s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceIface: 1043s # * @parent_iface: The parent interface. 1043s # * @handle_single_arg_method_q: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-q signal. 1043s # * 1043s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1043s # */ 1043s # 1043s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1043s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1043s # 1043s # static void 1043s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1043s # { 1043s # /* GObject signals for incoming D-Bus method calls: */ 1043s # /** 1043s # * OrgProjectUsefulInterface::handle-single-arg-method-q: 1043s # * @object: A #OrgProjectUsefulInterface. 1043s # * @invocation: A #GDBusMethodInvocation. 1043s # * @arg_arg_q: Argument passed by remote caller. 1043s # * 1043s # * Signal emitted when a remote caller is invoking the SingleArgMethodQ() D-Bus method. 1043s # * 1043s # * 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. 1043s # * 1043s # * 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. 1043s # */ 1043s # g_signal_new ("handle-single-arg-method-q", 1043s # G_TYPE_FROM_INTERFACE (iface), 1043s # G_SIGNAL_RUN_LAST, 1043s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_q), 1043s # g_signal_accumulator_true_handled, 1043s # NULL, 1043s # org_project_useful_interface_method_marshal_single_arg_method_q, 1043s # G_TYPE_BOOLEAN, 1043s # 2, 1043s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT); 1043s # 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_q: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @arg_arg_q: Argument to pass with the method invocation. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Asynchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_call_single_arg_method_q_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_call_single_arg_method_q_sync() for the synchronous, blocking version of this method. 1043s # */ 1043s # void 1043s # org_project_useful_interface_call_single_arg_method_q ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # guint16 arg_arg_q, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1043s # "SingleArgMethodQ", 1043s # g_variant_new ("(q)", 1043s # arg_arg_q), 1043s # G_DBUS_CALL_FLAGS_NONE, 1043s # -1, 1043s # cancellable, 1043s # callback, 1043s # user_data); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_q_finish: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_q(). 1043s # * @error: Return location for error or %NULL. 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_q(). 1043s # * 1043s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1043s # */ 1043s # gboolean 1043s # org_project_useful_interface_call_single_arg_method_q_finish ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GVariant *_ret; 1043s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1043s # if (_ret == NULL) 1043s # goto _out; 1043s # g_variant_get (_ret, 1043s # "()"); 1043s # g_variant_unref (_ret); 1043s # _out: 1043s # return _ret != NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_q_sync: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @arg_arg_q: Argument to pass with the method invocation. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL. 1043s # * 1043s # * Synchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_call_single_arg_method_q() for the asynchronous version of this method. 1043s # * 1043s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1043s # */ 1043s # gboolean 1043s # org_project_useful_interface_call_single_arg_method_q_sync ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # guint16 arg_arg_q, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GVariant *_ret; 1043s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1043s # "SingleArgMethodQ", 1043s # g_variant_new ("(q)", 1043s # arg_arg_q), 1043s # G_DBUS_CALL_FLAGS_NONE, 1043s # -1, 1043s # cancellable, 1043s # error); 1043s # if (_ret == NULL) 1043s # goto _out; 1043s # g_variant_get (_ret, 1043s # "()"); 1043s # g_variant_unref (_ret); 1043s # _out: 1043s # return _ret != NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_complete_single_arg_method_q: 1043s # * @object: A #OrgProjectUsefulInterface. 1043s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1043s # * 1043s # * 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. 1043s # * 1043s # * This method will free @invocation, you cannot use it afterwards. 1043s # */ 1043s # void 1043s # org_project_useful_interface_complete_single_arg_method_q ( 1043s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1043s # GDBusMethodInvocation *invocation) 1043s # { 1043s # g_dbus_method_invocation_return_value (invocation, 1043s # g_variant_new ("()")); 1043s # } 1043s # 1043s # /* ------------------------------------------------------------------------ */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceProxy: 1043s # * 1043s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceProxyClass: 1043s # * @parent_class: The parent class. 1043s # * 1043s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1043s # */ 1043s # 1043s # struct _OrgProjectUsefulInterfaceProxyPrivate 1043s # { 1043s # GData *qdata; 1043s # }; 1043s # 1043s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1043s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1043s # 1043s # #else 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1043s # 1043s # #endif 1043s # static void 1043s # org_project_useful_interface_proxy_finalize (GObject *object) 1043s # { 1043s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1043s # g_datalist_clear (&proxy->priv->qdata); 1043s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1043s # guint prop_id G_GNUC_UNUSED, 1043s # GValue *value G_GNUC_UNUSED, 1043s # GParamSpec *pspec G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1043s # guint prop_id G_GNUC_UNUSED, 1043s # const GValue *value G_GNUC_UNUSED, 1043s # GParamSpec *pspec G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1043s # const gchar *sender_name G_GNUC_UNUSED, 1043s # const gchar *signal_name, 1043s # GVariant *parameters) 1043s # { 1043s # _ExtendedGDBusSignalInfo *info; 1043s # GVariantIter iter; 1043s # GVariant *child; 1043s # GValue *paramv; 1043s # gsize num_params; 1043s # gsize n; 1043s # guint signal_id; 1043s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1043s # if (info == NULL) 1043s # return; 1043s # num_params = g_variant_n_children (parameters); 1043s # paramv = g_new0 (GValue, num_params + 1); 1043s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_set_object (¶mv[0], proxy); 1043s # g_variant_iter_init (&iter, parameters); 1043s # n = 1; 1043s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1043s # { 1043s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1043s # if (arg_info->use_gvariant) 1043s # { 1043s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1043s # g_value_set_variant (¶mv[n], child); 1043s # n++; 1043s # } 1043s # else 1043s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1043s # g_variant_unref (child); 1043s # } 1043s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_signal_emitv (paramv, signal_id, 0, NULL); 1043s # for (n = 0; n < num_params + 1; n++) 1043s # g_value_unset (¶mv[n]); 1043s # g_free (paramv); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1043s # GVariant *changed_properties, 1043s # const gchar *const *invalidated_properties) 1043s # { 1043s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1043s # guint n; 1043s # const gchar *key; 1043s # GVariantIter *iter; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # g_variant_get (changed_properties, "a{sv}", &iter); 1043s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1043s # { 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1043s # g_datalist_remove_data (&proxy->priv->qdata, key); 1043s # if (info != NULL) 1043s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1043s # } 1043s # g_variant_iter_free (iter); 1043s # for (n = 0; invalidated_properties[n] != NULL; n++) 1043s # { 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1043s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1043s # if (info != NULL) 1043s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1043s # } 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1043s # { 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1043s # #else 1043s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1043s # #endif 1043s # 1043s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1043s # { 1043s # GObjectClass *gobject_class; 1043s # GDBusProxyClass *proxy_class; 1043s # 1043s # gobject_class = G_OBJECT_CLASS (klass); 1043s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1043s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1043s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1043s # 1043s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1043s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1043s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1043s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1043s # #endif 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new: 1043s # * @connection: A #GDBusConnection. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1043s # * 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1043s # */ 1043s # void 1043s # org_project_useful_interface_proxy_new ( 1043s # GDBusConnection *connection, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_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); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_finish: 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_finish ( 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GObject *ret; 1043s # GObject *source_object; 1043s # source_object = g_async_result_get_source_object (res); 1043s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1043s # g_object_unref (source_object); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_sync: 1043s # * @connection: A #GDBusConnection. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1043s # * 1043s # * The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_sync ( 1043s # GDBusConnection *connection, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GInitable *ret; 1043s # 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); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus: 1043s # * @bus_type: A #GBusType. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: A bus name (well-known or unique). 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1043s # * 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1043s # */ 1043s # void 1043s # org_project_useful_interface_proxy_new_for_bus ( 1043s # GBusType bus_type, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_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); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus_finish: 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_for_bus_finish ( 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GObject *ret; 1043s # GObject *source_object; 1043s # source_object = g_async_result_get_source_object (res); 1043s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1043s # g_object_unref (source_object); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus_sync: 1043s # * @bus_type: A #GBusType. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: A bus name (well-known or unique). 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1043s # * 1043s # * The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_for_bus_sync ( 1043s # GBusType bus_type, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GInitable *ret; 1043s # 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); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # 1043s # /* ------------------------------------------------------------------------ */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceSkeleton: 1043s # * 1043s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceSkeletonClass: 1043s # * @parent_class: The parent class. 1043s # * 1043s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1043s # */ 1043s # 1043s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1043s # { 1043s # GValue *properties; 1043s # GList *changed_properties; 1043s # GSource *changed_properties_idle_source; 1043s # GMainContext *context; 1043s # GMutex lock; 1043s # }; 1043s # 1043s # static void 1043s # _org_project_useful_interface_skeleton_handle_method_call ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name, 1043s # const gchar *method_name, 1043s # GVariant *parameters, 1043s # GDBusMethodInvocation *invocation, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # _ExtendedGDBusMethodInfo *info; 1043s # GVariantIter iter; 1043s # GVariant *child; 1043s # GValue *paramv; 1043s # gsize num_params; 1043s # guint num_extra; 1043s # gsize n; 1043s # guint signal_id; 1043s # GValue return_value = G_VALUE_INIT; 1043s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1043s # g_assert (info != NULL); 1043s # num_params = g_variant_n_children (parameters); 1043s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1043s # n = 0; 1043s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_set_object (¶mv[n++], skeleton); 1043s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1043s # g_value_set_object (¶mv[n++], invocation); 1043s # if (info->pass_fdlist) 1043s # { 1043s # #ifdef G_OS_UNIX 1043s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1043s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1043s # #else 1043s # g_assert_not_reached (); 1043s # #endif 1043s # } 1043s # g_variant_iter_init (&iter, parameters); 1043s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1043s # { 1043s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1043s # if (arg_info->use_gvariant) 1043s # { 1043s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1043s # g_value_set_variant (¶mv[n], child); 1043s # n++; 1043s # } 1043s # else 1043s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1043s # g_variant_unref (child); 1043s # } 1043s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1043s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1043s # if (!g_value_get_boolean (&return_value)) 1043s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1043s # g_value_unset (&return_value); 1043s # for (n = 0; n < num_params + num_extra; n++) 1043s # g_value_unset (¶mv[n]); 1043s # g_free (paramv); 1043s # } 1043s # 1043s # static GVariant * 1043s # _org_project_useful_interface_skeleton_handle_get_property ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name G_GNUC_UNUSED, 1043s # const gchar *property_name, 1043s # GError **error, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # GValue value = G_VALUE_INIT; 1043s # GParamSpec *pspec; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # GVariant *ret; 1043s # ret = NULL; 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1043s # g_assert (info != NULL); 1043s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1043s # if (pspec == NULL) 1043s # { 1043s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1043s # } 1043s # else 1043s # { 1043s # g_value_init (&value, pspec->value_type); 1043s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1043s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1043s # g_value_unset (&value); 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static gboolean 1043s # _org_project_useful_interface_skeleton_handle_set_property ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name G_GNUC_UNUSED, 1043s # const gchar *property_name, 1043s # GVariant *variant, 1043s # GError **error, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # GValue value = G_VALUE_INIT; 1043s # GParamSpec *pspec; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # gboolean ret; 1043s # ret = FALSE; 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1043s # g_assert (info != NULL); 1043s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1043s # if (pspec == NULL) 1043s # { 1043s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1043s # } 1043s # else 1043s # { 1043s # if (info->use_gvariant) 1043s # g_value_set_variant (&value, variant); 1043s # else 1043s # g_dbus_gvariant_to_gvalue (variant, &value); 1043s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1043s # g_value_unset (&value); 1043s # ret = TRUE; 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1043s # { 1043s # _org_project_useful_interface_skeleton_handle_method_call, 1043s # _org_project_useful_interface_skeleton_handle_get_property, 1043s # _org_project_useful_interface_skeleton_handle_set_property, 1043s # {NULL} 1043s # }; 1043s # 1043s # static GDBusInterfaceInfo * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1043s # { 1043s # return org_project_useful_interface_interface_info (); 1043s # } 1043s # 1043s # static GDBusInterfaceVTable * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1043s # { 1043s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1043s # } 1043s # 1043s # static GVariant * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1043s # 1043s # GVariantBuilder builder; 1043s # guint n; 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1043s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1043s # #else 1043s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1043s # #endif 1043s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1043s # goto out; 1043s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1043s # { 1043s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1043s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1043s # { 1043s # GVariant *value; 1043s # 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); 1043s # if (value != NULL) 1043s # { 1043s # g_variant_take_ref (value); 1043s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1043s # g_variant_unref (value); 1043s # } 1043s # } 1043s # } 1043s # out: 1043s # return g_variant_builder_end (&builder); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1043s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1043s # 1043s # #else 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1043s # 1043s # #endif 1043s # static void 1043s # org_project_useful_interface_skeleton_finalize (GObject *object) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1043s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1043s # if (skeleton->priv->changed_properties_idle_source != NULL) 1043s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1043s # g_main_context_unref (skeleton->priv->context); 1043s # g_mutex_clear (&skeleton->priv->lock); 1043s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1043s # { 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1043s # #else 1043s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1043s # #endif 1043s # 1043s # g_mutex_init (&skeleton->priv->lock); 1043s # skeleton->priv->context = g_main_context_ref_thread_default (); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1043s # { 1043s # GObjectClass *gobject_class; 1043s # GDBusInterfaceSkeletonClass *skeleton_class; 1043s # 1043s # gobject_class = G_OBJECT_CLASS (klass); 1043s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1043s # 1043s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1043s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1043s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1043s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1043s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1043s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1043s # #endif 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_skeleton_new: 1043s # * 1043s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_skeleton_new (void) 1043s # { 1043s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1043s # } 1043s # Error: 1043s # 1043s # /tmp/tmpd1ucwcbz/tmpl3i86vf4.xml: 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpd1ucwcbz/tmpl3i86vf4.xml', '--output', '-', '--body'] 1043s # Return code: 0 1043s # Output: 1043s # /* 1043s # * This file is generated by gdbus-codegen, do not modify it. 1043s # * 1043s # * The license of this code is the same as for the D-Bus interface description 1043s # * it was derived from. Note that it links to GLib, so must comply with the 1043s # * LGPL linking clauses. 1043s # */ 1043s # 1043s # #ifdef HAVE_CONFIG_H 1043s # # include "config.h" 1043s # #endif 1043s # 1043s # #include 1043s # #ifdef G_OS_UNIX 1043s # # include 1043s # #endif 1043s # 1043s # #ifdef G_ENABLE_DEBUG 1043s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1043s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1043s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1043s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1043s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1043s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1043s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1043s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1043s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1043s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1043s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1043s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1043s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1043s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1043s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1043s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1043s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1043s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1043s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1043s # #else /* !G_ENABLE_DEBUG */ 1043s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1043s # * Do not access GValues directly in your code. Instead, use the 1043s # * g_value_get_*() functions 1043s # */ 1043s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1043s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1043s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1043s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1043s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1043s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1043s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1043s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1043s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1043s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1043s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1043s # #endif /* !G_ENABLE_DEBUG */ 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusArgInfo parent_struct; 1043s # gboolean use_gvariant; 1043s # } _ExtendedGDBusArgInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusMethodInfo parent_struct; 1043s # const gchar *signal_name; 1043s # gboolean pass_fdlist; 1043s # } _ExtendedGDBusMethodInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusSignalInfo parent_struct; 1043s # const gchar *signal_name; 1043s # } _ExtendedGDBusSignalInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusPropertyInfo parent_struct; 1043s # const gchar *hyphen_name; 1043s # guint use_gvariant : 1; 1043s # guint emits_changed_signal : 1; 1043s # } _ExtendedGDBusPropertyInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusInterfaceInfo parent_struct; 1043s # const gchar *hyphen_name; 1043s # } _ExtendedGDBusInterfaceInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # const _ExtendedGDBusPropertyInfo *info; 1043s # guint prop_id; 1043s # GValue orig_value; /* the value before the change */ 1043s # } ChangedProperty; 1043s # 1043s # static void 1043s # _changed_property_free (ChangedProperty *data) 1043s # { 1043s # g_value_unset (&data->orig_value); 1043s # g_free (data); 1043s # } 1043s # 1043s # static gboolean 1043s # _g_strv_equal0 (gchar **a, gchar **b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # guint n; 1043s # if (a == NULL && b == NULL) 1043s # { 1043s # ret = TRUE; 1043s # goto out; 1043s # } 1043s # if (a == NULL || b == NULL) 1043s # goto out; 1043s # if (g_strv_length (a) != g_strv_length (b)) 1043s # goto out; 1043s # for (n = 0; a[n] != NULL; n++) 1043s # if (g_strcmp0 (a[n], b[n]) != 0) 1043s # goto out; 1043s # ret = TRUE; 1043s # out: 1043s # return ret; 1043s # } 1043s # 1043s # static gboolean 1043s # _g_variant_equal0 (GVariant *a, GVariant *b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # if (a == NULL && b == NULL) 1043s # { 1043s # ret = TRUE; 1043s # goto out; 1043s # } 1043s # if (a == NULL || b == NULL) 1043s # goto out; 1043s # ret = g_variant_equal (a, b); 1043s # out: 1043s # return ret; 1043s # } 1043s # 1043s # G_GNUC_UNUSED static gboolean 1043s # _g_value_equal (const GValue *a, const GValue *b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1043s # switch (G_VALUE_TYPE (a)) 1043s # { 1043s # case G_TYPE_BOOLEAN: 1043s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1043s # break; 1043s # case G_TYPE_UCHAR: 1043s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1043s # break; 1043s # case G_TYPE_INT: 1043s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1043s # break; 1043s # case G_TYPE_UINT: 1043s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1043s # break; 1043s # case G_TYPE_INT64: 1043s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1043s # break; 1043s # case G_TYPE_UINT64: 1043s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1043s # break; 1043s # case G_TYPE_DOUBLE: 1043s # { 1043s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1043s # gdouble da = g_value_get_double (a); 1043s # gdouble db = g_value_get_double (b); 1043s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1043s # } 1043s # break; 1043s # case G_TYPE_STRING: 1043s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1043s # break; 1043s # case G_TYPE_VARIANT: 1043s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1043s # break; 1043s # default: 1043s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1043s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1043s # else 1043s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1043s # break; 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static void 1043s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT ( 1043s # GClosure *closure, 1043s # GValue *return_value, 1043s # unsigned int n_param_values, 1043s # const GValue *param_values, 1043s # void *invocation_hint G_GNUC_UNUSED, 1043s # void *marshal_data) 1043s # { 1043s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectIntFunc) 1043s # (void *data1, 1043s # GDBusMethodInvocation *arg_method_invocation, 1043s # gint arg_arg_i, 1043s # void *data2); 1043s # _GDbusCodegenMarshalBoolean_ObjectIntFunc callback; 1043s # GCClosure *cc = (GCClosure*) closure; 1043s # void *data1, *data2; 1043s # gboolean v_return; 1043s # 1043s # g_return_if_fail (return_value != NULL); 1043s # g_return_if_fail (n_param_values == 3); 1043s # 1043s # if (G_CCLOSURE_SWAP_DATA (closure)) 1043s # { 1043s # data1 = closure->data; 1043s # data2 = g_value_peek_pointer (param_values + 0); 1043s # } 1043s # else 1043s # { 1043s # data1 = g_value_peek_pointer (param_values + 0); 1043s # data2 = closure->data; 1043s # } 1043s # 1043s # callback = (_GDbusCodegenMarshalBoolean_ObjectIntFunc) 1043s # (marshal_data ? marshal_data : cc->callback); 1043s # 1043s # v_return = 1043s # callback (data1, 1043s # g_marshal_value_peek_object (param_values + 1), 1043s # g_marshal_value_peek_int (param_values + 2), 1043s # data2); 1043s # 1043s # g_value_set_boolean (return_value, v_return); 1043s # } 1043s # 1043s # /* ------------------------------------------------------------------------ 1043s # * Code for interface org.project.UsefulInterface 1043s # * ------------------------------------------------------------------------ 1043s # */ 1043s # 1043s # /** 1043s # * SECTION:OrgProjectUsefulInterface 1043s # * @title: OrgProjectUsefulInterface 1043s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1043s # * 1043s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1043s # */ 1043s # 1043s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1043s # 1043s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_arg_i = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "arg_i", 1043s # (gchar *) "i", 1043s # NULL 1043s # }, 1043s # FALSE 1043s # }; 1043s # 1043s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_pointers[] = 1043s # { 1043s # &_org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_arg_i.parent_struct, 1043s # NULL 1043s # }; 1043s # 1043s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_i = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "SingleArgMethodI", 1043s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_pointers, 1043s # NULL, 1043s # NULL 1043s # }, 1043s # "handle-single-arg-method-i", 1043s # FALSE 1043s # }; 1043s # 1043s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1043s # { 1043s # &_org_project_useful_interface_method_info_single_arg_method_i.parent_struct, 1043s # NULL 1043s # }; 1043s # 1043s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "org.project.UsefulInterface", 1043s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1043s # NULL, 1043s # NULL, 1043s # NULL 1043s # }, 1043s # "org-project-useful-interface", 1043s # }; 1043s # 1043s # 1043s # /** 1043s # * org_project_useful_interface_interface_info: 1043s # * 1043s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1043s # * 1043s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1043s # */ 1043s # GDBusInterfaceInfo * 1043s # org_project_useful_interface_interface_info (void) 1043s # { 1043s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_override_properties: 1043s # * @klass: The class structure for a #GObject derived class. 1043s # * @property_id_begin: The property id to assign to the first overridden property. 1043s # * 1043s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1043s # * The properties are overridden in the order they are defined. 1043s # * 1043s # * Returns: The last property id. 1043s # */ 1043s # guint 1043s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1043s # { 1043s # return property_id_begin - 1; 1043s # } 1043s # 1043s # 1043s # inline static void 1043s # org_project_useful_interface_method_marshal_single_arg_method_i ( 1043s # GClosure *closure, 1043s # GValue *return_value, 1043s # unsigned int n_param_values, 1043s # const GValue *param_values, 1043s # void *invocation_hint, 1043s # void *marshal_data) 1043s # { 1043s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT (closure, 1043s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1043s # } 1043s # 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterface: 1043s # * 1043s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceIface: 1043s # * @parent_iface: The parent interface. 1043s # * @handle_single_arg_method_i: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-i signal. 1043s # * 1043s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1043s # */ 1043s # 1043s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1043s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1043s # 1043s # static void 1043s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1043s # { 1043s # /* GObject signals for incoming D-Bus method calls: */ 1043s # /** 1043s # * OrgProjectUsefulInterface::handle-single-arg-method-i: 1043s # * @object: A #OrgProjectUsefulInterface. 1043s # * @invocation: A #GDBusMethodInvocation. 1043s # * @arg_arg_i: Argument passed by remote caller. 1043s # * 1043s # * Signal emitted when a remote caller is invoking the SingleArgMethodI() D-Bus method. 1043s # * 1043s # * 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. 1043s # * 1043s # * 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. 1043s # */ 1043s # g_signal_new ("handle-single-arg-method-i", 1043s # G_TYPE_FROM_INTERFACE (iface), 1043s # G_SIGNAL_RUN_LAST, 1043s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_i), 1043s # g_signal_accumulator_true_handled, 1043s # NULL, 1043s # org_project_useful_interface_method_marshal_single_arg_method_i, 1043s # G_TYPE_BOOLEAN, 1043s # 2, 1043s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT); 1043s # 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_i: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @arg_arg_i: Argument to pass with the method invocation. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Asynchronously invokes the SingleArgMethodI() D-Bus method on @proxy. 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_call_single_arg_method_i_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_call_single_arg_method_i_sync() for the synchronous, blocking version of this method. 1043s # */ 1043s # void 1043s # org_project_useful_interface_call_single_arg_method_i ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # gint arg_arg_i, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1043s # "SingleArgMethodI", 1043s # g_variant_new ("(i)", 1043s # arg_arg_i), 1043s # G_DBUS_CALL_FLAGS_NONE, 1043s # -1, 1043s # cancellable, 1043s # callback, 1043s # user_data); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_i_finish: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_i(). 1043s # * @error: Return location for error or %NULL. 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_i(). 1043s # * 1043s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1043s # */ 1043s # gboolean 1043s # org_project_useful_interface_call_single_arg_method_i_finish ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GVariant *_ret; 1043s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1043s # if (_ret == NULL) 1043s # goto _out; 1043s # g_variant_get (_ret, 1043s # "()"); 1043s # g_variant_unref (_ret); 1043s # _out: 1043s # return _ret != NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_i_sync: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @arg_arg_i: Argument to pass with the method invocation. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL. 1043s # * 1043s # * Synchronously invokes the SingleArgMethodI() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_call_single_arg_method_i() for the asynchronous version of this method. 1043s # * 1043s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1043s # */ 1043s # gboolean 1043s # org_project_useful_interface_call_single_arg_method_i_sync ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # gint arg_arg_i, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GVariant *_ret; 1043s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1043s # "SingleArgMethodI", 1043s # g_variant_new ("(i)", 1043s # arg_arg_i), 1043s # G_DBUS_CALL_FLAGS_NONE, 1043s # -1, 1043s # cancellable, 1043s # error); 1043s # if (_ret == NULL) 1043s # goto _out; 1043s # g_variant_get (_ret, 1043s # "()"); 1043s # g_variant_unref (_ret); 1043s # _out: 1043s # return _ret != NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_complete_single_arg_method_i: 1043s # * @object: A #OrgProjectUsefulInterface. 1043s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1043s # * 1043s # * 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. 1043s # * 1043s # * This method will free @invocation, you cannot use it afterwards. 1043s # */ 1043s # void 1043s # org_project_useful_interface_complete_single_arg_method_i ( 1043s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1043s # GDBusMethodInvocation *invocation) 1043s # { 1043s # g_dbus_method_invocation_return_value (invocation, 1043s # g_variant_new ("()")); 1043s # } 1043s # 1043s # /* ------------------------------------------------------------------------ */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceProxy: 1043s # * 1043s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceProxyClass: 1043s # * @parent_class: The parent class. 1043s # * 1043s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1043s # */ 1043s # 1043s # struct _OrgProjectUsefulInterfaceProxyPrivate 1043s # { 1043s # GData *qdata; 1043s # }; 1043s # 1043s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1043s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1043s # 1043s # #else 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1043s # 1043s # #endif 1043s # static void 1043s # org_project_useful_interface_proxy_finalize (GObject *object) 1043s # { 1043s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1043s # g_datalist_clear (&proxy->priv->qdata); 1043s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1043s # guint prop_id G_GNUC_UNUSED, 1043s # GValue *value G_GNUC_UNUSED, 1043s # GParamSpec *pspec G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1043s # guint prop_id G_GNUC_UNUSED, 1043s # const GValue *value G_GNUC_UNUSED, 1043s # GParamSpec *pspec G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1043s # const gchar *sender_name G_GNUC_UNUSED, 1043s # const gchar *signal_name, 1043s # GVariant *parameters) 1043s # { 1043s # _ExtendedGDBusSignalInfo *info; 1043s # GVariantIter iter; 1043s # GVariant *child; 1043s # GValue *paramv; 1043s # gsize num_params; 1043s # gsize n; 1043s # guint signal_id; 1043s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1043s # if (info == NULL) 1043s # return; 1043s # num_params = g_variant_n_children (parameters); 1043s # paramv = g_new0 (GValue, num_params + 1); 1043s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_set_object (¶mv[0], proxy); 1043s # g_variant_iter_init (&iter, parameters); 1043s # n = 1; 1043s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1043s # { 1043s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1043s # if (arg_info->use_gvariant) 1043s # { 1043s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1043s # g_value_set_variant (¶mv[n], child); 1043s # n++; 1043s # } 1043s # else 1043s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1043s # g_variant_unref (child); 1043s # } 1043s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_signal_emitv (paramv, signal_id, 0, NULL); 1043s # for (n = 0; n < num_params + 1; n++) 1043s # g_value_unset (¶mv[n]); 1043s # g_free (paramv); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1043s # GVariant *changed_properties, 1043s # const gchar *const *invalidated_properties) 1043s # { 1043s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1043s # guint n; 1043s # const gchar *key; 1043s # GVariantIter *iter; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # g_variant_get (changed_properties, "a{sv}", &iter); 1043s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1043s # { 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1043s # g_datalist_remove_data (&proxy->priv->qdata, key); 1043s # if (info != NULL) 1043s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1043s # } 1043s # g_variant_iter_free (iter); 1043s # for (n = 0; invalidated_properties[n] != NULL; n++) 1043s # { 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1043s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1043s # if (info != NULL) 1043s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1043s # } 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1043s # { 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1043s # #else 1043s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1043s # #endif 1043s # 1043s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1043s # { 1043s # GObjectClass *gobject_class; 1043s # GDBusProxyClass *proxy_class; 1043s # 1043s # gobject_class = G_OBJECT_CLASS (klass); 1043s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1043s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1043s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1043s # 1043s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1043s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1043s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1043s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1043s # #endif 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new: 1043s # * @connection: A #GDBusConnection. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1043s # * 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1043s # */ 1043s # void 1043s # org_project_useful_interface_proxy_new ( 1043s # GDBusConnection *connection, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_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); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_finish: 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_finish ( 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GObject *ret; 1043s # GObject *source_object; 1043s # source_object = g_async_result_get_source_object (res); 1043s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1043s # g_object_unref (source_object); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_sync: 1043s # * @connection: A #GDBusConnection. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1043s # * 1043s # * The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_sync ( 1043s # GDBusConnection *connection, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GInitable *ret; 1043s # 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); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus: 1043s # * @bus_type: A #GBusType. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: A bus name (well-known or unique). 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1043s # * 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1043s # */ 1043s # void 1043s # org_project_useful_interface_proxy_new_for_bus ( 1043s # GBusType bus_type, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_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); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus_finish: 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_for_bus_finish ( 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GObject *ret; 1043s # GObject *source_object; 1043s # source_object = g_async_result_get_source_object (res); 1043s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1043s # g_object_unref (source_object); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus_sync: 1043s # * @bus_type: A #GBusType. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: A bus name (well-known or unique). 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1043s # * 1043s # * The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_for_bus_sync ( 1043s # GBusType bus_type, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GInitable *ret; 1043s # 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); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # 1043s # /* ------------------------------------------------------------------------ */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceSkeleton: 1043s # * 1043s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceSkeletonClass: 1043s # * @parent_class: The parent class. 1043s # * 1043s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1043s # */ 1043s # 1043s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1043s # { 1043s # GValue *properties; 1043s # GList *changed_properties; 1043s # GSource *changed_properties_idle_source; 1043s # GMainContext *context; 1043s # GMutex lock; 1043s # }; 1043s # 1043s # static void 1043s # _org_project_useful_interface_skeleton_handle_method_call ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name, 1043s # const gchar *method_name, 1043s # GVariant *parameters, 1043s # GDBusMethodInvocation *invocation, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # _ExtendedGDBusMethodInfo *info; 1043s # GVariantIter iter; 1043s # GVariant *child; 1043s # GValue *paramv; 1043s # gsize num_params; 1043s # guint num_extra; 1043s # gsize n; 1043s # guint signal_id; 1043s # GValue return_value = G_VALUE_INIT; 1043s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1043s # g_assert (info != NULL); 1043s # num_params = g_variant_n_children (parameters); 1043s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1043s # n = 0; 1043s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_set_object (¶mv[n++], skeleton); 1043s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1043s # g_value_set_object (¶mv[n++], invocation); 1043s # if (info->pass_fdlist) 1043s # { 1043s # #ifdef G_OS_UNIX 1043s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1043s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1043s # #else 1043s # g_assert_not_reached (); 1043s # #endif 1043s # } 1043s # g_variant_iter_init (&iter, parameters); 1043s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1043s # { 1043s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1043s # if (arg_info->use_gvariant) 1043s # { 1043s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1043s # g_value_set_variant (¶mv[n], child); 1043s # n++; 1043s # } 1043s # else 1043s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1043s # g_variant_unref (child); 1043s # } 1043s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1043s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1043s # if (!g_value_get_boolean (&return_value)) 1043s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1043s # g_value_unset (&return_value); 1043s # for (n = 0; n < num_params + num_extra; n++) 1043s # g_value_unset (¶mv[n]); 1043s # g_free (paramv); 1043s # } 1043s # 1043s # static GVariant * 1043s # _org_project_useful_interface_skeleton_handle_get_property ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name G_GNUC_UNUSED, 1043s # const gchar *property_name, 1043s # GError **error, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # GValue value = G_VALUE_INIT; 1043s # GParamSpec *pspec; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # GVariant *ret; 1043s # ret = NULL; 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1043s # g_assert (info != NULL); 1043s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1043s # if (pspec == NULL) 1043s # { 1043s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1043s # } 1043s # else 1043s # { 1043s # g_value_init (&value, pspec->value_type); 1043s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1043s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1043s # g_value_unset (&value); 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static gboolean 1043s # _org_project_useful_interface_skeleton_handle_set_property ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name G_GNUC_UNUSED, 1043s # const gchar *property_name, 1043s # GVariant *variant, 1043s # GError **error, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # GValue value = G_VALUE_INIT; 1043s # GParamSpec *pspec; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # gboolean ret; 1043s # ret = FALSE; 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1043s # g_assert (info != NULL); 1043s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1043s # if (pspec == NULL) 1043s # { 1043s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1043s # } 1043s # else 1043s # { 1043s # if (info->use_gvariant) 1043s # g_value_set_variant (&value, variant); 1043s # else 1043s # g_dbus_gvariant_to_gvalue (variant, &value); 1043s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1043s # g_value_unset (&value); 1043s # ret = TRUE; 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1043s # { 1043s # _org_project_useful_interface_skeleton_handle_method_call, 1043s # _org_project_useful_interface_skeleton_handle_get_property, 1043s # _org_project_useful_interface_skeleton_handle_set_property, 1043s # {NULL} 1043s # }; 1043s # 1043s # static GDBusInterfaceInfo * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1043s # { 1043s # return org_project_useful_interface_interface_info (); 1043s # } 1043s # 1043s # static GDBusInterfaceVTable * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1043s # { 1043s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1043s # } 1043s # 1043s # static GVariant * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1043s # 1043s # GVariantBuilder builder; 1043s # guint n; 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1043s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1043s # #else 1043s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1043s # #endif 1043s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1043s # goto out; 1043s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1043s # { 1043s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1043s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1043s # { 1043s # GVariant *value; 1043s # 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); 1043s # if (value != NULL) 1043s # { 1043s # g_variant_take_ref (value); 1043s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1043s # g_variant_unref (value); 1043s # } 1043s # } 1043s # } 1043s # out: 1043s # return g_variant_builder_end (&builder); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1043s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1043s # 1043s # #else 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1043s # 1043s # #endif 1043s # static void 1043s # org_project_useful_interface_skeleton_finalize (GObject *object) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1043s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1043s # if (skeleton->priv->changed_properties_idle_source != NULL) 1043s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1043s # g_main_context_unref (skeleton->priv->context); 1043s # g_mutex_clear (&skeleton->priv->lock); 1043s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1043s # { 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1043s # #else 1043s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1043s # #endif 1043s # 1043s # g_mutex_init (&skeleton->priv->lock); 1043s # skeleton->priv->context = g_main_context_ref_thread_default (); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1043s # { 1043s # GObjectClass *gobject_class; 1043s # GDBusInterfaceSkeletonClass *skeleton_class; 1043s # 1043s # gobject_class = G_OBJECT_CLASS (klass); 1043s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1043s # 1043s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1043s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1043s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1043s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1043s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1043s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1043s # #endif 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_skeleton_new: 1043s # * 1043s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_skeleton_new (void) 1043s # { 1043s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1043s # } 1043s # Error: 1043s # 1043s # /tmp/tmpd1ucwcbz/tmp9zb3xvhy.xml: 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpd1ucwcbz/tmp9zb3xvhy.xml', '--output', '-', '--body'] 1043s # Return code: 0 1043s # Output: 1043s # /* 1043s # * This file is generated by gdbus-codegen, do not modify it. 1043s # * 1043s # * The license of this code is the same as for the D-Bus interface description 1043s # * it was derived from. Note that it links to GLib, so must comply with the 1043s # * LGPL linking clauses. 1043s # */ 1043s # 1043s # #ifdef HAVE_CONFIG_H 1043s # # include "config.h" 1043s # #endif 1043s # 1043s # #include 1043s # #ifdef G_OS_UNIX 1043s # # include 1043s # #endif 1043s # 1043s # #ifdef G_ENABLE_DEBUG 1043s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1043s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1043s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1043s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1043s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1043s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1043s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1043s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1043s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1043s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1043s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1043s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1043s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1043s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1043s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1043s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1043s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1043s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1043s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1043s # #else /* !G_ENABLE_DEBUG */ 1043s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1043s # * Do not access GValues directly in your code. Instead, use the 1043s # * g_value_get_*() functions 1043s # */ 1043s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1043s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1043s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1043s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1043s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1043s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1043s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1043s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1043s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1043s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1043s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1043s # #endif /* !G_ENABLE_DEBUG */ 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusArgInfo parent_struct; 1043s # gboolean use_gvariant; 1043s # } _ExtendedGDBusArgInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusMethodInfo parent_struct; 1043s # const gchar *signal_name; 1043s # gboolean pass_fdlist; 1043s # } _ExtendedGDBusMethodInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusSignalInfo parent_struct; 1043s # const gchar *signal_name; 1043s # } _ExtendedGDBusSignalInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusPropertyInfo parent_struct; 1043s # const gchar *hyphen_name; 1043s # guint use_gvariant : 1; 1043s # guint emits_changed_signal : 1; 1043s # } _ExtendedGDBusPropertyInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusInterfaceInfo parent_struct; 1043s # const gchar *hyphen_name; 1043s # } _ExtendedGDBusInterfaceInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # const _ExtendedGDBusPropertyInfo *info; 1043s # guint prop_id; 1043s # GValue orig_value; /* the value before the change */ 1043s # } ChangedProperty; 1043s # 1043s # static void 1043s # _changed_property_free (ChangedProperty *data) 1043s # { 1043s # g_value_unset (&data->orig_value); 1043s # g_free (data); 1043s # } 1043s # 1043s # static gboolean 1043s # _g_strv_equal0 (gchar **a, gchar **b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # guint n; 1043s # if (a == NULL && b == NULL) 1043s # { 1043s # ret = TRUE; 1043s # goto out; 1043s # } 1043s # if (a == NULL || b == NULL) 1043s # goto out; 1043s # if (g_strv_length (a) != g_strv_length (b)) 1043s # goto out; 1043s # for (n = 0; a[n] != NULL; n++) 1043s # if (g_strcmp0 (a[n], b[n]) != 0) 1043s # goto out; 1043s # ret = TRUE; 1043s # out: 1043s # return ret; 1043s # } 1043s # 1043s # static gboolean 1043s # _g_variant_equal0 (GVariant *a, GVariant *b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # if (a == NULL && b == NULL) 1043s # { 1043s # ret = TRUE; 1043s # goto out; 1043s # } 1043s # if (a == NULL || b == NULL) 1043s # goto out; 1043s # ret = g_variant_equal (a, b); 1043s # out: 1043s # return ret; 1043s # } 1043s # 1043s # G_GNUC_UNUSED static gboolean 1043s # _g_value_equal (const GValue *a, const GValue *b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1043s # switch (G_VALUE_TYPE (a)) 1043s # { 1043s # case G_TYPE_BOOLEAN: 1043s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1043s # break; 1043s # case G_TYPE_UCHAR: 1043s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1043s # break; 1043s # case G_TYPE_INT: 1043s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1043s # break; 1043s # case G_TYPE_UINT: 1043s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1043s # break; 1043s # case G_TYPE_INT64: 1043s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1043s # break; 1043s # case G_TYPE_UINT64: 1043s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1043s # break; 1043s # case G_TYPE_DOUBLE: 1043s # { 1043s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1043s # gdouble da = g_value_get_double (a); 1043s # gdouble db = g_value_get_double (b); 1043s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1043s # } 1043s # break; 1043s # case G_TYPE_STRING: 1043s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1043s # break; 1043s # case G_TYPE_VARIANT: 1043s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1043s # break; 1043s # default: 1043s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1043s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1043s # else 1043s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1043s # break; 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static void 1043s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT ( 1043s # GClosure *closure, 1043s # GValue *return_value, 1043s # unsigned int n_param_values, 1043s # const GValue *param_values, 1043s # void *invocation_hint G_GNUC_UNUSED, 1043s # void *marshal_data) 1043s # { 1043s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUintFunc) 1043s # (void *data1, 1043s # GDBusMethodInvocation *arg_method_invocation, 1043s # guint arg_arg_u, 1043s # void *data2); 1043s # _GDbusCodegenMarshalBoolean_ObjectUintFunc callback; 1043s # GCClosure *cc = (GCClosure*) closure; 1043s # void *data1, *data2; 1043s # gboolean v_return; 1043s # 1043s # g_return_if_fail (return_value != NULL); 1043s # g_return_if_fail (n_param_values == 3); 1043s # 1043s # if (G_CCLOSURE_SWAP_DATA (closure)) 1043s # { 1043s # data1 = closure->data; 1043s # data2 = g_value_peek_pointer (param_values + 0); 1043s # } 1043s # else 1043s # { 1043s # data1 = g_value_peek_pointer (param_values + 0); 1043s # data2 = closure->data; 1043s # } 1043s # 1043s # callback = (_GDbusCodegenMarshalBoolean_ObjectUintFunc) 1043s # (marshal_data ? marshal_data : cc->callback); 1043s # 1043s # v_return = 1043s # callback (data1, 1043s # g_marshal_value_peek_object (param_values + 1), 1043s # g_marshal_value_peek_uint (param_values + 2), 1043s # data2); 1043s # 1043s # g_value_set_boolean (return_value, v_return); 1043s # } 1043s # 1043s # /* ------------------------------------------------------------------------ 1043s # * Code for interface org.project.UsefulInterface 1043s # * ------------------------------------------------------------------------ 1043s # */ 1043s # 1043s # /** 1043s # * SECTION:OrgProjectUsefulInterface 1043s # * @title: OrgProjectUsefulInterface 1043s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1043s # * 1043s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1043s # */ 1043s # 1043s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1043s # 1043s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_arg_u = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "arg_u", 1043s # (gchar *) "u", 1043s # NULL 1043s # }, 1043s # FALSE 1043s # }; 1043s # 1043s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_pointers[] = 1043s # { 1043s # &_org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_arg_u.parent_struct, 1043s # NULL 1043s # }; 1043s # 1043s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_u = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "SingleArgMethodU", 1043s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_pointers, 1043s # NULL, 1043s # NULL 1043s # }, 1043s # "handle-single-arg-method-u", 1043s # FALSE 1043s # }; 1043s # 1043s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1043s # { 1043s # &_org_project_useful_interface_method_info_single_arg_method_u.parent_struct, 1043s # NULL 1043s # }; 1043s # 1043s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "org.project.UsefulInterface", 1043s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1043s # NULL, 1043s # NULL, 1043s # NULL 1043s # }, 1043s # "org-project-useful-interface", 1043s # }; 1043s # 1043s # 1043s # /** 1043s # * org_project_useful_interface_interface_info: 1043s # * 1043s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1043s # * 1043s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1043s # */ 1043s # GDBusInterfaceInfo * 1043s # org_project_useful_interface_interface_info (void) 1043s # { 1043s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_override_properties: 1043s # * @klass: The class structure for a #GObject derived class. 1043s # * @property_id_begin: The property id to assign to the first overridden property. 1043s # * 1043s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1043s # * The properties are overridden in the order they are defined. 1043s # * 1043s # * Returns: The last property id. 1043s # */ 1043s # guint 1043s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1043s # { 1043s # return property_id_begin - 1; 1043s # } 1043s # 1043s # 1043s # inline static void 1043s # org_project_useful_interface_method_marshal_single_arg_method_u ( 1043s # GClosure *closure, 1043s # GValue *return_value, 1043s # unsigned int n_param_values, 1043s # const GValue *param_values, 1043s # void *invocation_hint, 1043s # void *marshal_data) 1043s # { 1043s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT (closure, 1043s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1043s # } 1043s # 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterface: 1043s # * 1043s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceIface: 1043s # * @parent_iface: The parent interface. 1043s # * @handle_single_arg_method_u: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-u signal. 1043s # * 1043s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1043s # */ 1043s # 1043s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1043s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1043s # 1043s # static void 1043s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1043s # { 1043s # /* GObject signals for incoming D-Bus method calls: */ 1043s # /** 1043s # * OrgProjectUsefulInterface::handle-single-arg-method-u: 1043s # * @object: A #OrgProjectUsefulInterface. 1043s # * @invocation: A #GDBusMethodInvocation. 1043s # * @arg_arg_u: Argument passed by remote caller. 1043s # * 1043s # * Signal emitted when a remote caller is invoking the SingleArgMethodU() D-Bus method. 1043s # * 1043s # * 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. 1043s # * 1043s # * 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. 1043s # */ 1043s # g_signal_new ("handle-single-arg-method-u", 1043s # G_TYPE_FROM_INTERFACE (iface), 1043s # G_SIGNAL_RUN_LAST, 1043s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_u), 1043s # g_signal_accumulator_true_handled, 1043s # NULL, 1043s # org_project_useful_interface_method_marshal_single_arg_method_u, 1043s # G_TYPE_BOOLEAN, 1043s # 2, 1043s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT); 1043s # 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_u: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @arg_arg_u: Argument to pass with the method invocation. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Asynchronously invokes the SingleArgMethodU() D-Bus method on @proxy. 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_call_single_arg_method_u_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_call_single_arg_method_u_sync() for the synchronous, blocking version of this method. 1043s # */ 1043s # void 1043s # org_project_useful_interface_call_single_arg_method_u ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # guint arg_arg_u, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1043s # "SingleArgMethodU", 1043s # g_variant_new ("(u)", 1043s # arg_arg_u), 1043s # G_DBUS_CALL_FLAGS_NONE, 1043s # -1, 1043s # cancellable, 1043s # callback, 1043s # user_data); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_u_finish: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_u(). 1043s # * @error: Return location for error or %NULL. 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_u(). 1043s # * 1043s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1043s # */ 1043s # gboolean 1043s # org_project_useful_interface_call_single_arg_method_u_finish ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GVariant *_ret; 1043s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1043s # if (_ret == NULL) 1043s # goto _out; 1043s # g_variant_get (_ret, 1043s # "()"); 1043s # g_variant_unref (_ret); 1043s # _out: 1043s # return _ret != NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_u_sync: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @arg_arg_u: Argument to pass with the method invocation. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL. 1043s # * 1043s # * Synchronously invokes the SingleArgMethodU() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_call_single_arg_method_u() for the asynchronous version of this method. 1043s # * 1043s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1043s # */ 1043s # gboolean 1043s # org_project_useful_interface_call_single_arg_method_u_sync ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # guint arg_arg_u, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GVariant *_ret; 1043s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1043s # "SingleArgMethodU", 1043s # g_variant_new ("(u)", 1043s # arg_arg_u), 1043s # G_DBUS_CALL_FLAGS_NONE, 1043s # -1, 1043s # cancellable, 1043s # error); 1043s # if (_ret == NULL) 1043s # goto _out; 1043s # g_variant_get (_ret, 1043s # "()"); 1043s # g_variant_unref (_ret); 1043s # _out: 1043s # return _ret != NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_complete_single_arg_method_u: 1043s # * @object: A #OrgProjectUsefulInterface. 1043s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1043s # * 1043s # * 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. 1043s # * 1043s # * This method will free @invocation, you cannot use it afterwards. 1043s # */ 1043s # void 1043s # org_project_useful_interface_complete_single_arg_method_u ( 1043s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1043s # GDBusMethodInvocation *invocation) 1043s # { 1043s # g_dbus_method_invocation_return_value (invocation, 1043s # g_variant_new ("()")); 1043s # } 1043s # 1043s # /* ------------------------------------------------------------------------ */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceProxy: 1043s # * 1043s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceProxyClass: 1043s # * @parent_class: The parent class. 1043s # * 1043s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1043s # */ 1043s # 1043s # struct _OrgProjectUsefulInterfaceProxyPrivate 1043s # { 1043s # GData *qdata; 1043s # }; 1043s # 1043s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1043s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1043s # 1043s # #else 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1043s # 1043s # #endif 1043s # static void 1043s # org_project_useful_interface_proxy_finalize (GObject *object) 1043s # { 1043s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1043s # g_datalist_clear (&proxy->priv->qdata); 1043s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1043s # guint prop_id G_GNUC_UNUSED, 1043s # GValue *value G_GNUC_UNUSED, 1043s # GParamSpec *pspec G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1043s # guint prop_id G_GNUC_UNUSED, 1043s # const GValue *value G_GNUC_UNUSED, 1043s # GParamSpec *pspec G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1043s # const gchar *sender_name G_GNUC_UNUSED, 1043s # const gchar *signal_name, 1043s # GVariant *parameters) 1043s # { 1043s # _ExtendedGDBusSignalInfo *info; 1043s # GVariantIter iter; 1043s # GVariant *child; 1043s # GValue *paramv; 1043s # gsize num_params; 1043s # gsize n; 1043s # guint signal_id; 1043s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1043s # if (info == NULL) 1043s # return; 1043s # num_params = g_variant_n_children (parameters); 1043s # paramv = g_new0 (GValue, num_params + 1); 1043s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_set_object (¶mv[0], proxy); 1043s # g_variant_iter_init (&iter, parameters); 1043s # n = 1; 1043s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1043s # { 1043s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1043s # if (arg_info->use_gvariant) 1043s # { 1043s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1043s # g_value_set_variant (¶mv[n], child); 1043s # n++; 1043s # } 1043s # else 1043s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1043s # g_variant_unref (child); 1043s # } 1043s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_signal_emitv (paramv, signal_id, 0, NULL); 1043s # for (n = 0; n < num_params + 1; n++) 1043s # g_value_unset (¶mv[n]); 1043s # g_free (paramv); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1043s # GVariant *changed_properties, 1043s # const gchar *const *invalidated_properties) 1043s # { 1043s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1043s # guint n; 1043s # const gchar *key; 1043s # GVariantIter *iter; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # g_variant_get (changed_properties, "a{sv}", &iter); 1043s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1043s # { 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1043s # g_datalist_remove_data (&proxy->priv->qdata, key); 1043s # if (info != NULL) 1043s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1043s # } 1043s # g_variant_iter_free (iter); 1043s # for (n = 0; invalidated_properties[n] != NULL; n++) 1043s # { 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1043s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1043s # if (info != NULL) 1043s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1043s # } 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1043s # { 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1043s # #else 1043s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1043s # #endif 1043s # 1043s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1043s # { 1043s # GObjectClass *gobject_class; 1043s # GDBusProxyClass *proxy_class; 1043s # 1043s # gobject_class = G_OBJECT_CLASS (klass); 1043s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1043s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1043s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1043s # 1043s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1043s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1043s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1043s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1043s # #endif 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new: 1043s # * @connection: A #GDBusConnection. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1043s # * 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1043s # */ 1043s # void 1043s # org_project_useful_interface_proxy_new ( 1043s # GDBusConnection *connection, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_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); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_finish: 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_finish ( 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GObject *ret; 1043s # GObject *source_object; 1043s # source_object = g_async_result_get_source_object (res); 1043s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1043s # g_object_unref (source_object); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_sync: 1043s # * @connection: A #GDBusConnection. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1043s # * 1043s # * The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_sync ( 1043s # GDBusConnection *connection, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GInitable *ret; 1043s # 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); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus: 1043s # * @bus_type: A #GBusType. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: A bus name (well-known or unique). 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1043s # * 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1043s # */ 1043s # void 1043s # org_project_useful_interface_proxy_new_for_bus ( 1043s # GBusType bus_type, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_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); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus_finish: 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_for_bus_finish ( 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GObject *ret; 1043s # GObject *source_object; 1043s # source_object = g_async_result_get_source_object (res); 1043s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1043s # g_object_unref (source_object); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus_sync: 1043s # * @bus_type: A #GBusType. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: A bus name (well-known or unique). 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1043s # * 1043s # * The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_for_bus_sync ( 1043s # GBusType bus_type, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GInitable *ret; 1043s # 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); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # 1043s # /* ------------------------------------------------------------------------ */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceSkeleton: 1043s # * 1043s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceSkeletonClass: 1043s # * @parent_class: The parent class. 1043s # * 1043s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1043s # */ 1043s # 1043s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1043s # { 1043s # GValue *properties; 1043s # GList *changed_properties; 1043s # GSource *changed_properties_idle_source; 1043s # GMainContext *context; 1043s # GMutex lock; 1043s # }; 1043s # 1043s # static void 1043s # _org_project_useful_interface_skeleton_handle_method_call ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name, 1043s # const gchar *method_name, 1043s # GVariant *parameters, 1043s # GDBusMethodInvocation *invocation, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # _ExtendedGDBusMethodInfo *info; 1043s # GVariantIter iter; 1043s # GVariant *child; 1043s # GValue *paramv; 1043s # gsize num_params; 1043s # guint num_extra; 1043s # gsize n; 1043s # guint signal_id; 1043s # GValue return_value = G_VALUE_INIT; 1043s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1043s # g_assert (info != NULL); 1043s # num_params = g_variant_n_children (parameters); 1043s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1043s # n = 0; 1043s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_set_object (¶mv[n++], skeleton); 1043s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1043s # g_value_set_object (¶mv[n++], invocation); 1043s # if (info->pass_fdlist) 1043s # { 1043s # #ifdef G_OS_UNIX 1043s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1043s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1043s # #else 1043s # g_assert_not_reached (); 1043s # #endif 1043s # } 1043s # g_variant_iter_init (&iter, parameters); 1043s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1043s # { 1043s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1043s # if (arg_info->use_gvariant) 1043s # { 1043s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1043s # g_value_set_variant (¶mv[n], child); 1043s # n++; 1043s # } 1043s # else 1043s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1043s # g_variant_unref (child); 1043s # } 1043s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1043s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1043s # if (!g_value_get_boolean (&return_value)) 1043s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1043s # g_value_unset (&return_value); 1043s # for (n = 0; n < num_params + num_extra; n++) 1043s # g_value_unset (¶mv[n]); 1043s # g_free (paramv); 1043s # } 1043s # 1043s # static GVariant * 1043s # _org_project_useful_interface_skeleton_handle_get_property ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name G_GNUC_UNUSED, 1043s # const gchar *property_name, 1043s # GError **error, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # GValue value = G_VALUE_INIT; 1043s # GParamSpec *pspec; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # GVariant *ret; 1043s # ret = NULL; 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1043s # g_assert (info != NULL); 1043s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1043s # if (pspec == NULL) 1043s # { 1043s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1043s # } 1043s # else 1043s # { 1043s # g_value_init (&value, pspec->value_type); 1043s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1043s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1043s # g_value_unset (&value); 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static gboolean 1043s # _org_project_useful_interface_skeleton_handle_set_property ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name G_GNUC_UNUSED, 1043s # const gchar *property_name, 1043s # GVariant *variant, 1043s # GError **error, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # GValue value = G_VALUE_INIT; 1043s # GParamSpec *pspec; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # gboolean ret; 1043s # ret = FALSE; 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1043s # g_assert (info != NULL); 1043s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1043s # if (pspec == NULL) 1043s # { 1043s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1043s # } 1043s # else 1043s # { 1043s # if (info->use_gvariant) 1043s # g_value_set_variant (&value, variant); 1043s # else 1043s # g_dbus_gvariant_to_gvalue (variant, &value); 1043s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1043s # g_value_unset (&value); 1043s # ret = TRUE; 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1043s # { 1043s # _org_project_useful_interface_skeleton_handle_method_call, 1043s # _org_project_useful_interface_skeleton_handle_get_property, 1043s # _org_project_useful_interface_skeleton_handle_set_property, 1043s # {NULL} 1043s # }; 1043s # 1043s # static GDBusInterfaceInfo * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1043s # { 1043s # return org_project_useful_interface_interface_info (); 1043s # } 1043s # 1043s # static GDBusInterfaceVTable * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1043s # { 1043s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1043s # } 1043s # 1043s # static GVariant * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1043s # 1043s # GVariantBuilder builder; 1043s # guint n; 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1043s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1043s # #else 1043s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1043s # #endif 1043s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1043s # goto out; 1043s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1043s # { 1043s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1043s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1043s # { 1043s # GVariant *value; 1043s # 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); 1043s # if (value != NULL) 1043s # { 1043s # g_variant_take_ref (value); 1043s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1043s # g_variant_unref (value); 1043s # } 1043s # } 1043s # } 1043s # out: 1043s # return g_variant_builder_end (&builder); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1043s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1043s # 1043s # #else 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1043s # 1043s # #endif 1043s # static void 1043s # org_project_useful_interface_skeleton_finalize (GObject *object) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1043s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1043s # if (skeleton->priv->changed_properties_idle_source != NULL) 1043s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1043s # g_main_context_unref (skeleton->priv->context); 1043s # g_mutex_clear (&skeleton->priv->lock); 1043s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1043s # { 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1043s # #else 1043s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1043s # #endif 1043s # 1043s # g_mutex_init (&skeleton->priv->lock); 1043s # skeleton->priv->context = g_main_context_ref_thread_default (); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1043s # { 1043s # GObjectClass *gobject_class; 1043s # GDBusInterfaceSkeletonClass *skeleton_class; 1043s # 1043s # gobject_class = G_OBJECT_CLASS (klass); 1043s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1043s # 1043s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1043s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1043s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1043s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1043s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1043s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1043s # #endif 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_skeleton_new: 1043s # * 1043s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_skeleton_new (void) 1043s # { 1043s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1043s # } 1043s # Error: 1043s # 1043s # /tmp/tmpd1ucwcbz/tmpzpfejcwd.xml: 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpd1ucwcbz/tmpzpfejcwd.xml', '--output', '-', '--body'] 1043s # Return code: 0 1043s # Output: 1043s # /* 1043s # * This file is generated by gdbus-codegen, do not modify it. 1043s # * 1043s # * The license of this code is the same as for the D-Bus interface description 1043s # * it was derived from. Note that it links to GLib, so must comply with the 1043s # * LGPL linking clauses. 1043s # */ 1043s # 1043s # #ifdef HAVE_CONFIG_H 1043s # # include "config.h" 1043s # #endif 1043s # 1043s # #include 1043s # #ifdef G_OS_UNIX 1043s # # include 1043s # #endif 1043s # 1043s # #ifdef G_ENABLE_DEBUG 1043s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1043s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1043s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1043s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1043s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1043s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1043s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1043s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1043s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1043s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1043s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1043s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1043s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1043s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1043s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1043s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1043s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1043s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1043s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1043s # #else /* !G_ENABLE_DEBUG */ 1043s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1043s # * Do not access GValues directly in your code. Instead, use the 1043s # * g_value_get_*() functions 1043s # */ 1043s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1043s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1043s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1043s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1043s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1043s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1043s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1043s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1043s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1043s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1043s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1043s # #endif /* !G_ENABLE_DEBUG */ 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusArgInfo parent_struct; 1043s # gboolean use_gvariant; 1043s # } _ExtendedGDBusArgInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusMethodInfo parent_struct; 1043s # const gchar *signal_name; 1043s # gboolean pass_fdlist; 1043s # } _ExtendedGDBusMethodInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusSignalInfo parent_struct; 1043s # const gchar *signal_name; 1043s # } _ExtendedGDBusSignalInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusPropertyInfo parent_struct; 1043s # const gchar *hyphen_name; 1043s # guint use_gvariant : 1; 1043s # guint emits_changed_signal : 1; 1043s # } _ExtendedGDBusPropertyInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusInterfaceInfo parent_struct; 1043s # const gchar *hyphen_name; 1043s # } _ExtendedGDBusInterfaceInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # const _ExtendedGDBusPropertyInfo *info; 1043s # guint prop_id; 1043s # GValue orig_value; /* the value before the change */ 1043s # } ChangedProperty; 1043s # 1043s # static void 1043s # _changed_property_free (ChangedProperty *data) 1043s # { 1043s # g_value_unset (&data->orig_value); 1043s # g_free (data); 1043s # } 1043s # 1043s # static gboolean 1043s # _g_strv_equal0 (gchar **a, gchar **b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # guint n; 1043s # if (a == NULL && b == NULL) 1043s # { 1043s # ret = TRUE; 1043s # goto out; 1043s # } 1043s # if (a == NULL || b == NULL) 1043s # goto out; 1043s # if (g_strv_length (a) != g_strv_length (b)) 1043s # goto out; 1043s # for (n = 0; a[n] != NULL; n++) 1043s # if (g_strcmp0 (a[n], b[n]) != 0) 1043s # goto out; 1043s # ret = TRUE; 1043s # out: 1043s # return ret; 1043s # } 1043s # 1043s # static gboolean 1043s # _g_variant_equal0 (GVariant *a, GVariant *b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # if (a == NULL && b == NULL) 1043s # { 1043s # ret = TRUE; 1043s # goto out; 1043s # } 1043s # if (a == NULL || b == NULL) 1043s # goto out; 1043s # ret = g_variant_equal (a, b); 1043s # out: 1043s # return ret; 1043s # } 1043s # 1043s # G_GNUC_UNUSED static gboolean 1043s # _g_value_equal (const GValue *a, const GValue *b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1043s # switch (G_VALUE_TYPE (a)) 1043s # { 1043s # case G_TYPE_BOOLEAN: 1043s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1043s # break; 1043s # case G_TYPE_UCHAR: 1043s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1043s # break; 1043s # case G_TYPE_INT: 1043s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1043s # break; 1043s # case G_TYPE_UINT: 1043s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1043s # break; 1043s # case G_TYPE_INT64: 1043s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1043s # break; 1043s # case G_TYPE_UINT64: 1043s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1043s # break; 1043s # case G_TYPE_DOUBLE: 1043s # { 1043s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1043s # gdouble da = g_value_get_double (a); 1043s # gdouble db = g_value_get_double (b); 1043s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1043s # } 1043s # break; 1043s # case G_TYPE_STRING: 1043s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1043s # break; 1043s # case G_TYPE_VARIANT: 1043s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1043s # break; 1043s # default: 1043s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1043s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1043s # else 1043s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1043s # break; 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static void 1043s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT64 ( 1043s # GClosure *closure, 1043s # GValue *return_value, 1043s # unsigned int n_param_values, 1043s # const GValue *param_values, 1043s # void *invocation_hint G_GNUC_UNUSED, 1043s # void *marshal_data) 1043s # { 1043s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectInt64Func) 1043s # (void *data1, 1043s # GDBusMethodInvocation *arg_method_invocation, 1043s # gint64 arg_arg_x, 1043s # void *data2); 1043s # _GDbusCodegenMarshalBoolean_ObjectInt64Func callback; 1043s # GCClosure *cc = (GCClosure*) closure; 1043s # void *data1, *data2; 1043s # gboolean v_return; 1043s # 1043s # g_return_if_fail (return_value != NULL); 1043s # g_return_if_fail (n_param_values == 3); 1043s # 1043s # if (G_CCLOSURE_SWAP_DATA (closure)) 1043s # { 1043s # data1 = closure->data; 1043s # data2 = g_value_peek_pointer (param_values + 0); 1043s # } 1043s # else 1043s # { 1043s # data1 = g_value_peek_pointer (param_values + 0); 1043s # data2 = closure->data; 1043s # } 1043s # 1043s # callback = (_GDbusCodegenMarshalBoolean_ObjectInt64Func) 1043s # (marshal_data ? marshal_data : cc->callback); 1043s # 1043s # v_return = 1043s # callback (data1, 1043s # g_marshal_value_peek_object (param_values + 1), 1043s # g_marshal_value_peek_int64 (param_values + 2), 1043s # data2); 1043s # 1043s # g_value_set_boolean (return_value, v_return); 1043s # } 1043s # 1043s # /* ------------------------------------------------------------------------ 1043s # * Code for interface org.project.UsefulInterface 1043s # * ------------------------------------------------------------------------ 1043s # */ 1043s # 1043s # /** 1043s # * SECTION:OrgProjectUsefulInterface 1043s # * @title: OrgProjectUsefulInterface 1043s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1043s # * 1043s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1043s # */ 1043s # 1043s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1043s # 1043s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_arg_x = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "arg_x", 1043s # (gchar *) "x", 1043s # NULL 1043s # }, 1043s # FALSE 1043s # }; 1043s # 1043s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_pointers[] = 1043s # { 1043s # &_org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_arg_x.parent_struct, 1043s # NULL 1043s # }; 1043s # 1043s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_x = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "SingleArgMethodX", 1043s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_pointers, 1043s # NULL, 1043s # NULL 1043s # }, 1043s # "handle-single-arg-method-x", 1043s # FALSE 1043s # }; 1043s # 1043s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1043s # { 1043s # &_org_project_useful_interface_method_info_single_arg_method_x.parent_struct, 1043s # NULL 1043s # }; 1043s # 1043s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "org.project.UsefulInterface", 1043s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1043s # NULL, 1043s # NULL, 1043s # NULL 1043s # }, 1043s # "org-project-useful-interface", 1043s # }; 1043s # 1043s # 1043s # /** 1043s # * org_project_useful_interface_interface_info: 1043s # * 1043s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1043s # * 1043s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1043s # */ 1043s # GDBusInterfaceInfo * 1043s # org_project_useful_interface_interface_info (void) 1043s # { 1043s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_override_properties: 1043s # * @klass: The class structure for a #GObject derived class. 1043s # * @property_id_begin: The property id to assign to the first overridden property. 1043s # * 1043s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1043s # * The properties are overridden in the order they are defined. 1043s # * 1043s # * Returns: The last property id. 1043s # */ 1043s # guint 1043s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1043s # { 1043s # return property_id_begin - 1; 1043s # } 1043s # 1043s # 1043s # inline static void 1043s # org_project_useful_interface_method_marshal_single_arg_method_x ( 1043s # GClosure *closure, 1043s # GValue *return_value, 1043s # unsigned int n_param_values, 1043s # const GValue *param_values, 1043s # void *invocation_hint, 1043s # void *marshal_data) 1043s # { 1043s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT64 (closure, 1043s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1043s # } 1043s # 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterface: 1043s # * 1043s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceIface: 1043s # * @parent_iface: The parent interface. 1043s # * @handle_single_arg_method_x: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-x signal. 1043s # * 1043s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1043s # */ 1043s # 1043s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1043s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1043s # 1043s # static void 1043s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1043s # { 1043s # /* GObject signals for incoming D-Bus method calls: */ 1043s # /** 1043s # * OrgProjectUsefulInterface::handle-single-arg-method-x: 1043s # * @object: A #OrgProjectUsefulInterface. 1043s # * @invocation: A #GDBusMethodInvocation. 1043s # * @arg_arg_x: Argument passed by remote caller. 1043s # * 1043s # * Signal emitted when a remote caller is invoking the SingleArgMethodX() D-Bus method. 1043s # * 1043s # * 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. 1043s # * 1043s # * 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. 1043s # */ 1043s # g_signal_new ("handle-single-arg-method-x", 1043s # G_TYPE_FROM_INTERFACE (iface), 1043s # G_SIGNAL_RUN_LAST, 1043s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_x), 1043s # g_signal_accumulator_true_handled, 1043s # NULL, 1043s # org_project_useful_interface_method_marshal_single_arg_method_x, 1043s # G_TYPE_BOOLEAN, 1043s # 2, 1043s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT64); 1043s # 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_x: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @arg_arg_x: Argument to pass with the method invocation. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Asynchronously invokes the SingleArgMethodX() D-Bus method on @proxy. 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_call_single_arg_method_x_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_call_single_arg_method_x_sync() for the synchronous, blocking version of this method. 1043s # */ 1043s # void 1043s # org_project_useful_interface_call_single_arg_method_x ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # gint64 arg_arg_x, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1043s # "SingleArgMethodX", 1043s # g_variant_new ("(x)", 1043s # arg_arg_x), 1043s # G_DBUS_CALL_FLAGS_NONE, 1043s # -1, 1043s # cancellable, 1043s # callback, 1043s # user_data); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_x_finish: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_x(). 1043s # * @error: Return location for error or %NULL. 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_x(). 1043s # * 1043s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1043s # */ 1043s # gboolean 1043s # org_project_useful_interface_call_single_arg_method_x_finish ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GVariant *_ret; 1043s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1043s # if (_ret == NULL) 1043s # goto _out; 1043s # g_variant_get (_ret, 1043s # "()"); 1043s # g_variant_unref (_ret); 1043s # _out: 1043s # return _ret != NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_x_sync: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @arg_arg_x: Argument to pass with the method invocation. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL. 1043s # * 1043s # * Synchronously invokes the SingleArgMethodX() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_call_single_arg_method_x() for the asynchronous version of this method. 1043s # * 1043s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1043s # */ 1043s # gboolean 1043s # org_project_useful_interface_call_single_arg_method_x_sync ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # gint64 arg_arg_x, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GVariant *_ret; 1043s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1043s # "SingleArgMethodX", 1043s # g_variant_new ("(x)", 1043s # arg_arg_x), 1043s # G_DBUS_CALL_FLAGS_NONE, 1043s # -1, 1043s # cancellable, 1043s # error); 1043s # if (_ret == NULL) 1043s # goto _out; 1043s # g_variant_get (_ret, 1043s # "()"); 1043s # g_variant_unref (_ret); 1043s # _out: 1043s # return _ret != NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_complete_single_arg_method_x: 1043s # * @object: A #OrgProjectUsefulInterface. 1043s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1043s # * 1043s # * 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. 1043s # * 1043s # * This method will free @invocation, you cannot use it afterwards. 1043s # */ 1043s # void 1043s # org_project_useful_interface_complete_single_arg_method_x ( 1043s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1043s # GDBusMethodInvocation *invocation) 1043s # { 1043s # g_dbus_method_invocation_return_value (invocation, 1043s # g_variant_new ("()")); 1043s # } 1043s # 1043s # /* ------------------------------------------------------------------------ */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceProxy: 1043s # * 1043s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceProxyClass: 1043s # * @parent_class: The parent class. 1043s # * 1043s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1043s # */ 1043s # 1043s # struct _OrgProjectUsefulInterfaceProxyPrivate 1043s # { 1043s # GData *qdata; 1043s # }; 1043s # 1043s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1043s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1043s # 1043s # #else 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1043s # 1043s # #endif 1043s # static void 1043s # org_project_useful_interface_proxy_finalize (GObject *object) 1043s # { 1043s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1043s # g_datalist_clear (&proxy->priv->qdata); 1043s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1043s # guint prop_id G_GNUC_UNUSED, 1043s # GValue *value G_GNUC_UNUSED, 1043s # GParamSpec *pspec G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1043s # guint prop_id G_GNUC_UNUSED, 1043s # const GValue *value G_GNUC_UNUSED, 1043s # GParamSpec *pspec G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1043s # const gchar *sender_name G_GNUC_UNUSED, 1043s # const gchar *signal_name, 1043s # GVariant *parameters) 1043s # { 1043s # _ExtendedGDBusSignalInfo *info; 1043s # GVariantIter iter; 1043s # GVariant *child; 1043s # GValue *paramv; 1043s # gsize num_params; 1043s # gsize n; 1043s # guint signal_id; 1043s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1043s # if (info == NULL) 1043s # return; 1043s # num_params = g_variant_n_children (parameters); 1043s # paramv = g_new0 (GValue, num_params + 1); 1043s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_set_object (¶mv[0], proxy); 1043s # g_variant_iter_init (&iter, parameters); 1043s # n = 1; 1043s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1043s # { 1043s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1043s # if (arg_info->use_gvariant) 1043s # { 1043s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1043s # g_value_set_variant (¶mv[n], child); 1043s # n++; 1043s # } 1043s # else 1043s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1043s # g_variant_unref (child); 1043s # } 1043s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_signal_emitv (paramv, signal_id, 0, NULL); 1043s # for (n = 0; n < num_params + 1; n++) 1043s # g_value_unset (¶mv[n]); 1043s # g_free (paramv); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1043s # GVariant *changed_properties, 1043s # const gchar *const *invalidated_properties) 1043s # { 1043s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1043s # guint n; 1043s # const gchar *key; 1043s # GVariantIter *iter; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # g_variant_get (changed_properties, "a{sv}", &iter); 1043s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1043s # { 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1043s # g_datalist_remove_data (&proxy->priv->qdata, key); 1043s # if (info != NULL) 1043s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1043s # } 1043s # g_variant_iter_free (iter); 1043s # for (n = 0; invalidated_properties[n] != NULL; n++) 1043s # { 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1043s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1043s # if (info != NULL) 1043s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1043s # } 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1043s # { 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1043s # #else 1043s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1043s # #endif 1043s # 1043s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1043s # { 1043s # GObjectClass *gobject_class; 1043s # GDBusProxyClass *proxy_class; 1043s # 1043s # gobject_class = G_OBJECT_CLASS (klass); 1043s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1043s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1043s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1043s # 1043s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1043s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1043s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1043s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1043s # #endif 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new: 1043s # * @connection: A #GDBusConnection. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1043s # * 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1043s # */ 1043s # void 1043s # org_project_useful_interface_proxy_new ( 1043s # GDBusConnection *connection, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_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); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_finish: 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_finish ( 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GObject *ret; 1043s # GObject *source_object; 1043s # source_object = g_async_result_get_source_object (res); 1043s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1043s # g_object_unref (source_object); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_sync: 1043s # * @connection: A #GDBusConnection. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1043s # * 1043s # * The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_sync ( 1043s # GDBusConnection *connection, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GInitable *ret; 1043s # 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); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus: 1043s # * @bus_type: A #GBusType. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: A bus name (well-known or unique). 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1043s # * 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1043s # */ 1043s # void 1043s # org_project_useful_interface_proxy_new_for_bus ( 1043s # GBusType bus_type, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_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); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus_finish: 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_for_bus_finish ( 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GObject *ret; 1043s # GObject *source_object; 1043s # source_object = g_async_result_get_source_object (res); 1043s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1043s # g_object_unref (source_object); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus_sync: 1043s # * @bus_type: A #GBusType. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: A bus name (well-known or unique). 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1043s # * 1043s # * The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_for_bus_sync ( 1043s # GBusType bus_type, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GInitable *ret; 1043s # 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); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # 1043s # /* ------------------------------------------------------------------------ */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceSkeleton: 1043s # * 1043s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceSkeletonClass: 1043s # * @parent_class: The parent class. 1043s # * 1043s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1043s # */ 1043s # 1043s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1043s # { 1043s # GValue *properties; 1043s # GList *changed_properties; 1043s # GSource *changed_properties_idle_source; 1043s # GMainContext *context; 1043s # GMutex lock; 1043s # }; 1043s # 1043s # static void 1043s # _org_project_useful_interface_skeleton_handle_method_call ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name, 1043s # const gchar *method_name, 1043s # GVariant *parameters, 1043s # GDBusMethodInvocation *invocation, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # _ExtendedGDBusMethodInfo *info; 1043s # GVariantIter iter; 1043s # GVariant *child; 1043s # GValue *paramv; 1043s # gsize num_params; 1043s # guint num_extra; 1043s # gsize n; 1043s # guint signal_id; 1043s # GValue return_value = G_VALUE_INIT; 1043s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1043s # g_assert (info != NULL); 1043s # num_params = g_variant_n_children (parameters); 1043s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1043s # n = 0; 1043s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_set_object (¶mv[n++], skeleton); 1043s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1043s # g_value_set_object (¶mv[n++], invocation); 1043s # if (info->pass_fdlist) 1043s # { 1043s # #ifdef G_OS_UNIX 1043s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1043s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1043s # #else 1043s # g_assert_not_reached (); 1043s # #endif 1043s # } 1043s # g_variant_iter_init (&iter, parameters); 1043s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1043s # { 1043s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1043s # if (arg_info->use_gvariant) 1043s # { 1043s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1043s # g_value_set_variant (¶mv[n], child); 1043s # n++; 1043s # } 1043s # else 1043s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1043s # g_variant_unref (child); 1043s # } 1043s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1043s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1043s # if (!g_value_get_boolean (&return_value)) 1043s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1043s # g_value_unset (&return_value); 1043s # for (n = 0; n < num_params + num_extra; n++) 1043s # g_value_unset (¶mv[n]); 1043s # g_free (paramv); 1043s # } 1043s # 1043s # static GVariant * 1043s # _org_project_useful_interface_skeleton_handle_get_property ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name G_GNUC_UNUSED, 1043s # const gchar *property_name, 1043s # GError **error, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # GValue value = G_VALUE_INIT; 1043s # GParamSpec *pspec; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # GVariant *ret; 1043s # ret = NULL; 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1043s # g_assert (info != NULL); 1043s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1043s # if (pspec == NULL) 1043s # { 1043s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1043s # } 1043s # else 1043s # { 1043s # g_value_init (&value, pspec->value_type); 1043s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1043s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1043s # g_value_unset (&value); 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static gboolean 1043s # _org_project_useful_interface_skeleton_handle_set_property ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name G_GNUC_UNUSED, 1043s # const gchar *property_name, 1043s # GVariant *variant, 1043s # GError **error, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # GValue value = G_VALUE_INIT; 1043s # GParamSpec *pspec; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # gboolean ret; 1043s # ret = FALSE; 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1043s # g_assert (info != NULL); 1043s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1043s # if (pspec == NULL) 1043s # { 1043s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1043s # } 1043s # else 1043s # { 1043s # if (info->use_gvariant) 1043s # g_value_set_variant (&value, variant); 1043s # else 1043s # g_dbus_gvariant_to_gvalue (variant, &value); 1043s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1043s # g_value_unset (&value); 1043s # ret = TRUE; 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1043s # { 1043s # _org_project_useful_interface_skeleton_handle_method_call, 1043s # _org_project_useful_interface_skeleton_handle_get_property, 1043s # _org_project_useful_interface_skeleton_handle_set_property, 1043s # {NULL} 1043s # }; 1043s # 1043s # static GDBusInterfaceInfo * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1043s # { 1043s # return org_project_useful_interface_interface_info (); 1043s # } 1043s # 1043s # static GDBusInterfaceVTable * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1043s # { 1043s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1043s # } 1043s # 1043s # static GVariant * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1043s # 1043s # GVariantBuilder builder; 1043s # guint n; 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1043s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1043s # #else 1043s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1043s # #endif 1043s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1043s # goto out; 1043s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1043s # { 1043s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1043s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1043s # { 1043s # GVariant *value; 1043s # 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); 1043s # if (value != NULL) 1043s # { 1043s # g_variant_take_ref (value); 1043s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1043s # g_variant_unref (value); 1043s # } 1043s # } 1043s # } 1043s # out: 1043s # return g_variant_builder_end (&builder); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1043s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1043s # 1043s # #else 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1043s # 1043s # #endif 1043s # static void 1043s # org_project_useful_interface_skeleton_finalize (GObject *object) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1043s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1043s # if (skeleton->priv->changed_properties_idle_source != NULL) 1043s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1043s # g_main_context_unref (skeleton->priv->context); 1043s # g_mutex_clear (&skeleton->priv->lock); 1043s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1043s # { 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1043s # #else 1043s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1043s # #endif 1043s # 1043s # g_mutex_init (&skeleton->priv->lock); 1043s # skeleton->priv->context = g_main_context_ref_thread_default (); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1043s # { 1043s # GObjectClass *gobject_class; 1043s # GDBusInterfaceSkeletonClass *skeleton_class; 1043s # 1043s # gobject_class = G_OBJECT_CLASS (klass); 1043s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1043s # 1043s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1043s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1043s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1043s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1043s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1043s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1043s # #endif 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_skeleton_new: 1043s # * 1043s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_skeleton_new (void) 1043s # { 1043s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1043s # } 1043s # Error: 1043s # 1043s # /tmp/tmpd1ucwcbz/tmpemis3u3d.xml: 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpd1ucwcbz/tmpemis3u3d.xml', '--output', '-', '--body'] 1043s # Return code: 0 1043s # Output: 1043s # /* 1043s # * This file is generated by gdbus-codegen, do not modify it. 1043s # * 1043s # * The license of this code is the same as for the D-Bus interface description 1043s # * it was derived from. Note that it links to GLib, so must comply with the 1043s # * LGPL linking clauses. 1043s # */ 1043s # 1043s # #ifdef HAVE_CONFIG_H 1043s # # include "config.h" 1043s # #endif 1043s # 1043s # #include 1043s # #ifdef G_OS_UNIX 1043s # # include 1043s # #endif 1043s # 1043s # #ifdef G_ENABLE_DEBUG 1043s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1043s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1043s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1043s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1043s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1043s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1043s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1043s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1043s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1043s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1043s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1043s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1043s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1043s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1043s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1043s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1043s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1043s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1043s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1043s # #else /* !G_ENABLE_DEBUG */ 1043s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1043s # * Do not access GValues directly in your code. Instead, use the 1043s # * g_value_get_*() functions 1043s # */ 1043s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1043s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1043s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1043s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1043s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1043s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1043s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1043s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1043s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1043s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1043s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1043s # #endif /* !G_ENABLE_DEBUG */ 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusArgInfo parent_struct; 1043s # gboolean use_gvariant; 1043s # } _ExtendedGDBusArgInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusMethodInfo parent_struct; 1043s # const gchar *signal_name; 1043s # gboolean pass_fdlist; 1043s # } _ExtendedGDBusMethodInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusSignalInfo parent_struct; 1043s # const gchar *signal_name; 1043s # } _ExtendedGDBusSignalInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusPropertyInfo parent_struct; 1043s # const gchar *hyphen_name; 1043s # guint use_gvariant : 1; 1043s # guint emits_changed_signal : 1; 1043s # } _ExtendedGDBusPropertyInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusInterfaceInfo parent_struct; 1043s # const gchar *hyphen_name; 1043s # } _ExtendedGDBusInterfaceInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # const _ExtendedGDBusPropertyInfo *info; 1043s # guint prop_id; 1043s # GValue orig_value; /* the value before the change */ 1043s # } ChangedProperty; 1043s # 1043s # static void 1043s # _changed_property_free (ChangedProperty *data) 1043s # { 1043s # g_value_unset (&data->orig_value); 1043s # g_free (data); 1043s # } 1043s # 1043s # static gboolean 1043s # _g_strv_equal0 (gchar **a, gchar **b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # guint n; 1043s # if (a == NULL && b == NULL) 1043s # { 1043s # ret = TRUE; 1043s # goto out; 1043s # } 1043s # if (a == NULL || b == NULL) 1043s # goto out; 1043s # if (g_strv_length (a) != g_strv_length (b)) 1043s # goto out; 1043s # for (n = 0; a[n] != NULL; n++) 1043s # if (g_strcmp0 (a[n], b[n]) != 0) 1043s # goto out; 1043s # ret = TRUE; 1043s # out: 1043s # return ret; 1043s # } 1043s # 1043s # static gboolean 1043s # _g_variant_equal0 (GVariant *a, GVariant *b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # if (a == NULL && b == NULL) 1043s # { 1043s # ret = TRUE; 1043s # goto out; 1043s # } 1043s # if (a == NULL || b == NULL) 1043s # goto out; 1043s # ret = g_variant_equal (a, b); 1043s # out: 1043s # return ret; 1043s # } 1043s # 1043s # G_GNUC_UNUSED static gboolean 1043s # _g_value_equal (const GValue *a, const GValue *b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1043s # switch (G_VALUE_TYPE (a)) 1043s # { 1043s # case G_TYPE_BOOLEAN: 1043s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1043s # break; 1043s # case G_TYPE_UCHAR: 1043s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1043s # break; 1043s # case G_TYPE_INT: 1043s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1043s # break; 1043s # case G_TYPE_UINT: 1043s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1043s # break; 1043s # case G_TYPE_INT64: 1043s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1043s # break; 1043s # case G_TYPE_UINT64: 1043s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1043s # break; 1043s # case G_TYPE_DOUBLE: 1043s # { 1043s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1043s # gdouble da = g_value_get_double (a); 1043s # gdouble db = g_value_get_double (b); 1043s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1043s # } 1043s # break; 1043s # case G_TYPE_STRING: 1043s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1043s # break; 1043s # case G_TYPE_VARIANT: 1043s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1043s # break; 1043s # default: 1043s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1043s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1043s # else 1043s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1043s # break; 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static void 1043s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT64 ( 1043s # GClosure *closure, 1043s # GValue *return_value, 1043s # unsigned int n_param_values, 1043s # const GValue *param_values, 1043s # void *invocation_hint G_GNUC_UNUSED, 1043s # void *marshal_data) 1043s # { 1043s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUint64Func) 1043s # (void *data1, 1043s # GDBusMethodInvocation *arg_method_invocation, 1043s # guint64 arg_arg_t, 1043s # void *data2); 1043s # _GDbusCodegenMarshalBoolean_ObjectUint64Func callback; 1043s # GCClosure *cc = (GCClosure*) closure; 1043s # void *data1, *data2; 1043s # gboolean v_return; 1043s # 1043s # g_return_if_fail (return_value != NULL); 1043s # g_return_if_fail (n_param_values == 3); 1043s # 1043s # if (G_CCLOSURE_SWAP_DATA (closure)) 1043s # { 1043s # data1 = closure->data; 1043s # data2 = g_value_peek_pointer (param_values + 0); 1043s # } 1043s # else 1043s # { 1043s # data1 = g_value_peek_pointer (param_values + 0); 1043s # data2 = closure->data; 1043s # } 1043s # 1043s # callback = (_GDbusCodegenMarshalBoolean_ObjectUint64Func) 1043s # (marshal_data ? marshal_data : cc->callback); 1043s # 1043s # v_return = 1043s # callback (data1, 1043s # g_marshal_value_peek_object (param_values + 1), 1043s # g_marshal_value_peek_uint64 (param_values + 2), 1043s # data2); 1043s # 1043s # g_value_set_boolean (return_value, v_return); 1043s # } 1043s # 1043s # /* ------------------------------------------------------------------------ 1043s # * Code for interface org.project.UsefulInterface 1043s # * ------------------------------------------------------------------------ 1043s # */ 1043s # 1043s # /** 1043s # * SECTION:OrgProjectUsefulInterface 1043s # * @title: OrgProjectUsefulInterface 1043s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1043s # * 1043s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1043s # */ 1043s # 1043s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1043s # 1043s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_arg_t = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "arg_t", 1043s # (gchar *) "t", 1043s # NULL 1043s # }, 1043s # FALSE 1043s # }; 1043s # 1043s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_pointers[] = 1043s # { 1043s # &_org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_arg_t.parent_struct, 1043s # NULL 1043s # }; 1043s # 1043s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_t = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "SingleArgMethodT", 1043s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_pointers, 1043s # NULL, 1043s # NULL 1043s # }, 1043s # "handle-single-arg-method-t", 1043s # FALSE 1043s # }; 1043s # 1043s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1043s # { 1043s # &_org_project_useful_interface_method_info_single_arg_method_t.parent_struct, 1043s # NULL 1043s # }; 1043s # 1043s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "org.project.UsefulInterface", 1043s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1043s # NULL, 1043s # NULL, 1043s # NULL 1043s # }, 1043s # "org-project-useful-interface", 1043s # }; 1043s # 1043s # 1043s # /** 1043s # * org_project_useful_interface_interface_info: 1043s # * 1043s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1043s # * 1043s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1043s # */ 1043s # GDBusInterfaceInfo * 1043s # org_project_useful_interface_interface_info (void) 1043s # { 1043s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_override_properties: 1043s # * @klass: The class structure for a #GObject derived class. 1043s # * @property_id_begin: The property id to assign to the first overridden property. 1043s # * 1043s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1043s # * The properties are overridden in the order they are defined. 1043s # * 1043s # * Returns: The last property id. 1043s # */ 1043s # guint 1043s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1043s # { 1043s # return property_id_begin - 1; 1043s # } 1043s # 1043s # 1043s # inline static void 1043s # org_project_useful_interface_method_marshal_single_arg_method_t ( 1043s # GClosure *closure, 1043s # GValue *return_value, 1043s # unsigned int n_param_values, 1043s # const GValue *param_values, 1043s # void *invocation_hint, 1043s # void *marshal_data) 1043s # { 1043s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT64 (closure, 1043s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1043s # } 1043s # 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterface: 1043s # * 1043s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceIface: 1043s # * @parent_iface: The parent interface. 1043s # * @handle_single_arg_method_t: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-t signal. 1043s # * 1043s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1043s # */ 1043s # 1043s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1043s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1043s # 1043s # static void 1043s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1043s # { 1043s # /* GObject signals for incoming D-Bus method calls: */ 1043s # /** 1043s # * OrgProjectUsefulInterface::handle-single-arg-method-t: 1043s # * @object: A #OrgProjectUsefulInterface. 1043s # * @invocation: A #GDBusMethodInvocation. 1043s # * @arg_arg_t: Argument passed by remote caller. 1043s # * 1043s # * Signal emitted when a remote caller is invoking the SingleArgMethodT() D-Bus method. 1043s # * 1043s # * 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. 1043s # * 1043s # * 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. 1043s # */ 1043s # g_signal_new ("handle-single-arg-method-t", 1043s # G_TYPE_FROM_INTERFACE (iface), 1043s # G_SIGNAL_RUN_LAST, 1043s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_t), 1043s # g_signal_accumulator_true_handled, 1043s # NULL, 1043s # org_project_useful_interface_method_marshal_single_arg_method_t, 1043s # G_TYPE_BOOLEAN, 1043s # 2, 1043s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT64); 1043s # 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_t: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @arg_arg_t: Argument to pass with the method invocation. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Asynchronously invokes the SingleArgMethodT() D-Bus method on @proxy. 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_call_single_arg_method_t_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_call_single_arg_method_t_sync() for the synchronous, blocking version of this method. 1043s # */ 1043s # void 1043s # org_project_useful_interface_call_single_arg_method_t ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # guint64 arg_arg_t, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1043s # "SingleArgMethodT", 1043s # g_variant_new ("(t)", 1043s # arg_arg_t), 1043s # G_DBUS_CALL_FLAGS_NONE, 1043s # -1, 1043s # cancellable, 1043s # callback, 1043s # user_data); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_t_finish: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_t(). 1043s # * @error: Return location for error or %NULL. 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_t(). 1043s # * 1043s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1043s # */ 1043s # gboolean 1043s # org_project_useful_interface_call_single_arg_method_t_finish ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GVariant *_ret; 1043s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1043s # if (_ret == NULL) 1043s # goto _out; 1043s # g_variant_get (_ret, 1043s # "()"); 1043s # g_variant_unref (_ret); 1043s # _out: 1043s # return _ret != NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_t_sync: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @arg_arg_t: Argument to pass with the method invocation. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL. 1043s # * 1043s # * Synchronously invokes the SingleArgMethodT() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_call_single_arg_method_t() for the asynchronous version of this method. 1043s # * 1043s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1043s # */ 1043s # gboolean 1043s # org_project_useful_interface_call_single_arg_method_t_sync ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # guint64 arg_arg_t, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GVariant *_ret; 1043s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1043s # "SingleArgMethodT", 1043s # g_variant_new ("(t)", 1043s # arg_arg_t), 1043s # G_DBUS_CALL_FLAGS_NONE, 1043s # -1, 1043s # cancellable, 1043s # error); 1043s # if (_ret == NULL) 1043s # goto _out; 1043s # g_variant_get (_ret, 1043s # "()"); 1043s # g_variant_unref (_ret); 1043s # _out: 1043s # return _ret != NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_complete_single_arg_method_t: 1043s # * @object: A #OrgProjectUsefulInterface. 1043s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1043s # * 1043s # * 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. 1043s # * 1043s # * This method will free @invocation, you cannot use it afterwards. 1043s # */ 1043s # void 1043s # org_project_useful_interface_complete_single_arg_method_t ( 1043s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1043s # GDBusMethodInvocation *invocation) 1043s # { 1043s # g_dbus_method_invocation_return_value (invocation, 1043s # g_variant_new ("()")); 1043s # } 1043s # 1043s # /* ------------------------------------------------------------------------ */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceProxy: 1043s # * 1043s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceProxyClass: 1043s # * @parent_class: The parent class. 1043s # * 1043s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1043s # */ 1043s # 1043s # struct _OrgProjectUsefulInterfaceProxyPrivate 1043s # { 1043s # GData *qdata; 1043s # }; 1043s # 1043s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1043s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1043s # 1043s # #else 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1043s # 1043s # #endif 1043s # static void 1043s # org_project_useful_interface_proxy_finalize (GObject *object) 1043s # { 1043s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1043s # g_datalist_clear (&proxy->priv->qdata); 1043s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1043s # guint prop_id G_GNUC_UNUSED, 1043s # GValue *value G_GNUC_UNUSED, 1043s # GParamSpec *pspec G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1043s # guint prop_id G_GNUC_UNUSED, 1043s # const GValue *value G_GNUC_UNUSED, 1043s # GParamSpec *pspec G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1043s # const gchar *sender_name G_GNUC_UNUSED, 1043s # const gchar *signal_name, 1043s # GVariant *parameters) 1043s # { 1043s # _ExtendedGDBusSignalInfo *info; 1043s # GVariantIter iter; 1043s # GVariant *child; 1043s # GValue *paramv; 1043s # gsize num_params; 1043s # gsize n; 1043s # guint signal_id; 1043s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1043s # if (info == NULL) 1043s # return; 1043s # num_params = g_variant_n_children (parameters); 1043s # paramv = g_new0 (GValue, num_params + 1); 1043s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_set_object (¶mv[0], proxy); 1043s # g_variant_iter_init (&iter, parameters); 1043s # n = 1; 1043s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1043s # { 1043s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1043s # if (arg_info->use_gvariant) 1043s # { 1043s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1043s # g_value_set_variant (¶mv[n], child); 1043s # n++; 1043s # } 1043s # else 1043s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1043s # g_variant_unref (child); 1043s # } 1043s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_signal_emitv (paramv, signal_id, 0, NULL); 1043s # for (n = 0; n < num_params + 1; n++) 1043s # g_value_unset (¶mv[n]); 1043s # g_free (paramv); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1043s # GVariant *changed_properties, 1043s # const gchar *const *invalidated_properties) 1043s # { 1043s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1043s # guint n; 1043s # const gchar *key; 1043s # GVariantIter *iter; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # g_variant_get (changed_properties, "a{sv}", &iter); 1043s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1043s # { 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1043s # g_datalist_remove_data (&proxy->priv->qdata, key); 1043s # if (info != NULL) 1043s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1043s # } 1043s # g_variant_iter_free (iter); 1043s # for (n = 0; invalidated_properties[n] != NULL; n++) 1043s # { 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1043s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1043s # if (info != NULL) 1043s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1043s # } 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1043s # { 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1043s # #else 1043s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1043s # #endif 1043s # 1043s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1043s # { 1043s # GObjectClass *gobject_class; 1043s # GDBusProxyClass *proxy_class; 1043s # 1043s # gobject_class = G_OBJECT_CLASS (klass); 1043s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1043s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1043s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1043s # 1043s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1043s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1043s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1043s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1043s # #endif 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new: 1043s # * @connection: A #GDBusConnection. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1043s # * 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1043s # */ 1043s # void 1043s # org_project_useful_interface_proxy_new ( 1043s # GDBusConnection *connection, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_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); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_finish: 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_finish ( 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GObject *ret; 1043s # GObject *source_object; 1043s # source_object = g_async_result_get_source_object (res); 1043s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1043s # g_object_unref (source_object); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_sync: 1043s # * @connection: A #GDBusConnection. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1043s # * 1043s # * The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_sync ( 1043s # GDBusConnection *connection, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GInitable *ret; 1043s # 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); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus: 1043s # * @bus_type: A #GBusType. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: A bus name (well-known or unique). 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1043s # * 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1043s # */ 1043s # void 1043s # org_project_useful_interface_proxy_new_for_bus ( 1043s # GBusType bus_type, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_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); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus_finish: 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_for_bus_finish ( 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GObject *ret; 1043s # GObject *source_object; 1043s # source_object = g_async_result_get_source_object (res); 1043s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1043s # g_object_unref (source_object); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus_sync: 1043s # * @bus_type: A #GBusType. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: A bus name (well-known or unique). 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1043s # * 1043s # * The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_for_bus_sync ( 1043s # GBusType bus_type, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GInitable *ret; 1043s # 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); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # 1043s # /* ------------------------------------------------------------------------ */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceSkeleton: 1043s # * 1043s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceSkeletonClass: 1043s # * @parent_class: The parent class. 1043s # * 1043s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1043s # */ 1043s # 1043s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1043s # { 1043s # GValue *properties; 1043s # GList *changed_properties; 1043s # GSource *changed_properties_idle_source; 1043s # GMainContext *context; 1043s # GMutex lock; 1043s # }; 1043s # 1043s # static void 1043s # _org_project_useful_interface_skeleton_handle_method_call ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name, 1043s # const gchar *method_name, 1043s # GVariant *parameters, 1043s # GDBusMethodInvocation *invocation, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # _ExtendedGDBusMethodInfo *info; 1043s # GVariantIter iter; 1043s # GVariant *child; 1043s # GValue *paramv; 1043s # gsize num_params; 1043s # guint num_extra; 1043s # gsize n; 1043s # guint signal_id; 1043s # GValue return_value = G_VALUE_INIT; 1043s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1043s # g_assert (info != NULL); 1043s # num_params = g_variant_n_children (parameters); 1043s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1043s # n = 0; 1043s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_set_object (¶mv[n++], skeleton); 1043s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1043s # g_value_set_object (¶mv[n++], invocation); 1043s # if (info->pass_fdlist) 1043s # { 1043s # #ifdef G_OS_UNIX 1043s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1043s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1043s # #else 1043s # g_assert_not_reached (); 1043s # #endif 1043s # } 1043s # g_variant_iter_init (&iter, parameters); 1043s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1043s # { 1043s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1043s # if (arg_info->use_gvariant) 1043s # { 1043s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1043s # g_value_set_variant (¶mv[n], child); 1043s # n++; 1043s # } 1043s # else 1043s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1043s # g_variant_unref (child); 1043s # } 1043s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1043s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1043s # if (!g_value_get_boolean (&return_value)) 1043s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1043s # g_value_unset (&return_value); 1043s # for (n = 0; n < num_params + num_extra; n++) 1043s # g_value_unset (¶mv[n]); 1043s # g_free (paramv); 1043s # } 1043s # 1043s # static GVariant * 1043s # _org_project_useful_interface_skeleton_handle_get_property ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name G_GNUC_UNUSED, 1043s # const gchar *property_name, 1043s # GError **error, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # GValue value = G_VALUE_INIT; 1043s # GParamSpec *pspec; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # GVariant *ret; 1043s # ret = NULL; 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1043s # g_assert (info != NULL); 1043s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1043s # if (pspec == NULL) 1043s # { 1043s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1043s # } 1043s # else 1043s # { 1043s # g_value_init (&value, pspec->value_type); 1043s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1043s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1043s # g_value_unset (&value); 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static gboolean 1043s # _org_project_useful_interface_skeleton_handle_set_property ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name G_GNUC_UNUSED, 1043s # const gchar *property_name, 1043s # GVariant *variant, 1043s # GError **error, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # GValue value = G_VALUE_INIT; 1043s # GParamSpec *pspec; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # gboolean ret; 1043s # ret = FALSE; 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1043s # g_assert (info != NULL); 1043s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1043s # if (pspec == NULL) 1043s # { 1043s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1043s # } 1043s # else 1043s # { 1043s # if (info->use_gvariant) 1043s # g_value_set_variant (&value, variant); 1043s # else 1043s # g_dbus_gvariant_to_gvalue (variant, &value); 1043s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1043s # g_value_unset (&value); 1043s # ret = TRUE; 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1043s # { 1043s # _org_project_useful_interface_skeleton_handle_method_call, 1043s # _org_project_useful_interface_skeleton_handle_get_property, 1043s # _org_project_useful_interface_skeleton_handle_set_property, 1043s # {NULL} 1043s # }; 1043s # 1043s # static GDBusInterfaceInfo * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1043s # { 1043s # return org_project_useful_interface_interface_info (); 1043s # } 1043s # 1043s # static GDBusInterfaceVTable * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1043s # { 1043s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1043s # } 1043s # 1043s # static GVariant * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1043s # 1043s # GVariantBuilder builder; 1043s # guint n; 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1043s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1043s # #else 1043s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1043s # #endif 1043s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1043s # goto out; 1043s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1043s # { 1043s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1043s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1043s # { 1043s # GVariant *value; 1043s # 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); 1043s # if (value != NULL) 1043s # { 1043s # g_variant_take_ref (value); 1043s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1043s # g_variant_unref (value); 1043s # } 1043s # } 1043s # } 1043s # out: 1043s # return g_variant_builder_end (&builder); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1043s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1043s # 1043s # #else 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1043s # 1043s # #endif 1043s # static void 1043s # org_project_useful_interface_skeleton_finalize (GObject *object) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1043s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1043s # if (skeleton->priv->changed_properties_idle_source != NULL) 1043s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1043s # g_main_context_unref (skeleton->priv->context); 1043s # g_mutex_clear (&skeleton->priv->lock); 1043s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1043s # { 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1043s # #else 1043s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1043s # #endif 1043s # 1043s # g_mutex_init (&skeleton->priv->lock); 1043s # skeleton->priv->context = g_main_context_ref_thread_default (); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1043s # { 1043s # GObjectClass *gobject_class; 1043s # GDBusInterfaceSkeletonClass *skeleton_class; 1043s # 1043s # gobject_class = G_OBJECT_CLASS (klass); 1043s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1043s # 1043s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1043s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1043s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1043s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1043s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1043s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1043s # #endif 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_skeleton_new: 1043s # * 1043s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_skeleton_new (void) 1043s # { 1043s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1043s # } 1043s # Error: 1043s # 1043s # /tmp/tmpd1ucwcbz/tmpv0o_1sfz.xml: 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpd1ucwcbz/tmpv0o_1sfz.xml', '--output', '-', '--body'] 1043s # Return code: 0 1043s # Output: 1043s # /* 1043s # * This file is generated by gdbus-codegen, do not modify it. 1043s # * 1043s # * The license of this code is the same as for the D-Bus interface description 1043s # * it was derived from. Note that it links to GLib, so must comply with the 1043s # * LGPL linking clauses. 1043s # */ 1043s # 1043s # #ifdef HAVE_CONFIG_H 1043s # # include "config.h" 1043s # #endif 1043s # 1043s # #include 1043s # #ifdef G_OS_UNIX 1043s # # include 1043s # #endif 1043s # 1043s # #ifdef G_ENABLE_DEBUG 1043s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1043s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1043s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1043s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1043s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1043s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1043s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1043s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1043s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1043s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1043s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1043s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1043s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1043s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1043s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1043s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1043s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1043s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1043s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1043s # #else /* !G_ENABLE_DEBUG */ 1043s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1043s # * Do not access GValues directly in your code. Instead, use the 1043s # * g_value_get_*() functions 1043s # */ 1043s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1043s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1043s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1043s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1043s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1043s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1043s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1043s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1043s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1043s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1043s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1043s # #endif /* !G_ENABLE_DEBUG */ 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusArgInfo parent_struct; 1043s # gboolean use_gvariant; 1043s # } _ExtendedGDBusArgInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusMethodInfo parent_struct; 1043s # const gchar *signal_name; 1043s # gboolean pass_fdlist; 1043s # } _ExtendedGDBusMethodInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusSignalInfo parent_struct; 1043s # const gchar *signal_name; 1043s # } _ExtendedGDBusSignalInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusPropertyInfo parent_struct; 1043s # const gchar *hyphen_name; 1043s # guint use_gvariant : 1; 1043s # guint emits_changed_signal : 1; 1043s # } _ExtendedGDBusPropertyInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusInterfaceInfo parent_struct; 1043s # const gchar *hyphen_name; 1043s # } _ExtendedGDBusInterfaceInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # const _ExtendedGDBusPropertyInfo *info; 1043s # guint prop_id; 1043s # GValue orig_value; /* the value before the change */ 1043s # } ChangedProperty; 1043s # 1043s # static void 1043s # _changed_property_free (ChangedProperty *data) 1043s # { 1043s # g_value_unset (&data->orig_value); 1043s # g_free (data); 1043s # } 1043s # 1043s # static gboolean 1043s # _g_strv_equal0 (gchar **a, gchar **b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # guint n; 1043s # if (a == NULL && b == NULL) 1043s # { 1043s # ret = TRUE; 1043s # goto out; 1043s # } 1043s # if (a == NULL || b == NULL) 1043s # goto out; 1043s # if (g_strv_length (a) != g_strv_length (b)) 1043s # goto out; 1043s # for (n = 0; a[n] != NULL; n++) 1043s # if (g_strcmp0 (a[n], b[n]) != 0) 1043s # goto out; 1043s # ret = TRUE; 1043s # out: 1043s # return ret; 1043s # } 1043s # 1043s # static gboolean 1043s # _g_variant_equal0 (GVariant *a, GVariant *b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # if (a == NULL && b == NULL) 1043s # { 1043s # ret = TRUE; 1043s # goto out; 1043s # } 1043s # if (a == NULL || b == NULL) 1043s # goto out; 1043s # ret = g_variant_equal (a, b); 1043s # out: 1043s # return ret; 1043s # } 1043s # 1043s # G_GNUC_UNUSED static gboolean 1043s # _g_value_equal (const GValue *a, const GValue *b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1043s # switch (G_VALUE_TYPE (a)) 1043s # { 1043s # case G_TYPE_BOOLEAN: 1043s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1043s # break; 1043s # case G_TYPE_UCHAR: 1043s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1043s # break; 1043s # case G_TYPE_INT: 1043s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1043s # break; 1043s # case G_TYPE_UINT: 1043s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1043s # break; 1043s # case G_TYPE_INT64: 1043s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1043s # break; 1043s # case G_TYPE_UINT64: 1043s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1043s # break; 1043s # case G_TYPE_DOUBLE: 1043s # { 1043s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1043s # gdouble da = g_value_get_double (a); 1043s # gdouble db = g_value_get_double (b); 1043s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1043s # } 1043s # break; 1043s # case G_TYPE_STRING: 1043s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1043s # break; 1043s # case G_TYPE_VARIANT: 1043s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1043s # break; 1043s # default: 1043s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1043s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1043s # else 1043s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1043s # break; 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static void 1043s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_DOUBLE ( 1043s # GClosure *closure, 1043s # GValue *return_value, 1043s # unsigned int n_param_values, 1043s # const GValue *param_values, 1043s # void *invocation_hint G_GNUC_UNUSED, 1043s # void *marshal_data) 1043s # { 1043s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectDoubleFunc) 1043s # (void *data1, 1043s # GDBusMethodInvocation *arg_method_invocation, 1043s # gdouble arg_arg_d, 1043s # void *data2); 1043s # _GDbusCodegenMarshalBoolean_ObjectDoubleFunc callback; 1043s # GCClosure *cc = (GCClosure*) closure; 1043s # void *data1, *data2; 1043s # gboolean v_return; 1043s # 1043s # g_return_if_fail (return_value != NULL); 1043s # g_return_if_fail (n_param_values == 3); 1043s # 1043s # if (G_CCLOSURE_SWAP_DATA (closure)) 1043s # { 1043s # data1 = closure->data; 1043s # data2 = g_value_peek_pointer (param_values + 0); 1043s # } 1043s # else 1043s # { 1043s # data1 = g_value_peek_pointer (param_values + 0); 1043s # data2 = closure->data; 1043s # } 1043s # 1043s # callback = (_GDbusCodegenMarshalBoolean_ObjectDoubleFunc) 1043s # (marshal_data ? marshal_data : cc->callback); 1043s # 1043s # v_return = 1043s # callback (data1, 1043s # g_marshal_value_peek_object (param_values + 1), 1043s # g_marshal_value_peek_double (param_values + 2), 1043s # data2); 1043s # 1043s # g_value_set_boolean (return_value, v_return); 1043s # } 1043s # 1043s # /* ------------------------------------------------------------------------ 1043s # * Code for interface org.project.UsefulInterface 1043s # * ------------------------------------------------------------------------ 1043s # */ 1043s # 1043s # /** 1043s # * SECTION:OrgProjectUsefulInterface 1043s # * @title: OrgProjectUsefulInterface 1043s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1043s # * 1043s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1043s # */ 1043s # 1043s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1043s # 1043s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_arg_d = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "arg_d", 1043s # (gchar *) "d", 1043s # NULL 1043s # }, 1043s # FALSE 1043s # }; 1043s # 1043s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_pointers[] = 1043s # { 1043s # &_org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_arg_d.parent_struct, 1043s # NULL 1043s # }; 1043s # 1043s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_d = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "SingleArgMethodD", 1043s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_pointers, 1043s # NULL, 1043s # NULL 1043s # }, 1043s # "handle-single-arg-method-d", 1043s # FALSE 1043s # }; 1043s # 1043s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1043s # { 1043s # &_org_project_useful_interface_method_info_single_arg_method_d.parent_struct, 1043s # NULL 1043s # }; 1043s # 1043s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "org.project.UsefulInterface", 1043s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1043s # NULL, 1043s # NULL, 1043s # NULL 1043s # }, 1043s # "org-project-useful-interface", 1043s # }; 1043s # 1043s # 1043s # /** 1043s # * org_project_useful_interface_interface_info: 1043s # * 1043s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1043s # * 1043s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1043s # */ 1043s # GDBusInterfaceInfo * 1043s # org_project_useful_interface_interface_info (void) 1043s # { 1043s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_override_properties: 1043s # * @klass: The class structure for a #GObject derived class. 1043s # * @property_id_begin: The property id to assign to the first overridden property. 1043s # * 1043s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1043s # * The properties are overridden in the order they are defined. 1043s # * 1043s # * Returns: The last property id. 1043s # */ 1043s # guint 1043s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1043s # { 1043s # return property_id_begin - 1; 1043s # } 1043s # 1043s # 1043s # inline static void 1043s # org_project_useful_interface_method_marshal_single_arg_method_d ( 1043s # GClosure *closure, 1043s # GValue *return_value, 1043s # unsigned int n_param_values, 1043s # const GValue *param_values, 1043s # void *invocation_hint, 1043s # void *marshal_data) 1043s # { 1043s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_DOUBLE (closure, 1043s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1043s # } 1043s # 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterface: 1043s # * 1043s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceIface: 1043s # * @parent_iface: The parent interface. 1043s # * @handle_single_arg_method_d: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-d signal. 1043s # * 1043s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1043s # */ 1043s # 1043s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1043s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1043s # 1043s # static void 1043s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1043s # { 1043s # /* GObject signals for incoming D-Bus method calls: */ 1043s # /** 1043s # * OrgProjectUsefulInterface::handle-single-arg-method-d: 1043s # * @object: A #OrgProjectUsefulInterface. 1043s # * @invocation: A #GDBusMethodInvocation. 1043s # * @arg_arg_d: Argument passed by remote caller. 1043s # * 1043s # * Signal emitted when a remote caller is invoking the SingleArgMethodD() D-Bus method. 1043s # * 1043s # * 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. 1043s # * 1043s # * 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. 1043s # */ 1043s # g_signal_new ("handle-single-arg-method-d", 1043s # G_TYPE_FROM_INTERFACE (iface), 1043s # G_SIGNAL_RUN_LAST, 1043s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_d), 1043s # g_signal_accumulator_true_handled, 1043s # NULL, 1043s # org_project_useful_interface_method_marshal_single_arg_method_d, 1043s # G_TYPE_BOOLEAN, 1043s # 2, 1043s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_DOUBLE); 1043s # 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_d: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @arg_arg_d: Argument to pass with the method invocation. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Asynchronously invokes the SingleArgMethodD() D-Bus method on @proxy. 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_call_single_arg_method_d_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_call_single_arg_method_d_sync() for the synchronous, blocking version of this method. 1043s # */ 1043s # void 1043s # org_project_useful_interface_call_single_arg_method_d ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # gdouble arg_arg_d, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1043s # "SingleArgMethodD", 1043s # g_variant_new ("(d)", 1043s # arg_arg_d), 1043s # G_DBUS_CALL_FLAGS_NONE, 1043s # -1, 1043s # cancellable, 1043s # callback, 1043s # user_data); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_d_finish: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_d(). 1043s # * @error: Return location for error or %NULL. 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_d(). 1043s # * 1043s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1043s # */ 1043s # gboolean 1043s # org_project_useful_interface_call_single_arg_method_d_finish ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GVariant *_ret; 1043s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1043s # if (_ret == NULL) 1043s # goto _out; 1043s # g_variant_get (_ret, 1043s # "()"); 1043s # g_variant_unref (_ret); 1043s # _out: 1043s # return _ret != NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_d_sync: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @arg_arg_d: Argument to pass with the method invocation. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL. 1043s # * 1043s # * Synchronously invokes the SingleArgMethodD() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_call_single_arg_method_d() for the asynchronous version of this method. 1043s # * 1043s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1043s # */ 1043s # gboolean 1043s # org_project_useful_interface_call_single_arg_method_d_sync ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # gdouble arg_arg_d, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GVariant *_ret; 1043s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1043s # "SingleArgMethodD", 1043s # g_variant_new ("(d)", 1043s # arg_arg_d), 1043s # G_DBUS_CALL_FLAGS_NONE, 1043s # -1, 1043s # cancellable, 1043s # error); 1043s # if (_ret == NULL) 1043s # goto _out; 1043s # g_variant_get (_ret, 1043s # "()"); 1043s # g_variant_unref (_ret); 1043s # _out: 1043s # return _ret != NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_complete_single_arg_method_d: 1043s # * @object: A #OrgProjectUsefulInterface. 1043s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1043s # * 1043s # * 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. 1043s # * 1043s # * This method will free @invocation, you cannot use it afterwards. 1043s # */ 1043s # void 1043s # org_project_useful_interface_complete_single_arg_method_d ( 1043s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1043s # GDBusMethodInvocation *invocation) 1043s # { 1043s # g_dbus_method_invocation_return_value (invocation, 1043s # g_variant_new ("()")); 1043s # } 1043s # 1043s # /* ------------------------------------------------------------------------ */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceProxy: 1043s # * 1043s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceProxyClass: 1043s # * @parent_class: The parent class. 1043s # * 1043s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1043s # */ 1043s # 1043s # struct _OrgProjectUsefulInterfaceProxyPrivate 1043s # { 1043s # GData *qdata; 1043s # }; 1043s # 1043s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1043s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1043s # 1043s # #else 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1043s # 1043s # #endif 1043s # static void 1043s # org_project_useful_interface_proxy_finalize (GObject *object) 1043s # { 1043s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1043s # g_datalist_clear (&proxy->priv->qdata); 1043s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1043s # guint prop_id G_GNUC_UNUSED, 1043s # GValue *value G_GNUC_UNUSED, 1043s # GParamSpec *pspec G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1043s # guint prop_id G_GNUC_UNUSED, 1043s # const GValue *value G_GNUC_UNUSED, 1043s # GParamSpec *pspec G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1043s # const gchar *sender_name G_GNUC_UNUSED, 1043s # const gchar *signal_name, 1043s # GVariant *parameters) 1043s # { 1043s # _ExtendedGDBusSignalInfo *info; 1043s # GVariantIter iter; 1043s # GVariant *child; 1043s # GValue *paramv; 1043s # gsize num_params; 1043s # gsize n; 1043s # guint signal_id; 1043s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1043s # if (info == NULL) 1043s # return; 1043s # num_params = g_variant_n_children (parameters); 1043s # paramv = g_new0 (GValue, num_params + 1); 1043s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_set_object (¶mv[0], proxy); 1043s # g_variant_iter_init (&iter, parameters); 1043s # n = 1; 1043s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1043s # { 1043s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1043s # if (arg_info->use_gvariant) 1043s # { 1043s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1043s # g_value_set_variant (¶mv[n], child); 1043s # n++; 1043s # } 1043s # else 1043s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1043s # g_variant_unref (child); 1043s # } 1043s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_signal_emitv (paramv, signal_id, 0, NULL); 1043s # for (n = 0; n < num_params + 1; n++) 1043s # g_value_unset (¶mv[n]); 1043s # g_free (paramv); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1043s # GVariant *changed_properties, 1043s # const gchar *const *invalidated_properties) 1043s # { 1043s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1043s # guint n; 1043s # const gchar *key; 1043s # GVariantIter *iter; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # g_variant_get (changed_properties, "a{sv}", &iter); 1043s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1043s # { 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1043s # g_datalist_remove_data (&proxy->priv->qdata, key); 1043s # if (info != NULL) 1043s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1043s # } 1043s # g_variant_iter_free (iter); 1043s # for (n = 0; invalidated_properties[n] != NULL; n++) 1043s # { 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1043s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1043s # if (info != NULL) 1043s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1043s # } 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1043s # { 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1043s # #else 1043s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1043s # #endif 1043s # 1043s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1043s # { 1043s # GObjectClass *gobject_class; 1043s # GDBusProxyClass *proxy_class; 1043s # 1043s # gobject_class = G_OBJECT_CLASS (klass); 1043s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1043s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1043s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1043s # 1043s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1043s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1043s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1043s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1043s # #endif 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new: 1043s # * @connection: A #GDBusConnection. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1043s # * 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1043s # */ 1043s # void 1043s # org_project_useful_interface_proxy_new ( 1043s # GDBusConnection *connection, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_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); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_finish: 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_finish ( 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GObject *ret; 1043s # GObject *source_object; 1043s # source_object = g_async_result_get_source_object (res); 1043s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1043s # g_object_unref (source_object); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_sync: 1043s # * @connection: A #GDBusConnection. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1043s # * 1043s # * The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_sync ( 1043s # GDBusConnection *connection, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GInitable *ret; 1043s # 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); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus: 1043s # * @bus_type: A #GBusType. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: A bus name (well-known or unique). 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1043s # * 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1043s # */ 1043s # void 1043s # org_project_useful_interface_proxy_new_for_bus ( 1043s # GBusType bus_type, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_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); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus_finish: 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_for_bus_finish ( 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GObject *ret; 1043s # GObject *source_object; 1043s # source_object = g_async_result_get_source_object (res); 1043s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1043s # g_object_unref (source_object); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus_sync: 1043s # * @bus_type: A #GBusType. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: A bus name (well-known or unique). 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1043s # * 1043s # * The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_for_bus_sync ( 1043s # GBusType bus_type, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GInitable *ret; 1043s # 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); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # 1043s # /* ------------------------------------------------------------------------ */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceSkeleton: 1043s # * 1043s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceSkeletonClass: 1043s # * @parent_class: The parent class. 1043s # * 1043s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1043s # */ 1043s # 1043s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1043s # { 1043s # GValue *properties; 1043s # GList *changed_properties; 1043s # GSource *changed_properties_idle_source; 1043s # GMainContext *context; 1043s # GMutex lock; 1043s # }; 1043s # 1043s # static void 1043s # _org_project_useful_interface_skeleton_handle_method_call ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name, 1043s # const gchar *method_name, 1043s # GVariant *parameters, 1043s # GDBusMethodInvocation *invocation, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # _ExtendedGDBusMethodInfo *info; 1043s # GVariantIter iter; 1043s # GVariant *child; 1043s # GValue *paramv; 1043s # gsize num_params; 1043s # guint num_extra; 1043s # gsize n; 1043s # guint signal_id; 1043s # GValue return_value = G_VALUE_INIT; 1043s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1043s # g_assert (info != NULL); 1043s # num_params = g_variant_n_children (parameters); 1043s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1043s # n = 0; 1043s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_set_object (¶mv[n++], skeleton); 1043s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1043s # g_value_set_object (¶mv[n++], invocation); 1043s # if (info->pass_fdlist) 1043s # { 1043s # #ifdef G_OS_UNIX 1043s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1043s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1043s # #else 1043s # g_assert_not_reached (); 1043s # #endif 1043s # } 1043s # g_variant_iter_init (&iter, parameters); 1043s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1043s # { 1043s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1043s # if (arg_info->use_gvariant) 1043s # { 1043s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1043s # g_value_set_variant (¶mv[n], child); 1043s # n++; 1043s # } 1043s # else 1043s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1043s # g_variant_unref (child); 1043s # } 1043s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1043s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1043s # if (!g_value_get_boolean (&return_value)) 1043s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1043s # g_value_unset (&return_value); 1043s # for (n = 0; n < num_params + num_extra; n++) 1043s # g_value_unset (¶mv[n]); 1043s # g_free (paramv); 1043s # } 1043s # 1043s # static GVariant * 1043s # _org_project_useful_interface_skeleton_handle_get_property ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name G_GNUC_UNUSED, 1043s # const gchar *property_name, 1043s # GError **error, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # GValue value = G_VALUE_INIT; 1043s # GParamSpec *pspec; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # GVariant *ret; 1043s # ret = NULL; 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1043s # g_assert (info != NULL); 1043s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1043s # if (pspec == NULL) 1043s # { 1043s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1043s # } 1043s # else 1043s # { 1043s # g_value_init (&value, pspec->value_type); 1043s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1043s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1043s # g_value_unset (&value); 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static gboolean 1043s # _org_project_useful_interface_skeleton_handle_set_property ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name G_GNUC_UNUSED, 1043s # const gchar *property_name, 1043s # GVariant *variant, 1043s # GError **error, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # GValue value = G_VALUE_INIT; 1043s # GParamSpec *pspec; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # gboolean ret; 1043s # ret = FALSE; 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1043s # g_assert (info != NULL); 1043s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1043s # if (pspec == NULL) 1043s # { 1043s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1043s # } 1043s # else 1043s # { 1043s # if (info->use_gvariant) 1043s # g_value_set_variant (&value, variant); 1043s # else 1043s # g_dbus_gvariant_to_gvalue (variant, &value); 1043s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1043s # g_value_unset (&value); 1043s # ret = TRUE; 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1043s # { 1043s # _org_project_useful_interface_skeleton_handle_method_call, 1043s # _org_project_useful_interface_skeleton_handle_get_property, 1043s # _org_project_useful_interface_skeleton_handle_set_property, 1043s # {NULL} 1043s # }; 1043s # 1043s # static GDBusInterfaceInfo * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1043s # { 1043s # return org_project_useful_interface_interface_info (); 1043s # } 1043s # 1043s # static GDBusInterfaceVTable * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1043s # { 1043s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1043s # } 1043s # 1043s # static GVariant * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1043s # 1043s # GVariantBuilder builder; 1043s # guint n; 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1043s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1043s # #else 1043s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1043s # #endif 1043s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1043s # goto out; 1043s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1043s # { 1043s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1043s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1043s # { 1043s # GVariant *value; 1043s # 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); 1043s # if (value != NULL) 1043s # { 1043s # g_variant_take_ref (value); 1043s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1043s # g_variant_unref (value); 1043s # } 1043s # } 1043s # } 1043s # out: 1043s # return g_variant_builder_end (&builder); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1043s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1043s # 1043s # #else 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1043s # 1043s # #endif 1043s # static void 1043s # org_project_useful_interface_skeleton_finalize (GObject *object) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1043s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1043s # if (skeleton->priv->changed_properties_idle_source != NULL) 1043s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1043s # g_main_context_unref (skeleton->priv->context); 1043s # g_mutex_clear (&skeleton->priv->lock); 1043s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1043s # { 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1043s # #else 1043s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1043s # #endif 1043s # 1043s # g_mutex_init (&skeleton->priv->lock); 1043s # skeleton->priv->context = g_main_context_ref_thread_default (); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1043s # { 1043s # GObjectClass *gobject_class; 1043s # GDBusInterfaceSkeletonClass *skeleton_class; 1043s # 1043s # gobject_class = G_OBJECT_CLASS (klass); 1043s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1043s # 1043s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1043s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1043s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1043s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1043s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1043s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1043s # #endif 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_skeleton_new: 1043s # * 1043s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_skeleton_new (void) 1043s # { 1043s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1043s # } 1043s # Error: 1043s # 1043s # /tmp/tmpd1ucwcbz/tmpy7grsbok.xml: 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpd1ucwcbz/tmpy7grsbok.xml', '--output', '-', '--body'] 1043s # Return code: 0 1043s # Output: 1043s # /* 1043s # * This file is generated by gdbus-codegen, do not modify it. 1043s # * 1043s # * The license of this code is the same as for the D-Bus interface description 1043s # * it was derived from. Note that it links to GLib, so must comply with the 1043s # * LGPL linking clauses. 1043s # */ 1043s # 1043s # #ifdef HAVE_CONFIG_H 1043s # # include "config.h" 1043s # #endif 1043s # 1043s # #include 1043s # #ifdef G_OS_UNIX 1043s # # include 1043s # #endif 1043s # 1043s # #ifdef G_ENABLE_DEBUG 1043s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1043s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1043s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1043s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1043s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1043s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1043s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1043s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1043s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1043s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1043s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1043s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1043s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1043s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1043s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1043s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1043s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1043s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1043s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1043s # #else /* !G_ENABLE_DEBUG */ 1043s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1043s # * Do not access GValues directly in your code. Instead, use the 1043s # * g_value_get_*() functions 1043s # */ 1043s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1043s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1043s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1043s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1043s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1043s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1043s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1043s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1043s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1043s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1043s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1043s # #endif /* !G_ENABLE_DEBUG */ 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusArgInfo parent_struct; 1043s # gboolean use_gvariant; 1043s # } _ExtendedGDBusArgInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusMethodInfo parent_struct; 1043s # const gchar *signal_name; 1043s # gboolean pass_fdlist; 1043s # } _ExtendedGDBusMethodInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusSignalInfo parent_struct; 1043s # const gchar *signal_name; 1043s # } _ExtendedGDBusSignalInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusPropertyInfo parent_struct; 1043s # const gchar *hyphen_name; 1043s # guint use_gvariant : 1; 1043s # guint emits_changed_signal : 1; 1043s # } _ExtendedGDBusPropertyInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusInterfaceInfo parent_struct; 1043s # const gchar *hyphen_name; 1043s # } _ExtendedGDBusInterfaceInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # const _ExtendedGDBusPropertyInfo *info; 1043s # guint prop_id; 1043s # GValue orig_value; /* the value before the change */ 1043s # } ChangedProperty; 1043s # 1043s # static void 1043s # _changed_property_free (ChangedProperty *data) 1043s # { 1043s # g_value_unset (&data->orig_value); 1043s # g_free (data); 1043s # } 1043s # 1043s # static gboolean 1043s # _g_strv_equal0 (gchar **a, gchar **b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # guint n; 1043s # if (a == NULL && b == NULL) 1043s # { 1043s # ret = TRUE; 1043s # goto out; 1043s # } 1043s # if (a == NULL || b == NULL) 1043s # goto out; 1043s # if (g_strv_length (a) != g_strv_length (b)) 1043s # goto out; 1043s # for (n = 0; a[n] != NULL; n++) 1043s # if (g_strcmp0 (a[n], b[n]) != 0) 1043s # goto out; 1043s # ret = TRUE; 1043s # out: 1043s # return ret; 1043s # } 1043s # 1043s # static gboolean 1043s # _g_variant_equal0 (GVariant *a, GVariant *b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # if (a == NULL && b == NULL) 1043s # { 1043s # ret = TRUE; 1043s # goto out; 1043s # } 1043s # if (a == NULL || b == NULL) 1043s # goto out; 1043s # ret = g_variant_equal (a, b); 1043s # out: 1043s # return ret; 1043s # } 1043s # 1043s # G_GNUC_UNUSED static gboolean 1043s # _g_value_equal (const GValue *a, const GValue *b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1043s # switch (G_VALUE_TYPE (a)) 1043s # { 1043s # case G_TYPE_BOOLEAN: 1043s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1043s # break; 1043s # case G_TYPE_UCHAR: 1043s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1043s # break; 1043s # case G_TYPE_INT: 1043s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1043s # break; 1043s # case G_TYPE_UINT: 1043s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1043s # break; 1043s # case G_TYPE_INT64: 1043s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1043s # break; 1043s # case G_TYPE_UINT64: 1043s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1043s # break; 1043s # case G_TYPE_DOUBLE: 1043s # { 1043s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1043s # gdouble da = g_value_get_double (a); 1043s # gdouble db = g_value_get_double (b); 1043s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1043s # } 1043s # break; 1043s # case G_TYPE_STRING: 1043s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1043s # break; 1043s # case G_TYPE_VARIANT: 1043s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1043s # break; 1043s # default: 1043s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1043s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1043s # else 1043s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1043s # break; 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static void 1043s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 1043s # GClosure *closure, 1043s # GValue *return_value, 1043s # unsigned int n_param_values, 1043s # const GValue *param_values, 1043s # void *invocation_hint G_GNUC_UNUSED, 1043s # void *marshal_data) 1043s # { 1043s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1043s # (void *data1, 1043s # GDBusMethodInvocation *arg_method_invocation, 1043s # const gchar *arg_arg_s, 1043s # void *data2); 1043s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 1043s # GCClosure *cc = (GCClosure*) closure; 1043s # void *data1, *data2; 1043s # gboolean v_return; 1043s # 1043s # g_return_if_fail (return_value != NULL); 1043s # g_return_if_fail (n_param_values == 3); 1043s # 1043s # if (G_CCLOSURE_SWAP_DATA (closure)) 1043s # { 1043s # data1 = closure->data; 1043s # data2 = g_value_peek_pointer (param_values + 0); 1043s # } 1043s # else 1043s # { 1043s # data1 = g_value_peek_pointer (param_values + 0); 1043s # data2 = closure->data; 1043s # } 1043s # 1043s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1043s # (marshal_data ? marshal_data : cc->callback); 1043s # 1043s # v_return = 1043s # callback (data1, 1043s # g_marshal_value_peek_object (param_values + 1), 1043s # g_marshal_value_peek_string (param_values + 2), 1043s # data2); 1043s # 1043s # g_value_set_boolean (return_value, v_return); 1043s # } 1043s # 1043s # /* ------------------------------------------------------------------------ 1043s # * Code for interface org.project.UsefulInterface 1043s # * ------------------------------------------------------------------------ 1043s # */ 1043s # 1043s # /** 1043s # * SECTION:OrgProjectUsefulInterface 1043s # * @title: OrgProjectUsefulInterface 1043s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1043s # * 1043s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1043s # */ 1043s # 1043s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1043s # 1043s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_arg_s = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "arg_s", 1043s # (gchar *) "s", 1043s # NULL 1043s # }, 1043s # FALSE 1043s # }; 1043s # 1043s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_pointers[] = 1043s # { 1043s # &_org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_arg_s.parent_struct, 1043s # NULL 1043s # }; 1043s # 1043s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_s = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "SingleArgMethodS", 1043s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_pointers, 1043s # NULL, 1043s # NULL 1043s # }, 1043s # "handle-single-arg-method-s", 1043s # FALSE 1043s # }; 1043s # 1043s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1043s # { 1043s # &_org_project_useful_interface_method_info_single_arg_method_s.parent_struct, 1043s # NULL 1043s # }; 1043s # 1043s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "org.project.UsefulInterface", 1043s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1043s # NULL, 1043s # NULL, 1043s # NULL 1043s # }, 1043s # "org-project-useful-interface", 1043s # }; 1043s # 1043s # 1043s # /** 1043s # * org_project_useful_interface_interface_info: 1043s # * 1043s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1043s # * 1043s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1043s # */ 1043s # GDBusInterfaceInfo * 1043s # org_project_useful_interface_interface_info (void) 1043s # { 1043s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_override_properties: 1043s # * @klass: The class structure for a #GObject derived class. 1043s # * @property_id_begin: The property id to assign to the first overridden property. 1043s # * 1043s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1043s # * The properties are overridden in the order they are defined. 1043s # * 1043s # * Returns: The last property id. 1043s # */ 1043s # guint 1043s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1043s # { 1043s # return property_id_begin - 1; 1043s # } 1043s # 1043s # 1043s # inline static void 1043s # org_project_useful_interface_method_marshal_single_arg_method_s ( 1043s # GClosure *closure, 1043s # GValue *return_value, 1043s # unsigned int n_param_values, 1043s # const GValue *param_values, 1043s # void *invocation_hint, 1043s # void *marshal_data) 1043s # { 1043s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 1043s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1043s # } 1043s # 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterface: 1043s # * 1043s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceIface: 1043s # * @parent_iface: The parent interface. 1043s # * @handle_single_arg_method_s: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-s signal. 1043s # * 1043s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1043s # */ 1043s # 1043s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1043s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1043s # 1043s # static void 1043s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1043s # { 1043s # /* GObject signals for incoming D-Bus method calls: */ 1043s # /** 1043s # * OrgProjectUsefulInterface::handle-single-arg-method-s: 1043s # * @object: A #OrgProjectUsefulInterface. 1043s # * @invocation: A #GDBusMethodInvocation. 1043s # * @arg_arg_s: Argument passed by remote caller. 1043s # * 1043s # * Signal emitted when a remote caller is invoking the SingleArgMethodS() D-Bus method. 1043s # * 1043s # * 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. 1043s # * 1043s # * 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. 1043s # */ 1043s # g_signal_new ("handle-single-arg-method-s", 1043s # G_TYPE_FROM_INTERFACE (iface), 1043s # G_SIGNAL_RUN_LAST, 1043s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_s), 1043s # g_signal_accumulator_true_handled, 1043s # NULL, 1043s # org_project_useful_interface_method_marshal_single_arg_method_s, 1043s # G_TYPE_BOOLEAN, 1043s # 2, 1043s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 1043s # 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_s: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @arg_arg_s: Argument to pass with the method invocation. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Asynchronously invokes the SingleArgMethodS() D-Bus method on @proxy. 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_call_single_arg_method_s_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_call_single_arg_method_s_sync() for the synchronous, blocking version of this method. 1043s # */ 1043s # void 1043s # org_project_useful_interface_call_single_arg_method_s ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # const gchar *arg_arg_s, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1043s # "SingleArgMethodS", 1043s # g_variant_new ("(s)", 1043s # arg_arg_s), 1043s # G_DBUS_CALL_FLAGS_NONE, 1043s # -1, 1043s # cancellable, 1043s # callback, 1043s # user_data); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_s_finish: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_s(). 1043s # * @error: Return location for error or %NULL. 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_s(). 1043s # * 1043s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1043s # */ 1043s # gboolean 1043s # org_project_useful_interface_call_single_arg_method_s_finish ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GVariant *_ret; 1043s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1043s # if (_ret == NULL) 1043s # goto _out; 1043s # g_variant_get (_ret, 1043s # "()"); 1043s # g_variant_unref (_ret); 1043s # _out: 1043s # return _ret != NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_s_sync: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @arg_arg_s: Argument to pass with the method invocation. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL. 1043s # * 1043s # * Synchronously invokes the SingleArgMethodS() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_call_single_arg_method_s() for the asynchronous version of this method. 1043s # * 1043s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1043s # */ 1043s # gboolean 1043s # org_project_useful_interface_call_single_arg_method_s_sync ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # const gchar *arg_arg_s, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GVariant *_ret; 1043s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1043s # "SingleArgMethodS", 1043s # g_variant_new ("(s)", 1043s # arg_arg_s), 1043s # G_DBUS_CALL_FLAGS_NONE, 1043s # -1, 1043s # cancellable, 1043s # error); 1043s # if (_ret == NULL) 1043s # goto _out; 1043s # g_variant_get (_ret, 1043s # "()"); 1043s # g_variant_unref (_ret); 1043s # _out: 1043s # return _ret != NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_complete_single_arg_method_s: 1043s # * @object: A #OrgProjectUsefulInterface. 1043s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1043s # * 1043s # * 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. 1043s # * 1043s # * This method will free @invocation, you cannot use it afterwards. 1043s # */ 1043s # void 1043s # org_project_useful_interface_complete_single_arg_method_s ( 1043s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1043s # GDBusMethodInvocation *invocation) 1043s # { 1043s # g_dbus_method_invocation_return_value (invocation, 1043s # g_variant_new ("()")); 1043s # } 1043s # 1043s # /* ------------------------------------------------------------------------ */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceProxy: 1043s # * 1043s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceProxyClass: 1043s # * @parent_class: The parent class. 1043s # * 1043s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1043s # */ 1043s # 1043s # struct _OrgProjectUsefulInterfaceProxyPrivate 1043s # { 1043s # GData *qdata; 1043s # }; 1043s # 1043s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1043s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1043s # 1043s # #else 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1043s # 1043s # #endif 1043s # static void 1043s # org_project_useful_interface_proxy_finalize (GObject *object) 1043s # { 1043s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1043s # g_datalist_clear (&proxy->priv->qdata); 1043s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1043s # guint prop_id G_GNUC_UNUSED, 1043s # GValue *value G_GNUC_UNUSED, 1043s # GParamSpec *pspec G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1043s # guint prop_id G_GNUC_UNUSED, 1043s # const GValue *value G_GNUC_UNUSED, 1043s # GParamSpec *pspec G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1043s # const gchar *sender_name G_GNUC_UNUSED, 1043s # const gchar *signal_name, 1043s # GVariant *parameters) 1043s # { 1043s # _ExtendedGDBusSignalInfo *info; 1043s # GVariantIter iter; 1043s # GVariant *child; 1043s # GValue *paramv; 1043s # gsize num_params; 1043s # gsize n; 1043s # guint signal_id; 1043s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1043s # if (info == NULL) 1043s # return; 1043s # num_params = g_variant_n_children (parameters); 1043s # paramv = g_new0 (GValue, num_params + 1); 1043s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_set_object (¶mv[0], proxy); 1043s # g_variant_iter_init (&iter, parameters); 1043s # n = 1; 1043s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1043s # { 1043s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1043s # if (arg_info->use_gvariant) 1043s # { 1043s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1043s # g_value_set_variant (¶mv[n], child); 1043s # n++; 1043s # } 1043s # else 1043s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1043s # g_variant_unref (child); 1043s # } 1043s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_signal_emitv (paramv, signal_id, 0, NULL); 1043s # for (n = 0; n < num_params + 1; n++) 1043s # g_value_unset (¶mv[n]); 1043s # g_free (paramv); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1043s # GVariant *changed_properties, 1043s # const gchar *const *invalidated_properties) 1043s # { 1043s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1043s # guint n; 1043s # const gchar *key; 1043s # GVariantIter *iter; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # g_variant_get (changed_properties, "a{sv}", &iter); 1043s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1043s # { 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1043s # g_datalist_remove_data (&proxy->priv->qdata, key); 1043s # if (info != NULL) 1043s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1043s # } 1043s # g_variant_iter_free (iter); 1043s # for (n = 0; invalidated_properties[n] != NULL; n++) 1043s # { 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1043s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1043s # if (info != NULL) 1043s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1043s # } 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1043s # { 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1043s # #else 1043s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1043s # #endif 1043s # 1043s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1043s # { 1043s # GObjectClass *gobject_class; 1043s # GDBusProxyClass *proxy_class; 1043s # 1043s # gobject_class = G_OBJECT_CLASS (klass); 1043s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1043s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1043s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1043s # 1043s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1043s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1043s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1043s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1043s # #endif 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new: 1043s # * @connection: A #GDBusConnection. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1043s # * 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1043s # */ 1043s # void 1043s # org_project_useful_interface_proxy_new ( 1043s # GDBusConnection *connection, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_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); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_finish: 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_finish ( 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GObject *ret; 1043s # GObject *source_object; 1043s # source_object = g_async_result_get_source_object (res); 1043s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1043s # g_object_unref (source_object); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_sync: 1043s # * @connection: A #GDBusConnection. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1043s # * 1043s # * The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_sync ( 1043s # GDBusConnection *connection, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GInitable *ret; 1043s # 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); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus: 1043s # * @bus_type: A #GBusType. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: A bus name (well-known or unique). 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1043s # * 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1043s # */ 1043s # void 1043s # org_project_useful_interface_proxy_new_for_bus ( 1043s # GBusType bus_type, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_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); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus_finish: 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_for_bus_finish ( 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GObject *ret; 1043s # GObject *source_object; 1043s # source_object = g_async_result_get_source_object (res); 1043s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1043s # g_object_unref (source_object); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus_sync: 1043s # * @bus_type: A #GBusType. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: A bus name (well-known or unique). 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1043s # * 1043s # * The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_for_bus_sync ( 1043s # GBusType bus_type, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GInitable *ret; 1043s # 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); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # 1043s # /* ------------------------------------------------------------------------ */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceSkeleton: 1043s # * 1043s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceSkeletonClass: 1043s # * @parent_class: The parent class. 1043s # * 1043s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1043s # */ 1043s # 1043s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1043s # { 1043s # GValue *properties; 1043s # GList *changed_properties; 1043s # GSource *changed_properties_idle_source; 1043s # GMainContext *context; 1043s # GMutex lock; 1043s # }; 1043s # 1043s # static void 1043s # _org_project_useful_interface_skeleton_handle_method_call ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name, 1043s # const gchar *method_name, 1043s # GVariant *parameters, 1043s # GDBusMethodInvocation *invocation, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # _ExtendedGDBusMethodInfo *info; 1043s # GVariantIter iter; 1043s # GVariant *child; 1043s # GValue *paramv; 1043s # gsize num_params; 1043s # guint num_extra; 1043s # gsize n; 1043s # guint signal_id; 1043s # GValue return_value = G_VALUE_INIT; 1043s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1043s # g_assert (info != NULL); 1043s # num_params = g_variant_n_children (parameters); 1043s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1043s # n = 0; 1043s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_set_object (¶mv[n++], skeleton); 1043s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1043s # g_value_set_object (¶mv[n++], invocation); 1043s # if (info->pass_fdlist) 1043s # { 1043s # #ifdef G_OS_UNIX 1043s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1043s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1043s # #else 1043s # g_assert_not_reached (); 1043s # #endif 1043s # } 1043s # g_variant_iter_init (&iter, parameters); 1043s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1043s # { 1043s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1043s # if (arg_info->use_gvariant) 1043s # { 1043s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1043s # g_value_set_variant (¶mv[n], child); 1043s # n++; 1043s # } 1043s # else 1043s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1043s # g_variant_unref (child); 1043s # } 1043s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1043s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1043s # if (!g_value_get_boolean (&return_value)) 1043s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1043s # g_value_unset (&return_value); 1043s # for (n = 0; n < num_params + num_extra; n++) 1043s # g_value_unset (¶mv[n]); 1043s # g_free (paramv); 1043s # } 1043s # 1043s # static GVariant * 1043s # _org_project_useful_interface_skeleton_handle_get_property ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name G_GNUC_UNUSED, 1043s # const gchar *property_name, 1043s # GError **error, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # GValue value = G_VALUE_INIT; 1043s # GParamSpec *pspec; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # GVariant *ret; 1043s # ret = NULL; 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1043s # g_assert (info != NULL); 1043s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1043s # if (pspec == NULL) 1043s # { 1043s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1043s # } 1043s # else 1043s # { 1043s # g_value_init (&value, pspec->value_type); 1043s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1043s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1043s # g_value_unset (&value); 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static gboolean 1043s # _org_project_useful_interface_skeleton_handle_set_property ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name G_GNUC_UNUSED, 1043s # const gchar *property_name, 1043s # GVariant *variant, 1043s # GError **error, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # GValue value = G_VALUE_INIT; 1043s # GParamSpec *pspec; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # gboolean ret; 1043s # ret = FALSE; 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1043s # g_assert (info != NULL); 1043s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1043s # if (pspec == NULL) 1043s # { 1043s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1043s # } 1043s # else 1043s # { 1043s # if (info->use_gvariant) 1043s # g_value_set_variant (&value, variant); 1043s # else 1043s # g_dbus_gvariant_to_gvalue (variant, &value); 1043s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1043s # g_value_unset (&value); 1043s # ret = TRUE; 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1043s # { 1043s # _org_project_useful_interface_skeleton_handle_method_call, 1043s # _org_project_useful_interface_skeleton_handle_get_property, 1043s # _org_project_useful_interface_skeleton_handle_set_property, 1043s # {NULL} 1043s # }; 1043s # 1043s # static GDBusInterfaceInfo * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1043s # { 1043s # return org_project_useful_interface_interface_info (); 1043s # } 1043s # 1043s # static GDBusInterfaceVTable * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1043s # { 1043s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1043s # } 1043s # 1043s # static GVariant * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1043s # 1043s # GVariantBuilder builder; 1043s # guint n; 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1043s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1043s # #else 1043s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1043s # #endif 1043s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1043s # goto out; 1043s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1043s # { 1043s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1043s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1043s # { 1043s # GVariant *value; 1043s # 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); 1043s # if (value != NULL) 1043s # { 1043s # g_variant_take_ref (value); 1043s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1043s # g_variant_unref (value); 1043s # } 1043s # } 1043s # } 1043s # out: 1043s # return g_variant_builder_end (&builder); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1043s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1043s # 1043s # #else 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1043s # 1043s # #endif 1043s # static void 1043s # org_project_useful_interface_skeleton_finalize (GObject *object) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1043s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1043s # if (skeleton->priv->changed_properties_idle_source != NULL) 1043s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1043s # g_main_context_unref (skeleton->priv->context); 1043s # g_mutex_clear (&skeleton->priv->lock); 1043s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1043s # { 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1043s # #else 1043s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1043s # #endif 1043s # 1043s # g_mutex_init (&skeleton->priv->lock); 1043s # skeleton->priv->context = g_main_context_ref_thread_default (); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1043s # { 1043s # GObjectClass *gobject_class; 1043s # GDBusInterfaceSkeletonClass *skeleton_class; 1043s # 1043s # gobject_class = G_OBJECT_CLASS (klass); 1043s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1043s # 1043s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1043s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1043s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1043s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1043s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1043s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1043s # #endif 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_skeleton_new: 1043s # * 1043s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_skeleton_new (void) 1043s # { 1043s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1043s # } 1043s # Error: 1043s # 1043s # /tmp/tmpd1ucwcbz/tmpztwlokq3.xml: 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpd1ucwcbz/tmpztwlokq3.xml', '--output', '-', '--body'] 1043s # Return code: 0 1043s # Output: 1043s # /* 1043s # * This file is generated by gdbus-codegen, do not modify it. 1043s # * 1043s # * The license of this code is the same as for the D-Bus interface description 1043s # * it was derived from. Note that it links to GLib, so must comply with the 1043s # * LGPL linking clauses. 1043s # */ 1043s # 1043s # #ifdef HAVE_CONFIG_H 1043s # # include "config.h" 1043s # #endif 1043s # 1043s # #include 1043s # #ifdef G_OS_UNIX 1043s # # include 1043s # #endif 1043s # 1043s # #ifdef G_ENABLE_DEBUG 1043s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1043s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1043s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1043s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1043s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1043s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1043s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1043s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1043s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1043s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1043s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1043s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1043s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1043s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1043s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1043s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1043s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1043s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1043s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1043s # #else /* !G_ENABLE_DEBUG */ 1043s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1043s # * Do not access GValues directly in your code. Instead, use the 1043s # * g_value_get_*() functions 1043s # */ 1043s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1043s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1043s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1043s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1043s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1043s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1043s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1043s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1043s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1043s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1043s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1043s # #endif /* !G_ENABLE_DEBUG */ 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusArgInfo parent_struct; 1043s # gboolean use_gvariant; 1043s # } _ExtendedGDBusArgInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusMethodInfo parent_struct; 1043s # const gchar *signal_name; 1043s # gboolean pass_fdlist; 1043s # } _ExtendedGDBusMethodInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusSignalInfo parent_struct; 1043s # const gchar *signal_name; 1043s # } _ExtendedGDBusSignalInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusPropertyInfo parent_struct; 1043s # const gchar *hyphen_name; 1043s # guint use_gvariant : 1; 1043s # guint emits_changed_signal : 1; 1043s # } _ExtendedGDBusPropertyInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusInterfaceInfo parent_struct; 1043s # const gchar *hyphen_name; 1043s # } _ExtendedGDBusInterfaceInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # const _ExtendedGDBusPropertyInfo *info; 1043s # guint prop_id; 1043s # GValue orig_value; /* the value before the change */ 1043s # } ChangedProperty; 1043s # 1043s # static void 1043s # _changed_property_free (ChangedProperty *data) 1043s # { 1043s # g_value_unset (&data->orig_value); 1043s # g_free (data); 1043s # } 1043s # 1043s # static gboolean 1043s # _g_strv_equal0 (gchar **a, gchar **b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # guint n; 1043s # if (a == NULL && b == NULL) 1043s # { 1043s # ret = TRUE; 1043s # goto out; 1043s # } 1043s # if (a == NULL || b == NULL) 1043s # goto out; 1043s # if (g_strv_length (a) != g_strv_length (b)) 1043s # goto out; 1043s # for (n = 0; a[n] != NULL; n++) 1043s # if (g_strcmp0 (a[n], b[n]) != 0) 1043s # goto out; 1043s # ret = TRUE; 1043s # out: 1043s # return ret; 1043s # } 1043s # 1043s # static gboolean 1043s # _g_variant_equal0 (GVariant *a, GVariant *b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # if (a == NULL && b == NULL) 1043s # { 1043s # ret = TRUE; 1043s # goto out; 1043s # } 1043s # if (a == NULL || b == NULL) 1043s # goto out; 1043s # ret = g_variant_equal (a, b); 1043s # out: 1043s # return ret; 1043s # } 1043s # 1043s # G_GNUC_UNUSED static gboolean 1043s # _g_value_equal (const GValue *a, const GValue *b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1043s # switch (G_VALUE_TYPE (a)) 1043s # { 1043s # case G_TYPE_BOOLEAN: 1043s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1043s # break; 1043s # case G_TYPE_UCHAR: 1043s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1043s # break; 1043s # case G_TYPE_INT: 1043s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1043s # break; 1043s # case G_TYPE_UINT: 1043s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1043s # break; 1043s # case G_TYPE_INT64: 1043s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1043s # break; 1043s # case G_TYPE_UINT64: 1043s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1043s # break; 1043s # case G_TYPE_DOUBLE: 1043s # { 1043s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1043s # gdouble da = g_value_get_double (a); 1043s # gdouble db = g_value_get_double (b); 1043s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1043s # } 1043s # break; 1043s # case G_TYPE_STRING: 1043s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1043s # break; 1043s # case G_TYPE_VARIANT: 1043s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1043s # break; 1043s # default: 1043s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1043s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1043s # else 1043s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1043s # break; 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static void 1043s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 1043s # GClosure *closure, 1043s # GValue *return_value, 1043s # unsigned int n_param_values, 1043s # const GValue *param_values, 1043s # void *invocation_hint G_GNUC_UNUSED, 1043s # void *marshal_data) 1043s # { 1043s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1043s # (void *data1, 1043s # GDBusMethodInvocation *arg_method_invocation, 1043s # const gchar *arg_arg_o, 1043s # void *data2); 1043s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 1043s # GCClosure *cc = (GCClosure*) closure; 1043s # void *data1, *data2; 1043s # gboolean v_return; 1043s # 1043s # g_return_if_fail (return_value != NULL); 1043s # g_return_if_fail (n_param_values == 3); 1043s # 1043s # if (G_CCLOSURE_SWAP_DATA (closure)) 1043s # { 1043s # data1 = closure->data; 1043s # data2 = g_value_peek_pointer (param_values + 0); 1043s # } 1043s # else 1043s # { 1043s # data1 = g_value_peek_pointer (param_values + 0); 1043s # data2 = closure->data; 1043s # } 1043s # 1043s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1043s # (marshal_data ? marshal_data : cc->callback); 1043s # 1043s # v_return = 1043s # callback (data1, 1043s # g_marshal_value_peek_object (param_values + 1), 1043s # g_marshal_value_peek_string (param_values + 2), 1043s # data2); 1043s # 1043s # g_value_set_boolean (return_value, v_return); 1043s # } 1043s # 1043s # /* ------------------------------------------------------------------------ 1043s # * Code for interface org.project.UsefulInterface 1043s # * ------------------------------------------------------------------------ 1043s # */ 1043s # 1043s # /** 1043s # * SECTION:OrgProjectUsefulInterface 1043s # * @title: OrgProjectUsefulInterface 1043s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1043s # * 1043s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1043s # */ 1043s # 1043s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1043s # 1043s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_arg_o = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "arg_o", 1043s # (gchar *) "o", 1043s # NULL 1043s # }, 1043s # FALSE 1043s # }; 1043s # 1043s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_pointers[] = 1043s # { 1043s # &_org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_arg_o.parent_struct, 1043s # NULL 1043s # }; 1043s # 1043s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_o = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "SingleArgMethodO", 1043s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_pointers, 1043s # NULL, 1043s # NULL 1043s # }, 1043s # "handle-single-arg-method-o", 1043s # FALSE 1043s # }; 1043s # 1043s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1043s # { 1043s # &_org_project_useful_interface_method_info_single_arg_method_o.parent_struct, 1043s # NULL 1043s # }; 1043s # 1043s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "org.project.UsefulInterface", 1043s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1043s # NULL, 1043s # NULL, 1043s # NULL 1043s # }, 1043s # "org-project-useful-interface", 1043s # }; 1043s # 1043s # 1043s # /** 1043s # * org_project_useful_interface_interface_info: 1043s # * 1043s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1043s # * 1043s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1043s # */ 1043s # GDBusInterfaceInfo * 1043s # org_project_useful_interface_interface_info (void) 1043s # { 1043s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_override_properties: 1043s # * @klass: The class structure for a #GObject derived class. 1043s # * @property_id_begin: The property id to assign to the first overridden property. 1043s # * 1043s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1043s # * The properties are overridden in the order they are defined. 1043s # * 1043s # * Returns: The last property id. 1043s # */ 1043s # guint 1043s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1043s # { 1043s # return property_id_begin - 1; 1043s # } 1043s # 1043s # 1043s # inline static void 1043s # org_project_useful_interface_method_marshal_single_arg_method_o ( 1043s # GClosure *closure, 1043s # GValue *return_value, 1043s # unsigned int n_param_values, 1043s # const GValue *param_values, 1043s # void *invocation_hint, 1043s # void *marshal_data) 1043s # { 1043s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 1043s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1043s # } 1043s # 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterface: 1043s # * 1043s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceIface: 1043s # * @parent_iface: The parent interface. 1043s # * @handle_single_arg_method_o: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-o signal. 1043s # * 1043s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1043s # */ 1043s # 1043s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1043s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1043s # 1043s # static void 1043s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1043s # { 1043s # /* GObject signals for incoming D-Bus method calls: */ 1043s # /** 1043s # * OrgProjectUsefulInterface::handle-single-arg-method-o: 1043s # * @object: A #OrgProjectUsefulInterface. 1043s # * @invocation: A #GDBusMethodInvocation. 1043s # * @arg_arg_o: Argument passed by remote caller. 1043s # * 1043s # * Signal emitted when a remote caller is invoking the SingleArgMethodO() D-Bus method. 1043s # * 1043s # * 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. 1043s # * 1043s # * 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. 1043s # */ 1043s # g_signal_new ("handle-single-arg-method-o", 1043s # G_TYPE_FROM_INTERFACE (iface), 1043s # G_SIGNAL_RUN_LAST, 1043s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_o), 1043s # g_signal_accumulator_true_handled, 1043s # NULL, 1043s # org_project_useful_interface_method_marshal_single_arg_method_o, 1043s # G_TYPE_BOOLEAN, 1043s # 2, 1043s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 1043s # 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_o: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @arg_arg_o: Argument to pass with the method invocation. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Asynchronously invokes the SingleArgMethodO() D-Bus method on @proxy. 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_call_single_arg_method_o_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_call_single_arg_method_o_sync() for the synchronous, blocking version of this method. 1043s # */ 1043s # void 1043s # org_project_useful_interface_call_single_arg_method_o ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # const gchar *arg_arg_o, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1043s # "SingleArgMethodO", 1043s # g_variant_new ("(o)", 1043s # arg_arg_o), 1043s # G_DBUS_CALL_FLAGS_NONE, 1043s # -1, 1043s # cancellable, 1043s # callback, 1043s # user_data); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_o_finish: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_o(). 1043s # * @error: Return location for error or %NULL. 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_o(). 1043s # * 1043s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1043s # */ 1043s # gboolean 1043s # org_project_useful_interface_call_single_arg_method_o_finish ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GVariant *_ret; 1043s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1043s # if (_ret == NULL) 1043s # goto _out; 1043s # g_variant_get (_ret, 1043s # "()"); 1043s # g_variant_unref (_ret); 1043s # _out: 1043s # return _ret != NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_o_sync: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @arg_arg_o: Argument to pass with the method invocation. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL. 1043s # * 1043s # * Synchronously invokes the SingleArgMethodO() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_call_single_arg_method_o() for the asynchronous version of this method. 1043s # * 1043s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1043s # */ 1043s # gboolean 1043s # org_project_useful_interface_call_single_arg_method_o_sync ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # const gchar *arg_arg_o, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GVariant *_ret; 1043s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1043s # "SingleArgMethodO", 1043s # g_variant_new ("(o)", 1043s # arg_arg_o), 1043s # G_DBUS_CALL_FLAGS_NONE, 1043s # -1, 1043s # cancellable, 1043s # error); 1043s # if (_ret == NULL) 1043s # goto _out; 1043s # g_variant_get (_ret, 1043s # "()"); 1043s # g_variant_unref (_ret); 1043s # _out: 1043s # return _ret != NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_complete_single_arg_method_o: 1043s # * @object: A #OrgProjectUsefulInterface. 1043s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1043s # * 1043s # * 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. 1043s # * 1043s # * This method will free @invocation, you cannot use it afterwards. 1043s # */ 1043s # void 1043s # org_project_useful_interface_complete_single_arg_method_o ( 1043s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1043s # GDBusMethodInvocation *invocation) 1043s # { 1043s # g_dbus_method_invocation_return_value (invocation, 1043s # g_variant_new ("()")); 1043s # } 1043s # 1043s # /* ------------------------------------------------------------------------ */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceProxy: 1043s # * 1043s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceProxyClass: 1043s # * @parent_class: The parent class. 1043s # * 1043s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1043s # */ 1043s # 1043s # struct _OrgProjectUsefulInterfaceProxyPrivate 1043s # { 1043s # GData *qdata; 1043s # }; 1043s # 1043s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1043s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1043s # 1043s # #else 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1043s # 1043s # #endif 1043s # static void 1043s # org_project_useful_interface_proxy_finalize (GObject *object) 1043s # { 1043s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1043s # g_datalist_clear (&proxy->priv->qdata); 1043s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1043s # guint prop_id G_GNUC_UNUSED, 1043s # GValue *value G_GNUC_UNUSED, 1043s # GParamSpec *pspec G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1043s # guint prop_id G_GNUC_UNUSED, 1043s # const GValue *value G_GNUC_UNUSED, 1043s # GParamSpec *pspec G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1043s # const gchar *sender_name G_GNUC_UNUSED, 1043s # const gchar *signal_name, 1043s # GVariant *parameters) 1043s # { 1043s # _ExtendedGDBusSignalInfo *info; 1043s # GVariantIter iter; 1043s # GVariant *child; 1043s # GValue *paramv; 1043s # gsize num_params; 1043s # gsize n; 1043s # guint signal_id; 1043s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1043s # if (info == NULL) 1043s # return; 1043s # num_params = g_variant_n_children (parameters); 1043s # paramv = g_new0 (GValue, num_params + 1); 1043s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_set_object (¶mv[0], proxy); 1043s # g_variant_iter_init (&iter, parameters); 1043s # n = 1; 1043s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1043s # { 1043s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1043s # if (arg_info->use_gvariant) 1043s # { 1043s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1043s # g_value_set_variant (¶mv[n], child); 1043s # n++; 1043s # } 1043s # else 1043s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1043s # g_variant_unref (child); 1043s # } 1043s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_signal_emitv (paramv, signal_id, 0, NULL); 1043s # for (n = 0; n < num_params + 1; n++) 1043s # g_value_unset (¶mv[n]); 1043s # g_free (paramv); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1043s # GVariant *changed_properties, 1043s # const gchar *const *invalidated_properties) 1043s # { 1043s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1043s # guint n; 1043s # const gchar *key; 1043s # GVariantIter *iter; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # g_variant_get (changed_properties, "a{sv}", &iter); 1043s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1043s # { 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1043s # g_datalist_remove_data (&proxy->priv->qdata, key); 1043s # if (info != NULL) 1043s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1043s # } 1043s # g_variant_iter_free (iter); 1043s # for (n = 0; invalidated_properties[n] != NULL; n++) 1043s # { 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1043s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1043s # if (info != NULL) 1043s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1043s # } 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1043s # { 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1043s # #else 1043s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1043s # #endif 1043s # 1043s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1043s # { 1043s # GObjectClass *gobject_class; 1043s # GDBusProxyClass *proxy_class; 1043s # 1043s # gobject_class = G_OBJECT_CLASS (klass); 1043s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1043s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1043s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1043s # 1043s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1043s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1043s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1043s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1043s # #endif 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new: 1043s # * @connection: A #GDBusConnection. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1043s # * 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1043s # */ 1043s # void 1043s # org_project_useful_interface_proxy_new ( 1043s # GDBusConnection *connection, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_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); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_finish: 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_finish ( 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GObject *ret; 1043s # GObject *source_object; 1043s # source_object = g_async_result_get_source_object (res); 1043s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1043s # g_object_unref (source_object); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_sync: 1043s # * @connection: A #GDBusConnection. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1043s # * 1043s # * The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_sync ( 1043s # GDBusConnection *connection, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GInitable *ret; 1043s # 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); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus: 1043s # * @bus_type: A #GBusType. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: A bus name (well-known or unique). 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1043s # * 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1043s # */ 1043s # void 1043s # org_project_useful_interface_proxy_new_for_bus ( 1043s # GBusType bus_type, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_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); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus_finish: 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_for_bus_finish ( 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GObject *ret; 1043s # GObject *source_object; 1043s # source_object = g_async_result_get_source_object (res); 1043s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1043s # g_object_unref (source_object); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus_sync: 1043s # * @bus_type: A #GBusType. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: A bus name (well-known or unique). 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1043s # * 1043s # * The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_for_bus_sync ( 1043s # GBusType bus_type, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GInitable *ret; 1043s # 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); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # 1043s # /* ------------------------------------------------------------------------ */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceSkeleton: 1043s # * 1043s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceSkeletonClass: 1043s # * @parent_class: The parent class. 1043s # * 1043s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1043s # */ 1043s # 1043s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1043s # { 1043s # GValue *properties; 1043s # GList *changed_properties; 1043s # GSource *changed_properties_idle_source; 1043s # GMainContext *context; 1043s # GMutex lock; 1043s # }; 1043s # 1043s # static void 1043s # _org_project_useful_interface_skeleton_handle_method_call ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name, 1043s # const gchar *method_name, 1043s # GVariant *parameters, 1043s # GDBusMethodInvocation *invocation, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # _ExtendedGDBusMethodInfo *info; 1043s # GVariantIter iter; 1043s # GVariant *child; 1043s # GValue *paramv; 1043s # gsize num_params; 1043s # guint num_extra; 1043s # gsize n; 1043s # guint signal_id; 1043s # GValue return_value = G_VALUE_INIT; 1043s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1043s # g_assert (info != NULL); 1043s # num_params = g_variant_n_children (parameters); 1043s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1043s # n = 0; 1043s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_set_object (¶mv[n++], skeleton); 1043s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1043s # g_value_set_object (¶mv[n++], invocation); 1043s # if (info->pass_fdlist) 1043s # { 1043s # #ifdef G_OS_UNIX 1043s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1043s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1043s # #else 1043s # g_assert_not_reached (); 1043s # #endif 1043s # } 1043s # g_variant_iter_init (&iter, parameters); 1043s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1043s # { 1043s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1043s # if (arg_info->use_gvariant) 1043s # { 1043s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1043s # g_value_set_variant (¶mv[n], child); 1043s # n++; 1043s # } 1043s # else 1043s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1043s # g_variant_unref (child); 1043s # } 1043s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1043s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1043s # if (!g_value_get_boolean (&return_value)) 1043s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1043s # g_value_unset (&return_value); 1043s # for (n = 0; n < num_params + num_extra; n++) 1043s # g_value_unset (¶mv[n]); 1043s # g_free (paramv); 1043s # } 1043s # 1043s # static GVariant * 1043s # _org_project_useful_interface_skeleton_handle_get_property ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name G_GNUC_UNUSED, 1043s # const gchar *property_name, 1043s # GError **error, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # GValue value = G_VALUE_INIT; 1043s # GParamSpec *pspec; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # GVariant *ret; 1043s # ret = NULL; 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1043s # g_assert (info != NULL); 1043s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1043s # if (pspec == NULL) 1043s # { 1043s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1043s # } 1043s # else 1043s # { 1043s # g_value_init (&value, pspec->value_type); 1043s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1043s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1043s # g_value_unset (&value); 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static gboolean 1043s # _org_project_useful_interface_skeleton_handle_set_property ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name G_GNUC_UNUSED, 1043s # const gchar *property_name, 1043s # GVariant *variant, 1043s # GError **error, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # GValue value = G_VALUE_INIT; 1043s # GParamSpec *pspec; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # gboolean ret; 1043s # ret = FALSE; 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1043s # g_assert (info != NULL); 1043s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1043s # if (pspec == NULL) 1043s # { 1043s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1043s # } 1043s # else 1043s # { 1043s # if (info->use_gvariant) 1043s # g_value_set_variant (&value, variant); 1043s # else 1043s # g_dbus_gvariant_to_gvalue (variant, &value); 1043s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1043s # g_value_unset (&value); 1043s # ret = TRUE; 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1043s # { 1043s # _org_project_useful_interface_skeleton_handle_method_call, 1043s # _org_project_useful_interface_skeleton_handle_get_property, 1043s # _org_project_useful_interface_skeleton_handle_set_property, 1043s # {NULL} 1043s # }; 1043s # 1043s # static GDBusInterfaceInfo * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1043s # { 1043s # return org_project_useful_interface_interface_info (); 1043s # } 1043s # 1043s # static GDBusInterfaceVTable * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1043s # { 1043s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1043s # } 1043s # 1043s # static GVariant * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1043s # 1043s # GVariantBuilder builder; 1043s # guint n; 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1043s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1043s # #else 1043s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1043s # #endif 1043s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1043s # goto out; 1043s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1043s # { 1043s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1043s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1043s # { 1043s # GVariant *value; 1043s # 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); 1043s # if (value != NULL) 1043s # { 1043s # g_variant_take_ref (value); 1043s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1043s # g_variant_unref (value); 1043s # } 1043s # } 1043s # } 1043s # out: 1043s # return g_variant_builder_end (&builder); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1043s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1043s # 1043s # #else 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1043s # 1043s # #endif 1043s # static void 1043s # org_project_useful_interface_skeleton_finalize (GObject *object) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1043s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1043s # if (skeleton->priv->changed_properties_idle_source != NULL) 1043s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1043s # g_main_context_unref (skeleton->priv->context); 1043s # g_mutex_clear (&skeleton->priv->lock); 1043s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1043s # { 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1043s # #else 1043s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1043s # #endif 1043s # 1043s # g_mutex_init (&skeleton->priv->lock); 1043s # skeleton->priv->context = g_main_context_ref_thread_default (); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1043s # { 1043s # GObjectClass *gobject_class; 1043s # GDBusInterfaceSkeletonClass *skeleton_class; 1043s # 1043s # gobject_class = G_OBJECT_CLASS (klass); 1043s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1043s # 1043s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1043s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1043s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1043s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1043s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1043s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1043s # #endif 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_skeleton_new: 1043s # * 1043s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_skeleton_new (void) 1043s # { 1043s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1043s # } 1043s # Error: 1043s # 1043s # /tmp/tmpd1ucwcbz/tmpp1d6uck_.xml: 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpd1ucwcbz/tmpp1d6uck_.xml', '--output', '-', '--body'] 1043s # Return code: 0 1043s # Output: 1043s # /* 1043s # * This file is generated by gdbus-codegen, do not modify it. 1043s # * 1043s # * The license of this code is the same as for the D-Bus interface description 1043s # * it was derived from. Note that it links to GLib, so must comply with the 1043s # * LGPL linking clauses. 1043s # */ 1043s # 1043s # #ifdef HAVE_CONFIG_H 1043s # # include "config.h" 1043s # #endif 1043s # 1043s # #include 1043s # #ifdef G_OS_UNIX 1043s # # include 1043s # #endif 1043s # 1043s # #ifdef G_ENABLE_DEBUG 1043s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1043s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1043s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1043s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1043s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1043s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1043s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1043s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1043s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1043s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1043s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1043s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1043s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1043s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1043s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1043s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1043s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1043s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1043s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1043s # #else /* !G_ENABLE_DEBUG */ 1043s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1043s # * Do not access GValues directly in your code. Instead, use the 1043s # * g_value_get_*() functions 1043s # */ 1043s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1043s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1043s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1043s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1043s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1043s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1043s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1043s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1043s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1043s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1043s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1043s # #endif /* !G_ENABLE_DEBUG */ 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusArgInfo parent_struct; 1043s # gboolean use_gvariant; 1043s # } _ExtendedGDBusArgInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusMethodInfo parent_struct; 1043s # const gchar *signal_name; 1043s # gboolean pass_fdlist; 1043s # } _ExtendedGDBusMethodInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusSignalInfo parent_struct; 1043s # const gchar *signal_name; 1043s # } _ExtendedGDBusSignalInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusPropertyInfo parent_struct; 1043s # const gchar *hyphen_name; 1043s # guint use_gvariant : 1; 1043s # guint emits_changed_signal : 1; 1043s # } _ExtendedGDBusPropertyInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusInterfaceInfo parent_struct; 1043s # const gchar *hyphen_name; 1043s # } _ExtendedGDBusInterfaceInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # const _ExtendedGDBusPropertyInfo *info; 1043s # guint prop_id; 1043s # GValue orig_value; /* the value before the change */ 1043s # } ChangedProperty; 1043s # 1043s # static void 1043s # _changed_property_free (ChangedProperty *data) 1043s # { 1043s # g_value_unset (&data->orig_value); 1043s # g_free (data); 1043s # } 1043s # 1043s # static gboolean 1043s # _g_strv_equal0 (gchar **a, gchar **b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # guint n; 1043s # if (a == NULL && b == NULL) 1043s # { 1043s # ret = TRUE; 1043s # goto out; 1043s # } 1043s # if (a == NULL || b == NULL) 1043s # goto out; 1043s # if (g_strv_length (a) != g_strv_length (b)) 1043s # goto out; 1043s # for (n = 0; a[n] != NULL; n++) 1043s # if (g_strcmp0 (a[n], b[n]) != 0) 1043s # goto out; 1043s # ret = TRUE; 1043s # out: 1043s # return ret; 1043s # } 1043s # 1043s # static gboolean 1043s # _g_variant_equal0 (GVariant *a, GVariant *b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # if (a == NULL && b == NULL) 1043s # { 1043s # ret = TRUE; 1043s # goto out; 1043s # } 1043s # if (a == NULL || b == NULL) 1043s # goto out; 1043s # ret = g_variant_equal (a, b); 1043s # out: 1043s # return ret; 1043s # } 1043s # 1043s # G_GNUC_UNUSED static gboolean 1043s # _g_value_equal (const GValue *a, const GValue *b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1043s # switch (G_VALUE_TYPE (a)) 1043s # { 1043s # case G_TYPE_BOOLEAN: 1043s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1043s # break; 1043s # case G_TYPE_UCHAR: 1043s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1043s # break; 1043s # case G_TYPE_INT: 1043s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1043s # break; 1043s # case G_TYPE_UINT: 1043s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1043s # break; 1043s # case G_TYPE_INT64: 1043s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1043s # break; 1043s # case G_TYPE_UINT64: 1043s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1043s # break; 1043s # case G_TYPE_DOUBLE: 1043s # { 1043s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1043s # gdouble da = g_value_get_double (a); 1043s # gdouble db = g_value_get_double (b); 1043s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1043s # } 1043s # break; 1043s # case G_TYPE_STRING: 1043s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1043s # break; 1043s # case G_TYPE_VARIANT: 1043s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1043s # break; 1043s # default: 1043s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1043s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1043s # else 1043s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1043s # break; 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static void 1043s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 1043s # GClosure *closure, 1043s # GValue *return_value, 1043s # unsigned int n_param_values, 1043s # const GValue *param_values, 1043s # void *invocation_hint G_GNUC_UNUSED, 1043s # void *marshal_data) 1043s # { 1043s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1043s # (void *data1, 1043s # GDBusMethodInvocation *arg_method_invocation, 1043s # const gchar *arg_arg_g, 1043s # void *data2); 1043s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 1043s # GCClosure *cc = (GCClosure*) closure; 1043s # void *data1, *data2; 1043s # gboolean v_return; 1043s # 1043s # g_return_if_fail (return_value != NULL); 1043s # g_return_if_fail (n_param_values == 3); 1043s # 1043s # if (G_CCLOSURE_SWAP_DATA (closure)) 1043s # { 1043s # data1 = closure->data; 1043s # data2 = g_value_peek_pointer (param_values + 0); 1043s # } 1043s # else 1043s # { 1043s # data1 = g_value_peek_pointer (param_values + 0); 1043s # data2 = closure->data; 1043s # } 1043s # 1043s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1043s # (marshal_data ? marshal_data : cc->callback); 1043s # 1043s # v_return = 1043s # callback (data1, 1043s # g_marshal_value_peek_object (param_values + 1), 1043s # g_marshal_value_peek_string (param_values + 2), 1043s # data2); 1043s # 1043s # g_value_set_boolean (return_value, v_return); 1043s # } 1043s # 1043s # /* ------------------------------------------------------------------------ 1043s # * Code for interface org.project.UsefulInterface 1043s # * ------------------------------------------------------------------------ 1043s # */ 1043s # 1043s # /** 1043s # * SECTION:OrgProjectUsefulInterface 1043s # * @title: OrgProjectUsefulInterface 1043s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1043s # * 1043s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1043s # */ 1043s # 1043s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1043s # 1043s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_arg_g = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "arg_g", 1043s # (gchar *) "g", 1043s # NULL 1043s # }, 1043s # FALSE 1043s # }; 1043s # 1043s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_pointers[] = 1043s # { 1043s # &_org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_arg_g.parent_struct, 1043s # NULL 1043s # }; 1043s # 1043s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_g = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "SingleArgMethodG", 1043s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_pointers, 1043s # NULL, 1043s # NULL 1043s # }, 1043s # "handle-single-arg-method-g", 1043s # FALSE 1043s # }; 1043s # 1043s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1043s # { 1043s # &_org_project_useful_interface_method_info_single_arg_method_g.parent_struct, 1043s # NULL 1043s # }; 1043s # 1043s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "org.project.UsefulInterface", 1043s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1043s # NULL, 1043s # NULL, 1043s # NULL 1043s # }, 1043s # "org-project-useful-interface", 1043s # }; 1043s # 1043s # 1043s # /** 1043s # * org_project_useful_interface_interface_info: 1043s # * 1043s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1043s # * 1043s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1043s # */ 1043s # GDBusInterfaceInfo * 1043s # org_project_useful_interface_interface_info (void) 1043s # { 1043s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_override_properties: 1043s # * @klass: The class structure for a #GObject derived class. 1043s # * @property_id_begin: The property id to assign to the first overridden property. 1043s # * 1043s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1043s # * The properties are overridden in the order they are defined. 1043s # * 1043s # * Returns: The last property id. 1043s # */ 1043s # guint 1043s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1043s # { 1043s # return property_id_begin - 1; 1043s # } 1043s # 1043s # 1043s # inline static void 1043s # org_project_useful_interface_method_marshal_single_arg_method_g ( 1043s # GClosure *closure, 1043s # GValue *return_value, 1043s # unsigned int n_param_values, 1043s # const GValue *param_values, 1043s # void *invocation_hint, 1043s # void *marshal_data) 1043s # { 1043s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 1043s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1043s # } 1043s # 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterface: 1043s # * 1043s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceIface: 1043s # * @parent_iface: The parent interface. 1043s # * @handle_single_arg_method_g: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-g signal. 1043s # * 1043s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1043s # */ 1043s # 1043s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1043s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1043s # 1043s # static void 1043s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1043s # { 1043s # /* GObject signals for incoming D-Bus method calls: */ 1043s # /** 1043s # * OrgProjectUsefulInterface::handle-single-arg-method-g: 1043s # * @object: A #OrgProjectUsefulInterface. 1043s # * @invocation: A #GDBusMethodInvocation. 1043s # * @arg_arg_g: Argument passed by remote caller. 1043s # * 1043s # * Signal emitted when a remote caller is invoking the SingleArgMethodG() D-Bus method. 1043s # * 1043s # * 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. 1043s # * 1043s # * 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. 1043s # */ 1043s # g_signal_new ("handle-single-arg-method-g", 1043s # G_TYPE_FROM_INTERFACE (iface), 1043s # G_SIGNAL_RUN_LAST, 1043s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_g), 1043s # g_signal_accumulator_true_handled, 1043s # NULL, 1043s # org_project_useful_interface_method_marshal_single_arg_method_g, 1043s # G_TYPE_BOOLEAN, 1043s # 2, 1043s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 1043s # 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_g: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @arg_arg_g: Argument to pass with the method invocation. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Asynchronously invokes the SingleArgMethodG() D-Bus method on @proxy. 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_call_single_arg_method_g_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_call_single_arg_method_g_sync() for the synchronous, blocking version of this method. 1043s # */ 1043s # void 1043s # org_project_useful_interface_call_single_arg_method_g ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # const gchar *arg_arg_g, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1043s # "SingleArgMethodG", 1043s # g_variant_new ("(g)", 1043s # arg_arg_g), 1043s # G_DBUS_CALL_FLAGS_NONE, 1043s # -1, 1043s # cancellable, 1043s # callback, 1043s # user_data); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_g_finish: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_g(). 1043s # * @error: Return location for error or %NULL. 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_g(). 1043s # * 1043s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1043s # */ 1043s # gboolean 1043s # org_project_useful_interface_call_single_arg_method_g_finish ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GVariant *_ret; 1043s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1043s # if (_ret == NULL) 1043s # goto _out; 1043s # g_variant_get (_ret, 1043s # "()"); 1043s # g_variant_unref (_ret); 1043s # _out: 1043s # return _ret != NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_g_sync: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @arg_arg_g: Argument to pass with the method invocation. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL. 1043s # * 1043s # * Synchronously invokes the SingleArgMethodG() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_call_single_arg_method_g() for the asynchronous version of this method. 1043s # * 1043s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1043s # */ 1043s # gboolean 1043s # org_project_useful_interface_call_single_arg_method_g_sync ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # const gchar *arg_arg_g, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GVariant *_ret; 1043s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1043s # "SingleArgMethodG", 1043s # g_variant_new ("(g)", 1043s # arg_arg_g), 1043s # G_DBUS_CALL_FLAGS_NONE, 1043s # -1, 1043s # cancellable, 1043s # error); 1043s # if (_ret == NULL) 1043s # goto _out; 1043s # g_variant_get (_ret, 1043s # "()"); 1043s # g_variant_unref (_ret); 1043s # _out: 1043s # return _ret != NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_complete_single_arg_method_g: 1043s # * @object: A #OrgProjectUsefulInterface. 1043s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1043s # * 1043s # * 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. 1043s # * 1043s # * This method will free @invocation, you cannot use it afterwards. 1043s # */ 1043s # void 1043s # org_project_useful_interface_complete_single_arg_method_g ( 1043s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1043s # GDBusMethodInvocation *invocation) 1043s # { 1043s # g_dbus_method_invocation_return_value (invocation, 1043s # g_variant_new ("()")); 1043s # } 1043s # 1043s # /* ------------------------------------------------------------------------ */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceProxy: 1043s # * 1043s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceProxyClass: 1043s # * @parent_class: The parent class. 1043s # * 1043s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1043s # */ 1043s # 1043s # struct _OrgProjectUsefulInterfaceProxyPrivate 1043s # { 1043s # GData *qdata; 1043s # }; 1043s # 1043s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1043s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1043s # 1043s # #else 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1043s # 1043s # #endif 1043s # static void 1043s # org_project_useful_interface_proxy_finalize (GObject *object) 1043s # { 1043s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1043s # g_datalist_clear (&proxy->priv->qdata); 1043s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1043s # guint prop_id G_GNUC_UNUSED, 1043s # GValue *value G_GNUC_UNUSED, 1043s # GParamSpec *pspec G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1043s # guint prop_id G_GNUC_UNUSED, 1043s # const GValue *value G_GNUC_UNUSED, 1043s # GParamSpec *pspec G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1043s # const gchar *sender_name G_GNUC_UNUSED, 1043s # const gchar *signal_name, 1043s # GVariant *parameters) 1043s # { 1043s # _ExtendedGDBusSignalInfo *info; 1043s # GVariantIter iter; 1043s # GVariant *child; 1043s # GValue *paramv; 1043s # gsize num_params; 1043s # gsize n; 1043s # guint signal_id; 1043s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1043s # if (info == NULL) 1043s # return; 1043s # num_params = g_variant_n_children (parameters); 1043s # paramv = g_new0 (GValue, num_params + 1); 1043s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_set_object (¶mv[0], proxy); 1043s # g_variant_iter_init (&iter, parameters); 1043s # n = 1; 1043s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1043s # { 1043s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1043s # if (arg_info->use_gvariant) 1043s # { 1043s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1043s # g_value_set_variant (¶mv[n], child); 1043s # n++; 1043s # } 1043s # else 1043s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1043s # g_variant_unref (child); 1043s # } 1043s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_signal_emitv (paramv, signal_id, 0, NULL); 1043s # for (n = 0; n < num_params + 1; n++) 1043s # g_value_unset (¶mv[n]); 1043s # g_free (paramv); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1043s # GVariant *changed_properties, 1043s # const gchar *const *invalidated_properties) 1043s # { 1043s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1043s # guint n; 1043s # const gchar *key; 1043s # GVariantIter *iter; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # g_variant_get (changed_properties, "a{sv}", &iter); 1043s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1043s # { 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1043s # g_datalist_remove_data (&proxy->priv->qdata, key); 1043s # if (info != NULL) 1043s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1043s # } 1043s # g_variant_iter_free (iter); 1043s # for (n = 0; invalidated_properties[n] != NULL; n++) 1043s # { 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1043s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1043s # if (info != NULL) 1043s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1043s # } 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1043s # { 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1043s # #else 1043s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1043s # #endif 1043s # 1043s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1043s # { 1043s # GObjectClass *gobject_class; 1043s # GDBusProxyClass *proxy_class; 1043s # 1043s # gobject_class = G_OBJECT_CLASS (klass); 1043s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1043s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1043s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1043s # 1043s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1043s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1043s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1043s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1043s # #endif 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new: 1043s # * @connection: A #GDBusConnection. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1043s # * 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1043s # */ 1043s # void 1043s # org_project_useful_interface_proxy_new ( 1043s # GDBusConnection *connection, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_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); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_finish: 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_finish ( 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GObject *ret; 1043s # GObject *source_object; 1043s # source_object = g_async_result_get_source_object (res); 1043s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1043s # g_object_unref (source_object); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_sync: 1043s # * @connection: A #GDBusConnection. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1043s # * 1043s # * The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_sync ( 1043s # GDBusConnection *connection, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GInitable *ret; 1043s # 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); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus: 1043s # * @bus_type: A #GBusType. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: A bus name (well-known or unique). 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1043s # * 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1043s # */ 1043s # void 1043s # org_project_useful_interface_proxy_new_for_bus ( 1043s # GBusType bus_type, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_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); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus_finish: 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_for_bus_finish ( 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GObject *ret; 1043s # GObject *source_object; 1043s # source_object = g_async_result_get_source_object (res); 1043s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1043s # g_object_unref (source_object); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus_sync: 1043s # * @bus_type: A #GBusType. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: A bus name (well-known or unique). 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1043s # * 1043s # * The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_for_bus_sync ( 1043s # GBusType bus_type, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GInitable *ret; 1043s # 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); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # 1043s # /* ------------------------------------------------------------------------ */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceSkeleton: 1043s # * 1043s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceSkeletonClass: 1043s # * @parent_class: The parent class. 1043s # * 1043s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1043s # */ 1043s # 1043s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1043s # { 1043s # GValue *properties; 1043s # GList *changed_properties; 1043s # GSource *changed_properties_idle_source; 1043s # GMainContext *context; 1043s # GMutex lock; 1043s # }; 1043s # 1043s # static void 1043s # _org_project_useful_interface_skeleton_handle_method_call ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name, 1043s # const gchar *method_name, 1043s # GVariant *parameters, 1043s # GDBusMethodInvocation *invocation, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # _ExtendedGDBusMethodInfo *info; 1043s # GVariantIter iter; 1043s # GVariant *child; 1043s # GValue *paramv; 1043s # gsize num_params; 1043s # guint num_extra; 1043s # gsize n; 1043s # guint signal_id; 1043s # GValue return_value = G_VALUE_INIT; 1043s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1043s # g_assert (info != NULL); 1043s # num_params = g_variant_n_children (parameters); 1043s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1043s # n = 0; 1043s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_set_object (¶mv[n++], skeleton); 1043s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1043s # g_value_set_object (¶mv[n++], invocation); 1043s # if (info->pass_fdlist) 1043s # { 1043s # #ifdef G_OS_UNIX 1043s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1043s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1043s # #else 1043s # g_assert_not_reached (); 1043s # #endif 1043s # } 1043s # g_variant_iter_init (&iter, parameters); 1043s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1043s # { 1043s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1043s # if (arg_info->use_gvariant) 1043s # { 1043s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1043s # g_value_set_variant (¶mv[n], child); 1043s # n++; 1043s # } 1043s # else 1043s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1043s # g_variant_unref (child); 1043s # } 1043s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1043s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1043s # if (!g_value_get_boolean (&return_value)) 1043s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1043s # g_value_unset (&return_value); 1043s # for (n = 0; n < num_params + num_extra; n++) 1043s # g_value_unset (¶mv[n]); 1043s # g_free (paramv); 1043s # } 1043s # 1043s # static GVariant * 1043s # _org_project_useful_interface_skeleton_handle_get_property ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name G_GNUC_UNUSED, 1043s # const gchar *property_name, 1043s # GError **error, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # GValue value = G_VALUE_INIT; 1043s # GParamSpec *pspec; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # GVariant *ret; 1043s # ret = NULL; 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1043s # g_assert (info != NULL); 1043s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1043s # if (pspec == NULL) 1043s # { 1043s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1043s # } 1043s # else 1043s # { 1043s # g_value_init (&value, pspec->value_type); 1043s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1043s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1043s # g_value_unset (&value); 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static gboolean 1043s # _org_project_useful_interface_skeleton_handle_set_property ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name G_GNUC_UNUSED, 1043s # const gchar *property_name, 1043s # GVariant *variant, 1043s # GError **error, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # GValue value = G_VALUE_INIT; 1043s # GParamSpec *pspec; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # gboolean ret; 1043s # ret = FALSE; 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1043s # g_assert (info != NULL); 1043s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1043s # if (pspec == NULL) 1043s # { 1043s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1043s # } 1043s # else 1043s # { 1043s # if (info->use_gvariant) 1043s # g_value_set_variant (&value, variant); 1043s # else 1043s # g_dbus_gvariant_to_gvalue (variant, &value); 1043s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1043s # g_value_unset (&value); 1043s # ret = TRUE; 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1043s # { 1043s # _org_project_useful_interface_skeleton_handle_method_call, 1043s # _org_project_useful_interface_skeleton_handle_get_property, 1043s # _org_project_useful_interface_skeleton_handle_set_property, 1043s # {NULL} 1043s # }; 1043s # 1043s # static GDBusInterfaceInfo * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1043s # { 1043s # return org_project_useful_interface_interface_info (); 1043s # } 1043s # 1043s # static GDBusInterfaceVTable * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1043s # { 1043s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1043s # } 1043s # 1043s # static GVariant * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1043s # 1043s # GVariantBuilder builder; 1043s # guint n; 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1043s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1043s # #else 1043s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1043s # #endif 1043s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1043s # goto out; 1043s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1043s # { 1043s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1043s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1043s # { 1043s # GVariant *value; 1043s # 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); 1043s # if (value != NULL) 1043s # { 1043s # g_variant_take_ref (value); 1043s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1043s # g_variant_unref (value); 1043s # } 1043s # } 1043s # } 1043s # out: 1043s # return g_variant_builder_end (&builder); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1043s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1043s # 1043s # #else 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1043s # 1043s # #endif 1043s # static void 1043s # org_project_useful_interface_skeleton_finalize (GObject *object) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1043s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1043s # if (skeleton->priv->changed_properties_idle_source != NULL) 1043s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1043s # g_main_context_unref (skeleton->priv->context); 1043s # g_mutex_clear (&skeleton->priv->lock); 1043s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1043s # { 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1043s # #else 1043s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1043s # #endif 1043s # 1043s # g_mutex_init (&skeleton->priv->lock); 1043s # skeleton->priv->context = g_main_context_ref_thread_default (); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1043s # { 1043s # GObjectClass *gobject_class; 1043s # GDBusInterfaceSkeletonClass *skeleton_class; 1043s # 1043s # gobject_class = G_OBJECT_CLASS (klass); 1043s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1043s # 1043s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1043s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1043s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1043s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1043s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1043s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1043s # #endif 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_skeleton_new: 1043s # * 1043s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_skeleton_new (void) 1043s # { 1043s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1043s # } 1043s # Error: 1043s # 1043s # /tmp/tmpd1ucwcbz/tmp105uw_z7.xml: 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpd1ucwcbz/tmp105uw_z7.xml', '--output', '-', '--body'] 1043s # Return code: 0 1043s # Output: 1043s # /* 1043s # * This file is generated by gdbus-codegen, do not modify it. 1043s # * 1043s # * The license of this code is the same as for the D-Bus interface description 1043s # * it was derived from. Note that it links to GLib, so must comply with the 1043s # * LGPL linking clauses. 1043s # */ 1043s # 1043s # #ifdef HAVE_CONFIG_H 1043s # # include "config.h" 1043s # #endif 1043s # 1043s # #include 1043s # #ifdef G_OS_UNIX 1043s # # include 1043s # #endif 1043s # 1043s # #ifdef G_ENABLE_DEBUG 1043s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1043s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1043s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1043s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1043s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1043s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1043s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1043s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1043s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1043s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1043s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1043s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1043s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1043s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1043s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1043s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1043s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1043s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1043s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1043s # #else /* !G_ENABLE_DEBUG */ 1043s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1043s # * Do not access GValues directly in your code. Instead, use the 1043s # * g_value_get_*() functions 1043s # */ 1043s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1043s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1043s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1043s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1043s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1043s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1043s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1043s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1043s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1043s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1043s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1043s # #endif /* !G_ENABLE_DEBUG */ 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusArgInfo parent_struct; 1043s # gboolean use_gvariant; 1043s # } _ExtendedGDBusArgInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusMethodInfo parent_struct; 1043s # const gchar *signal_name; 1043s # gboolean pass_fdlist; 1043s # } _ExtendedGDBusMethodInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusSignalInfo parent_struct; 1043s # const gchar *signal_name; 1043s # } _ExtendedGDBusSignalInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusPropertyInfo parent_struct; 1043s # const gchar *hyphen_name; 1043s # guint use_gvariant : 1; 1043s # guint emits_changed_signal : 1; 1043s # } _ExtendedGDBusPropertyInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusInterfaceInfo parent_struct; 1043s # const gchar *hyphen_name; 1043s # } _ExtendedGDBusInterfaceInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # const _ExtendedGDBusPropertyInfo *info; 1043s # guint prop_id; 1043s # GValue orig_value; /* the value before the change */ 1043s # } ChangedProperty; 1043s # 1043s # static void 1043s # _changed_property_free (ChangedProperty *data) 1043s # { 1043s # g_value_unset (&data->orig_value); 1043s # g_free (data); 1043s # } 1043s # 1043s # static gboolean 1043s # _g_strv_equal0 (gchar **a, gchar **b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # guint n; 1043s # if (a == NULL && b == NULL) 1043s # { 1043s # ret = TRUE; 1043s # goto out; 1043s # } 1043s # if (a == NULL || b == NULL) 1043s # goto out; 1043s # if (g_strv_length (a) != g_strv_length (b)) 1043s # goto out; 1043s # for (n = 0; a[n] != NULL; n++) 1043s # if (g_strcmp0 (a[n], b[n]) != 0) 1043s # goto out; 1043s # ret = TRUE; 1043s # out: 1043s # return ret; 1043s # } 1043s # 1043s # static gboolean 1043s # _g_variant_equal0 (GVariant *a, GVariant *b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # if (a == NULL && b == NULL) 1043s # { 1043s # ret = TRUE; 1043s # goto out; 1043s # } 1043s # if (a == NULL || b == NULL) 1043s # goto out; 1043s # ret = g_variant_equal (a, b); 1043s # out: 1043s # return ret; 1043s # } 1043s # 1043s # G_GNUC_UNUSED static gboolean 1043s # _g_value_equal (const GValue *a, const GValue *b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1043s # switch (G_VALUE_TYPE (a)) 1043s # { 1043s # case G_TYPE_BOOLEAN: 1043s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1043s # break; 1043s # case G_TYPE_UCHAR: 1043s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1043s # break; 1043s # case G_TYPE_INT: 1043s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1043s # break; 1043s # case G_TYPE_UINT: 1043s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1043s # break; 1043s # case G_TYPE_INT64: 1043s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1043s # break; 1043s # case G_TYPE_UINT64: 1043s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1043s # break; 1043s # case G_TYPE_DOUBLE: 1043s # { 1043s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1043s # gdouble da = g_value_get_double (a); 1043s # gdouble db = g_value_get_double (b); 1043s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1043s # } 1043s # break; 1043s # case G_TYPE_STRING: 1043s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1043s # break; 1043s # case G_TYPE_VARIANT: 1043s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1043s # break; 1043s # default: 1043s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1043s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1043s # else 1043s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1043s # break; 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static void 1043s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT ( 1043s # GClosure *closure, 1043s # GValue *return_value, 1043s # unsigned int n_param_values, 1043s # const GValue *param_values, 1043s # void *invocation_hint G_GNUC_UNUSED, 1043s # void *marshal_data) 1043s # { 1043s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 1043s # (void *data1, 1043s # GDBusMethodInvocation *arg_method_invocation, 1043s # GVariant *arg_arg_h, 1043s # void *data2); 1043s # _GDbusCodegenMarshalBoolean_ObjectVariantFunc callback; 1043s # GCClosure *cc = (GCClosure*) closure; 1043s # void *data1, *data2; 1043s # gboolean v_return; 1043s # 1043s # g_return_if_fail (return_value != NULL); 1043s # g_return_if_fail (n_param_values == 3); 1043s # 1043s # if (G_CCLOSURE_SWAP_DATA (closure)) 1043s # { 1043s # data1 = closure->data; 1043s # data2 = g_value_peek_pointer (param_values + 0); 1043s # } 1043s # else 1043s # { 1043s # data1 = g_value_peek_pointer (param_values + 0); 1043s # data2 = closure->data; 1043s # } 1043s # 1043s # callback = (_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 1043s # (marshal_data ? marshal_data : cc->callback); 1043s # 1043s # v_return = 1043s # callback (data1, 1043s # g_marshal_value_peek_object (param_values + 1), 1043s # g_marshal_value_peek_variant (param_values + 2), 1043s # data2); 1043s # 1043s # g_value_set_boolean (return_value, v_return); 1043s # } 1043s # 1043s # /* ------------------------------------------------------------------------ 1043s # * Code for interface org.project.UsefulInterface 1043s # * ------------------------------------------------------------------------ 1043s # */ 1043s # 1043s # /** 1043s # * SECTION:OrgProjectUsefulInterface 1043s # * @title: OrgProjectUsefulInterface 1043s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1043s # * 1043s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1043s # */ 1043s # 1043s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1043s # 1043s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_arg_h = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "arg_h", 1043s # (gchar *) "h", 1043s # NULL 1043s # }, 1043s # FALSE 1043s # }; 1043s # 1043s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_pointers[] = 1043s # { 1043s # &_org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_arg_h.parent_struct, 1043s # NULL 1043s # }; 1043s # 1043s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_h = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "SingleArgMethodH", 1043s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_pointers, 1043s # NULL, 1043s # NULL 1043s # }, 1043s # "handle-single-arg-method-h", 1043s # FALSE 1043s # }; 1043s # 1043s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1043s # { 1043s # &_org_project_useful_interface_method_info_single_arg_method_h.parent_struct, 1043s # NULL 1043s # }; 1043s # 1043s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "org.project.UsefulInterface", 1043s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1043s # NULL, 1043s # NULL, 1043s # NULL 1043s # }, 1043s # "org-project-useful-interface", 1043s # }; 1043s # 1043s # 1043s # /** 1043s # * org_project_useful_interface_interface_info: 1043s # * 1043s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1043s # * 1043s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1043s # */ 1043s # GDBusInterfaceInfo * 1043s # org_project_useful_interface_interface_info (void) 1043s # { 1043s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_override_properties: 1043s # * @klass: The class structure for a #GObject derived class. 1043s # * @property_id_begin: The property id to assign to the first overridden property. 1043s # * 1043s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1043s # * The properties are overridden in the order they are defined. 1043s # * 1043s # * Returns: The last property id. 1043s # */ 1043s # guint 1043s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1043s # { 1043s # return property_id_begin - 1; 1043s # } 1043s # 1043s # 1043s # inline static void 1043s # org_project_useful_interface_method_marshal_single_arg_method_h ( 1043s # GClosure *closure, 1043s # GValue *return_value, 1043s # unsigned int n_param_values, 1043s # const GValue *param_values, 1043s # void *invocation_hint, 1043s # void *marshal_data) 1043s # { 1043s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT (closure, 1043s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1043s # } 1043s # 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterface: 1043s # * 1043s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceIface: 1043s # * @parent_iface: The parent interface. 1043s # * @handle_single_arg_method_h: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-h signal. 1043s # * 1043s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1043s # */ 1043s # 1043s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1043s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1043s # 1043s # static void 1043s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1043s # { 1043s # /* GObject signals for incoming D-Bus method calls: */ 1043s # /** 1043s # * OrgProjectUsefulInterface::handle-single-arg-method-h: 1043s # * @object: A #OrgProjectUsefulInterface. 1043s # * @invocation: A #GDBusMethodInvocation. 1043s # * @arg_arg_h: Argument passed by remote caller. 1043s # * 1043s # * Signal emitted when a remote caller is invoking the SingleArgMethodH() D-Bus method. 1043s # * 1043s # * 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. 1043s # * 1043s # * 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. 1043s # */ 1043s # g_signal_new ("handle-single-arg-method-h", 1043s # G_TYPE_FROM_INTERFACE (iface), 1043s # G_SIGNAL_RUN_LAST, 1043s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_h), 1043s # g_signal_accumulator_true_handled, 1043s # NULL, 1043s # org_project_useful_interface_method_marshal_single_arg_method_h, 1043s # G_TYPE_BOOLEAN, 1043s # 2, 1043s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT); 1043s # 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_h: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @arg_arg_h: Argument to pass with the method invocation. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Asynchronously invokes the SingleArgMethodH() D-Bus method on @proxy. 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_call_single_arg_method_h_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_call_single_arg_method_h_sync() for the synchronous, blocking version of this method. 1043s # */ 1043s # void 1043s # org_project_useful_interface_call_single_arg_method_h ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # GVariant *arg_arg_h, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1043s # "SingleArgMethodH", 1043s # g_variant_new ("(@h)", 1043s # arg_arg_h), 1043s # G_DBUS_CALL_FLAGS_NONE, 1043s # -1, 1043s # cancellable, 1043s # callback, 1043s # user_data); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_h_finish: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_h(). 1043s # * @error: Return location for error or %NULL. 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_h(). 1043s # * 1043s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1043s # */ 1043s # gboolean 1043s # org_project_useful_interface_call_single_arg_method_h_finish ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GVariant *_ret; 1043s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1043s # if (_ret == NULL) 1043s # goto _out; 1043s # g_variant_get (_ret, 1043s # "()"); 1043s # g_variant_unref (_ret); 1043s # _out: 1043s # return _ret != NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_h_sync: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @arg_arg_h: Argument to pass with the method invocation. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL. 1043s # * 1043s # * Synchronously invokes the SingleArgMethodH() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_call_single_arg_method_h() for the asynchronous version of this method. 1043s # * 1043s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1043s # */ 1043s # gboolean 1043s # org_project_useful_interface_call_single_arg_method_h_sync ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # GVariant *arg_arg_h, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GVariant *_ret; 1043s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1043s # "SingleArgMethodH", 1043s # g_variant_new ("(@h)", 1043s # arg_arg_h), 1043s # G_DBUS_CALL_FLAGS_NONE, 1043s # -1, 1043s # cancellable, 1043s # error); 1043s # if (_ret == NULL) 1043s # goto _out; 1043s # g_variant_get (_ret, 1043s # "()"); 1043s # g_variant_unref (_ret); 1043s # _out: 1043s # return _ret != NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_complete_single_arg_method_h: 1043s # * @object: A #OrgProjectUsefulInterface. 1043s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1043s # * 1043s # * 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. 1043s # * 1043s # * This method will free @invocation, you cannot use it afterwards. 1043s # */ 1043s # void 1043s # org_project_useful_interface_complete_single_arg_method_h ( 1043s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1043s # GDBusMethodInvocation *invocation) 1043s # { 1043s # g_dbus_method_invocation_return_value (invocation, 1043s # g_variant_new ("()")); 1043s # } 1043s # 1043s # /* ------------------------------------------------------------------------ */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceProxy: 1043s # * 1043s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceProxyClass: 1043s # * @parent_class: The parent class. 1043s # * 1043s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1043s # */ 1043s # 1043s # struct _OrgProjectUsefulInterfaceProxyPrivate 1043s # { 1043s # GData *qdata; 1043s # }; 1043s # 1043s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1043s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1043s # 1043s # #else 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1043s # 1043s # #endif 1043s # static void 1043s # org_project_useful_interface_proxy_finalize (GObject *object) 1043s # { 1043s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1043s # g_datalist_clear (&proxy->priv->qdata); 1043s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1043s # guint prop_id G_GNUC_UNUSED, 1043s # GValue *value G_GNUC_UNUSED, 1043s # GParamSpec *pspec G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1043s # guint prop_id G_GNUC_UNUSED, 1043s # const GValue *value G_GNUC_UNUSED, 1043s # GParamSpec *pspec G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1043s # const gchar *sender_name G_GNUC_UNUSED, 1043s # const gchar *signal_name, 1043s # GVariant *parameters) 1043s # { 1043s # _ExtendedGDBusSignalInfo *info; 1043s # GVariantIter iter; 1043s # GVariant *child; 1043s # GValue *paramv; 1043s # gsize num_params; 1043s # gsize n; 1043s # guint signal_id; 1043s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1043s # if (info == NULL) 1043s # return; 1043s # num_params = g_variant_n_children (parameters); 1043s # paramv = g_new0 (GValue, num_params + 1); 1043s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_set_object (¶mv[0], proxy); 1043s # g_variant_iter_init (&iter, parameters); 1043s # n = 1; 1043s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1043s # { 1043s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1043s # if (arg_info->use_gvariant) 1043s # { 1043s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1043s # g_value_set_variant (¶mv[n], child); 1043s # n++; 1043s # } 1043s # else 1043s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1043s # g_variant_unref (child); 1043s # } 1043s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_signal_emitv (paramv, signal_id, 0, NULL); 1043s # for (n = 0; n < num_params + 1; n++) 1043s # g_value_unset (¶mv[n]); 1043s # g_free (paramv); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1043s # GVariant *changed_properties, 1043s # const gchar *const *invalidated_properties) 1043s # { 1043s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1043s # guint n; 1043s # const gchar *key; 1043s # GVariantIter *iter; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # g_variant_get (changed_properties, "a{sv}", &iter); 1043s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1043s # { 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1043s # g_datalist_remove_data (&proxy->priv->qdata, key); 1043s # if (info != NULL) 1043s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1043s # } 1043s # g_variant_iter_free (iter); 1043s # for (n = 0; invalidated_properties[n] != NULL; n++) 1043s # { 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1043s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1043s # if (info != NULL) 1043s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1043s # } 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1043s # { 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1043s # #else 1043s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1043s # #endif 1043s # 1043s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1043s # { 1043s # GObjectClass *gobject_class; 1043s # GDBusProxyClass *proxy_class; 1043s # 1043s # gobject_class = G_OBJECT_CLASS (klass); 1043s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1043s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1043s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1043s # 1043s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1043s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1043s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1043s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1043s # #endif 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new: 1043s # * @connection: A #GDBusConnection. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1043s # * 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1043s # */ 1043s # void 1043s # org_project_useful_interface_proxy_new ( 1043s # GDBusConnection *connection, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_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); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_finish: 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_finish ( 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GObject *ret; 1043s # GObject *source_object; 1043s # source_object = g_async_result_get_source_object (res); 1043s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1043s # g_object_unref (source_object); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_sync: 1043s # * @connection: A #GDBusConnection. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1043s # * 1043s # * The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_sync ( 1043s # GDBusConnection *connection, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GInitable *ret; 1043s # 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); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus: 1043s # * @bus_type: A #GBusType. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: A bus name (well-known or unique). 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1043s # * 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1043s # */ 1043s # void 1043s # org_project_useful_interface_proxy_new_for_bus ( 1043s # GBusType bus_type, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_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); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus_finish: 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_for_bus_finish ( 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GObject *ret; 1043s # GObject *source_object; 1043s # source_object = g_async_result_get_source_object (res); 1043s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1043s # g_object_unref (source_object); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus_sync: 1043s # * @bus_type: A #GBusType. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: A bus name (well-known or unique). 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1043s # * 1043s # * The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_for_bus_sync ( 1043s # GBusType bus_type, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GInitable *ret; 1043s # 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); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # 1043s # /* ------------------------------------------------------------------------ */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceSkeleton: 1043s # * 1043s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceSkeletonClass: 1043s # * @parent_class: The parent class. 1043s # * 1043s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1043s # */ 1043s # 1043s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1043s # { 1043s # GValue *properties; 1043s # GList *changed_properties; 1043s # GSource *changed_properties_idle_source; 1043s # GMainContext *context; 1043s # GMutex lock; 1043s # }; 1043s # 1043s # static void 1043s # _org_project_useful_interface_skeleton_handle_method_call ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name, 1043s # const gchar *method_name, 1043s # GVariant *parameters, 1043s # GDBusMethodInvocation *invocation, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # _ExtendedGDBusMethodInfo *info; 1043s # GVariantIter iter; 1043s # GVariant *child; 1043s # GValue *paramv; 1043s # gsize num_params; 1043s # guint num_extra; 1043s # gsize n; 1043s # guint signal_id; 1043s # GValue return_value = G_VALUE_INIT; 1043s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1043s # g_assert (info != NULL); 1043s # num_params = g_variant_n_children (parameters); 1043s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1043s # n = 0; 1043s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_set_object (¶mv[n++], skeleton); 1043s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1043s # g_value_set_object (¶mv[n++], invocation); 1043s # if (info->pass_fdlist) 1043s # { 1043s # #ifdef G_OS_UNIX 1043s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1043s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1043s # #else 1043s # g_assert_not_reached (); 1043s # #endif 1043s # } 1043s # g_variant_iter_init (&iter, parameters); 1043s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1043s # { 1043s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1043s # if (arg_info->use_gvariant) 1043s # { 1043s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1043s # g_value_set_variant (¶mv[n], child); 1043s # n++; 1043s # } 1043s # else 1043s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1043s # g_variant_unref (child); 1043s # } 1043s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1043s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1043s # if (!g_value_get_boolean (&return_value)) 1043s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1043s # g_value_unset (&return_value); 1043s # for (n = 0; n < num_params + num_extra; n++) 1043s # g_value_unset (¶mv[n]); 1043s # g_free (paramv); 1043s # } 1043s # 1043s # static GVariant * 1043s # _org_project_useful_interface_skeleton_handle_get_property ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name G_GNUC_UNUSED, 1043s # const gchar *property_name, 1043s # GError **error, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # GValue value = G_VALUE_INIT; 1043s # GParamSpec *pspec; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # GVariant *ret; 1043s # ret = NULL; 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1043s # g_assert (info != NULL); 1043s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1043s # if (pspec == NULL) 1043s # { 1043s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1043s # } 1043s # else 1043s # { 1043s # g_value_init (&value, pspec->value_type); 1043s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1043s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1043s # g_value_unset (&value); 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static gboolean 1043s # _org_project_useful_interface_skeleton_handle_set_property ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name G_GNUC_UNUSED, 1043s # const gchar *property_name, 1043s # GVariant *variant, 1043s # GError **error, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # GValue value = G_VALUE_INIT; 1043s # GParamSpec *pspec; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # gboolean ret; 1043s # ret = FALSE; 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1043s # g_assert (info != NULL); 1043s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1043s # if (pspec == NULL) 1043s # { 1043s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1043s # } 1043s # else 1043s # { 1043s # if (info->use_gvariant) 1043s # g_value_set_variant (&value, variant); 1043s # else 1043s # g_dbus_gvariant_to_gvalue (variant, &value); 1043s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1043s # g_value_unset (&value); 1043s # ret = TRUE; 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1043s # { 1043s # _org_project_useful_interface_skeleton_handle_method_call, 1043s # _org_project_useful_interface_skeleton_handle_get_property, 1043s # _org_project_useful_interface_skeleton_handle_set_property, 1043s # {NULL} 1043s # }; 1043s # 1043s # static GDBusInterfaceInfo * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1043s # { 1043s # return org_project_useful_interface_interface_info (); 1043s # } 1043s # 1043s # static GDBusInterfaceVTable * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1043s # { 1043s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1043s # } 1043s # 1043s # static GVariant * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1043s # 1043s # GVariantBuilder builder; 1043s # guint n; 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1043s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1043s # #else 1043s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1043s # #endif 1043s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1043s # goto out; 1043s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1043s # { 1043s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1043s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1043s # { 1043s # GVariant *value; 1043s # 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); 1043s # if (value != NULL) 1043s # { 1043s # g_variant_take_ref (value); 1043s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1043s # g_variant_unref (value); 1043s # } 1043s # } 1043s # } 1043s # out: 1043s # return g_variant_builder_end (&builder); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1043s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1043s # 1043s # #else 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1043s # 1043s # #endif 1043s # static void 1043s # org_project_useful_interface_skeleton_finalize (GObject *object) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1043s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1043s # if (skeleton->priv->changed_properties_idle_source != NULL) 1043s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1043s # g_main_context_unref (skeleton->priv->context); 1043s # g_mutex_clear (&skeleton->priv->lock); 1043s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1043s # { 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1043s # #else 1043s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1043s # #endif 1043s # 1043s # g_mutex_init (&skeleton->priv->lock); 1043s # skeleton->priv->context = g_main_context_ref_thread_default (); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1043s # { 1043s # GObjectClass *gobject_class; 1043s # GDBusInterfaceSkeletonClass *skeleton_class; 1043s # 1043s # gobject_class = G_OBJECT_CLASS (klass); 1043s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1043s # 1043s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1043s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1043s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1043s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1043s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1043s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1043s # #endif 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_skeleton_new: 1043s # * 1043s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_skeleton_new (void) 1043s # { 1043s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1043s # } 1043s # Error: 1043s # 1043s # /tmp/tmpd1ucwcbz/tmpke9uww8j.xml: 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpd1ucwcbz/tmpke9uww8j.xml', '--output', '-', '--body'] 1043s # Return code: 0 1043s # Output: 1043s # /* 1043s # * This file is generated by gdbus-codegen, do not modify it. 1043s # * 1043s # * The license of this code is the same as for the D-Bus interface description 1043s # * it was derived from. Note that it links to GLib, so must comply with the 1043s # * LGPL linking clauses. 1043s # */ 1043s # 1043s # #ifdef HAVE_CONFIG_H 1043s # # include "config.h" 1043s # #endif 1043s # 1043s # #include 1043s # #ifdef G_OS_UNIX 1043s # # include 1043s # #endif 1043s # 1043s # #ifdef G_ENABLE_DEBUG 1043s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1043s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1043s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1043s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1043s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1043s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1043s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1043s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1043s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1043s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1043s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1043s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1043s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1043s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1043s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1043s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1043s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1043s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1043s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1043s # #else /* !G_ENABLE_DEBUG */ 1043s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1043s # * Do not access GValues directly in your code. Instead, use the 1043s # * g_value_get_*() functions 1043s # */ 1043s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1043s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1043s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1043s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1043s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1043s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1043s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1043s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1043s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1043s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1043s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1043s # #endif /* !G_ENABLE_DEBUG */ 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusArgInfo parent_struct; 1043s # gboolean use_gvariant; 1043s # } _ExtendedGDBusArgInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusMethodInfo parent_struct; 1043s # const gchar *signal_name; 1043s # gboolean pass_fdlist; 1043s # } _ExtendedGDBusMethodInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusSignalInfo parent_struct; 1043s # const gchar *signal_name; 1043s # } _ExtendedGDBusSignalInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusPropertyInfo parent_struct; 1043s # const gchar *hyphen_name; 1043s # guint use_gvariant : 1; 1043s # guint emits_changed_signal : 1; 1043s # } _ExtendedGDBusPropertyInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusInterfaceInfo parent_struct; 1043s # const gchar *hyphen_name; 1043s # } _ExtendedGDBusInterfaceInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # const _ExtendedGDBusPropertyInfo *info; 1043s # guint prop_id; 1043s # GValue orig_value; /* the value before the change */ 1043s # } ChangedProperty; 1043s # 1043s # static void 1043s # _changed_property_free (ChangedProperty *data) 1043s # { 1043s # g_value_unset (&data->orig_value); 1043s # g_free (data); 1043s # } 1043s # 1043s # static gboolean 1043s # _g_strv_equal0 (gchar **a, gchar **b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # guint n; 1043s # if (a == NULL && b == NULL) 1043s # { 1043s # ret = TRUE; 1043s # goto out; 1043s # } 1043s # if (a == NULL || b == NULL) 1043s # goto out; 1043s # if (g_strv_length (a) != g_strv_length (b)) 1043s # goto out; 1043s # for (n = 0; a[n] != NULL; n++) 1043s # if (g_strcmp0 (a[n], b[n]) != 0) 1043s # goto out; 1043s # ret = TRUE; 1043s # out: 1043s # return ret; 1043s # } 1043s # 1043s # static gboolean 1043s # _g_variant_equal0 (GVariant *a, GVariant *b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # if (a == NULL && b == NULL) 1043s # { 1043s # ret = TRUE; 1043s # goto out; 1043s # } 1043s # if (a == NULL || b == NULL) 1043s # goto out; 1043s # ret = g_variant_equal (a, b); 1043s # out: 1043s # return ret; 1043s # } 1043s # 1043s # G_GNUC_UNUSED static gboolean 1043s # _g_value_equal (const GValue *a, const GValue *b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1043s # switch (G_VALUE_TYPE (a)) 1043s # { 1043s # case G_TYPE_BOOLEAN: 1043s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1043s # break; 1043s # case G_TYPE_UCHAR: 1043s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1043s # break; 1043s # case G_TYPE_INT: 1043s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1043s # break; 1043s # case G_TYPE_UINT: 1043s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1043s # break; 1043s # case G_TYPE_INT64: 1043s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1043s # break; 1043s # case G_TYPE_UINT64: 1043s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1043s # break; 1043s # case G_TYPE_DOUBLE: 1043s # { 1043s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1043s # gdouble da = g_value_get_double (a); 1043s # gdouble db = g_value_get_double (b); 1043s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1043s # } 1043s # break; 1043s # case G_TYPE_STRING: 1043s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1043s # break; 1043s # case G_TYPE_VARIANT: 1043s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1043s # break; 1043s # default: 1043s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1043s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1043s # else 1043s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1043s # break; 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static void 1043s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 1043s # GClosure *closure, 1043s # GValue *return_value, 1043s # unsigned int n_param_values, 1043s # const GValue *param_values, 1043s # void *invocation_hint G_GNUC_UNUSED, 1043s # void *marshal_data) 1043s # { 1043s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1043s # (void *data1, 1043s # GDBusMethodInvocation *arg_method_invocation, 1043s # const gchar *arg_arg_ay, 1043s # void *data2); 1043s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 1043s # GCClosure *cc = (GCClosure*) closure; 1043s # void *data1, *data2; 1043s # gboolean v_return; 1043s # 1043s # g_return_if_fail (return_value != NULL); 1043s # g_return_if_fail (n_param_values == 3); 1043s # 1043s # if (G_CCLOSURE_SWAP_DATA (closure)) 1043s # { 1043s # data1 = closure->data; 1043s # data2 = g_value_peek_pointer (param_values + 0); 1043s # } 1043s # else 1043s # { 1043s # data1 = g_value_peek_pointer (param_values + 0); 1043s # data2 = closure->data; 1043s # } 1043s # 1043s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1043s # (marshal_data ? marshal_data : cc->callback); 1043s # 1043s # v_return = 1043s # callback (data1, 1043s # g_marshal_value_peek_object (param_values + 1), 1043s # g_marshal_value_peek_string (param_values + 2), 1043s # data2); 1043s # 1043s # g_value_set_boolean (return_value, v_return); 1043s # } 1043s # 1043s # /* ------------------------------------------------------------------------ 1043s # * Code for interface org.project.UsefulInterface 1043s # * ------------------------------------------------------------------------ 1043s # */ 1043s # 1043s # /** 1043s # * SECTION:OrgProjectUsefulInterface 1043s # * @title: OrgProjectUsefulInterface 1043s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1043s # * 1043s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1043s # */ 1043s # 1043s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1043s # 1043s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_arg_ay = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "arg_ay", 1043s # (gchar *) "ay", 1043s # NULL 1043s # }, 1043s # FALSE 1043s # }; 1043s # 1043s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_pointers[] = 1043s # { 1043s # &_org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_arg_ay.parent_struct, 1043s # NULL 1043s # }; 1043s # 1043s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ay = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "SingleArgMethodAy", 1043s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_pointers, 1043s # NULL, 1043s # NULL 1043s # }, 1043s # "handle-single-arg-method-ay", 1043s # FALSE 1043s # }; 1043s # 1043s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1043s # { 1043s # &_org_project_useful_interface_method_info_single_arg_method_ay.parent_struct, 1043s # NULL 1043s # }; 1043s # 1043s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "org.project.UsefulInterface", 1043s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1043s # NULL, 1043s # NULL, 1043s # NULL 1043s # }, 1043s # "org-project-useful-interface", 1043s # }; 1043s # 1043s # 1043s # /** 1043s # * org_project_useful_interface_interface_info: 1043s # * 1043s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1043s # * 1043s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1043s # */ 1043s # GDBusInterfaceInfo * 1043s # org_project_useful_interface_interface_info (void) 1043s # { 1043s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_override_properties: 1043s # * @klass: The class structure for a #GObject derived class. 1043s # * @property_id_begin: The property id to assign to the first overridden property. 1043s # * 1043s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1043s # * The properties are overridden in the order they are defined. 1043s # * 1043s # * Returns: The last property id. 1043s # */ 1043s # guint 1043s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1043s # { 1043s # return property_id_begin - 1; 1043s # } 1043s # 1043s # 1043s # inline static void 1043s # org_project_useful_interface_method_marshal_single_arg_method_ay ( 1043s # GClosure *closure, 1043s # GValue *return_value, 1043s # unsigned int n_param_values, 1043s # const GValue *param_values, 1043s # void *invocation_hint, 1043s # void *marshal_data) 1043s # { 1043s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 1043s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1043s # } 1043s # 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterface: 1043s # * 1043s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceIface: 1043s # * @parent_iface: The parent interface. 1043s # * @handle_single_arg_method_ay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ay signal. 1043s # * 1043s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1043s # */ 1043s # 1043s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1043s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1043s # 1043s # static void 1043s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1043s # { 1043s # /* GObject signals for incoming D-Bus method calls: */ 1043s # /** 1043s # * OrgProjectUsefulInterface::handle-single-arg-method-ay: 1043s # * @object: A #OrgProjectUsefulInterface. 1043s # * @invocation: A #GDBusMethodInvocation. 1043s # * @arg_arg_ay: Argument passed by remote caller. 1043s # * 1043s # * Signal emitted when a remote caller is invoking the SingleArgMethodAy() D-Bus method. 1043s # * 1043s # * 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. 1043s # * 1043s # * 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. 1043s # */ 1043s # g_signal_new ("handle-single-arg-method-ay", 1043s # G_TYPE_FROM_INTERFACE (iface), 1043s # G_SIGNAL_RUN_LAST, 1043s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ay), 1043s # g_signal_accumulator_true_handled, 1043s # NULL, 1043s # org_project_useful_interface_method_marshal_single_arg_method_ay, 1043s # G_TYPE_BOOLEAN, 1043s # 2, 1043s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 1043s # 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_ay: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @arg_arg_ay: Argument to pass with the method invocation. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Asynchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_call_single_arg_method_ay_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_call_single_arg_method_ay_sync() for the synchronous, blocking version of this method. 1043s # */ 1043s # void 1043s # org_project_useful_interface_call_single_arg_method_ay ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # const gchar *arg_arg_ay, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1043s # "SingleArgMethodAy", 1043s # g_variant_new ("(^ay)", 1043s # arg_arg_ay), 1043s # G_DBUS_CALL_FLAGS_NONE, 1043s # -1, 1043s # cancellable, 1043s # callback, 1043s # user_data); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_ay_finish: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ay(). 1043s # * @error: Return location for error or %NULL. 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ay(). 1043s # * 1043s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1043s # */ 1043s # gboolean 1043s # org_project_useful_interface_call_single_arg_method_ay_finish ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GVariant *_ret; 1043s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1043s # if (_ret == NULL) 1043s # goto _out; 1043s # g_variant_get (_ret, 1043s # "()"); 1043s # g_variant_unref (_ret); 1043s # _out: 1043s # return _ret != NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_ay_sync: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @arg_arg_ay: Argument to pass with the method invocation. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL. 1043s # * 1043s # * Synchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_call_single_arg_method_ay() for the asynchronous version of this method. 1043s # * 1043s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1043s # */ 1043s # gboolean 1043s # org_project_useful_interface_call_single_arg_method_ay_sync ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # const gchar *arg_arg_ay, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GVariant *_ret; 1043s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1043s # "SingleArgMethodAy", 1043s # g_variant_new ("(^ay)", 1043s # arg_arg_ay), 1043s # G_DBUS_CALL_FLAGS_NONE, 1043s # -1, 1043s # cancellable, 1043s # error); 1043s # if (_ret == NULL) 1043s # goto _out; 1043s # g_variant_get (_ret, 1043s # "()"); 1043s # g_variant_unref (_ret); 1043s # _out: 1043s # return _ret != NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_complete_single_arg_method_ay: 1043s # * @object: A #OrgProjectUsefulInterface. 1043s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1043s # * 1043s # * 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. 1043s # * 1043s # * This method will free @invocation, you cannot use it afterwards. 1043s # */ 1043s # void 1043s # org_project_useful_interface_complete_single_arg_method_ay ( 1043s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1043s # GDBusMethodInvocation *invocation) 1043s # { 1043s # g_dbus_method_invocation_return_value (invocation, 1043s # g_variant_new ("()")); 1043s # } 1043s # 1043s # /* ------------------------------------------------------------------------ */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceProxy: 1043s # * 1043s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceProxyClass: 1043s # * @parent_class: The parent class. 1043s # * 1043s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1043s # */ 1043s # 1043s # struct _OrgProjectUsefulInterfaceProxyPrivate 1043s # { 1043s # GData *qdata; 1043s # }; 1043s # 1043s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1043s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1043s # 1043s # #else 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1043s # 1043s # #endif 1043s # static void 1043s # org_project_useful_interface_proxy_finalize (GObject *object) 1043s # { 1043s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1043s # g_datalist_clear (&proxy->priv->qdata); 1043s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1043s # guint prop_id G_GNUC_UNUSED, 1043s # GValue *value G_GNUC_UNUSED, 1043s # GParamSpec *pspec G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1043s # guint prop_id G_GNUC_UNUSED, 1043s # const GValue *value G_GNUC_UNUSED, 1043s # GParamSpec *pspec G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1043s # const gchar *sender_name G_GNUC_UNUSED, 1043s # const gchar *signal_name, 1043s # GVariant *parameters) 1043s # { 1043s # _ExtendedGDBusSignalInfo *info; 1043s # GVariantIter iter; 1043s # GVariant *child; 1043s # GValue *paramv; 1043s # gsize num_params; 1043s # gsize n; 1043s # guint signal_id; 1043s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1043s # if (info == NULL) 1043s # return; 1043s # num_params = g_variant_n_children (parameters); 1043s # paramv = g_new0 (GValue, num_params + 1); 1043s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_set_object (¶mv[0], proxy); 1043s # g_variant_iter_init (&iter, parameters); 1043s # n = 1; 1043s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1043s # { 1043s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1043s # if (arg_info->use_gvariant) 1043s # { 1043s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1043s # g_value_set_variant (¶mv[n], child); 1043s # n++; 1043s # } 1043s # else 1043s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1043s # g_variant_unref (child); 1043s # } 1043s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_signal_emitv (paramv, signal_id, 0, NULL); 1043s # for (n = 0; n < num_params + 1; n++) 1043s # g_value_unset (¶mv[n]); 1043s # g_free (paramv); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1043s # GVariant *changed_properties, 1043s # const gchar *const *invalidated_properties) 1043s # { 1043s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1043s # guint n; 1043s # const gchar *key; 1043s # GVariantIter *iter; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # g_variant_get (changed_properties, "a{sv}", &iter); 1043s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1043s # { 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1043s # g_datalist_remove_data (&proxy->priv->qdata, key); 1043s # if (info != NULL) 1043s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1043s # } 1043s # g_variant_iter_free (iter); 1043s # for (n = 0; invalidated_properties[n] != NULL; n++) 1043s # { 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1043s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1043s # if (info != NULL) 1043s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1043s # } 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1043s # { 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1043s # #else 1043s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1043s # #endif 1043s # 1043s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1043s # { 1043s # GObjectClass *gobject_class; 1043s # GDBusProxyClass *proxy_class; 1043s # 1043s # gobject_class = G_OBJECT_CLASS (klass); 1043s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1043s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1043s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1043s # 1043s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1043s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1043s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1043s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1043s # #endif 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new: 1043s # * @connection: A #GDBusConnection. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1043s # * 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1043s # */ 1043s # void 1043s # org_project_useful_interface_proxy_new ( 1043s # GDBusConnection *connection, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_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); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_finish: 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_finish ( 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GObject *ret; 1043s # GObject *source_object; 1043s # source_object = g_async_result_get_source_object (res); 1043s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1043s # g_object_unref (source_object); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_sync: 1043s # * @connection: A #GDBusConnection. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1043s # * 1043s # * The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_sync ( 1043s # GDBusConnection *connection, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GInitable *ret; 1043s # 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); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus: 1043s # * @bus_type: A #GBusType. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: A bus name (well-known or unique). 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1043s # * 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1043s # */ 1043s # void 1043s # org_project_useful_interface_proxy_new_for_bus ( 1043s # GBusType bus_type, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_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); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus_finish: 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_for_bus_finish ( 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GObject *ret; 1043s # GObject *source_object; 1043s # source_object = g_async_result_get_source_object (res); 1043s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1043s # g_object_unref (source_object); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus_sync: 1043s # * @bus_type: A #GBusType. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: A bus name (well-known or unique). 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1043s # * 1043s # * The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_for_bus_sync ( 1043s # GBusType bus_type, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GInitable *ret; 1043s # 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); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # 1043s # /* ------------------------------------------------------------------------ */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceSkeleton: 1043s # * 1043s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceSkeletonClass: 1043s # * @parent_class: The parent class. 1043s # * 1043s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1043s # */ 1043s # 1043s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1043s # { 1043s # GValue *properties; 1043s # GList *changed_properties; 1043s # GSource *changed_properties_idle_source; 1043s # GMainContext *context; 1043s # GMutex lock; 1043s # }; 1043s # 1043s # static void 1043s # _org_project_useful_interface_skeleton_handle_method_call ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name, 1043s # const gchar *method_name, 1043s # GVariant *parameters, 1043s # GDBusMethodInvocation *invocation, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # _ExtendedGDBusMethodInfo *info; 1043s # GVariantIter iter; 1043s # GVariant *child; 1043s # GValue *paramv; 1043s # gsize num_params; 1043s # guint num_extra; 1043s # gsize n; 1043s # guint signal_id; 1043s # GValue return_value = G_VALUE_INIT; 1043s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1043s # g_assert (info != NULL); 1043s # num_params = g_variant_n_children (parameters); 1043s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1043s # n = 0; 1043s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_set_object (¶mv[n++], skeleton); 1043s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1043s # g_value_set_object (¶mv[n++], invocation); 1043s # if (info->pass_fdlist) 1043s # { 1043s # #ifdef G_OS_UNIX 1043s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1043s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1043s # #else 1043s # g_assert_not_reached (); 1043s # #endif 1043s # } 1043s # g_variant_iter_init (&iter, parameters); 1043s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1043s # { 1043s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1043s # if (arg_info->use_gvariant) 1043s # { 1043s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1043s # g_value_set_variant (¶mv[n], child); 1043s # n++; 1043s # } 1043s # else 1043s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1043s # g_variant_unref (child); 1043s # } 1043s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1043s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1043s # if (!g_value_get_boolean (&return_value)) 1043s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1043s # g_value_unset (&return_value); 1043s # for (n = 0; n < num_params + num_extra; n++) 1043s # g_value_unset (¶mv[n]); 1043s # g_free (paramv); 1043s # } 1043s # 1043s # static GVariant * 1043s # _org_project_useful_interface_skeleton_handle_get_property ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name G_GNUC_UNUSED, 1043s # const gchar *property_name, 1043s # GError **error, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # GValue value = G_VALUE_INIT; 1043s # GParamSpec *pspec; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # GVariant *ret; 1043s # ret = NULL; 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1043s # g_assert (info != NULL); 1043s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1043s # if (pspec == NULL) 1043s # { 1043s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1043s # } 1043s # else 1043s # { 1043s # g_value_init (&value, pspec->value_type); 1043s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1043s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1043s # g_value_unset (&value); 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static gboolean 1043s # _org_project_useful_interface_skeleton_handle_set_property ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name G_GNUC_UNUSED, 1043s # const gchar *property_name, 1043s # GVariant *variant, 1043s # GError **error, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # GValue value = G_VALUE_INIT; 1043s # GParamSpec *pspec; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # gboolean ret; 1043s # ret = FALSE; 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1043s # g_assert (info != NULL); 1043s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1043s # if (pspec == NULL) 1043s # { 1043s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1043s # } 1043s # else 1043s # { 1043s # if (info->use_gvariant) 1043s # g_value_set_variant (&value, variant); 1043s # else 1043s # g_dbus_gvariant_to_gvalue (variant, &value); 1043s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1043s # g_value_unset (&value); 1043s # ret = TRUE; 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1043s # { 1043s # _org_project_useful_interface_skeleton_handle_method_call, 1043s # _org_project_useful_interface_skeleton_handle_get_property, 1043s # _org_project_useful_interface_skeleton_handle_set_property, 1043s # {NULL} 1043s # }; 1043s # 1043s # static GDBusInterfaceInfo * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1043s # { 1043s # return org_project_useful_interface_interface_info (); 1043s # } 1043s # 1043s # static GDBusInterfaceVTable * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1043s # { 1043s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1043s # } 1043s # 1043s # static GVariant * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1043s # 1043s # GVariantBuilder builder; 1043s # guint n; 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1043s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1043s # #else 1043s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1043s # #endif 1043s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1043s # goto out; 1043s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1043s # { 1043s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1043s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1043s # { 1043s # GVariant *value; 1043s # 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); 1043s # if (value != NULL) 1043s # { 1043s # g_variant_take_ref (value); 1043s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1043s # g_variant_unref (value); 1043s # } 1043s # } 1043s # } 1043s # out: 1043s # return g_variant_builder_end (&builder); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1043s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1043s # 1043s # #else 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1043s # 1043s # #endif 1043s # static void 1043s # org_project_useful_interface_skeleton_finalize (GObject *object) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1043s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1043s # if (skeleton->priv->changed_properties_idle_source != NULL) 1043s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1043s # g_main_context_unref (skeleton->priv->context); 1043s # g_mutex_clear (&skeleton->priv->lock); 1043s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1043s # { 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1043s # #else 1043s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1043s # #endif 1043s # 1043s # g_mutex_init (&skeleton->priv->lock); 1043s # skeleton->priv->context = g_main_context_ref_thread_default (); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1043s # { 1043s # GObjectClass *gobject_class; 1043s # GDBusInterfaceSkeletonClass *skeleton_class; 1043s # 1043s # gobject_class = G_OBJECT_CLASS (klass); 1043s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1043s # 1043s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1043s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1043s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1043s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1043s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1043s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1043s # #endif 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_skeleton_new: 1043s # * 1043s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_skeleton_new (void) 1043s # { 1043s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1043s # } 1043s # Error: 1043s # 1043s # /tmp/tmpd1ucwcbz/tmp4w2utnpk.xml: 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpd1ucwcbz/tmp4w2utnpk.xml', '--output', '-', '--body'] 1043s # Return code: 0 1043s # Output: 1043s # /* 1043s # * This file is generated by gdbus-codegen, do not modify it. 1043s # * 1043s # * The license of this code is the same as for the D-Bus interface description 1043s # * it was derived from. Note that it links to GLib, so must comply with the 1043s # * LGPL linking clauses. 1043s # */ 1043s # 1043s # #ifdef HAVE_CONFIG_H 1043s # # include "config.h" 1043s # #endif 1043s # 1043s # #include 1043s # #ifdef G_OS_UNIX 1043s # # include 1043s # #endif 1043s # 1043s # #ifdef G_ENABLE_DEBUG 1043s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1043s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1043s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1043s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1043s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1043s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1043s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1043s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1043s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1043s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1043s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1043s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1043s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1043s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1043s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1043s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1043s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1043s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1043s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1043s # #else /* !G_ENABLE_DEBUG */ 1043s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1043s # * Do not access GValues directly in your code. Instead, use the 1043s # * g_value_get_*() functions 1043s # */ 1043s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1043s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1043s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1043s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1043s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1043s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1043s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1043s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1043s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1043s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1043s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1043s # #endif /* !G_ENABLE_DEBUG */ 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusArgInfo parent_struct; 1043s # gboolean use_gvariant; 1043s # } _ExtendedGDBusArgInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusMethodInfo parent_struct; 1043s # const gchar *signal_name; 1043s # gboolean pass_fdlist; 1043s # } _ExtendedGDBusMethodInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusSignalInfo parent_struct; 1043s # const gchar *signal_name; 1043s # } _ExtendedGDBusSignalInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusPropertyInfo parent_struct; 1043s # const gchar *hyphen_name; 1043s # guint use_gvariant : 1; 1043s # guint emits_changed_signal : 1; 1043s # } _ExtendedGDBusPropertyInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusInterfaceInfo parent_struct; 1043s # const gchar *hyphen_name; 1043s # } _ExtendedGDBusInterfaceInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # const _ExtendedGDBusPropertyInfo *info; 1043s # guint prop_id; 1043s # GValue orig_value; /* the value before the change */ 1043s # } ChangedProperty; 1043s # 1043s # static void 1043s # _changed_property_free (ChangedProperty *data) 1043s # { 1043s # g_value_unset (&data->orig_value); 1043s # g_free (data); 1043s # } 1043s # 1043s # static gboolean 1043s # _g_strv_equal0 (gchar **a, gchar **b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # guint n; 1043s # if (a == NULL && b == NULL) 1043s # { 1043s # ret = TRUE; 1043s # goto out; 1043s # } 1043s # if (a == NULL || b == NULL) 1043s # goto out; 1043s # if (g_strv_length (a) != g_strv_length (b)) 1043s # goto out; 1043s # for (n = 0; a[n] != NULL; n++) 1043s # if (g_strcmp0 (a[n], b[n]) != 0) 1043s # goto out; 1043s # ret = TRUE; 1043s # out: 1043s # return ret; 1043s # } 1043s # 1043s # static gboolean 1043s # _g_variant_equal0 (GVariant *a, GVariant *b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # if (a == NULL && b == NULL) 1043s # { 1043s # ret = TRUE; 1043s # goto out; 1043s # } 1043s # if (a == NULL || b == NULL) 1043s # goto out; 1043s # ret = g_variant_equal (a, b); 1043s # out: 1043s # return ret; 1043s # } 1043s # 1043s # G_GNUC_UNUSED static gboolean 1043s # _g_value_equal (const GValue *a, const GValue *b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1043s # switch (G_VALUE_TYPE (a)) 1043s # { 1043s # case G_TYPE_BOOLEAN: 1043s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1043s # break; 1043s # case G_TYPE_UCHAR: 1043s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1043s # break; 1043s # case G_TYPE_INT: 1043s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1043s # break; 1043s # case G_TYPE_UINT: 1043s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1043s # break; 1043s # case G_TYPE_INT64: 1043s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1043s # break; 1043s # case G_TYPE_UINT64: 1043s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1043s # break; 1043s # case G_TYPE_DOUBLE: 1043s # { 1043s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1043s # gdouble da = g_value_get_double (a); 1043s # gdouble db = g_value_get_double (b); 1043s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1043s # } 1043s # break; 1043s # case G_TYPE_STRING: 1043s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1043s # break; 1043s # case G_TYPE_VARIANT: 1043s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1043s # break; 1043s # default: 1043s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1043s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1043s # else 1043s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1043s # break; 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static void 1043s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 1043s # GClosure *closure, 1043s # GValue *return_value, 1043s # unsigned int n_param_values, 1043s # const GValue *param_values, 1043s # void *invocation_hint G_GNUC_UNUSED, 1043s # void *marshal_data) 1043s # { 1043s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1043s # (void *data1, 1043s # GDBusMethodInvocation *arg_method_invocation, 1043s # const gchar *const *arg_arg_as, 1043s # void *data2); 1043s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 1043s # GCClosure *cc = (GCClosure*) closure; 1043s # void *data1, *data2; 1043s # gboolean v_return; 1043s # 1043s # g_return_if_fail (return_value != NULL); 1043s # g_return_if_fail (n_param_values == 3); 1043s # 1043s # if (G_CCLOSURE_SWAP_DATA (closure)) 1043s # { 1043s # data1 = closure->data; 1043s # data2 = g_value_peek_pointer (param_values + 0); 1043s # } 1043s # else 1043s # { 1043s # data1 = g_value_peek_pointer (param_values + 0); 1043s # data2 = closure->data; 1043s # } 1043s # 1043s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1043s # (marshal_data ? marshal_data : cc->callback); 1043s # 1043s # v_return = 1043s # callback (data1, 1043s # g_marshal_value_peek_object (param_values + 1), 1043s # g_marshal_value_peek_boxed (param_values + 2), 1043s # data2); 1043s # 1043s # g_value_set_boolean (return_value, v_return); 1043s # } 1043s # 1043s # /* ------------------------------------------------------------------------ 1043s # * Code for interface org.project.UsefulInterface 1043s # * ------------------------------------------------------------------------ 1043s # */ 1043s # 1043s # /** 1043s # * SECTION:OrgProjectUsefulInterface 1043s # * @title: OrgProjectUsefulInterface 1043s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1043s # * 1043s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1043s # */ 1043s # 1043s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1043s # 1043s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_arg_as = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "arg_as", 1043s # (gchar *) "as", 1043s # NULL 1043s # }, 1043s # FALSE 1043s # }; 1043s # 1043s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_pointers[] = 1043s # { 1043s # &_org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_arg_as.parent_struct, 1043s # NULL 1043s # }; 1043s # 1043s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_as = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "SingleArgMethodAs", 1043s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_pointers, 1043s # NULL, 1043s # NULL 1043s # }, 1043s # "handle-single-arg-method-as", 1043s # FALSE 1043s # }; 1043s # 1043s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1043s # { 1043s # &_org_project_useful_interface_method_info_single_arg_method_as.parent_struct, 1043s # NULL 1043s # }; 1043s # 1043s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "org.project.UsefulInterface", 1043s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1043s # NULL, 1043s # NULL, 1043s # NULL 1043s # }, 1043s # "org-project-useful-interface", 1043s # }; 1043s # 1043s # 1043s # /** 1043s # * org_project_useful_interface_interface_info: 1043s # * 1043s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1043s # * 1043s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1043s # */ 1043s # GDBusInterfaceInfo * 1043s # org_project_useful_interface_interface_info (void) 1043s # { 1043s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_override_properties: 1043s # * @klass: The class structure for a #GObject derived class. 1043s # * @property_id_begin: The property id to assign to the first overridden property. 1043s # * 1043s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1043s # * The properties are overridden in the order they are defined. 1043s # * 1043s # * Returns: The last property id. 1043s # */ 1043s # guint 1043s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1043s # { 1043s # return property_id_begin - 1; 1043s # } 1043s # 1043s # 1043s # inline static void 1043s # org_project_useful_interface_method_marshal_single_arg_method_as ( 1043s # GClosure *closure, 1043s # GValue *return_value, 1043s # unsigned int n_param_values, 1043s # const GValue *param_values, 1043s # void *invocation_hint, 1043s # void *marshal_data) 1043s # { 1043s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 1043s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1043s # } 1043s # 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterface: 1043s # * 1043s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceIface: 1043s # * @parent_iface: The parent interface. 1043s # * @handle_single_arg_method_as: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-as signal. 1043s # * 1043s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1043s # */ 1043s # 1043s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1043s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1043s # 1043s # static void 1043s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1043s # { 1043s # /* GObject signals for incoming D-Bus method calls: */ 1043s # /** 1043s # * OrgProjectUsefulInterface::handle-single-arg-method-as: 1043s # * @object: A #OrgProjectUsefulInterface. 1043s # * @invocation: A #GDBusMethodInvocation. 1043s # * @arg_arg_as: Argument passed by remote caller. 1043s # * 1043s # * Signal emitted when a remote caller is invoking the SingleArgMethodAs() D-Bus method. 1043s # * 1043s # * 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. 1043s # * 1043s # * 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. 1043s # */ 1043s # g_signal_new ("handle-single-arg-method-as", 1043s # G_TYPE_FROM_INTERFACE (iface), 1043s # G_SIGNAL_RUN_LAST, 1043s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_as), 1043s # g_signal_accumulator_true_handled, 1043s # NULL, 1043s # org_project_useful_interface_method_marshal_single_arg_method_as, 1043s # G_TYPE_BOOLEAN, 1043s # 2, 1043s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 1043s # 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_as: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @arg_arg_as: Argument to pass with the method invocation. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Asynchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_call_single_arg_method_as_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_call_single_arg_method_as_sync() for the synchronous, blocking version of this method. 1043s # */ 1043s # void 1043s # org_project_useful_interface_call_single_arg_method_as ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # const gchar *const *arg_arg_as, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1043s # "SingleArgMethodAs", 1043s # g_variant_new ("(^as)", 1043s # arg_arg_as), 1043s # G_DBUS_CALL_FLAGS_NONE, 1043s # -1, 1043s # cancellable, 1043s # callback, 1043s # user_data); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_as_finish: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_as(). 1043s # * @error: Return location for error or %NULL. 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_as(). 1043s # * 1043s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1043s # */ 1043s # gboolean 1043s # org_project_useful_interface_call_single_arg_method_as_finish ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GVariant *_ret; 1043s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1043s # if (_ret == NULL) 1043s # goto _out; 1043s # g_variant_get (_ret, 1043s # "()"); 1043s # g_variant_unref (_ret); 1043s # _out: 1043s # return _ret != NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_as_sync: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @arg_arg_as: Argument to pass with the method invocation. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL. 1043s # * 1043s # * Synchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_call_single_arg_method_as() for the asynchronous version of this method. 1043s # * 1043s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1043s # */ 1043s # gboolean 1043s # org_project_useful_interface_call_single_arg_method_as_sync ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # const gchar *const *arg_arg_as, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GVariant *_ret; 1043s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1043s # "SingleArgMethodAs", 1043s # g_variant_new ("(^as)", 1043s # arg_arg_as), 1043s # G_DBUS_CALL_FLAGS_NONE, 1043s # -1, 1043s # cancellable, 1043s # error); 1043s # if (_ret == NULL) 1043s # goto _out; 1043s # g_variant_get (_ret, 1043s # "()"); 1043s # g_variant_unref (_ret); 1043s # _out: 1043s # return _ret != NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_complete_single_arg_method_as: 1043s # * @object: A #OrgProjectUsefulInterface. 1043s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1043s # * 1043s # * 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. 1043s # * 1043s # * This method will free @invocation, you cannot use it afterwards. 1043s # */ 1043s # void 1043s # org_project_useful_interface_complete_single_arg_method_as ( 1043s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1043s # GDBusMethodInvocation *invocation) 1043s # { 1043s # g_dbus_method_invocation_return_value (invocation, 1043s # g_variant_new ("()")); 1043s # } 1043s # 1043s # /* ------------------------------------------------------------------------ */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceProxy: 1043s # * 1043s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceProxyClass: 1043s # * @parent_class: The parent class. 1043s # * 1043s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1043s # */ 1043s # 1043s # struct _OrgProjectUsefulInterfaceProxyPrivate 1043s # { 1043s # GData *qdata; 1043s # }; 1043s # 1043s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1043s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1043s # 1043s # #else 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1043s # 1043s # #endif 1043s # static void 1043s # org_project_useful_interface_proxy_finalize (GObject *object) 1043s # { 1043s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1043s # g_datalist_clear (&proxy->priv->qdata); 1043s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1043s # guint prop_id G_GNUC_UNUSED, 1043s # GValue *value G_GNUC_UNUSED, 1043s # GParamSpec *pspec G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1043s # guint prop_id G_GNUC_UNUSED, 1043s # const GValue *value G_GNUC_UNUSED, 1043s # GParamSpec *pspec G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1043s # const gchar *sender_name G_GNUC_UNUSED, 1043s # const gchar *signal_name, 1043s # GVariant *parameters) 1043s # { 1043s # _ExtendedGDBusSignalInfo *info; 1043s # GVariantIter iter; 1043s # GVariant *child; 1043s # GValue *paramv; 1043s # gsize num_params; 1043s # gsize n; 1043s # guint signal_id; 1043s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1043s # if (info == NULL) 1043s # return; 1043s # num_params = g_variant_n_children (parameters); 1043s # paramv = g_new0 (GValue, num_params + 1); 1043s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_set_object (¶mv[0], proxy); 1043s # g_variant_iter_init (&iter, parameters); 1043s # n = 1; 1043s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1043s # { 1043s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1043s # if (arg_info->use_gvariant) 1043s # { 1043s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1043s # g_value_set_variant (¶mv[n], child); 1043s # n++; 1043s # } 1043s # else 1043s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1043s # g_variant_unref (child); 1043s # } 1043s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_signal_emitv (paramv, signal_id, 0, NULL); 1043s # for (n = 0; n < num_params + 1; n++) 1043s # g_value_unset (¶mv[n]); 1043s # g_free (paramv); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1043s # GVariant *changed_properties, 1043s # const gchar *const *invalidated_properties) 1043s # { 1043s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1043s # guint n; 1043s # const gchar *key; 1043s # GVariantIter *iter; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # g_variant_get (changed_properties, "a{sv}", &iter); 1043s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1043s # { 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1043s # g_datalist_remove_data (&proxy->priv->qdata, key); 1043s # if (info != NULL) 1043s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1043s # } 1043s # g_variant_iter_free (iter); 1043s # for (n = 0; invalidated_properties[n] != NULL; n++) 1043s # { 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1043s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1043s # if (info != NULL) 1043s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1043s # } 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1043s # { 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1043s # #else 1043s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1043s # #endif 1043s # 1043s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1043s # { 1043s # GObjectClass *gobject_class; 1043s # GDBusProxyClass *proxy_class; 1043s # 1043s # gobject_class = G_OBJECT_CLASS (klass); 1043s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1043s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1043s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1043s # 1043s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1043s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1043s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1043s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1043s # #endif 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new: 1043s # * @connection: A #GDBusConnection. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1043s # * 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1043s # */ 1043s # void 1043s # org_project_useful_interface_proxy_new ( 1043s # GDBusConnection *connection, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_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); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_finish: 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_finish ( 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GObject *ret; 1043s # GObject *source_object; 1043s # source_object = g_async_result_get_source_object (res); 1043s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1043s # g_object_unref (source_object); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_sync: 1043s # * @connection: A #GDBusConnection. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1043s # * 1043s # * The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_sync ( 1043s # GDBusConnection *connection, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GInitable *ret; 1043s # 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); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus: 1043s # * @bus_type: A #GBusType. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: A bus name (well-known or unique). 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1043s # * 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1043s # */ 1043s # void 1043s # org_project_useful_interface_proxy_new_for_bus ( 1043s # GBusType bus_type, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_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); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus_finish: 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_for_bus_finish ( 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GObject *ret; 1043s # GObject *source_object; 1043s # source_object = g_async_result_get_source_object (res); 1043s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1043s # g_object_unref (source_object); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus_sync: 1043s # * @bus_type: A #GBusType. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: A bus name (well-known or unique). 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1043s # * 1043s # * The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_for_bus_sync ( 1043s # GBusType bus_type, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GInitable *ret; 1043s # 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); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # 1043s # /* ------------------------------------------------------------------------ */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceSkeleton: 1043s # * 1043s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceSkeletonClass: 1043s # * @parent_class: The parent class. 1043s # * 1043s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1043s # */ 1043s # 1043s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1043s # { 1043s # GValue *properties; 1043s # GList *changed_properties; 1043s # GSource *changed_properties_idle_source; 1043s # GMainContext *context; 1043s # GMutex lock; 1043s # }; 1043s # 1043s # static void 1043s # _org_project_useful_interface_skeleton_handle_method_call ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name, 1043s # const gchar *method_name, 1043s # GVariant *parameters, 1043s # GDBusMethodInvocation *invocation, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # _ExtendedGDBusMethodInfo *info; 1043s # GVariantIter iter; 1043s # GVariant *child; 1043s # GValue *paramv; 1043s # gsize num_params; 1043s # guint num_extra; 1043s # gsize n; 1043s # guint signal_id; 1043s # GValue return_value = G_VALUE_INIT; 1043s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1043s # g_assert (info != NULL); 1043s # num_params = g_variant_n_children (parameters); 1043s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1043s # n = 0; 1043s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_set_object (¶mv[n++], skeleton); 1043s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1043s # g_value_set_object (¶mv[n++], invocation); 1043s # if (info->pass_fdlist) 1043s # { 1043s # #ifdef G_OS_UNIX 1043s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1043s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1043s # #else 1043s # g_assert_not_reached (); 1043s # #endif 1043s # } 1043s # g_variant_iter_init (&iter, parameters); 1043s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1043s # { 1043s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1043s # if (arg_info->use_gvariant) 1043s # { 1043s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1043s # g_value_set_variant (¶mv[n], child); 1043s # n++; 1043s # } 1043s # else 1043s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1043s # g_variant_unref (child); 1043s # } 1043s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1043s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1043s # if (!g_value_get_boolean (&return_value)) 1043s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1043s # g_value_unset (&return_value); 1043s # for (n = 0; n < num_params + num_extra; n++) 1043s # g_value_unset (¶mv[n]); 1043s # g_free (paramv); 1043s # } 1043s # 1043s # static GVariant * 1043s # _org_project_useful_interface_skeleton_handle_get_property ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name G_GNUC_UNUSED, 1043s # const gchar *property_name, 1043s # GError **error, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # GValue value = G_VALUE_INIT; 1043s # GParamSpec *pspec; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # GVariant *ret; 1043s # ret = NULL; 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1043s # g_assert (info != NULL); 1043s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1043s # if (pspec == NULL) 1043s # { 1043s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1043s # } 1043s # else 1043s # { 1043s # g_value_init (&value, pspec->value_type); 1043s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1043s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1043s # g_value_unset (&value); 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static gboolean 1043s # _org_project_useful_interface_skeleton_handle_set_property ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name G_GNUC_UNUSED, 1043s # const gchar *property_name, 1043s # GVariant *variant, 1043s # GError **error, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # GValue value = G_VALUE_INIT; 1043s # GParamSpec *pspec; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # gboolean ret; 1043s # ret = FALSE; 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1043s # g_assert (info != NULL); 1043s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1043s # if (pspec == NULL) 1043s # { 1043s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1043s # } 1043s # else 1043s # { 1043s # if (info->use_gvariant) 1043s # g_value_set_variant (&value, variant); 1043s # else 1043s # g_dbus_gvariant_to_gvalue (variant, &value); 1043s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1043s # g_value_unset (&value); 1043s # ret = TRUE; 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1043s # { 1043s # _org_project_useful_interface_skeleton_handle_method_call, 1043s # _org_project_useful_interface_skeleton_handle_get_property, 1043s # _org_project_useful_interface_skeleton_handle_set_property, 1043s # {NULL} 1043s # }; 1043s # 1043s # static GDBusInterfaceInfo * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1043s # { 1043s # return org_project_useful_interface_interface_info (); 1043s # } 1043s # 1043s # static GDBusInterfaceVTable * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1043s # { 1043s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1043s # } 1043s # 1043s # static GVariant * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1043s # 1043s # GVariantBuilder builder; 1043s # guint n; 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1043s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1043s # #else 1043s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1043s # #endif 1043s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1043s # goto out; 1043s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1043s # { 1043s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1043s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1043s # { 1043s # GVariant *value; 1043s # 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); 1043s # if (value != NULL) 1043s # { 1043s # g_variant_take_ref (value); 1043s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1043s # g_variant_unref (value); 1043s # } 1043s # } 1043s # } 1043s # out: 1043s # return g_variant_builder_end (&builder); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1043s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1043s # 1043s # #else 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1043s # 1043s # #endif 1043s # static void 1043s # org_project_useful_interface_skeleton_finalize (GObject *object) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1043s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1043s # if (skeleton->priv->changed_properties_idle_source != NULL) 1043s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1043s # g_main_context_unref (skeleton->priv->context); 1043s # g_mutex_clear (&skeleton->priv->lock); 1043s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1043s # { 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1043s # #else 1043s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1043s # #endif 1043s # 1043s # g_mutex_init (&skeleton->priv->lock); 1043s # skeleton->priv->context = g_main_context_ref_thread_default (); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1043s # { 1043s # GObjectClass *gobject_class; 1043s # GDBusInterfaceSkeletonClass *skeleton_class; 1043s # 1043s # gobject_class = G_OBJECT_CLASS (klass); 1043s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1043s # 1043s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1043s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1043s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1043s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1043s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1043s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1043s # #endif 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_skeleton_new: 1043s # * 1043s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_skeleton_new (void) 1043s # { 1043s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1043s # } 1043s # Error: 1043s # 1043s # /tmp/tmpd1ucwcbz/tmp8o77aa6l.xml: 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpd1ucwcbz/tmp8o77aa6l.xml', '--output', '-', '--body'] 1043s # Return code: 0 1043s # Output: 1043s # /* 1043s # * This file is generated by gdbus-codegen, do not modify it. 1043s # * 1043s # * The license of this code is the same as for the D-Bus interface description 1043s # * it was derived from. Note that it links to GLib, so must comply with the 1043s # * LGPL linking clauses. 1043s # */ 1043s # 1043s # #ifdef HAVE_CONFIG_H 1043s # # include "config.h" 1043s # #endif 1043s # 1043s # #include 1043s # #ifdef G_OS_UNIX 1043s # # include 1043s # #endif 1043s # 1043s # #ifdef G_ENABLE_DEBUG 1043s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1043s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1043s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1043s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1043s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1043s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1043s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1043s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1043s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1043s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1043s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1043s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1043s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1043s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1043s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1043s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1043s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1043s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1043s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1043s # #else /* !G_ENABLE_DEBUG */ 1043s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1043s # * Do not access GValues directly in your code. Instead, use the 1043s # * g_value_get_*() functions 1043s # */ 1043s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1043s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1043s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1043s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1043s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1043s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1043s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1043s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1043s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1043s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1043s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1043s # #endif /* !G_ENABLE_DEBUG */ 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusArgInfo parent_struct; 1043s # gboolean use_gvariant; 1043s # } _ExtendedGDBusArgInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusMethodInfo parent_struct; 1043s # const gchar *signal_name; 1043s # gboolean pass_fdlist; 1043s # } _ExtendedGDBusMethodInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusSignalInfo parent_struct; 1043s # const gchar *signal_name; 1043s # } _ExtendedGDBusSignalInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusPropertyInfo parent_struct; 1043s # const gchar *hyphen_name; 1043s # guint use_gvariant : 1; 1043s # guint emits_changed_signal : 1; 1043s # } _ExtendedGDBusPropertyInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusInterfaceInfo parent_struct; 1043s # const gchar *hyphen_name; 1043s # } _ExtendedGDBusInterfaceInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # const _ExtendedGDBusPropertyInfo *info; 1043s # guint prop_id; 1043s # GValue orig_value; /* the value before the change */ 1043s # } ChangedProperty; 1043s # 1043s # static void 1043s # _changed_property_free (ChangedProperty *data) 1043s # { 1043s # g_value_unset (&data->orig_value); 1043s # g_free (data); 1043s # } 1043s # 1043s # static gboolean 1043s # _g_strv_equal0 (gchar **a, gchar **b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # guint n; 1043s # if (a == NULL && b == NULL) 1043s # { 1043s # ret = TRUE; 1043s # goto out; 1043s # } 1043s # if (a == NULL || b == NULL) 1043s # goto out; 1043s # if (g_strv_length (a) != g_strv_length (b)) 1043s # goto out; 1043s # for (n = 0; a[n] != NULL; n++) 1043s # if (g_strcmp0 (a[n], b[n]) != 0) 1043s # goto out; 1043s # ret = TRUE; 1043s # out: 1043s # return ret; 1043s # } 1043s # 1043s # static gboolean 1043s # _g_variant_equal0 (GVariant *a, GVariant *b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # if (a == NULL && b == NULL) 1043s # { 1043s # ret = TRUE; 1043s # goto out; 1043s # } 1043s # if (a == NULL || b == NULL) 1043s # goto out; 1043s # ret = g_variant_equal (a, b); 1043s # out: 1043s # return ret; 1043s # } 1043s # 1043s # G_GNUC_UNUSED static gboolean 1043s # _g_value_equal (const GValue *a, const GValue *b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1043s # switch (G_VALUE_TYPE (a)) 1043s # { 1043s # case G_TYPE_BOOLEAN: 1043s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1043s # break; 1043s # case G_TYPE_UCHAR: 1043s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1043s # break; 1043s # case G_TYPE_INT: 1043s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1043s # break; 1043s # case G_TYPE_UINT: 1043s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1043s # break; 1043s # case G_TYPE_INT64: 1043s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1043s # break; 1043s # case G_TYPE_UINT64: 1043s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1043s # break; 1043s # case G_TYPE_DOUBLE: 1043s # { 1043s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1043s # gdouble da = g_value_get_double (a); 1043s # gdouble db = g_value_get_double (b); 1043s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1043s # } 1043s # break; 1043s # case G_TYPE_STRING: 1043s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1043s # break; 1043s # case G_TYPE_VARIANT: 1043s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1043s # break; 1043s # default: 1043s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1043s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1043s # else 1043s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1043s # break; 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static void 1043s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 1043s # GClosure *closure, 1043s # GValue *return_value, 1043s # unsigned int n_param_values, 1043s # const GValue *param_values, 1043s # void *invocation_hint G_GNUC_UNUSED, 1043s # void *marshal_data) 1043s # { 1043s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1043s # (void *data1, 1043s # GDBusMethodInvocation *arg_method_invocation, 1043s # const gchar *const *arg_arg_ao, 1043s # void *data2); 1043s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 1043s # GCClosure *cc = (GCClosure*) closure; 1043s # void *data1, *data2; 1043s # gboolean v_return; 1043s # 1043s # g_return_if_fail (return_value != NULL); 1043s # g_return_if_fail (n_param_values == 3); 1043s # 1043s # if (G_CCLOSURE_SWAP_DATA (closure)) 1043s # { 1043s # data1 = closure->data; 1043s # data2 = g_value_peek_pointer (param_values + 0); 1043s # } 1043s # else 1043s # { 1043s # data1 = g_value_peek_pointer (param_values + 0); 1043s # data2 = closure->data; 1043s # } 1043s # 1043s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1043s # (marshal_data ? marshal_data : cc->callback); 1043s # 1043s # v_return = 1043s # callback (data1, 1043s # g_marshal_value_peek_object (param_values + 1), 1043s # g_marshal_value_peek_boxed (param_values + 2), 1043s # data2); 1043s # 1043s # g_value_set_boolean (return_value, v_return); 1043s # } 1043s # 1043s # /* ------------------------------------------------------------------------ 1043s # * Code for interface org.project.UsefulInterface 1043s # * ------------------------------------------------------------------------ 1043s # */ 1043s # 1043s # /** 1043s # * SECTION:OrgProjectUsefulInterface 1043s # * @title: OrgProjectUsefulInterface 1043s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1043s # * 1043s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1043s # */ 1043s # 1043s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1043s # 1043s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_arg_ao = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "arg_ao", 1043s # (gchar *) "ao", 1043s # NULL 1043s # }, 1043s # FALSE 1043s # }; 1043s # 1043s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_pointers[] = 1043s # { 1043s # &_org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_arg_ao.parent_struct, 1043s # NULL 1043s # }; 1043s # 1043s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ao = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "SingleArgMethodAo", 1043s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_pointers, 1043s # NULL, 1043s # NULL 1043s # }, 1043s # "handle-single-arg-method-ao", 1043s # FALSE 1043s # }; 1043s # 1043s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1043s # { 1043s # &_org_project_useful_interface_method_info_single_arg_method_ao.parent_struct, 1043s # NULL 1043s # }; 1043s # 1043s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "org.project.UsefulInterface", 1043s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1043s # NULL, 1043s # NULL, 1043s # NULL 1043s # }, 1043s # "org-project-useful-interface", 1043s # }; 1043s # 1043s # 1043s # /** 1043s # * org_project_useful_interface_interface_info: 1043s # * 1043s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1043s # * 1043s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1043s # */ 1043s # GDBusInterfaceInfo * 1043s # org_project_useful_interface_interface_info (void) 1043s # { 1043s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_override_properties: 1043s # * @klass: The class structure for a #GObject derived class. 1043s # * @property_id_begin: The property id to assign to the first overridden property. 1043s # * 1043s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1043s # * The properties are overridden in the order they are defined. 1043s # * 1043s # * Returns: The last property id. 1043s # */ 1043s # guint 1043s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1043s # { 1043s # return property_id_begin - 1; 1043s # } 1043s # 1043s # 1043s # inline static void 1043s # org_project_useful_interface_method_marshal_single_arg_method_ao ( 1043s # GClosure *closure, 1043s # GValue *return_value, 1043s # unsigned int n_param_values, 1043s # const GValue *param_values, 1043s # void *invocation_hint, 1043s # void *marshal_data) 1043s # { 1043s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 1043s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1043s # } 1043s # 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterface: 1043s # * 1043s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceIface: 1043s # * @parent_iface: The parent interface. 1043s # * @handle_single_arg_method_ao: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ao signal. 1043s # * 1043s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1043s # */ 1043s # 1043s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1043s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1043s # 1043s # static void 1043s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1043s # { 1043s # /* GObject signals for incoming D-Bus method calls: */ 1043s # /** 1043s # * OrgProjectUsefulInterface::handle-single-arg-method-ao: 1043s # * @object: A #OrgProjectUsefulInterface. 1043s # * @invocation: A #GDBusMethodInvocation. 1043s # * @arg_arg_ao: Argument passed by remote caller. 1043s # * 1043s # * Signal emitted when a remote caller is invoking the SingleArgMethodAo() D-Bus method. 1043s # * 1043s # * 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. 1043s # * 1043s # * 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. 1043s # */ 1043s # g_signal_new ("handle-single-arg-method-ao", 1043s # G_TYPE_FROM_INTERFACE (iface), 1043s # G_SIGNAL_RUN_LAST, 1043s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ao), 1043s # g_signal_accumulator_true_handled, 1043s # NULL, 1043s # org_project_useful_interface_method_marshal_single_arg_method_ao, 1043s # G_TYPE_BOOLEAN, 1043s # 2, 1043s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 1043s # 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_ao: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @arg_arg_ao: Argument to pass with the method invocation. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Asynchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_call_single_arg_method_ao_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_call_single_arg_method_ao_sync() for the synchronous, blocking version of this method. 1043s # */ 1043s # void 1043s # org_project_useful_interface_call_single_arg_method_ao ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # const gchar *const *arg_arg_ao, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1043s # "SingleArgMethodAo", 1043s # g_variant_new ("(^ao)", 1043s # arg_arg_ao), 1043s # G_DBUS_CALL_FLAGS_NONE, 1043s # -1, 1043s # cancellable, 1043s # callback, 1043s # user_data); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_ao_finish: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ao(). 1043s # * @error: Return location for error or %NULL. 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ao(). 1043s # * 1043s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1043s # */ 1043s # gboolean 1043s # org_project_useful_interface_call_single_arg_method_ao_finish ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GVariant *_ret; 1043s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1043s # if (_ret == NULL) 1043s # goto _out; 1043s # g_variant_get (_ret, 1043s # "()"); 1043s # g_variant_unref (_ret); 1043s # _out: 1043s # return _ret != NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_ao_sync: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @arg_arg_ao: Argument to pass with the method invocation. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL. 1043s # * 1043s # * Synchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_call_single_arg_method_ao() for the asynchronous version of this method. 1043s # * 1043s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1043s # */ 1043s # gboolean 1043s # org_project_useful_interface_call_single_arg_method_ao_sync ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # const gchar *const *arg_arg_ao, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GVariant *_ret; 1043s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1043s # "SingleArgMethodAo", 1043s # g_variant_new ("(^ao)", 1043s # arg_arg_ao), 1043s # G_DBUS_CALL_FLAGS_NONE, 1043s # -1, 1043s # cancellable, 1043s # error); 1043s # if (_ret == NULL) 1043s # goto _out; 1043s # g_variant_get (_ret, 1043s # "()"); 1043s # g_variant_unref (_ret); 1043s # _out: 1043s # return _ret != NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_complete_single_arg_method_ao: 1043s # * @object: A #OrgProjectUsefulInterface. 1043s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1043s # * 1043s # * 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. 1043s # * 1043s # * This method will free @invocation, you cannot use it afterwards. 1043s # */ 1043s # void 1043s # org_project_useful_interface_complete_single_arg_method_ao ( 1043s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1043s # GDBusMethodInvocation *invocation) 1043s # { 1043s # g_dbus_method_invocation_return_value (invocation, 1043s # g_variant_new ("()")); 1043s # } 1043s # 1043s # /* ------------------------------------------------------------------------ */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceProxy: 1043s # * 1043s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceProxyClass: 1043s # * @parent_class: The parent class. 1043s # * 1043s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1043s # */ 1043s # 1043s # struct _OrgProjectUsefulInterfaceProxyPrivate 1043s # { 1043s # GData *qdata; 1043s # }; 1043s # 1043s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1043s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1043s # 1043s # #else 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1043s # 1043s # #endif 1043s # static void 1043s # org_project_useful_interface_proxy_finalize (GObject *object) 1043s # { 1043s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1043s # g_datalist_clear (&proxy->priv->qdata); 1043s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1043s # guint prop_id G_GNUC_UNUSED, 1043s # GValue *value G_GNUC_UNUSED, 1043s # GParamSpec *pspec G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1043s # guint prop_id G_GNUC_UNUSED, 1043s # const GValue *value G_GNUC_UNUSED, 1043s # GParamSpec *pspec G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1043s # const gchar *sender_name G_GNUC_UNUSED, 1043s # const gchar *signal_name, 1043s # GVariant *parameters) 1043s # { 1043s # _ExtendedGDBusSignalInfo *info; 1043s # GVariantIter iter; 1043s # GVariant *child; 1043s # GValue *paramv; 1043s # gsize num_params; 1043s # gsize n; 1043s # guint signal_id; 1043s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1043s # if (info == NULL) 1043s # return; 1043s # num_params = g_variant_n_children (parameters); 1043s # paramv = g_new0 (GValue, num_params + 1); 1043s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_set_object (¶mv[0], proxy); 1043s # g_variant_iter_init (&iter, parameters); 1043s # n = 1; 1043s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1043s # { 1043s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1043s # if (arg_info->use_gvariant) 1043s # { 1043s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1043s # g_value_set_variant (¶mv[n], child); 1043s # n++; 1043s # } 1043s # else 1043s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1043s # g_variant_unref (child); 1043s # } 1043s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_signal_emitv (paramv, signal_id, 0, NULL); 1043s # for (n = 0; n < num_params + 1; n++) 1043s # g_value_unset (¶mv[n]); 1043s # g_free (paramv); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1043s # GVariant *changed_properties, 1043s # const gchar *const *invalidated_properties) 1043s # { 1043s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1043s # guint n; 1043s # const gchar *key; 1043s # GVariantIter *iter; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # g_variant_get (changed_properties, "a{sv}", &iter); 1043s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1043s # { 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1043s # g_datalist_remove_data (&proxy->priv->qdata, key); 1043s # if (info != NULL) 1043s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1043s # } 1043s # g_variant_iter_free (iter); 1043s # for (n = 0; invalidated_properties[n] != NULL; n++) 1043s # { 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1043s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1043s # if (info != NULL) 1043s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1043s # } 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1043s # { 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1043s # #else 1043s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1043s # #endif 1043s # 1043s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1043s # { 1043s # GObjectClass *gobject_class; 1043s # GDBusProxyClass *proxy_class; 1043s # 1043s # gobject_class = G_OBJECT_CLASS (klass); 1043s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1043s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1043s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1043s # 1043s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1043s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1043s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1043s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1043s # #endif 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new: 1043s # * @connection: A #GDBusConnection. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1043s # * 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1043s # */ 1043s # void 1043s # org_project_useful_interface_proxy_new ( 1043s # GDBusConnection *connection, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_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); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_finish: 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_finish ( 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GObject *ret; 1043s # GObject *source_object; 1043s # source_object = g_async_result_get_source_object (res); 1043s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1043s # g_object_unref (source_object); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_sync: 1043s # * @connection: A #GDBusConnection. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1043s # * 1043s # * The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_sync ( 1043s # GDBusConnection *connection, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GInitable *ret; 1043s # 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); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus: 1043s # * @bus_type: A #GBusType. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: A bus name (well-known or unique). 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1043s # * 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1043s # */ 1043s # void 1043s # org_project_useful_interface_proxy_new_for_bus ( 1043s # GBusType bus_type, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_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); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus_finish: 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_for_bus_finish ( 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GObject *ret; 1043s # GObject *source_object; 1043s # source_object = g_async_result_get_source_object (res); 1043s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1043s # g_object_unref (source_object); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus_sync: 1043s # * @bus_type: A #GBusType. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: A bus name (well-known or unique). 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1043s # * 1043s # * The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_for_bus_sync ( 1043s # GBusType bus_type, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GInitable *ret; 1043s # 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); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # 1043s # /* ------------------------------------------------------------------------ */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceSkeleton: 1043s # * 1043s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceSkeletonClass: 1043s # * @parent_class: The parent class. 1043s # * 1043s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1043s # */ 1043s # 1043s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1043s # { 1043s # GValue *properties; 1043s # GList *changed_properties; 1043s # GSource *changed_properties_idle_source; 1043s # GMainContext *context; 1043s # GMutex lock; 1043s # }; 1043s # 1043s # static void 1043s # _org_project_useful_interface_skeleton_handle_method_call ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name, 1043s # const gchar *method_name, 1043s # GVariant *parameters, 1043s # GDBusMethodInvocation *invocation, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # _ExtendedGDBusMethodInfo *info; 1043s # GVariantIter iter; 1043s # GVariant *child; 1043s # GValue *paramv; 1043s # gsize num_params; 1043s # guint num_extra; 1043s # gsize n; 1043s # guint signal_id; 1043s # GValue return_value = G_VALUE_INIT; 1043s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1043s # g_assert (info != NULL); 1043s # num_params = g_variant_n_children (parameters); 1043s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1043s # n = 0; 1043s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_set_object (¶mv[n++], skeleton); 1043s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1043s # g_value_set_object (¶mv[n++], invocation); 1043s # if (info->pass_fdlist) 1043s # { 1043s # #ifdef G_OS_UNIX 1043s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1043s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1043s # #else 1043s # g_assert_not_reached (); 1043s # #endif 1043s # } 1043s # g_variant_iter_init (&iter, parameters); 1043s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1043s # { 1043s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1043s # if (arg_info->use_gvariant) 1043s # { 1043s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1043s # g_value_set_variant (¶mv[n], child); 1043s # n++; 1043s # } 1043s # else 1043s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1043s # g_variant_unref (child); 1043s # } 1043s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1043s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1043s # if (!g_value_get_boolean (&return_value)) 1043s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1043s # g_value_unset (&return_value); 1043s # for (n = 0; n < num_params + num_extra; n++) 1043s # g_value_unset (¶mv[n]); 1043s # g_free (paramv); 1043s # } 1043s # 1043s # static GVariant * 1043s # _org_project_useful_interface_skeleton_handle_get_property ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name G_GNUC_UNUSED, 1043s # const gchar *property_name, 1043s # GError **error, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # GValue value = G_VALUE_INIT; 1043s # GParamSpec *pspec; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # GVariant *ret; 1043s # ret = NULL; 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1043s # g_assert (info != NULL); 1043s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1043s # if (pspec == NULL) 1043s # { 1043s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1043s # } 1043s # else 1043s # { 1043s # g_value_init (&value, pspec->value_type); 1043s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1043s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1043s # g_value_unset (&value); 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static gboolean 1043s # _org_project_useful_interface_skeleton_handle_set_property ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name G_GNUC_UNUSED, 1043s # const gchar *property_name, 1043s # GVariant *variant, 1043s # GError **error, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # GValue value = G_VALUE_INIT; 1043s # GParamSpec *pspec; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # gboolean ret; 1043s # ret = FALSE; 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1043s # g_assert (info != NULL); 1043s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1043s # if (pspec == NULL) 1043s # { 1043s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1043s # } 1043s # else 1043s # { 1043s # if (info->use_gvariant) 1043s # g_value_set_variant (&value, variant); 1043s # else 1043s # g_dbus_gvariant_to_gvalue (variant, &value); 1043s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1043s # g_value_unset (&value); 1043s # ret = TRUE; 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1043s # { 1043s # _org_project_useful_interface_skeleton_handle_method_call, 1043s # _org_project_useful_interface_skeleton_handle_get_property, 1043s # _org_project_useful_interface_skeleton_handle_set_property, 1043s # {NULL} 1043s # }; 1043s # 1043s # static GDBusInterfaceInfo * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1043s # { 1043s # return org_project_useful_interface_interface_info (); 1043s # } 1043s # 1043s # static GDBusInterfaceVTable * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1043s # { 1043s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1043s # } 1043s # 1043s # static GVariant * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1043s # 1043s # GVariantBuilder builder; 1043s # guint n; 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1043s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1043s # #else 1043s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1043s # #endif 1043s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1043s # goto out; 1043s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1043s # { 1043s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1043s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1043s # { 1043s # GVariant *value; 1043s # 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); 1043s # if (value != NULL) 1043s # { 1043s # g_variant_take_ref (value); 1043s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1043s # g_variant_unref (value); 1043s # } 1043s # } 1043s # } 1043s # out: 1043s # return g_variant_builder_end (&builder); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1043s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1043s # 1043s # #else 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1043s # 1043s # #endif 1043s # static void 1043s # org_project_useful_interface_skeleton_finalize (GObject *object) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1043s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1043s # if (skeleton->priv->changed_properties_idle_source != NULL) 1043s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1043s # g_main_context_unref (skeleton->priv->context); 1043s # g_mutex_clear (&skeleton->priv->lock); 1043s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1043s # { 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1043s # #else 1043s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1043s # #endif 1043s # 1043s # g_mutex_init (&skeleton->priv->lock); 1043s # skeleton->priv->context = g_main_context_ref_thread_default (); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1043s # { 1043s # GObjectClass *gobject_class; 1043s # GDBusInterfaceSkeletonClass *skeleton_class; 1043s # 1043s # gobject_class = G_OBJECT_CLASS (klass); 1043s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1043s # 1043s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1043s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1043s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1043s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1043s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1043s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1043s # #endif 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_skeleton_new: 1043s # * 1043s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_skeleton_new (void) 1043s # { 1043s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1043s # } 1043s # Error: 1043s # 1043s # /tmp/tmpd1ucwcbz/tmpsndg0dda.xml: 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpd1ucwcbz/tmpsndg0dda.xml', '--output', '-', '--body'] 1043s # Return code: 0 1043s # Output: 1043s # /* 1043s # * This file is generated by gdbus-codegen, do not modify it. 1043s # * 1043s # * The license of this code is the same as for the D-Bus interface description 1043s # * it was derived from. Note that it links to GLib, so must comply with the 1043s # * LGPL linking clauses. 1043s # */ 1043s # 1043s # #ifdef HAVE_CONFIG_H 1043s # # include "config.h" 1043s # #endif 1043s # 1043s # #include 1043s # #ifdef G_OS_UNIX 1043s # # include 1043s # #endif 1043s # 1043s # #ifdef G_ENABLE_DEBUG 1043s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1043s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1043s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1043s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1043s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1043s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1043s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1043s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1043s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1043s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1043s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1043s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1043s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1043s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1043s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1043s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1043s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1043s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1043s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1043s # #else /* !G_ENABLE_DEBUG */ 1043s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1043s # * Do not access GValues directly in your code. Instead, use the 1043s # * g_value_get_*() functions 1043s # */ 1043s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1043s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1043s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1043s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1043s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1043s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1043s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1043s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1043s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1043s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1043s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1043s # #endif /* !G_ENABLE_DEBUG */ 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusArgInfo parent_struct; 1043s # gboolean use_gvariant; 1043s # } _ExtendedGDBusArgInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusMethodInfo parent_struct; 1043s # const gchar *signal_name; 1043s # gboolean pass_fdlist; 1043s # } _ExtendedGDBusMethodInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusSignalInfo parent_struct; 1043s # const gchar *signal_name; 1043s # } _ExtendedGDBusSignalInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusPropertyInfo parent_struct; 1043s # const gchar *hyphen_name; 1043s # guint use_gvariant : 1; 1043s # guint emits_changed_signal : 1; 1043s # } _ExtendedGDBusPropertyInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusInterfaceInfo parent_struct; 1043s # const gchar *hyphen_name; 1043s # } _ExtendedGDBusInterfaceInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # const _ExtendedGDBusPropertyInfo *info; 1043s # guint prop_id; 1043s # GValue orig_value; /* the value before the change */ 1043s # } ChangedProperty; 1043s # 1043s # static void 1043s # _changed_property_free (ChangedProperty *data) 1043s # { 1043s # g_value_unset (&data->orig_value); 1043s # g_free (data); 1043s # } 1043s # 1043s # static gboolean 1043s # _g_strv_equal0 (gchar **a, gchar **b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # guint n; 1043s # if (a == NULL && b == NULL) 1043s # { 1043s # ret = TRUE; 1043s # goto out; 1043s # } 1043s # if (a == NULL || b == NULL) 1043s # goto out; 1043s # if (g_strv_length (a) != g_strv_length (b)) 1043s # goto out; 1043s # for (n = 0; a[n] != NULL; n++) 1043s # if (g_strcmp0 (a[n], b[n]) != 0) 1043s # goto out; 1043s # ret = TRUE; 1043s # out: 1043s # return ret; 1043s # } 1043s # 1043s # static gboolean 1043s # _g_variant_equal0 (GVariant *a, GVariant *b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # if (a == NULL && b == NULL) 1043s # { 1043s # ret = TRUE; 1043s # goto out; 1043s # } 1043s # if (a == NULL || b == NULL) 1043s # goto out; 1043s # ret = g_variant_equal (a, b); 1043s # out: 1043s # return ret; 1043s # } 1043s # 1043s # G_GNUC_UNUSED static gboolean 1043s # _g_value_equal (const GValue *a, const GValue *b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1043s # switch (G_VALUE_TYPE (a)) 1043s # { 1043s # case G_TYPE_BOOLEAN: 1043s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1043s # break; 1043s # case G_TYPE_UCHAR: 1043s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1043s # break; 1043s # case G_TYPE_INT: 1043s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1043s # break; 1043s # case G_TYPE_UINT: 1043s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1043s # break; 1043s # case G_TYPE_INT64: 1043s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1043s # break; 1043s # case G_TYPE_UINT64: 1043s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1043s # break; 1043s # case G_TYPE_DOUBLE: 1043s # { 1043s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1043s # gdouble da = g_value_get_double (a); 1043s # gdouble db = g_value_get_double (b); 1043s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1043s # } 1043s # break; 1043s # case G_TYPE_STRING: 1043s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1043s # break; 1043s # case G_TYPE_VARIANT: 1043s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1043s # break; 1043s # default: 1043s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1043s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1043s # else 1043s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1043s # break; 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static void 1043s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 1043s # GClosure *closure, 1043s # GValue *return_value, 1043s # unsigned int n_param_values, 1043s # const GValue *param_values, 1043s # void *invocation_hint G_GNUC_UNUSED, 1043s # void *marshal_data) 1043s # { 1043s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1043s # (void *data1, 1043s # GDBusMethodInvocation *arg_method_invocation, 1043s # const gchar *const *arg_arg_aay, 1043s # void *data2); 1043s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 1043s # GCClosure *cc = (GCClosure*) closure; 1043s # void *data1, *data2; 1043s # gboolean v_return; 1043s # 1043s # g_return_if_fail (return_value != NULL); 1043s # g_return_if_fail (n_param_values == 3); 1043s # 1043s # if (G_CCLOSURE_SWAP_DATA (closure)) 1043s # { 1043s # data1 = closure->data; 1043s # data2 = g_value_peek_pointer (param_values + 0); 1043s # } 1043s # else 1043s # { 1043s # data1 = g_value_peek_pointer (param_values + 0); 1043s # data2 = closure->data; 1043s # } 1043s # 1043s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1043s # (marshal_data ? marshal_data : cc->callback); 1043s # 1043s # v_return = 1043s # callback (data1, 1043s # g_marshal_value_peek_object (param_values + 1), 1043s # g_marshal_value_peek_boxed (param_values + 2), 1043s # data2); 1043s # 1043s # g_value_set_boolean (return_value, v_return); 1043s # } 1043s # 1043s # /* ------------------------------------------------------------------------ 1043s # * Code for interface org.project.UsefulInterface 1043s # * ------------------------------------------------------------------------ 1043s # */ 1043s # 1043s # /** 1043s # * SECTION:OrgProjectUsefulInterface 1043s # * @title: OrgProjectUsefulInterface 1043s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1043s # * 1043s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1043s # */ 1043s # 1043s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1043s # 1043s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_arg_aay = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "arg_aay", 1043s # (gchar *) "aay", 1043s # NULL 1043s # }, 1043s # FALSE 1043s # }; 1043s # 1043s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_pointers[] = 1043s # { 1043s # &_org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_arg_aay.parent_struct, 1043s # NULL 1043s # }; 1043s # 1043s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_aay = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "SingleArgMethodAay", 1043s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_pointers, 1043s # NULL, 1043s # NULL 1043s # }, 1043s # "handle-single-arg-method-aay", 1043s # FALSE 1043s # }; 1043s # 1043s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1043s # { 1043s # &_org_project_useful_interface_method_info_single_arg_method_aay.parent_struct, 1043s # NULL 1043s # }; 1043s # 1043s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "org.project.UsefulInterface", 1043s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1043s # NULL, 1043s # NULL, 1043s # NULL 1043s # }, 1043s # "org-project-useful-interface", 1043s # }; 1043s # 1043s # 1043s # /** 1043s # * org_project_useful_interface_interface_info: 1043s # * 1043s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1043s # * 1043s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1043s # */ 1043s # GDBusInterfaceInfo * 1043s # org_project_useful_interface_interface_info (void) 1043s # { 1043s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_override_properties: 1043s # * @klass: The class structure for a #GObject derived class. 1043s # * @property_id_begin: The property id to assign to the first overridden property. 1043s # * 1043s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1043s # * The properties are overridden in the order they are defined. 1043s # * 1043s # * Returns: The last property id. 1043s # */ 1043s # guint 1043s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1043s # { 1043s # return property_id_begin - 1; 1043s # } 1043s # 1043s # 1043s # inline static void 1043s # org_project_useful_interface_method_marshal_single_arg_method_aay ( 1043s # GClosure *closure, 1043s # GValue *return_value, 1043s # unsigned int n_param_values, 1043s # const GValue *param_values, 1043s # void *invocation_hint, 1043s # void *marshal_data) 1043s # { 1043s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 1043s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1043s # } 1043s # 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterface: 1043s # * 1043s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceIface: 1043s # * @parent_iface: The parent interface. 1043s # * @handle_single_arg_method_aay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-aay signal. 1043s # * 1043s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1043s # */ 1043s # 1043s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1043s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1043s # 1043s # static void 1043s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1043s # { 1043s # /* GObject signals for incoming D-Bus method calls: */ 1043s # /** 1043s # * OrgProjectUsefulInterface::handle-single-arg-method-aay: 1043s # * @object: A #OrgProjectUsefulInterface. 1043s # * @invocation: A #GDBusMethodInvocation. 1043s # * @arg_arg_aay: Argument passed by remote caller. 1043s # * 1043s # * Signal emitted when a remote caller is invoking the SingleArgMethodAay() D-Bus method. 1043s # * 1043s # * 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. 1043s # * 1043s # * 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. 1043s # */ 1043s # g_signal_new ("handle-single-arg-method-aay", 1043s # G_TYPE_FROM_INTERFACE (iface), 1043s # G_SIGNAL_RUN_LAST, 1043s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_aay), 1043s # g_signal_accumulator_true_handled, 1043s # NULL, 1043s # org_project_useful_interface_method_marshal_single_arg_method_aay, 1043s # G_TYPE_BOOLEAN, 1043s # 2, 1043s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 1043s # 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_aay: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @arg_arg_aay: Argument to pass with the method invocation. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Asynchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_call_single_arg_method_aay_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_call_single_arg_method_aay_sync() for the synchronous, blocking version of this method. 1043s # */ 1043s # void 1043s # org_project_useful_interface_call_single_arg_method_aay ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # const gchar *const *arg_arg_aay, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1043s # "SingleArgMethodAay", 1043s # g_variant_new ("(^aay)", 1043s # arg_arg_aay), 1043s # G_DBUS_CALL_FLAGS_NONE, 1043s # -1, 1043s # cancellable, 1043s # callback, 1043s # user_data); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_aay_finish: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_aay(). 1043s # * @error: Return location for error or %NULL. 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_aay(). 1043s # * 1043s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1043s # */ 1043s # gboolean 1043s # org_project_useful_interface_call_single_arg_method_aay_finish ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GVariant *_ret; 1043s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1043s # if (_ret == NULL) 1043s # goto _out; 1043s # g_variant_get (_ret, 1043s # "()"); 1043s # g_variant_unref (_ret); 1043s # _out: 1043s # return _ret != NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_aay_sync: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @arg_arg_aay: Argument to pass with the method invocation. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL. 1043s # * 1043s # * Synchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_call_single_arg_method_aay() for the asynchronous version of this method. 1043s # * 1043s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1043s # */ 1043s # gboolean 1043s # org_project_useful_interface_call_single_arg_method_aay_sync ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # const gchar *const *arg_arg_aay, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GVariant *_ret; 1043s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1043s # "SingleArgMethodAay", 1043s # g_variant_new ("(^aay)", 1043s # arg_arg_aay), 1043s # G_DBUS_CALL_FLAGS_NONE, 1043s # -1, 1043s # cancellable, 1043s # error); 1043s # if (_ret == NULL) 1043s # goto _out; 1043s # g_variant_get (_ret, 1043s # "()"); 1043s # g_variant_unref (_ret); 1043s # _out: 1043s # return _ret != NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_complete_single_arg_method_aay: 1043s # * @object: A #OrgProjectUsefulInterface. 1043s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1043s # * 1043s # * 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. 1043s # * 1043s # * This method will free @invocation, you cannot use it afterwards. 1043s # */ 1043s # void 1043s # org_project_useful_interface_complete_single_arg_method_aay ( 1043s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1043s # GDBusMethodInvocation *invocation) 1043s # { 1043s # g_dbus_method_invocation_return_value (invocation, 1043s # g_variant_new ("()")); 1043s # } 1043s # 1043s # /* ------------------------------------------------------------------------ */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceProxy: 1043s # * 1043s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceProxyClass: 1043s # * @parent_class: The parent class. 1043s # * 1043s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1043s # */ 1043s # 1043s # struct _OrgProjectUsefulInterfaceProxyPrivate 1043s # { 1043s # GData *qdata; 1043s # }; 1043s # 1043s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1043s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1043s # 1043s # #else 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1043s # 1043s # #endif 1043s # static void 1043s # org_project_useful_interface_proxy_finalize (GObject *object) 1043s # { 1043s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1043s # g_datalist_clear (&proxy->priv->qdata); 1043s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1043s # guint prop_id G_GNUC_UNUSED, 1043s # GValue *value G_GNUC_UNUSED, 1043s # GParamSpec *pspec G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1043s # guint prop_id G_GNUC_UNUSED, 1043s # const GValue *value G_GNUC_UNUSED, 1043s # GParamSpec *pspec G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1043s # const gchar *sender_name G_GNUC_UNUSED, 1043s # const gchar *signal_name, 1043s # GVariant *parameters) 1043s # { 1043s # _ExtendedGDBusSignalInfo *info; 1043s # GVariantIter iter; 1043s # GVariant *child; 1043s # GValue *paramv; 1043s # gsize num_params; 1043s # gsize n; 1043s # guint signal_id; 1043s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1043s # if (info == NULL) 1043s # return; 1043s # num_params = g_variant_n_children (parameters); 1043s # paramv = g_new0 (GValue, num_params + 1); 1043s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_set_object (¶mv[0], proxy); 1043s # g_variant_iter_init (&iter, parameters); 1043s # n = 1; 1043s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1043s # { 1043s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1043s # if (arg_info->use_gvariant) 1043s # { 1043s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1043s # g_value_set_variant (¶mv[n], child); 1043s # n++; 1043s # } 1043s # else 1043s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1043s # g_variant_unref (child); 1043s # } 1043s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_signal_emitv (paramv, signal_id, 0, NULL); 1043s # for (n = 0; n < num_params + 1; n++) 1043s # g_value_unset (¶mv[n]); 1043s # g_free (paramv); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1043s # GVariant *changed_properties, 1043s # const gchar *const *invalidated_properties) 1043s # { 1043s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1043s # guint n; 1043s # const gchar *key; 1043s # GVariantIter *iter; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # g_variant_get (changed_properties, "a{sv}", &iter); 1043s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1043s # { 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1043s # g_datalist_remove_data (&proxy->priv->qdata, key); 1043s # if (info != NULL) 1043s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1043s # } 1043s # g_variant_iter_free (iter); 1043s # for (n = 0; invalidated_properties[n] != NULL; n++) 1043s # { 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1043s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1043s # if (info != NULL) 1043s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1043s # } 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1043s # { 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1043s # #else 1043s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1043s # #endif 1043s # 1043s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1043s # { 1043s # GObjectClass *gobject_class; 1043s # GDBusProxyClass *proxy_class; 1043s # 1043s # gobject_class = G_OBJECT_CLASS (klass); 1043s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1043s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1043s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1043s # 1043s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1043s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1043s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1043s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1043s # #endif 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new: 1043s # * @connection: A #GDBusConnection. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1043s # * 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1043s # */ 1043s # void 1043s # org_project_useful_interface_proxy_new ( 1043s # GDBusConnection *connection, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_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); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_finish: 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_finish ( 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GObject *ret; 1043s # GObject *source_object; 1043s # source_object = g_async_result_get_source_object (res); 1043s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1043s # g_object_unref (source_object); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_sync: 1043s # * @connection: A #GDBusConnection. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1043s # * 1043s # * The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_sync ( 1043s # GDBusConnection *connection, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GInitable *ret; 1043s # 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); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus: 1043s # * @bus_type: A #GBusType. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: A bus name (well-known or unique). 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1043s # * 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1043s # */ 1043s # void 1043s # org_project_useful_interface_proxy_new_for_bus ( 1043s # GBusType bus_type, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_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); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus_finish: 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_for_bus_finish ( 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GObject *ret; 1043s # GObject *source_object; 1043s # source_object = g_async_result_get_source_object (res); 1043s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1043s # g_object_unref (source_object); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus_sync: 1043s # * @bus_type: A #GBusType. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: A bus name (well-known or unique). 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1043s # * 1043s # * The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_for_bus_sync ( 1043s # GBusType bus_type, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GInitable *ret; 1043s # 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); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # 1043s # /* ------------------------------------------------------------------------ */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceSkeleton: 1043s # * 1043s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceSkeletonClass: 1043s # * @parent_class: The parent class. 1043s # * 1043s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1043s # */ 1043s # 1043s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1043s # { 1043s # GValue *properties; 1043s # GList *changed_properties; 1043s # GSource *changed_properties_idle_source; 1043s # GMainContext *context; 1043s # GMutex lock; 1043s # }; 1043s # 1043s # static void 1043s # _org_project_useful_interface_skeleton_handle_method_call ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name, 1043s # const gchar *method_name, 1043s # GVariant *parameters, 1043s # GDBusMethodInvocation *invocation, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # _ExtendedGDBusMethodInfo *info; 1043s # GVariantIter iter; 1043s # GVariant *child; 1043s # GValue *paramv; 1043s # gsize num_params; 1043s # guint num_extra; 1043s # gsize n; 1043s # guint signal_id; 1043s # GValue return_value = G_VALUE_INIT; 1043s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1043s # g_assert (info != NULL); 1043s # num_params = g_variant_n_children (parameters); 1043s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1043s # n = 0; 1043s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_set_object (¶mv[n++], skeleton); 1043s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1043s # g_value_set_object (¶mv[n++], invocation); 1043s # if (info->pass_fdlist) 1043s # { 1043s # #ifdef G_OS_UNIX 1043s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1043s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1043s # #else 1043s # g_assert_not_reached (); 1043s # #endif 1043s # } 1043s # g_variant_iter_init (&iter, parameters); 1043s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1043s # { 1043s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1043s # if (arg_info->use_gvariant) 1043s # { 1043s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1043s # g_value_set_variant (¶mv[n], child); 1043s # n++; 1043s # } 1043s # else 1043s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1043s # g_variant_unref (child); 1043s # } 1043s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1043s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1043s # if (!g_value_get_boolean (&return_value)) 1043s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1043s # g_value_unset (&return_value); 1043s # for (n = 0; n < num_params + num_extra; n++) 1043s # g_value_unset (¶mv[n]); 1043s # g_free (paramv); 1043s # } 1043s # 1043s # static GVariant * 1043s # _org_project_useful_interface_skeleton_handle_get_property ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name G_GNUC_UNUSED, 1043s # const gchar *property_name, 1043s # GError **error, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # GValue value = G_VALUE_INIT; 1043s # GParamSpec *pspec; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # GVariant *ret; 1043s # ret = NULL; 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1043s # g_assert (info != NULL); 1043s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1043s # if (pspec == NULL) 1043s # { 1043s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1043s # } 1043s # else 1043s # { 1043s # g_value_init (&value, pspec->value_type); 1043s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1043s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1043s # g_value_unset (&value); 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static gboolean 1043s # _org_project_useful_interface_skeleton_handle_set_property ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name G_GNUC_UNUSED, 1043s # const gchar *property_name, 1043s # GVariant *variant, 1043s # GError **error, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # GValue value = G_VALUE_INIT; 1043s # GParamSpec *pspec; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # gboolean ret; 1043s # ret = FALSE; 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1043s # g_assert (info != NULL); 1043s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1043s # if (pspec == NULL) 1043s # { 1043s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1043s # } 1043s # else 1043s # { 1043s # if (info->use_gvariant) 1043s # g_value_set_variant (&value, variant); 1043s # else 1043s # g_dbus_gvariant_to_gvalue (variant, &value); 1043s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1043s # g_value_unset (&value); 1043s # ret = TRUE; 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1043s # { 1043s # _org_project_useful_interface_skeleton_handle_method_call, 1043s # _org_project_useful_interface_skeleton_handle_get_property, 1043s # _org_project_useful_interface_skeleton_handle_set_property, 1043s # {NULL} 1043s # }; 1043s # 1043s # static GDBusInterfaceInfo * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1043s # { 1043s # return org_project_useful_interface_interface_info (); 1043s # } 1043s # 1043s # static GDBusInterfaceVTable * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1043s # { 1043s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1043s # } 1043s # 1043s # static GVariant * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1043s # 1043s # GVariantBuilder builder; 1043s # guint n; 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1043s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1043s # #else 1043s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1043s # #endif 1043s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1043s # goto out; 1043s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1043s # { 1043s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1043s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1043s # { 1043s # GVariant *value; 1043s # 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); 1043s # if (value != NULL) 1043s # { 1043s # g_variant_take_ref (value); 1043s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1043s # g_variant_unref (value); 1043s # } 1043s # } 1043s # } 1043s # out: 1043s # return g_variant_builder_end (&builder); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1043s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1043s # 1043s # #else 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1043s # 1043s # #endif 1043s # static void 1043s # org_project_useful_interface_skeleton_finalize (GObject *object) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1043s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1043s # if (skeleton->priv->changed_properties_idle_source != NULL) 1043s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1043s # g_main_context_unref (skeleton->priv->context); 1043s # g_mutex_clear (&skeleton->priv->lock); 1043s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1043s # { 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1043s # #else 1043s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1043s # #endif 1043s # 1043s # g_mutex_init (&skeleton->priv->lock); 1043s # skeleton->priv->context = g_main_context_ref_thread_default (); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1043s # { 1043s # GObjectClass *gobject_class; 1043s # GDBusInterfaceSkeletonClass *skeleton_class; 1043s # 1043s # gobject_class = G_OBJECT_CLASS (klass); 1043s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1043s # 1043s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1043s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1043s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1043s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1043s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1043s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1043s # #endif 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_skeleton_new: 1043s # * 1043s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_skeleton_new (void) 1043s # { 1043s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1043s # } 1043s # Error: 1043s # 1043s # /tmp/tmpd1ucwcbz/tmpivqf0rfa.xml: 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # 1043s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpd1ucwcbz/tmpivqf0rfa.xml', '--output', '-', '--body'] 1043s # Return code: 0 1043s # Output: 1043s # /* 1043s # * This file is generated by gdbus-codegen, do not modify it. 1043s # * 1043s # * The license of this code is the same as for the D-Bus interface description 1043s # * it was derived from. Note that it links to GLib, so must comply with the 1043s # * LGPL linking clauses. 1043s # */ 1043s # 1043s # #ifdef HAVE_CONFIG_H 1043s # # include "config.h" 1043s # #endif 1043s # 1043s # #include 1043s # #ifdef G_OS_UNIX 1043s # # include 1043s # #endif 1043s # 1043s # #ifdef G_ENABLE_DEBUG 1043s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1043s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1043s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1043s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1043s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1043s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1043s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1043s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1043s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1043s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1043s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1043s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1043s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1043s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1043s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1043s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1043s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1043s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1043s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1043s # #else /* !G_ENABLE_DEBUG */ 1043s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1043s # * Do not access GValues directly in your code. Instead, use the 1043s # * g_value_get_*() functions 1043s # */ 1043s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1043s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1043s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1043s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1043s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1043s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1043s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1043s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1043s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1043s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1043s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1043s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1043s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1043s # #endif /* !G_ENABLE_DEBUG */ 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusArgInfo parent_struct; 1043s # gboolean use_gvariant; 1043s # } _ExtendedGDBusArgInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusMethodInfo parent_struct; 1043s # const gchar *signal_name; 1043s # gboolean pass_fdlist; 1043s # } _ExtendedGDBusMethodInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusSignalInfo parent_struct; 1043s # const gchar *signal_name; 1043s # } _ExtendedGDBusSignalInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusPropertyInfo parent_struct; 1043s # const gchar *hyphen_name; 1043s # guint use_gvariant : 1; 1043s # guint emits_changed_signal : 1; 1043s # } _ExtendedGDBusPropertyInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # GDBusInterfaceInfo parent_struct; 1043s # const gchar *hyphen_name; 1043s # } _ExtendedGDBusInterfaceInfo; 1043s # 1043s # typedef struct 1043s # { 1043s # const _ExtendedGDBusPropertyInfo *info; 1043s # guint prop_id; 1043s # GValue orig_value; /* the value before the change */ 1043s # } ChangedProperty; 1043s # 1043s # static void 1043s # _changed_property_free (ChangedProperty *data) 1043s # { 1043s # g_value_unset (&data->orig_value); 1043s # g_free (data); 1043s # } 1043s # 1043s # static gboolean 1043s # _g_strv_equal0 (gchar **a, gchar **b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # guint n; 1043s # if (a == NULL && b == NULL) 1043s # { 1043s # ret = TRUE; 1043s # goto out; 1043s # } 1043s # if (a == NULL || b == NULL) 1043s # goto out; 1043s # if (g_strv_length (a) != g_strv_length (b)) 1043s # goto out; 1043s # for (n = 0; a[n] != NULL; n++) 1043s # if (g_strcmp0 (a[n], b[n]) != 0) 1043s # goto out; 1043s # ret = TRUE; 1043s # out: 1043s # return ret; 1043s # } 1043s # 1043s # static gboolean 1043s # _g_variant_equal0 (GVariant *a, GVariant *b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # if (a == NULL && b == NULL) 1043s # { 1043s # ret = TRUE; 1043s # goto out; 1043s # } 1043s # if (a == NULL || b == NULL) 1043s # goto out; 1043s # ret = g_variant_equal (a, b); 1043s # out: 1043s # return ret; 1043s # } 1043s # 1043s # G_GNUC_UNUSED static gboolean 1043s # _g_value_equal (const GValue *a, const GValue *b) 1043s # { 1043s # gboolean ret = FALSE; 1043s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1043s # switch (G_VALUE_TYPE (a)) 1043s # { 1043s # case G_TYPE_BOOLEAN: 1043s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1043s # break; 1043s # case G_TYPE_UCHAR: 1043s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1043s # break; 1043s # case G_TYPE_INT: 1043s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1043s # break; 1043s # case G_TYPE_UINT: 1043s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1043s # break; 1043s # case G_TYPE_INT64: 1043s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1043s # break; 1043s # case G_TYPE_UINT64: 1043s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1043s # break; 1043s # case G_TYPE_DOUBLE: 1043s # { 1043s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1043s # gdouble da = g_value_get_double (a); 1043s # gdouble db = g_value_get_double (b); 1043s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1043s # } 1043s # break; 1043s # case G_TYPE_STRING: 1043s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1043s # break; 1043s # case G_TYPE_VARIANT: 1043s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1043s # break; 1043s # default: 1043s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1043s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1043s # else 1043s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1043s # break; 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static void 1043s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT ( 1043s # GClosure *closure, 1043s # GValue *return_value, 1043s # unsigned int n_param_values, 1043s # const GValue *param_values, 1043s # void *invocation_hint G_GNUC_UNUSED, 1043s # void *marshal_data) 1043s # { 1043s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 1043s # (void *data1, 1043s # GDBusMethodInvocation *arg_method_invocation, 1043s # GVariant *arg_arg_asv, 1043s # void *data2); 1043s # _GDbusCodegenMarshalBoolean_ObjectVariantFunc callback; 1043s # GCClosure *cc = (GCClosure*) closure; 1043s # void *data1, *data2; 1043s # gboolean v_return; 1043s # 1043s # g_return_if_fail (return_value != NULL); 1043s # g_return_if_fail (n_param_values == 3); 1043s # 1043s # if (G_CCLOSURE_SWAP_DATA (closure)) 1043s # { 1043s # data1 = closure->data; 1043s # data2 = g_value_peek_pointer (param_values + 0); 1043s # } 1043s # else 1043s # { 1043s # data1 = g_value_peek_pointer (param_values + 0); 1043s # data2 = closure->data; 1043s # } 1043s # 1043s # callback = (_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 1043s # (marshal_data ? marshal_data : cc->callback); 1043s # 1043s # v_return = 1043s # callback (data1, 1043s # g_marshal_value_peek_object (param_values + 1), 1043s # g_marshal_value_peek_variant (param_values + 2), 1043s # data2); 1043s # 1043s # g_value_set_boolean (return_value, v_return); 1043s # } 1043s # 1043s # /* ------------------------------------------------------------------------ 1043s # * Code for interface org.project.UsefulInterface 1043s # * ------------------------------------------------------------------------ 1043s # */ 1043s # 1043s # /** 1043s # * SECTION:OrgProjectUsefulInterface 1043s # * @title: OrgProjectUsefulInterface 1043s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1043s # * 1043s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1043s # */ 1043s # 1043s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1043s # 1043s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_arg_asv = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "arg_asv", 1043s # (gchar *) "a{sv}", 1043s # NULL 1043s # }, 1043s # FALSE 1043s # }; 1043s # 1043s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_pointers[] = 1043s # { 1043s # &_org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_arg_asv.parent_struct, 1043s # NULL 1043s # }; 1043s # 1043s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_asv = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "SingleArgMethodAsv", 1043s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_pointers, 1043s # NULL, 1043s # NULL 1043s # }, 1043s # "handle-single-arg-method-asv", 1043s # FALSE 1043s # }; 1043s # 1043s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1043s # { 1043s # &_org_project_useful_interface_method_info_single_arg_method_asv.parent_struct, 1043s # NULL 1043s # }; 1043s # 1043s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1043s # { 1043s # { 1043s # -1, 1043s # (gchar *) "org.project.UsefulInterface", 1043s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1043s # NULL, 1043s # NULL, 1043s # NULL 1043s # }, 1043s # "org-project-useful-interface", 1043s # }; 1043s # 1043s # 1043s # /** 1043s # * org_project_useful_interface_interface_info: 1043s # * 1043s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1043s # * 1043s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1043s # */ 1043s # GDBusInterfaceInfo * 1043s # org_project_useful_interface_interface_info (void) 1043s # { 1043s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_override_properties: 1043s # * @klass: The class structure for a #GObject derived class. 1043s # * @property_id_begin: The property id to assign to the first overridden property. 1043s # * 1043s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1043s # * The properties are overridden in the order they are defined. 1043s # * 1043s # * Returns: The last property id. 1043s # */ 1043s # guint 1043s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1043s # { 1043s # return property_id_begin - 1; 1043s # } 1043s # 1043s # 1043s # inline static void 1043s # org_project_useful_interface_method_marshal_single_arg_method_asv ( 1043s # GClosure *closure, 1043s # GValue *return_value, 1043s # unsigned int n_param_values, 1043s # const GValue *param_values, 1043s # void *invocation_hint, 1043s # void *marshal_data) 1043s # { 1043s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT (closure, 1043s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1043s # } 1043s # 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterface: 1043s # * 1043s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceIface: 1043s # * @parent_iface: The parent interface. 1043s # * @handle_single_arg_method_asv: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-asv signal. 1043s # * 1043s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1043s # */ 1043s # 1043s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1043s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1043s # 1043s # static void 1043s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1043s # { 1043s # /* GObject signals for incoming D-Bus method calls: */ 1043s # /** 1043s # * OrgProjectUsefulInterface::handle-single-arg-method-asv: 1043s # * @object: A #OrgProjectUsefulInterface. 1043s # * @invocation: A #GDBusMethodInvocation. 1043s # * @arg_arg_asv: Argument passed by remote caller. 1043s # * 1043s # * Signal emitted when a remote caller is invoking the SingleArgMethodAsv() D-Bus method. 1043s # * 1043s # * 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. 1043s # * 1043s # * 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. 1043s # */ 1043s # g_signal_new ("handle-single-arg-method-asv", 1043s # G_TYPE_FROM_INTERFACE (iface), 1043s # G_SIGNAL_RUN_LAST, 1043s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_asv), 1043s # g_signal_accumulator_true_handled, 1043s # NULL, 1043s # org_project_useful_interface_method_marshal_single_arg_method_asv, 1043s # G_TYPE_BOOLEAN, 1043s # 2, 1043s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT); 1043s # 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_asv: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @arg_arg_asv: Argument to pass with the method invocation. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Asynchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_call_single_arg_method_asv_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_call_single_arg_method_asv_sync() for the synchronous, blocking version of this method. 1043s # */ 1043s # void 1043s # org_project_useful_interface_call_single_arg_method_asv ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # GVariant *arg_arg_asv, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1043s # "SingleArgMethodAsv", 1043s # g_variant_new ("(@a{sv})", 1043s # arg_arg_asv), 1043s # G_DBUS_CALL_FLAGS_NONE, 1043s # -1, 1043s # cancellable, 1043s # callback, 1043s # user_data); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_asv_finish: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_asv(). 1043s # * @error: Return location for error or %NULL. 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_asv(). 1043s # * 1043s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1043s # */ 1043s # gboolean 1043s # org_project_useful_interface_call_single_arg_method_asv_finish ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GVariant *_ret; 1043s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1043s # if (_ret == NULL) 1043s # goto _out; 1043s # g_variant_get (_ret, 1043s # "()"); 1043s # g_variant_unref (_ret); 1043s # _out: 1043s # return _ret != NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_call_single_arg_method_asv_sync: 1043s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1043s # * @arg_arg_asv: Argument to pass with the method invocation. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL. 1043s # * 1043s # * Synchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_call_single_arg_method_asv() for the asynchronous version of this method. 1043s # * 1043s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1043s # */ 1043s # gboolean 1043s # org_project_useful_interface_call_single_arg_method_asv_sync ( 1043s # OrgProjectUsefulInterface *proxy, 1043s # GVariant *arg_arg_asv, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GVariant *_ret; 1043s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1043s # "SingleArgMethodAsv", 1043s # g_variant_new ("(@a{sv})", 1043s # arg_arg_asv), 1043s # G_DBUS_CALL_FLAGS_NONE, 1043s # -1, 1043s # cancellable, 1043s # error); 1043s # if (_ret == NULL) 1043s # goto _out; 1043s # g_variant_get (_ret, 1043s # "()"); 1043s # g_variant_unref (_ret); 1043s # _out: 1043s # return _ret != NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_complete_single_arg_method_asv: 1043s # * @object: A #OrgProjectUsefulInterface. 1043s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1043s # * 1043s # * 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. 1043s # * 1043s # * This method will free @invocation, you cannot use it afterwards. 1043s # */ 1043s # void 1043s # org_project_useful_interface_complete_single_arg_method_asv ( 1043s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1043s # GDBusMethodInvocation *invocation) 1043s # { 1043s # g_dbus_method_invocation_return_value (invocation, 1043s # g_variant_new ("()")); 1043s # } 1043s # 1043s # /* ------------------------------------------------------------------------ */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceProxy: 1043s # * 1043s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceProxyClass: 1043s # * @parent_class: The parent class. 1043s # * 1043s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1043s # */ 1043s # 1043s # struct _OrgProjectUsefulInterfaceProxyPrivate 1043s # { 1043s # GData *qdata; 1043s # }; 1043s # 1043s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1043s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1043s # 1043s # #else 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1043s # 1043s # #endif 1043s # static void 1043s # org_project_useful_interface_proxy_finalize (GObject *object) 1043s # { 1043s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1043s # g_datalist_clear (&proxy->priv->qdata); 1043s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1043s # guint prop_id G_GNUC_UNUSED, 1043s # GValue *value G_GNUC_UNUSED, 1043s # GParamSpec *pspec G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1043s # guint prop_id G_GNUC_UNUSED, 1043s # const GValue *value G_GNUC_UNUSED, 1043s # GParamSpec *pspec G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1043s # const gchar *sender_name G_GNUC_UNUSED, 1043s # const gchar *signal_name, 1043s # GVariant *parameters) 1043s # { 1043s # _ExtendedGDBusSignalInfo *info; 1043s # GVariantIter iter; 1043s # GVariant *child; 1043s # GValue *paramv; 1043s # gsize num_params; 1043s # gsize n; 1043s # guint signal_id; 1043s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1043s # if (info == NULL) 1043s # return; 1043s # num_params = g_variant_n_children (parameters); 1043s # paramv = g_new0 (GValue, num_params + 1); 1043s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_set_object (¶mv[0], proxy); 1043s # g_variant_iter_init (&iter, parameters); 1043s # n = 1; 1043s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1043s # { 1043s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1043s # if (arg_info->use_gvariant) 1043s # { 1043s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1043s # g_value_set_variant (¶mv[n], child); 1043s # n++; 1043s # } 1043s # else 1043s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1043s # g_variant_unref (child); 1043s # } 1043s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_signal_emitv (paramv, signal_id, 0, NULL); 1043s # for (n = 0; n < num_params + 1; n++) 1043s # g_value_unset (¶mv[n]); 1043s # g_free (paramv); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1043s # GVariant *changed_properties, 1043s # const gchar *const *invalidated_properties) 1043s # { 1043s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1043s # guint n; 1043s # const gchar *key; 1043s # GVariantIter *iter; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # g_variant_get (changed_properties, "a{sv}", &iter); 1043s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1043s # { 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1043s # g_datalist_remove_data (&proxy->priv->qdata, key); 1043s # if (info != NULL) 1043s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1043s # } 1043s # g_variant_iter_free (iter); 1043s # for (n = 0; invalidated_properties[n] != NULL; n++) 1043s # { 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1043s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1043s # if (info != NULL) 1043s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1043s # } 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1043s # { 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1043s # #else 1043s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1043s # #endif 1043s # 1043s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1043s # { 1043s # GObjectClass *gobject_class; 1043s # GDBusProxyClass *proxy_class; 1043s # 1043s # gobject_class = G_OBJECT_CLASS (klass); 1043s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1043s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1043s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1043s # 1043s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1043s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1043s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1043s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1043s # #endif 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new: 1043s # * @connection: A #GDBusConnection. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1043s # * 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1043s # */ 1043s # void 1043s # org_project_useful_interface_proxy_new ( 1043s # GDBusConnection *connection, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_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); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_finish: 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_finish ( 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GObject *ret; 1043s # GObject *source_object; 1043s # source_object = g_async_result_get_source_object (res); 1043s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1043s # g_object_unref (source_object); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_sync: 1043s # * @connection: A #GDBusConnection. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1043s # * 1043s # * The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_sync ( 1043s # GDBusConnection *connection, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GInitable *ret; 1043s # 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); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus: 1043s # * @bus_type: A #GBusType. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: A bus name (well-known or unique). 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1043s # * @user_data: User data to pass to @callback. 1043s # * 1043s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1043s # * 1043s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1043s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1043s # */ 1043s # void 1043s # org_project_useful_interface_proxy_new_for_bus ( 1043s # GBusType bus_type, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GAsyncReadyCallback callback, 1043s # gpointer user_data) 1043s # { 1043s # g_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); 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus_finish: 1043s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_for_bus_finish ( 1043s # GAsyncResult *res, 1043s # GError **error) 1043s # { 1043s # GObject *ret; 1043s # GObject *source_object; 1043s # source_object = g_async_result_get_source_object (res); 1043s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1043s # g_object_unref (source_object); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_proxy_new_for_bus_sync: 1043s # * @bus_type: A #GBusType. 1043s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1043s # * @name: A bus name (well-known or unique). 1043s # * @object_path: An object path. 1043s # * @cancellable: (nullable): A #GCancellable or %NULL. 1043s # * @error: Return location for error or %NULL 1043s # * 1043s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1043s # * 1043s # * The calling thread is blocked until a reply is received. 1043s # * 1043s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_proxy_new_for_bus_sync ( 1043s # GBusType bus_type, 1043s # GDBusProxyFlags flags, 1043s # const gchar *name, 1043s # const gchar *object_path, 1043s # GCancellable *cancellable, 1043s # GError **error) 1043s # { 1043s # GInitable *ret; 1043s # 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); 1043s # if (ret != NULL) 1043s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1043s # else 1043s # return NULL; 1043s # } 1043s # 1043s # 1043s # /* ------------------------------------------------------------------------ */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceSkeleton: 1043s # * 1043s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1043s # */ 1043s # 1043s # /** 1043s # * OrgProjectUsefulInterfaceSkeletonClass: 1043s # * @parent_class: The parent class. 1043s # * 1043s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1043s # */ 1043s # 1043s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1043s # { 1043s # GValue *properties; 1043s # GList *changed_properties; 1043s # GSource *changed_properties_idle_source; 1043s # GMainContext *context; 1043s # GMutex lock; 1043s # }; 1043s # 1043s # static void 1043s # _org_project_useful_interface_skeleton_handle_method_call ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name, 1043s # const gchar *method_name, 1043s # GVariant *parameters, 1043s # GDBusMethodInvocation *invocation, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # _ExtendedGDBusMethodInfo *info; 1043s # GVariantIter iter; 1043s # GVariant *child; 1043s # GValue *paramv; 1043s # gsize num_params; 1043s # guint num_extra; 1043s # gsize n; 1043s # guint signal_id; 1043s # GValue return_value = G_VALUE_INIT; 1043s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1043s # g_assert (info != NULL); 1043s # num_params = g_variant_n_children (parameters); 1043s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1043s # n = 0; 1043s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_set_object (¶mv[n++], skeleton); 1043s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1043s # g_value_set_object (¶mv[n++], invocation); 1043s # if (info->pass_fdlist) 1043s # { 1043s # #ifdef G_OS_UNIX 1043s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1043s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1043s # #else 1043s # g_assert_not_reached (); 1043s # #endif 1043s # } 1043s # g_variant_iter_init (&iter, parameters); 1043s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1043s # { 1043s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1043s # if (arg_info->use_gvariant) 1043s # { 1043s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1043s # g_value_set_variant (¶mv[n], child); 1043s # n++; 1043s # } 1043s # else 1043s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1043s # g_variant_unref (child); 1043s # } 1043s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1043s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1043s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1043s # if (!g_value_get_boolean (&return_value)) 1043s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1043s # g_value_unset (&return_value); 1043s # for (n = 0; n < num_params + num_extra; n++) 1043s # g_value_unset (¶mv[n]); 1043s # g_free (paramv); 1043s # } 1043s # 1043s # static GVariant * 1043s # _org_project_useful_interface_skeleton_handle_get_property ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name G_GNUC_UNUSED, 1043s # const gchar *property_name, 1043s # GError **error, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # GValue value = G_VALUE_INIT; 1043s # GParamSpec *pspec; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # GVariant *ret; 1043s # ret = NULL; 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1043s # g_assert (info != NULL); 1043s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1043s # if (pspec == NULL) 1043s # { 1043s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1043s # } 1043s # else 1043s # { 1043s # g_value_init (&value, pspec->value_type); 1043s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1043s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1043s # g_value_unset (&value); 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static gboolean 1043s # _org_project_useful_interface_skeleton_handle_set_property ( 1043s # GDBusConnection *connection G_GNUC_UNUSED, 1043s # const gchar *sender G_GNUC_UNUSED, 1043s # const gchar *object_path G_GNUC_UNUSED, 1043s # const gchar *interface_name G_GNUC_UNUSED, 1043s # const gchar *property_name, 1043s # GVariant *variant, 1043s # GError **error, 1043s # gpointer user_data) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1043s # GValue value = G_VALUE_INIT; 1043s # GParamSpec *pspec; 1043s # _ExtendedGDBusPropertyInfo *info; 1043s # gboolean ret; 1043s # ret = FALSE; 1043s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1043s # g_assert (info != NULL); 1043s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1043s # if (pspec == NULL) 1043s # { 1043s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1043s # } 1043s # else 1043s # { 1043s # if (info->use_gvariant) 1043s # g_value_set_variant (&value, variant); 1043s # else 1043s # g_dbus_gvariant_to_gvalue (variant, &value); 1043s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1043s # g_value_unset (&value); 1043s # ret = TRUE; 1043s # } 1043s # return ret; 1043s # } 1043s # 1043s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1043s # { 1043s # _org_project_useful_interface_skeleton_handle_method_call, 1043s # _org_project_useful_interface_skeleton_handle_get_property, 1043s # _org_project_useful_interface_skeleton_handle_set_property, 1043s # {NULL} 1043s # }; 1043s # 1043s # static GDBusInterfaceInfo * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1043s # { 1043s # return org_project_useful_interface_interface_info (); 1043s # } 1043s # 1043s # static GDBusInterfaceVTable * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1043s # { 1043s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1043s # } 1043s # 1043s # static GVariant * 1043s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1043s # 1043s # GVariantBuilder builder; 1043s # guint n; 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1043s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1043s # #else 1043s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1043s # #endif 1043s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1043s # goto out; 1043s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1043s # { 1043s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1043s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1043s # { 1043s # GVariant *value; 1043s # 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); 1043s # if (value != NULL) 1043s # { 1043s # g_variant_take_ref (value); 1043s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1043s # g_variant_unref (value); 1043s # } 1043s # } 1043s # } 1043s # out: 1043s # return g_variant_builder_end (&builder); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1043s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1043s # 1043s # #else 1043s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1043s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1043s # 1043s # #endif 1043s # static void 1043s # org_project_useful_interface_skeleton_finalize (GObject *object) 1043s # { 1043s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1043s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1043s # if (skeleton->priv->changed_properties_idle_source != NULL) 1043s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1043s # g_main_context_unref (skeleton->priv->context); 1043s # g_mutex_clear (&skeleton->priv->lock); 1043s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1043s # { 1043s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1043s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1043s # #else 1043s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1043s # #endif 1043s # 1043s # g_mutex_init (&skeleton->priv->lock); 1043s # skeleton->priv->context = g_main_context_ref_thread_default (); 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1043s # { 1043s # GObjectClass *gobject_class; 1043s # GDBusInterfaceSkeletonClass *skeleton_class; 1043s # 1043s # gobject_class = G_OBJECT_CLASS (klass); 1043s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1043s # 1043s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1043s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1043s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1043s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1043s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1043s # 1043s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1043s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1043s # #endif 1043s # } 1043s # 1043s # static void 1043s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1043s # { 1043s # } 1043s # 1043s # /** 1043s # * org_project_useful_interface_skeleton_new: 1043s # * 1043s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1043s # * 1043s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1043s # */ 1043s # OrgProjectUsefulInterface * 1043s # org_project_useful_interface_skeleton_new (void) 1043s # { 1043s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1043s # } 1043s # Error: 1044s ok 11 __main__.TestCodegen.test_generate_methods_marshaller_single_typed_out_args 1044s # gdbus-codegen: /usr/bin/gdbus-codegen 1044s # tmpdir: /tmp/tmp2adpb45_ 1044s # /tmp/tmp2adpb45_/tmpf_6l9mdo.xml: 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2adpb45_/tmpf_6l9mdo.xml', '--output', '-', '--body'] 1044s # Return code: 0 1044s # Output: 1044s # /* 1044s # * This file is generated by gdbus-codegen, do not modify it. 1044s # * 1044s # * The license of this code is the same as for the D-Bus interface description 1044s # * it was derived from. Note that it links to GLib, so must comply with the 1044s # * LGPL linking clauses. 1044s # */ 1044s # 1044s # #ifdef HAVE_CONFIG_H 1044s # # include "config.h" 1044s # #endif 1044s # 1044s # #include 1044s # #ifdef G_OS_UNIX 1044s # # include 1044s # #endif 1044s # 1044s # #ifdef G_ENABLE_DEBUG 1044s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1044s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1044s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1044s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1044s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1044s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1044s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1044s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1044s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1044s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1044s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1044s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1044s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1044s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1044s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1044s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1044s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1044s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1044s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1044s # #else /* !G_ENABLE_DEBUG */ 1044s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1044s # * Do not access GValues directly in your code. Instead, use the 1044s # * g_value_get_*() functions 1044s # */ 1044s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1044s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1044s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1044s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1044s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1044s # #endif /* !G_ENABLE_DEBUG */ 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusArgInfo parent_struct; 1044s # gboolean use_gvariant; 1044s # } _ExtendedGDBusArgInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusMethodInfo parent_struct; 1044s # const gchar *signal_name; 1044s # gboolean pass_fdlist; 1044s # } _ExtendedGDBusMethodInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusSignalInfo parent_struct; 1044s # const gchar *signal_name; 1044s # } _ExtendedGDBusSignalInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusPropertyInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # guint use_gvariant : 1; 1044s # guint emits_changed_signal : 1; 1044s # } _ExtendedGDBusPropertyInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusInterfaceInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # } _ExtendedGDBusInterfaceInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # const _ExtendedGDBusPropertyInfo *info; 1044s # guint prop_id; 1044s # GValue orig_value; /* the value before the change */ 1044s # } ChangedProperty; 1044s # 1044s # static void 1044s # _changed_property_free (ChangedProperty *data) 1044s # { 1044s # g_value_unset (&data->orig_value); 1044s # g_free (data); 1044s # } 1044s # 1044s # static gboolean 1044s # _g_strv_equal0 (gchar **a, gchar **b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # guint n; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # if (g_strv_length (a) != g_strv_length (b)) 1044s # goto out; 1044s # for (n = 0; a[n] != NULL; n++) 1044s # if (g_strcmp0 (a[n], b[n]) != 0) 1044s # goto out; 1044s # ret = TRUE; 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _g_variant_equal0 (GVariant *a, GVariant *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # ret = g_variant_equal (a, b); 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # G_GNUC_UNUSED static gboolean 1044s # _g_value_equal (const GValue *a, const GValue *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1044s # switch (G_VALUE_TYPE (a)) 1044s # { 1044s # case G_TYPE_BOOLEAN: 1044s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1044s # break; 1044s # case G_TYPE_UCHAR: 1044s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1044s # break; 1044s # case G_TYPE_INT: 1044s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1044s # break; 1044s # case G_TYPE_UINT: 1044s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1044s # break; 1044s # case G_TYPE_INT64: 1044s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1044s # break; 1044s # case G_TYPE_UINT64: 1044s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1044s # break; 1044s # case G_TYPE_DOUBLE: 1044s # { 1044s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1044s # gdouble da = g_value_get_double (a); 1044s # gdouble db = g_value_get_double (b); 1044s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1044s # } 1044s # break; 1044s # case G_TYPE_STRING: 1044s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1044s # break; 1044s # case G_TYPE_VARIANT: 1044s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1044s # break; 1044s # default: 1044s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1044s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1044s # else 1044s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1044s # break; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static void 1044s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint G_GNUC_UNUSED, 1044s # void *marshal_data) 1044s # { 1044s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1044s # (void *data1, 1044s # GDBusMethodInvocation *arg_method_invocation, 1044s # void *data2); 1044s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1044s # GCClosure *cc = (GCClosure*) closure; 1044s # void *data1, *data2; 1044s # gboolean v_return; 1044s # 1044s # g_return_if_fail (return_value != NULL); 1044s # g_return_if_fail (n_param_values == 2); 1044s # 1044s # if (G_CCLOSURE_SWAP_DATA (closure)) 1044s # { 1044s # data1 = closure->data; 1044s # data2 = g_value_peek_pointer (param_values + 0); 1044s # } 1044s # else 1044s # { 1044s # data1 = g_value_peek_pointer (param_values + 0); 1044s # data2 = closure->data; 1044s # } 1044s # 1044s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1044s # (marshal_data ? marshal_data : cc->callback); 1044s # 1044s # v_return = 1044s # callback (data1, 1044s # g_marshal_value_peek_object (param_values + 1), 1044s # data2); 1044s # 1044s # g_value_set_boolean (return_value, v_return); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ 1044s # * Code for interface org.project.UsefulInterface 1044s # * ------------------------------------------------------------------------ 1044s # */ 1044s # 1044s # /** 1044s # * SECTION:OrgProjectUsefulInterface 1044s # * @title: OrgProjectUsefulInterface 1044s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1044s # * 1044s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1044s # */ 1044s # 1044s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_arg_b = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "arg_b", 1044s # (gchar *) "b", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_pointers[] = 1044s # { 1044s # &_org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_arg_b.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_b = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "SingleArgMethodB", 1044s # NULL, 1044s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_pointers, 1044s # NULL 1044s # }, 1044s # "handle-single-arg-method-b", 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1044s # { 1044s # &_org_project_useful_interface_method_info_single_arg_method_b.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "org.project.UsefulInterface", 1044s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1044s # NULL, 1044s # NULL, 1044s # NULL 1044s # }, 1044s # "org-project-useful-interface", 1044s # }; 1044s # 1044s # 1044s # /** 1044s # * org_project_useful_interface_interface_info: 1044s # * 1044s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1044s # * 1044s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1044s # */ 1044s # GDBusInterfaceInfo * 1044s # org_project_useful_interface_interface_info (void) 1044s # { 1044s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_override_properties: 1044s # * @klass: The class structure for a #GObject derived class. 1044s # * @property_id_begin: The property id to assign to the first overridden property. 1044s # * 1044s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1044s # * The properties are overridden in the order they are defined. 1044s # * 1044s # * Returns: The last property id. 1044s # */ 1044s # guint 1044s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1044s # { 1044s # return property_id_begin - 1; 1044s # } 1044s # 1044s # 1044s # inline static void 1044s # org_project_useful_interface_method_marshal_single_arg_method_b ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterface: 1044s # * 1044s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceIface: 1044s # * @parent_iface: The parent interface. 1044s # * @handle_single_arg_method_b: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-b signal. 1044s # * 1044s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1044s # */ 1044s # 1044s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1044s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1044s # 1044s # static void 1044s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1044s # { 1044s # /* GObject signals for incoming D-Bus method calls: */ 1044s # /** 1044s # * OrgProjectUsefulInterface::handle-single-arg-method-b: 1044s # * @object: A #OrgProjectUsefulInterface. 1044s # * @invocation: A #GDBusMethodInvocation. 1044s # * 1044s # * Signal emitted when a remote caller is invoking the SingleArgMethodB() D-Bus method. 1044s # * 1044s # * 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. 1044s # * 1044s # * 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. 1044s # */ 1044s # g_signal_new ("handle-single-arg-method-b", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_b), 1044s # g_signal_accumulator_true_handled, 1044s # NULL, 1044s # org_project_useful_interface_method_marshal_single_arg_method_b, 1044s # G_TYPE_BOOLEAN, 1044s # 1, 1044s # G_TYPE_DBUS_METHOD_INVOCATION); 1044s # 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_b: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously invokes the SingleArgMethodB() D-Bus method on @proxy. 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_call_single_arg_method_b_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_call_single_arg_method_b_sync() for the synchronous, blocking version of this method. 1044s # */ 1044s # void 1044s # org_project_useful_interface_call_single_arg_method_b ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1044s # "SingleArgMethodB", 1044s # g_variant_new ("()"), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # callback, 1044s # user_data); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_b_finish: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @out_arg_b: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_b(). 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_b(). 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_useful_interface_call_single_arg_method_b_finish ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # gboolean *out_arg_b, 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "(b)", 1044s # out_arg_b); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_b_sync: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @out_arg_b: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Synchronously invokes the SingleArgMethodB() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_call_single_arg_method_b() for the asynchronous version of this method. 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_useful_interface_call_single_arg_method_b_sync ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # gboolean *out_arg_b, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1044s # "SingleArgMethodB", 1044s # g_variant_new ("()"), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "(b)", 1044s # out_arg_b); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_complete_single_arg_method_b: 1044s # * @object: A #OrgProjectUsefulInterface. 1044s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1044s # * @arg_b: Parameter to return. 1044s # * 1044s # * 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. 1044s # * 1044s # * This method will free @invocation, you cannot use it afterwards. 1044s # */ 1044s # void 1044s # org_project_useful_interface_complete_single_arg_method_b ( 1044s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1044s # GDBusMethodInvocation *invocation, 1044s # gboolean arg_b) 1044s # { 1044s # g_dbus_method_invocation_return_value (invocation, 1044s # g_variant_new ("(b)", 1044s # arg_b)); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceProxy: 1044s # * 1044s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceProxyClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1044s # */ 1044s # 1044s # struct _OrgProjectUsefulInterfaceProxyPrivate 1044s # { 1044s # GData *qdata; 1044s # }; 1044s # 1044s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_useful_interface_proxy_finalize (GObject *object) 1044s # { 1044s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1044s # g_datalist_clear (&proxy->priv->qdata); 1044s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # const GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1044s # const gchar *sender_name G_GNUC_UNUSED, 1044s # const gchar *signal_name, 1044s # GVariant *parameters) 1044s # { 1044s # _ExtendedGDBusSignalInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # gsize n; 1044s # guint signal_id; 1044s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1044s # if (info == NULL) 1044s # return; 1044s # num_params = g_variant_n_children (parameters); 1044s # paramv = g_new0 (GValue, num_params + 1); 1044s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_set_object (¶mv[0], proxy); 1044s # g_variant_iter_init (&iter, parameters); 1044s # n = 1; 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_signal_emitv (paramv, signal_id, 0, NULL); 1044s # for (n = 0; n < num_params + 1; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1044s # GVariant *changed_properties, 1044s # const gchar *const *invalidated_properties) 1044s # { 1044s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1044s # guint n; 1044s # const gchar *key; 1044s # GVariantIter *iter; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # g_variant_get (changed_properties, "a{sv}", &iter); 1044s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1044s # g_datalist_remove_data (&proxy->priv->qdata, key); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # g_variant_iter_free (iter); 1044s # for (n = 0; invalidated_properties[n] != NULL; n++) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1044s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1044s # #else 1044s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1044s # #endif 1044s # 1044s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusProxyClass *proxy_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1044s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1044s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1044s # 1044s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1044s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1044s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_useful_interface_proxy_new ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_sync: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_sync ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_useful_interface_proxy_new_for_bus ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_for_bus_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus_sync: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_for_bus_sync ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceSkeleton: 1044s # * 1044s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceSkeletonClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1044s # */ 1044s # 1044s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1044s # { 1044s # GValue *properties; 1044s # GList *changed_properties; 1044s # GSource *changed_properties_idle_source; 1044s # GMainContext *context; 1044s # GMutex lock; 1044s # }; 1044s # 1044s # static void 1044s # _org_project_useful_interface_skeleton_handle_method_call ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name, 1044s # const gchar *method_name, 1044s # GVariant *parameters, 1044s # GDBusMethodInvocation *invocation, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # _ExtendedGDBusMethodInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # guint num_extra; 1044s # gsize n; 1044s # guint signal_id; 1044s # GValue return_value = G_VALUE_INIT; 1044s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1044s # g_assert (info != NULL); 1044s # num_params = g_variant_n_children (parameters); 1044s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1044s # n = 0; 1044s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_set_object (¶mv[n++], skeleton); 1044s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1044s # g_value_set_object (¶mv[n++], invocation); 1044s # if (info->pass_fdlist) 1044s # { 1044s # #ifdef G_OS_UNIX 1044s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1044s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1044s # #else 1044s # g_assert_not_reached (); 1044s # #endif 1044s # } 1044s # g_variant_iter_init (&iter, parameters); 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1044s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1044s # if (!g_value_get_boolean (&return_value)) 1044s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1044s # g_value_unset (&return_value); 1044s # for (n = 0; n < num_params + num_extra; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static GVariant * 1044s # _org_project_useful_interface_skeleton_handle_get_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # GVariant *ret; 1044s # ret = NULL; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # g_value_init (&value, pspec->value_type); 1044s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1044s # g_value_unset (&value); 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _org_project_useful_interface_skeleton_handle_set_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GVariant *variant, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # gboolean ret; 1044s # ret = FALSE; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # if (info->use_gvariant) 1044s # g_value_set_variant (&value, variant); 1044s # else 1044s # g_dbus_gvariant_to_gvalue (variant, &value); 1044s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # g_value_unset (&value); 1044s # ret = TRUE; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1044s # { 1044s # _org_project_useful_interface_skeleton_handle_method_call, 1044s # _org_project_useful_interface_skeleton_handle_get_property, 1044s # _org_project_useful_interface_skeleton_handle_set_property, 1044s # {NULL} 1044s # }; 1044s # 1044s # static GDBusInterfaceInfo * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return org_project_useful_interface_interface_info (); 1044s # } 1044s # 1044s # static GDBusInterfaceVTable * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1044s # } 1044s # 1044s # static GVariant * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1044s # 1044s # GVariantBuilder builder; 1044s # guint n; 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1044s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #else 1044s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #endif 1044s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1044s # goto out; 1044s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1044s # { 1044s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1044s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1044s # { 1044s # GVariant *value; 1044s # 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); 1044s # if (value != NULL) 1044s # { 1044s # g_variant_take_ref (value); 1044s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1044s # g_variant_unref (value); 1044s # } 1044s # } 1044s # } 1044s # out: 1044s # return g_variant_builder_end (&builder); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_useful_interface_skeleton_finalize (GObject *object) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1044s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1044s # if (skeleton->priv->changed_properties_idle_source != NULL) 1044s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1044s # g_main_context_unref (skeleton->priv->context); 1044s # g_mutex_clear (&skeleton->priv->lock); 1044s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1044s # #else 1044s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1044s # #endif 1044s # 1044s # g_mutex_init (&skeleton->priv->lock); 1044s # skeleton->priv->context = g_main_context_ref_thread_default (); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusInterfaceSkeletonClass *skeleton_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1044s # 1044s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1044s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1044s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1044s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1044s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_skeleton_new: 1044s # * 1044s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_skeleton_new (void) 1044s # { 1044s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1044s # } 1044s # Error: 1044s # 1044s # /tmp/tmp2adpb45_/tmpt7s_huyj.xml: 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2adpb45_/tmpt7s_huyj.xml', '--output', '-', '--body'] 1044s # Return code: 0 1044s # Output: 1044s # /* 1044s # * This file is generated by gdbus-codegen, do not modify it. 1044s # * 1044s # * The license of this code is the same as for the D-Bus interface description 1044s # * it was derived from. Note that it links to GLib, so must comply with the 1044s # * LGPL linking clauses. 1044s # */ 1044s # 1044s # #ifdef HAVE_CONFIG_H 1044s # # include "config.h" 1044s # #endif 1044s # 1044s # #include 1044s # #ifdef G_OS_UNIX 1044s # # include 1044s # #endif 1044s # 1044s # #ifdef G_ENABLE_DEBUG 1044s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1044s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1044s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1044s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1044s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1044s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1044s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1044s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1044s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1044s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1044s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1044s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1044s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1044s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1044s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1044s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1044s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1044s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1044s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1044s # #else /* !G_ENABLE_DEBUG */ 1044s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1044s # * Do not access GValues directly in your code. Instead, use the 1044s # * g_value_get_*() functions 1044s # */ 1044s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1044s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1044s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1044s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1044s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1044s # #endif /* !G_ENABLE_DEBUG */ 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusArgInfo parent_struct; 1044s # gboolean use_gvariant; 1044s # } _ExtendedGDBusArgInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusMethodInfo parent_struct; 1044s # const gchar *signal_name; 1044s # gboolean pass_fdlist; 1044s # } _ExtendedGDBusMethodInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusSignalInfo parent_struct; 1044s # const gchar *signal_name; 1044s # } _ExtendedGDBusSignalInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusPropertyInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # guint use_gvariant : 1; 1044s # guint emits_changed_signal : 1; 1044s # } _ExtendedGDBusPropertyInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusInterfaceInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # } _ExtendedGDBusInterfaceInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # const _ExtendedGDBusPropertyInfo *info; 1044s # guint prop_id; 1044s # GValue orig_value; /* the value before the change */ 1044s # } ChangedProperty; 1044s # 1044s # static void 1044s # _changed_property_free (ChangedProperty *data) 1044s # { 1044s # g_value_unset (&data->orig_value); 1044s # g_free (data); 1044s # } 1044s # 1044s # static gboolean 1044s # _g_strv_equal0 (gchar **a, gchar **b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # guint n; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # if (g_strv_length (a) != g_strv_length (b)) 1044s # goto out; 1044s # for (n = 0; a[n] != NULL; n++) 1044s # if (g_strcmp0 (a[n], b[n]) != 0) 1044s # goto out; 1044s # ret = TRUE; 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _g_variant_equal0 (GVariant *a, GVariant *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # ret = g_variant_equal (a, b); 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # G_GNUC_UNUSED static gboolean 1044s # _g_value_equal (const GValue *a, const GValue *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1044s # switch (G_VALUE_TYPE (a)) 1044s # { 1044s # case G_TYPE_BOOLEAN: 1044s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1044s # break; 1044s # case G_TYPE_UCHAR: 1044s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1044s # break; 1044s # case G_TYPE_INT: 1044s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1044s # break; 1044s # case G_TYPE_UINT: 1044s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1044s # break; 1044s # case G_TYPE_INT64: 1044s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1044s # break; 1044s # case G_TYPE_UINT64: 1044s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1044s # break; 1044s # case G_TYPE_DOUBLE: 1044s # { 1044s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1044s # gdouble da = g_value_get_double (a); 1044s # gdouble db = g_value_get_double (b); 1044s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1044s # } 1044s # break; 1044s # case G_TYPE_STRING: 1044s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1044s # break; 1044s # case G_TYPE_VARIANT: 1044s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1044s # break; 1044s # default: 1044s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1044s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1044s # else 1044s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1044s # break; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static void 1044s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint G_GNUC_UNUSED, 1044s # void *marshal_data) 1044s # { 1044s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1044s # (void *data1, 1044s # GDBusMethodInvocation *arg_method_invocation, 1044s # void *data2); 1044s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1044s # GCClosure *cc = (GCClosure*) closure; 1044s # void *data1, *data2; 1044s # gboolean v_return; 1044s # 1044s # g_return_if_fail (return_value != NULL); 1044s # g_return_if_fail (n_param_values == 2); 1044s # 1044s # if (G_CCLOSURE_SWAP_DATA (closure)) 1044s # { 1044s # data1 = closure->data; 1044s # data2 = g_value_peek_pointer (param_values + 0); 1044s # } 1044s # else 1044s # { 1044s # data1 = g_value_peek_pointer (param_values + 0); 1044s # data2 = closure->data; 1044s # } 1044s # 1044s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1044s # (marshal_data ? marshal_data : cc->callback); 1044s # 1044s # v_return = 1044s # callback (data1, 1044s # g_marshal_value_peek_object (param_values + 1), 1044s # data2); 1044s # 1044s # g_value_set_boolean (return_value, v_return); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ 1044s # * Code for interface org.project.UsefulInterface 1044s # * ------------------------------------------------------------------------ 1044s # */ 1044s # 1044s # /** 1044s # * SECTION:OrgProjectUsefulInterface 1044s # * @title: OrgProjectUsefulInterface 1044s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1044s # * 1044s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1044s # */ 1044s # 1044s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_arg_y = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "arg_y", 1044s # (gchar *) "y", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_pointers[] = 1044s # { 1044s # &_org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_arg_y.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_y = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "SingleArgMethodY", 1044s # NULL, 1044s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_pointers, 1044s # NULL 1044s # }, 1044s # "handle-single-arg-method-y", 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1044s # { 1044s # &_org_project_useful_interface_method_info_single_arg_method_y.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "org.project.UsefulInterface", 1044s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1044s # NULL, 1044s # NULL, 1044s # NULL 1044s # }, 1044s # "org-project-useful-interface", 1044s # }; 1044s # 1044s # 1044s # /** 1044s # * org_project_useful_interface_interface_info: 1044s # * 1044s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1044s # * 1044s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1044s # */ 1044s # GDBusInterfaceInfo * 1044s # org_project_useful_interface_interface_info (void) 1044s # { 1044s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_override_properties: 1044s # * @klass: The class structure for a #GObject derived class. 1044s # * @property_id_begin: The property id to assign to the first overridden property. 1044s # * 1044s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1044s # * The properties are overridden in the order they are defined. 1044s # * 1044s # * Returns: The last property id. 1044s # */ 1044s # guint 1044s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1044s # { 1044s # return property_id_begin - 1; 1044s # } 1044s # 1044s # 1044s # inline static void 1044s # org_project_useful_interface_method_marshal_single_arg_method_y ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterface: 1044s # * 1044s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceIface: 1044s # * @parent_iface: The parent interface. 1044s # * @handle_single_arg_method_y: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-y signal. 1044s # * 1044s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1044s # */ 1044s # 1044s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1044s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1044s # 1044s # static void 1044s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1044s # { 1044s # /* GObject signals for incoming D-Bus method calls: */ 1044s # /** 1044s # * OrgProjectUsefulInterface::handle-single-arg-method-y: 1044s # * @object: A #OrgProjectUsefulInterface. 1044s # * @invocation: A #GDBusMethodInvocation. 1044s # * 1044s # * Signal emitted when a remote caller is invoking the SingleArgMethodY() D-Bus method. 1044s # * 1044s # * 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. 1044s # * 1044s # * 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. 1044s # */ 1044s # g_signal_new ("handle-single-arg-method-y", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_y), 1044s # g_signal_accumulator_true_handled, 1044s # NULL, 1044s # org_project_useful_interface_method_marshal_single_arg_method_y, 1044s # G_TYPE_BOOLEAN, 1044s # 1, 1044s # G_TYPE_DBUS_METHOD_INVOCATION); 1044s # 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_y: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously invokes the SingleArgMethodY() D-Bus method on @proxy. 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_call_single_arg_method_y_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_call_single_arg_method_y_sync() for the synchronous, blocking version of this method. 1044s # */ 1044s # void 1044s # org_project_useful_interface_call_single_arg_method_y ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1044s # "SingleArgMethodY", 1044s # g_variant_new ("()"), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # callback, 1044s # user_data); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_y_finish: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @out_arg_y: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_y(). 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_y(). 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_useful_interface_call_single_arg_method_y_finish ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # guchar *out_arg_y, 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "(y)", 1044s # out_arg_y); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_y_sync: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @out_arg_y: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Synchronously invokes the SingleArgMethodY() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_call_single_arg_method_y() for the asynchronous version of this method. 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_useful_interface_call_single_arg_method_y_sync ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # guchar *out_arg_y, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1044s # "SingleArgMethodY", 1044s # g_variant_new ("()"), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "(y)", 1044s # out_arg_y); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_complete_single_arg_method_y: 1044s # * @object: A #OrgProjectUsefulInterface. 1044s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1044s # * @arg_y: Parameter to return. 1044s # * 1044s # * 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. 1044s # * 1044s # * This method will free @invocation, you cannot use it afterwards. 1044s # */ 1044s # void 1044s # org_project_useful_interface_complete_single_arg_method_y ( 1044s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1044s # GDBusMethodInvocation *invocation, 1044s # guchar arg_y) 1044s # { 1044s # g_dbus_method_invocation_return_value (invocation, 1044s # g_variant_new ("(y)", 1044s # arg_y)); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceProxy: 1044s # * 1044s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceProxyClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1044s # */ 1044s # 1044s # struct _OrgProjectUsefulInterfaceProxyPrivate 1044s # { 1044s # GData *qdata; 1044s # }; 1044s # 1044s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_useful_interface_proxy_finalize (GObject *object) 1044s # { 1044s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1044s # g_datalist_clear (&proxy->priv->qdata); 1044s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # const GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1044s # const gchar *sender_name G_GNUC_UNUSED, 1044s # const gchar *signal_name, 1044s # GVariant *parameters) 1044s # { 1044s # _ExtendedGDBusSignalInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # gsize n; 1044s # guint signal_id; 1044s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1044s # if (info == NULL) 1044s # return; 1044s # num_params = g_variant_n_children (parameters); 1044s # paramv = g_new0 (GValue, num_params + 1); 1044s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_set_object (¶mv[0], proxy); 1044s # g_variant_iter_init (&iter, parameters); 1044s # n = 1; 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_signal_emitv (paramv, signal_id, 0, NULL); 1044s # for (n = 0; n < num_params + 1; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1044s # GVariant *changed_properties, 1044s # const gchar *const *invalidated_properties) 1044s # { 1044s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1044s # guint n; 1044s # const gchar *key; 1044s # GVariantIter *iter; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # g_variant_get (changed_properties, "a{sv}", &iter); 1044s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1044s # g_datalist_remove_data (&proxy->priv->qdata, key); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # g_variant_iter_free (iter); 1044s # for (n = 0; invalidated_properties[n] != NULL; n++) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1044s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1044s # #else 1044s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1044s # #endif 1044s # 1044s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusProxyClass *proxy_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1044s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1044s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1044s # 1044s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1044s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1044s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_useful_interface_proxy_new ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_sync: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_sync ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_useful_interface_proxy_new_for_bus ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_for_bus_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus_sync: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_for_bus_sync ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceSkeleton: 1044s # * 1044s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceSkeletonClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1044s # */ 1044s # 1044s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1044s # { 1044s # GValue *properties; 1044s # GList *changed_properties; 1044s # GSource *changed_properties_idle_source; 1044s # GMainContext *context; 1044s # GMutex lock; 1044s # }; 1044s # 1044s # static void 1044s # _org_project_useful_interface_skeleton_handle_method_call ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name, 1044s # const gchar *method_name, 1044s # GVariant *parameters, 1044s # GDBusMethodInvocation *invocation, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # _ExtendedGDBusMethodInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # guint num_extra; 1044s # gsize n; 1044s # guint signal_id; 1044s # GValue return_value = G_VALUE_INIT; 1044s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1044s # g_assert (info != NULL); 1044s # num_params = g_variant_n_children (parameters); 1044s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1044s # n = 0; 1044s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_set_object (¶mv[n++], skeleton); 1044s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1044s # g_value_set_object (¶mv[n++], invocation); 1044s # if (info->pass_fdlist) 1044s # { 1044s # #ifdef G_OS_UNIX 1044s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1044s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1044s # #else 1044s # g_assert_not_reached (); 1044s # #endif 1044s # } 1044s # g_variant_iter_init (&iter, parameters); 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1044s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1044s # if (!g_value_get_boolean (&return_value)) 1044s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1044s # g_value_unset (&return_value); 1044s # for (n = 0; n < num_params + num_extra; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static GVariant * 1044s # _org_project_useful_interface_skeleton_handle_get_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # GVariant *ret; 1044s # ret = NULL; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # g_value_init (&value, pspec->value_type); 1044s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1044s # g_value_unset (&value); 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _org_project_useful_interface_skeleton_handle_set_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GVariant *variant, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # gboolean ret; 1044s # ret = FALSE; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # if (info->use_gvariant) 1044s # g_value_set_variant (&value, variant); 1044s # else 1044s # g_dbus_gvariant_to_gvalue (variant, &value); 1044s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # g_value_unset (&value); 1044s # ret = TRUE; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1044s # { 1044s # _org_project_useful_interface_skeleton_handle_method_call, 1044s # _org_project_useful_interface_skeleton_handle_get_property, 1044s # _org_project_useful_interface_skeleton_handle_set_property, 1044s # {NULL} 1044s # }; 1044s # 1044s # static GDBusInterfaceInfo * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return org_project_useful_interface_interface_info (); 1044s # } 1044s # 1044s # static GDBusInterfaceVTable * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1044s # } 1044s # 1044s # static GVariant * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1044s # 1044s # GVariantBuilder builder; 1044s # guint n; 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1044s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #else 1044s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #endif 1044s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1044s # goto out; 1044s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1044s # { 1044s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1044s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1044s # { 1044s # GVariant *value; 1044s # 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); 1044s # if (value != NULL) 1044s # { 1044s # g_variant_take_ref (value); 1044s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1044s # g_variant_unref (value); 1044s # } 1044s # } 1044s # } 1044s # out: 1044s # return g_variant_builder_end (&builder); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_useful_interface_skeleton_finalize (GObject *object) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1044s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1044s # if (skeleton->priv->changed_properties_idle_source != NULL) 1044s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1044s # g_main_context_unref (skeleton->priv->context); 1044s # g_mutex_clear (&skeleton->priv->lock); 1044s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1044s # #else 1044s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1044s # #endif 1044s # 1044s # g_mutex_init (&skeleton->priv->lock); 1044s # skeleton->priv->context = g_main_context_ref_thread_default (); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusInterfaceSkeletonClass *skeleton_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1044s # 1044s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1044s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1044s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1044s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1044s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_skeleton_new: 1044s # * 1044s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_skeleton_new (void) 1044s # { 1044s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1044s # } 1044s # Error: 1044s # 1044s # /tmp/tmp2adpb45_/tmp4hqkdh02.xml: 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2adpb45_/tmp4hqkdh02.xml', '--output', '-', '--body'] 1044s # Return code: 0 1044s # Output: 1044s # /* 1044s # * This file is generated by gdbus-codegen, do not modify it. 1044s # * 1044s # * The license of this code is the same as for the D-Bus interface description 1044s # * it was derived from. Note that it links to GLib, so must comply with the 1044s # * LGPL linking clauses. 1044s # */ 1044s # 1044s # #ifdef HAVE_CONFIG_H 1044s # # include "config.h" 1044s # #endif 1044s # 1044s # #include 1044s # #ifdef G_OS_UNIX 1044s # # include 1044s # #endif 1044s # 1044s # #ifdef G_ENABLE_DEBUG 1044s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1044s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1044s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1044s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1044s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1044s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1044s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1044s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1044s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1044s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1044s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1044s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1044s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1044s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1044s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1044s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1044s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1044s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1044s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1044s # #else /* !G_ENABLE_DEBUG */ 1044s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1044s # * Do not access GValues directly in your code. Instead, use the 1044s # * g_value_get_*() functions 1044s # */ 1044s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1044s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1044s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1044s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1044s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1044s # #endif /* !G_ENABLE_DEBUG */ 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusArgInfo parent_struct; 1044s # gboolean use_gvariant; 1044s # } _ExtendedGDBusArgInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusMethodInfo parent_struct; 1044s # const gchar *signal_name; 1044s # gboolean pass_fdlist; 1044s # } _ExtendedGDBusMethodInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusSignalInfo parent_struct; 1044s # const gchar *signal_name; 1044s # } _ExtendedGDBusSignalInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusPropertyInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # guint use_gvariant : 1; 1044s # guint emits_changed_signal : 1; 1044s # } _ExtendedGDBusPropertyInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusInterfaceInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # } _ExtendedGDBusInterfaceInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # const _ExtendedGDBusPropertyInfo *info; 1044s # guint prop_id; 1044s # GValue orig_value; /* the value before the change */ 1044s # } ChangedProperty; 1044s # 1044s # static void 1044s # _changed_property_free (ChangedProperty *data) 1044s # { 1044s # g_value_unset (&data->orig_value); 1044s # g_free (data); 1044s # } 1044s # 1044s # static gboolean 1044s # _g_strv_equal0 (gchar **a, gchar **b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # guint n; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # if (g_strv_length (a) != g_strv_length (b)) 1044s # goto out; 1044s # for (n = 0; a[n] != NULL; n++) 1044s # if (g_strcmp0 (a[n], b[n]) != 0) 1044s # goto out; 1044s # ret = TRUE; 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _g_variant_equal0 (GVariant *a, GVariant *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # ret = g_variant_equal (a, b); 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # G_GNUC_UNUSED static gboolean 1044s # _g_value_equal (const GValue *a, const GValue *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1044s # switch (G_VALUE_TYPE (a)) 1044s # { 1044s # case G_TYPE_BOOLEAN: 1044s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1044s # break; 1044s # case G_TYPE_UCHAR: 1044s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1044s # break; 1044s # case G_TYPE_INT: 1044s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1044s # break; 1044s # case G_TYPE_UINT: 1044s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1044s # break; 1044s # case G_TYPE_INT64: 1044s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1044s # break; 1044s # case G_TYPE_UINT64: 1044s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1044s # break; 1044s # case G_TYPE_DOUBLE: 1044s # { 1044s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1044s # gdouble da = g_value_get_double (a); 1044s # gdouble db = g_value_get_double (b); 1044s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1044s # } 1044s # break; 1044s # case G_TYPE_STRING: 1044s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1044s # break; 1044s # case G_TYPE_VARIANT: 1044s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1044s # break; 1044s # default: 1044s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1044s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1044s # else 1044s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1044s # break; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static void 1044s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint G_GNUC_UNUSED, 1044s # void *marshal_data) 1044s # { 1044s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1044s # (void *data1, 1044s # GDBusMethodInvocation *arg_method_invocation, 1044s # void *data2); 1044s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1044s # GCClosure *cc = (GCClosure*) closure; 1044s # void *data1, *data2; 1044s # gboolean v_return; 1044s # 1044s # g_return_if_fail (return_value != NULL); 1044s # g_return_if_fail (n_param_values == 2); 1044s # 1044s # if (G_CCLOSURE_SWAP_DATA (closure)) 1044s # { 1044s # data1 = closure->data; 1044s # data2 = g_value_peek_pointer (param_values + 0); 1044s # } 1044s # else 1044s # { 1044s # data1 = g_value_peek_pointer (param_values + 0); 1044s # data2 = closure->data; 1044s # } 1044s # 1044s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1044s # (marshal_data ? marshal_data : cc->callback); 1044s # 1044s # v_return = 1044s # callback (data1, 1044s # g_marshal_value_peek_object (param_values + 1), 1044s # data2); 1044s # 1044s # g_value_set_boolean (return_value, v_return); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ 1044s # * Code for interface org.project.UsefulInterface 1044s # * ------------------------------------------------------------------------ 1044s # */ 1044s # 1044s # /** 1044s # * SECTION:OrgProjectUsefulInterface 1044s # * @title: OrgProjectUsefulInterface 1044s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1044s # * 1044s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1044s # */ 1044s # 1044s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_arg_n = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "arg_n", 1044s # (gchar *) "n", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_pointers[] = 1044s # { 1044s # &_org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_arg_n.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_n = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "SingleArgMethodN", 1044s # NULL, 1044s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_pointers, 1044s # NULL 1044s # }, 1044s # "handle-single-arg-method-n", 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1044s # { 1044s # &_org_project_useful_interface_method_info_single_arg_method_n.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "org.project.UsefulInterface", 1044s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1044s # NULL, 1044s # NULL, 1044s # NULL 1044s # }, 1044s # "org-project-useful-interface", 1044s # }; 1044s # 1044s # 1044s # /** 1044s # * org_project_useful_interface_interface_info: 1044s # * 1044s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1044s # * 1044s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1044s # */ 1044s # GDBusInterfaceInfo * 1044s # org_project_useful_interface_interface_info (void) 1044s # { 1044s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_override_properties: 1044s # * @klass: The class structure for a #GObject derived class. 1044s # * @property_id_begin: The property id to assign to the first overridden property. 1044s # * 1044s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1044s # * The properties are overridden in the order they are defined. 1044s # * 1044s # * Returns: The last property id. 1044s # */ 1044s # guint 1044s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1044s # { 1044s # return property_id_begin - 1; 1044s # } 1044s # 1044s # 1044s # inline static void 1044s # org_project_useful_interface_method_marshal_single_arg_method_n ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterface: 1044s # * 1044s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceIface: 1044s # * @parent_iface: The parent interface. 1044s # * @handle_single_arg_method_n: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-n signal. 1044s # * 1044s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1044s # */ 1044s # 1044s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1044s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1044s # 1044s # static void 1044s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1044s # { 1044s # /* GObject signals for incoming D-Bus method calls: */ 1044s # /** 1044s # * OrgProjectUsefulInterface::handle-single-arg-method-n: 1044s # * @object: A #OrgProjectUsefulInterface. 1044s # * @invocation: A #GDBusMethodInvocation. 1044s # * 1044s # * Signal emitted when a remote caller is invoking the SingleArgMethodN() D-Bus method. 1044s # * 1044s # * 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. 1044s # * 1044s # * 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. 1044s # */ 1044s # g_signal_new ("handle-single-arg-method-n", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_n), 1044s # g_signal_accumulator_true_handled, 1044s # NULL, 1044s # org_project_useful_interface_method_marshal_single_arg_method_n, 1044s # G_TYPE_BOOLEAN, 1044s # 1, 1044s # G_TYPE_DBUS_METHOD_INVOCATION); 1044s # 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_n: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously invokes the SingleArgMethodN() D-Bus method on @proxy. 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_call_single_arg_method_n_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_call_single_arg_method_n_sync() for the synchronous, blocking version of this method. 1044s # */ 1044s # void 1044s # org_project_useful_interface_call_single_arg_method_n ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1044s # "SingleArgMethodN", 1044s # g_variant_new ("()"), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # callback, 1044s # user_data); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_n_finish: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @out_arg_n: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_n(). 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_n(). 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_useful_interface_call_single_arg_method_n_finish ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # gint16 *out_arg_n, 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "(n)", 1044s # out_arg_n); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_n_sync: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @out_arg_n: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Synchronously invokes the SingleArgMethodN() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_call_single_arg_method_n() for the asynchronous version of this method. 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_useful_interface_call_single_arg_method_n_sync ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # gint16 *out_arg_n, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1044s # "SingleArgMethodN", 1044s # g_variant_new ("()"), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "(n)", 1044s # out_arg_n); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_complete_single_arg_method_n: 1044s # * @object: A #OrgProjectUsefulInterface. 1044s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1044s # * @arg_n: Parameter to return. 1044s # * 1044s # * 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. 1044s # * 1044s # * This method will free @invocation, you cannot use it afterwards. 1044s # */ 1044s # void 1044s # org_project_useful_interface_complete_single_arg_method_n ( 1044s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1044s # GDBusMethodInvocation *invocation, 1044s # gint16 arg_n) 1044s # { 1044s # g_dbus_method_invocation_return_value (invocation, 1044s # g_variant_new ("(n)", 1044s # arg_n)); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceProxy: 1044s # * 1044s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceProxyClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1044s # */ 1044s # 1044s # struct _OrgProjectUsefulInterfaceProxyPrivate 1044s # { 1044s # GData *qdata; 1044s # }; 1044s # 1044s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_useful_interface_proxy_finalize (GObject *object) 1044s # { 1044s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1044s # g_datalist_clear (&proxy->priv->qdata); 1044s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # const GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1044s # const gchar *sender_name G_GNUC_UNUSED, 1044s # const gchar *signal_name, 1044s # GVariant *parameters) 1044s # { 1044s # _ExtendedGDBusSignalInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # gsize n; 1044s # guint signal_id; 1044s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1044s # if (info == NULL) 1044s # return; 1044s # num_params = g_variant_n_children (parameters); 1044s # paramv = g_new0 (GValue, num_params + 1); 1044s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_set_object (¶mv[0], proxy); 1044s # g_variant_iter_init (&iter, parameters); 1044s # n = 1; 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_signal_emitv (paramv, signal_id, 0, NULL); 1044s # for (n = 0; n < num_params + 1; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1044s # GVariant *changed_properties, 1044s # const gchar *const *invalidated_properties) 1044s # { 1044s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1044s # guint n; 1044s # const gchar *key; 1044s # GVariantIter *iter; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # g_variant_get (changed_properties, "a{sv}", &iter); 1044s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1044s # g_datalist_remove_data (&proxy->priv->qdata, key); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # g_variant_iter_free (iter); 1044s # for (n = 0; invalidated_properties[n] != NULL; n++) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1044s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1044s # #else 1044s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1044s # #endif 1044s # 1044s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusProxyClass *proxy_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1044s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1044s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1044s # 1044s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1044s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1044s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_useful_interface_proxy_new ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_sync: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_sync ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_useful_interface_proxy_new_for_bus ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_for_bus_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus_sync: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_for_bus_sync ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceSkeleton: 1044s # * 1044s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceSkeletonClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1044s # */ 1044s # 1044s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1044s # { 1044s # GValue *properties; 1044s # GList *changed_properties; 1044s # GSource *changed_properties_idle_source; 1044s # GMainContext *context; 1044s # GMutex lock; 1044s # }; 1044s # 1044s # static void 1044s # _org_project_useful_interface_skeleton_handle_method_call ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name, 1044s # const gchar *method_name, 1044s # GVariant *parameters, 1044s # GDBusMethodInvocation *invocation, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # _ExtendedGDBusMethodInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # guint num_extra; 1044s # gsize n; 1044s # guint signal_id; 1044s # GValue return_value = G_VALUE_INIT; 1044s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1044s # g_assert (info != NULL); 1044s # num_params = g_variant_n_children (parameters); 1044s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1044s # n = 0; 1044s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_set_object (¶mv[n++], skeleton); 1044s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1044s # g_value_set_object (¶mv[n++], invocation); 1044s # if (info->pass_fdlist) 1044s # { 1044s # #ifdef G_OS_UNIX 1044s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1044s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1044s # #else 1044s # g_assert_not_reached (); 1044s # #endif 1044s # } 1044s # g_variant_iter_init (&iter, parameters); 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1044s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1044s # if (!g_value_get_boolean (&return_value)) 1044s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1044s # g_value_unset (&return_value); 1044s # for (n = 0; n < num_params + num_extra; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static GVariant * 1044s # _org_project_useful_interface_skeleton_handle_get_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # GVariant *ret; 1044s # ret = NULL; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # g_value_init (&value, pspec->value_type); 1044s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1044s # g_value_unset (&value); 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _org_project_useful_interface_skeleton_handle_set_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GVariant *variant, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # gboolean ret; 1044s # ret = FALSE; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # if (info->use_gvariant) 1044s # g_value_set_variant (&value, variant); 1044s # else 1044s # g_dbus_gvariant_to_gvalue (variant, &value); 1044s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # g_value_unset (&value); 1044s # ret = TRUE; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1044s # { 1044s # _org_project_useful_interface_skeleton_handle_method_call, 1044s # _org_project_useful_interface_skeleton_handle_get_property, 1044s # _org_project_useful_interface_skeleton_handle_set_property, 1044s # {NULL} 1044s # }; 1044s # 1044s # static GDBusInterfaceInfo * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return org_project_useful_interface_interface_info (); 1044s # } 1044s # 1044s # static GDBusInterfaceVTable * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1044s # } 1044s # 1044s # static GVariant * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1044s # 1044s # GVariantBuilder builder; 1044s # guint n; 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1044s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #else 1044s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #endif 1044s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1044s # goto out; 1044s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1044s # { 1044s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1044s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1044s # { 1044s # GVariant *value; 1044s # 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); 1044s # if (value != NULL) 1044s # { 1044s # g_variant_take_ref (value); 1044s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1044s # g_variant_unref (value); 1044s # } 1044s # } 1044s # } 1044s # out: 1044s # return g_variant_builder_end (&builder); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_useful_interface_skeleton_finalize (GObject *object) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1044s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1044s # if (skeleton->priv->changed_properties_idle_source != NULL) 1044s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1044s # g_main_context_unref (skeleton->priv->context); 1044s # g_mutex_clear (&skeleton->priv->lock); 1044s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1044s # #else 1044s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1044s # #endif 1044s # 1044s # g_mutex_init (&skeleton->priv->lock); 1044s # skeleton->priv->context = g_main_context_ref_thread_default (); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusInterfaceSkeletonClass *skeleton_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1044s # 1044s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1044s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1044s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1044s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1044s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_skeleton_new: 1044s # * 1044s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_skeleton_new (void) 1044s # { 1044s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1044s # } 1044s # Error: 1044s # 1044s # /tmp/tmp2adpb45_/tmp9gn4tj9j.xml: 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2adpb45_/tmp9gn4tj9j.xml', '--output', '-', '--body'] 1044s # Return code: 0 1044s # Output: 1044s # /* 1044s # * This file is generated by gdbus-codegen, do not modify it. 1044s # * 1044s # * The license of this code is the same as for the D-Bus interface description 1044s # * it was derived from. Note that it links to GLib, so must comply with the 1044s # * LGPL linking clauses. 1044s # */ 1044s # 1044s # #ifdef HAVE_CONFIG_H 1044s # # include "config.h" 1044s # #endif 1044s # 1044s # #include 1044s # #ifdef G_OS_UNIX 1044s # # include 1044s # #endif 1044s # 1044s # #ifdef G_ENABLE_DEBUG 1044s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1044s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1044s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1044s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1044s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1044s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1044s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1044s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1044s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1044s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1044s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1044s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1044s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1044s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1044s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1044s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1044s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1044s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1044s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1044s # #else /* !G_ENABLE_DEBUG */ 1044s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1044s # * Do not access GValues directly in your code. Instead, use the 1044s # * g_value_get_*() functions 1044s # */ 1044s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1044s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1044s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1044s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1044s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1044s # #endif /* !G_ENABLE_DEBUG */ 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusArgInfo parent_struct; 1044s # gboolean use_gvariant; 1044s # } _ExtendedGDBusArgInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusMethodInfo parent_struct; 1044s # const gchar *signal_name; 1044s # gboolean pass_fdlist; 1044s # } _ExtendedGDBusMethodInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusSignalInfo parent_struct; 1044s # const gchar *signal_name; 1044s # } _ExtendedGDBusSignalInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusPropertyInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # guint use_gvariant : 1; 1044s # guint emits_changed_signal : 1; 1044s # } _ExtendedGDBusPropertyInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusInterfaceInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # } _ExtendedGDBusInterfaceInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # const _ExtendedGDBusPropertyInfo *info; 1044s # guint prop_id; 1044s # GValue orig_value; /* the value before the change */ 1044s # } ChangedProperty; 1044s # 1044s # static void 1044s # _changed_property_free (ChangedProperty *data) 1044s # { 1044s # g_value_unset (&data->orig_value); 1044s # g_free (data); 1044s # } 1044s # 1044s # static gboolean 1044s # _g_strv_equal0 (gchar **a, gchar **b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # guint n; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # if (g_strv_length (a) != g_strv_length (b)) 1044s # goto out; 1044s # for (n = 0; a[n] != NULL; n++) 1044s # if (g_strcmp0 (a[n], b[n]) != 0) 1044s # goto out; 1044s # ret = TRUE; 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _g_variant_equal0 (GVariant *a, GVariant *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # ret = g_variant_equal (a, b); 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # G_GNUC_UNUSED static gboolean 1044s # _g_value_equal (const GValue *a, const GValue *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1044s # switch (G_VALUE_TYPE (a)) 1044s # { 1044s # case G_TYPE_BOOLEAN: 1044s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1044s # break; 1044s # case G_TYPE_UCHAR: 1044s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1044s # break; 1044s # case G_TYPE_INT: 1044s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1044s # break; 1044s # case G_TYPE_UINT: 1044s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1044s # break; 1044s # case G_TYPE_INT64: 1044s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1044s # break; 1044s # case G_TYPE_UINT64: 1044s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1044s # break; 1044s # case G_TYPE_DOUBLE: 1044s # { 1044s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1044s # gdouble da = g_value_get_double (a); 1044s # gdouble db = g_value_get_double (b); 1044s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1044s # } 1044s # break; 1044s # case G_TYPE_STRING: 1044s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1044s # break; 1044s # case G_TYPE_VARIANT: 1044s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1044s # break; 1044s # default: 1044s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1044s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1044s # else 1044s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1044s # break; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static void 1044s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint G_GNUC_UNUSED, 1044s # void *marshal_data) 1044s # { 1044s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1044s # (void *data1, 1044s # GDBusMethodInvocation *arg_method_invocation, 1044s # void *data2); 1044s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1044s # GCClosure *cc = (GCClosure*) closure; 1044s # void *data1, *data2; 1044s # gboolean v_return; 1044s # 1044s # g_return_if_fail (return_value != NULL); 1044s # g_return_if_fail (n_param_values == 2); 1044s # 1044s # if (G_CCLOSURE_SWAP_DATA (closure)) 1044s # { 1044s # data1 = closure->data; 1044s # data2 = g_value_peek_pointer (param_values + 0); 1044s # } 1044s # else 1044s # { 1044s # data1 = g_value_peek_pointer (param_values + 0); 1044s # data2 = closure->data; 1044s # } 1044s # 1044s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1044s # (marshal_data ? marshal_data : cc->callback); 1044s # 1044s # v_return = 1044s # callback (data1, 1044s # g_marshal_value_peek_object (param_values + 1), 1044s # data2); 1044s # 1044s # g_value_set_boolean (return_value, v_return); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ 1044s # * Code for interface org.project.UsefulInterface 1044s # * ------------------------------------------------------------------------ 1044s # */ 1044s # 1044s # /** 1044s # * SECTION:OrgProjectUsefulInterface 1044s # * @title: OrgProjectUsefulInterface 1044s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1044s # * 1044s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1044s # */ 1044s # 1044s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_arg_q = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "arg_q", 1044s # (gchar *) "q", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_pointers[] = 1044s # { 1044s # &_org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_arg_q.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_q = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "SingleArgMethodQ", 1044s # NULL, 1044s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_pointers, 1044s # NULL 1044s # }, 1044s # "handle-single-arg-method-q", 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1044s # { 1044s # &_org_project_useful_interface_method_info_single_arg_method_q.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "org.project.UsefulInterface", 1044s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1044s # NULL, 1044s # NULL, 1044s # NULL 1044s # }, 1044s # "org-project-useful-interface", 1044s # }; 1044s # 1044s # 1044s # /** 1044s # * org_project_useful_interface_interface_info: 1044s # * 1044s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1044s # * 1044s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1044s # */ 1044s # GDBusInterfaceInfo * 1044s # org_project_useful_interface_interface_info (void) 1044s # { 1044s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_override_properties: 1044s # * @klass: The class structure for a #GObject derived class. 1044s # * @property_id_begin: The property id to assign to the first overridden property. 1044s # * 1044s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1044s # * The properties are overridden in the order they are defined. 1044s # * 1044s # * Returns: The last property id. 1044s # */ 1044s # guint 1044s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1044s # { 1044s # return property_id_begin - 1; 1044s # } 1044s # 1044s # 1044s # inline static void 1044s # org_project_useful_interface_method_marshal_single_arg_method_q ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterface: 1044s # * 1044s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceIface: 1044s # * @parent_iface: The parent interface. 1044s # * @handle_single_arg_method_q: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-q signal. 1044s # * 1044s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1044s # */ 1044s # 1044s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1044s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1044s # 1044s # static void 1044s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1044s # { 1044s # /* GObject signals for incoming D-Bus method calls: */ 1044s # /** 1044s # * OrgProjectUsefulInterface::handle-single-arg-method-q: 1044s # * @object: A #OrgProjectUsefulInterface. 1044s # * @invocation: A #GDBusMethodInvocation. 1044s # * 1044s # * Signal emitted when a remote caller is invoking the SingleArgMethodQ() D-Bus method. 1044s # * 1044s # * 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. 1044s # * 1044s # * 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. 1044s # */ 1044s # g_signal_new ("handle-single-arg-method-q", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_q), 1044s # g_signal_accumulator_true_handled, 1044s # NULL, 1044s # org_project_useful_interface_method_marshal_single_arg_method_q, 1044s # G_TYPE_BOOLEAN, 1044s # 1, 1044s # G_TYPE_DBUS_METHOD_INVOCATION); 1044s # 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_q: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_call_single_arg_method_q_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_call_single_arg_method_q_sync() for the synchronous, blocking version of this method. 1044s # */ 1044s # void 1044s # org_project_useful_interface_call_single_arg_method_q ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1044s # "SingleArgMethodQ", 1044s # g_variant_new ("()"), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # callback, 1044s # user_data); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_q_finish: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @out_arg_q: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_q(). 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_q(). 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_useful_interface_call_single_arg_method_q_finish ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # guint16 *out_arg_q, 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "(q)", 1044s # out_arg_q); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_q_sync: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @out_arg_q: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Synchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_call_single_arg_method_q() for the asynchronous version of this method. 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_useful_interface_call_single_arg_method_q_sync ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # guint16 *out_arg_q, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1044s # "SingleArgMethodQ", 1044s # g_variant_new ("()"), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "(q)", 1044s # out_arg_q); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_complete_single_arg_method_q: 1044s # * @object: A #OrgProjectUsefulInterface. 1044s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1044s # * @arg_q: Parameter to return. 1044s # * 1044s # * 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. 1044s # * 1044s # * This method will free @invocation, you cannot use it afterwards. 1044s # */ 1044s # void 1044s # org_project_useful_interface_complete_single_arg_method_q ( 1044s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1044s # GDBusMethodInvocation *invocation, 1044s # guint16 arg_q) 1044s # { 1044s # g_dbus_method_invocation_return_value (invocation, 1044s # g_variant_new ("(q)", 1044s # arg_q)); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceProxy: 1044s # * 1044s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceProxyClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1044s # */ 1044s # 1044s # struct _OrgProjectUsefulInterfaceProxyPrivate 1044s # { 1044s # GData *qdata; 1044s # }; 1044s # 1044s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_useful_interface_proxy_finalize (GObject *object) 1044s # { 1044s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1044s # g_datalist_clear (&proxy->priv->qdata); 1044s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # const GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1044s # const gchar *sender_name G_GNUC_UNUSED, 1044s # const gchar *signal_name, 1044s # GVariant *parameters) 1044s # { 1044s # _ExtendedGDBusSignalInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # gsize n; 1044s # guint signal_id; 1044s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1044s # if (info == NULL) 1044s # return; 1044s # num_params = g_variant_n_children (parameters); 1044s # paramv = g_new0 (GValue, num_params + 1); 1044s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_set_object (¶mv[0], proxy); 1044s # g_variant_iter_init (&iter, parameters); 1044s # n = 1; 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_signal_emitv (paramv, signal_id, 0, NULL); 1044s # for (n = 0; n < num_params + 1; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1044s # GVariant *changed_properties, 1044s # const gchar *const *invalidated_properties) 1044s # { 1044s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1044s # guint n; 1044s # const gchar *key; 1044s # GVariantIter *iter; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # g_variant_get (changed_properties, "a{sv}", &iter); 1044s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1044s # g_datalist_remove_data (&proxy->priv->qdata, key); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # g_variant_iter_free (iter); 1044s # for (n = 0; invalidated_properties[n] != NULL; n++) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1044s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1044s # #else 1044s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1044s # #endif 1044s # 1044s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusProxyClass *proxy_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1044s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1044s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1044s # 1044s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1044s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1044s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_useful_interface_proxy_new ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_sync: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_sync ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_useful_interface_proxy_new_for_bus ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_for_bus_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus_sync: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_for_bus_sync ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceSkeleton: 1044s # * 1044s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceSkeletonClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1044s # */ 1044s # 1044s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1044s # { 1044s # GValue *properties; 1044s # GList *changed_properties; 1044s # GSource *changed_properties_idle_source; 1044s # GMainContext *context; 1044s # GMutex lock; 1044s # }; 1044s # 1044s # static void 1044s # _org_project_useful_interface_skeleton_handle_method_call ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name, 1044s # const gchar *method_name, 1044s # GVariant *parameters, 1044s # GDBusMethodInvocation *invocation, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # _ExtendedGDBusMethodInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # guint num_extra; 1044s # gsize n; 1044s # guint signal_id; 1044s # GValue return_value = G_VALUE_INIT; 1044s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1044s # g_assert (info != NULL); 1044s # num_params = g_variant_n_children (parameters); 1044s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1044s # n = 0; 1044s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_set_object (¶mv[n++], skeleton); 1044s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1044s # g_value_set_object (¶mv[n++], invocation); 1044s # if (info->pass_fdlist) 1044s # { 1044s # #ifdef G_OS_UNIX 1044s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1044s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1044s # #else 1044s # g_assert_not_reached (); 1044s # #endif 1044s # } 1044s # g_variant_iter_init (&iter, parameters); 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1044s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1044s # if (!g_value_get_boolean (&return_value)) 1044s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1044s # g_value_unset (&return_value); 1044s # for (n = 0; n < num_params + num_extra; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static GVariant * 1044s # _org_project_useful_interface_skeleton_handle_get_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # GVariant *ret; 1044s # ret = NULL; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # g_value_init (&value, pspec->value_type); 1044s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1044s # g_value_unset (&value); 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _org_project_useful_interface_skeleton_handle_set_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GVariant *variant, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # gboolean ret; 1044s # ret = FALSE; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # if (info->use_gvariant) 1044s # g_value_set_variant (&value, variant); 1044s # else 1044s # g_dbus_gvariant_to_gvalue (variant, &value); 1044s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # g_value_unset (&value); 1044s # ret = TRUE; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1044s # { 1044s # _org_project_useful_interface_skeleton_handle_method_call, 1044s # _org_project_useful_interface_skeleton_handle_get_property, 1044s # _org_project_useful_interface_skeleton_handle_set_property, 1044s # {NULL} 1044s # }; 1044s # 1044s # static GDBusInterfaceInfo * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return org_project_useful_interface_interface_info (); 1044s # } 1044s # 1044s # static GDBusInterfaceVTable * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1044s # } 1044s # 1044s # static GVariant * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1044s # 1044s # GVariantBuilder builder; 1044s # guint n; 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1044s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #else 1044s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #endif 1044s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1044s # goto out; 1044s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1044s # { 1044s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1044s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1044s # { 1044s # GVariant *value; 1044s # 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); 1044s # if (value != NULL) 1044s # { 1044s # g_variant_take_ref (value); 1044s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1044s # g_variant_unref (value); 1044s # } 1044s # } 1044s # } 1044s # out: 1044s # return g_variant_builder_end (&builder); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_useful_interface_skeleton_finalize (GObject *object) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1044s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1044s # if (skeleton->priv->changed_properties_idle_source != NULL) 1044s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1044s # g_main_context_unref (skeleton->priv->context); 1044s # g_mutex_clear (&skeleton->priv->lock); 1044s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1044s # #else 1044s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1044s # #endif 1044s # 1044s # g_mutex_init (&skeleton->priv->lock); 1044s # skeleton->priv->context = g_main_context_ref_thread_default (); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusInterfaceSkeletonClass *skeleton_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1044s # 1044s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1044s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1044s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1044s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1044s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_skeleton_new: 1044s # * 1044s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_skeleton_new (void) 1044s # { 1044s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1044s # } 1044s # Error: 1044s # 1044s # /tmp/tmp2adpb45_/tmpszb68wgv.xml: 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2adpb45_/tmpszb68wgv.xml', '--output', '-', '--body'] 1044s # Return code: 0 1044s # Output: 1044s # /* 1044s # * This file is generated by gdbus-codegen, do not modify it. 1044s # * 1044s # * The license of this code is the same as for the D-Bus interface description 1044s # * it was derived from. Note that it links to GLib, so must comply with the 1044s # * LGPL linking clauses. 1044s # */ 1044s # 1044s # #ifdef HAVE_CONFIG_H 1044s # # include "config.h" 1044s # #endif 1044s # 1044s # #include 1044s # #ifdef G_OS_UNIX 1044s # # include 1044s # #endif 1044s # 1044s # #ifdef G_ENABLE_DEBUG 1044s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1044s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1044s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1044s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1044s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1044s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1044s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1044s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1044s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1044s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1044s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1044s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1044s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1044s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1044s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1044s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1044s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1044s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1044s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1044s # #else /* !G_ENABLE_DEBUG */ 1044s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1044s # * Do not access GValues directly in your code. Instead, use the 1044s # * g_value_get_*() functions 1044s # */ 1044s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1044s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1044s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1044s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1044s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1044s # #endif /* !G_ENABLE_DEBUG */ 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusArgInfo parent_struct; 1044s # gboolean use_gvariant; 1044s # } _ExtendedGDBusArgInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusMethodInfo parent_struct; 1044s # const gchar *signal_name; 1044s # gboolean pass_fdlist; 1044s # } _ExtendedGDBusMethodInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusSignalInfo parent_struct; 1044s # const gchar *signal_name; 1044s # } _ExtendedGDBusSignalInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusPropertyInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # guint use_gvariant : 1; 1044s # guint emits_changed_signal : 1; 1044s # } _ExtendedGDBusPropertyInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusInterfaceInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # } _ExtendedGDBusInterfaceInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # const _ExtendedGDBusPropertyInfo *info; 1044s # guint prop_id; 1044s # GValue orig_value; /* the value before the change */ 1044s # } ChangedProperty; 1044s # 1044s # static void 1044s # _changed_property_free (ChangedProperty *data) 1044s # { 1044s # g_value_unset (&data->orig_value); 1044s # g_free (data); 1044s # } 1044s # 1044s # static gboolean 1044s # _g_strv_equal0 (gchar **a, gchar **b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # guint n; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # if (g_strv_length (a) != g_strv_length (b)) 1044s # goto out; 1044s # for (n = 0; a[n] != NULL; n++) 1044s # if (g_strcmp0 (a[n], b[n]) != 0) 1044s # goto out; 1044s # ret = TRUE; 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _g_variant_equal0 (GVariant *a, GVariant *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # ret = g_variant_equal (a, b); 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # G_GNUC_UNUSED static gboolean 1044s # _g_value_equal (const GValue *a, const GValue *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1044s # switch (G_VALUE_TYPE (a)) 1044s # { 1044s # case G_TYPE_BOOLEAN: 1044s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1044s # break; 1044s # case G_TYPE_UCHAR: 1044s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1044s # break; 1044s # case G_TYPE_INT: 1044s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1044s # break; 1044s # case G_TYPE_UINT: 1044s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1044s # break; 1044s # case G_TYPE_INT64: 1044s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1044s # break; 1044s # case G_TYPE_UINT64: 1044s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1044s # break; 1044s # case G_TYPE_DOUBLE: 1044s # { 1044s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1044s # gdouble da = g_value_get_double (a); 1044s # gdouble db = g_value_get_double (b); 1044s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1044s # } 1044s # break; 1044s # case G_TYPE_STRING: 1044s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1044s # break; 1044s # case G_TYPE_VARIANT: 1044s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1044s # break; 1044s # default: 1044s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1044s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1044s # else 1044s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1044s # break; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static void 1044s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint G_GNUC_UNUSED, 1044s # void *marshal_data) 1044s # { 1044s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1044s # (void *data1, 1044s # GDBusMethodInvocation *arg_method_invocation, 1044s # void *data2); 1044s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1044s # GCClosure *cc = (GCClosure*) closure; 1044s # void *data1, *data2; 1044s # gboolean v_return; 1044s # 1044s # g_return_if_fail (return_value != NULL); 1044s # g_return_if_fail (n_param_values == 2); 1044s # 1044s # if (G_CCLOSURE_SWAP_DATA (closure)) 1044s # { 1044s # data1 = closure->data; 1044s # data2 = g_value_peek_pointer (param_values + 0); 1044s # } 1044s # else 1044s # { 1044s # data1 = g_value_peek_pointer (param_values + 0); 1044s # data2 = closure->data; 1044s # } 1044s # 1044s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1044s # (marshal_data ? marshal_data : cc->callback); 1044s # 1044s # v_return = 1044s # callback (data1, 1044s # g_marshal_value_peek_object (param_values + 1), 1044s # data2); 1044s # 1044s # g_value_set_boolean (return_value, v_return); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ 1044s # * Code for interface org.project.UsefulInterface 1044s # * ------------------------------------------------------------------------ 1044s # */ 1044s # 1044s # /** 1044s # * SECTION:OrgProjectUsefulInterface 1044s # * @title: OrgProjectUsefulInterface 1044s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1044s # * 1044s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1044s # */ 1044s # 1044s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_arg_i = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "arg_i", 1044s # (gchar *) "i", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_pointers[] = 1044s # { 1044s # &_org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_arg_i.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_i = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "SingleArgMethodI", 1044s # NULL, 1044s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_pointers, 1044s # NULL 1044s # }, 1044s # "handle-single-arg-method-i", 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1044s # { 1044s # &_org_project_useful_interface_method_info_single_arg_method_i.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "org.project.UsefulInterface", 1044s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1044s # NULL, 1044s # NULL, 1044s # NULL 1044s # }, 1044s # "org-project-useful-interface", 1044s # }; 1044s # 1044s # 1044s # /** 1044s # * org_project_useful_interface_interface_info: 1044s # * 1044s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1044s # * 1044s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1044s # */ 1044s # GDBusInterfaceInfo * 1044s # org_project_useful_interface_interface_info (void) 1044s # { 1044s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_override_properties: 1044s # * @klass: The class structure for a #GObject derived class. 1044s # * @property_id_begin: The property id to assign to the first overridden property. 1044s # * 1044s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1044s # * The properties are overridden in the order they are defined. 1044s # * 1044s # * Returns: The last property id. 1044s # */ 1044s # guint 1044s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1044s # { 1044s # return property_id_begin - 1; 1044s # } 1044s # 1044s # 1044s # inline static void 1044s # org_project_useful_interface_method_marshal_single_arg_method_i ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterface: 1044s # * 1044s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceIface: 1044s # * @parent_iface: The parent interface. 1044s # * @handle_single_arg_method_i: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-i signal. 1044s # * 1044s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1044s # */ 1044s # 1044s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1044s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1044s # 1044s # static void 1044s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1044s # { 1044s # /* GObject signals for incoming D-Bus method calls: */ 1044s # /** 1044s # * OrgProjectUsefulInterface::handle-single-arg-method-i: 1044s # * @object: A #OrgProjectUsefulInterface. 1044s # * @invocation: A #GDBusMethodInvocation. 1044s # * 1044s # * Signal emitted when a remote caller is invoking the SingleArgMethodI() D-Bus method. 1044s # * 1044s # * 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. 1044s # * 1044s # * 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. 1044s # */ 1044s # g_signal_new ("handle-single-arg-method-i", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_i), 1044s # g_signal_accumulator_true_handled, 1044s # NULL, 1044s # org_project_useful_interface_method_marshal_single_arg_method_i, 1044s # G_TYPE_BOOLEAN, 1044s # 1, 1044s # G_TYPE_DBUS_METHOD_INVOCATION); 1044s # 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_i: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously invokes the SingleArgMethodI() D-Bus method on @proxy. 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_call_single_arg_method_i_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_call_single_arg_method_i_sync() for the synchronous, blocking version of this method. 1044s # */ 1044s # void 1044s # org_project_useful_interface_call_single_arg_method_i ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1044s # "SingleArgMethodI", 1044s # g_variant_new ("()"), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # callback, 1044s # user_data); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_i_finish: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @out_arg_i: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_i(). 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_i(). 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_useful_interface_call_single_arg_method_i_finish ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # gint *out_arg_i, 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "(i)", 1044s # out_arg_i); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_i_sync: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @out_arg_i: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Synchronously invokes the SingleArgMethodI() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_call_single_arg_method_i() for the asynchronous version of this method. 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_useful_interface_call_single_arg_method_i_sync ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # gint *out_arg_i, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1044s # "SingleArgMethodI", 1044s # g_variant_new ("()"), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "(i)", 1044s # out_arg_i); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_complete_single_arg_method_i: 1044s # * @object: A #OrgProjectUsefulInterface. 1044s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1044s # * @arg_i: Parameter to return. 1044s # * 1044s # * 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. 1044s # * 1044s # * This method will free @invocation, you cannot use it afterwards. 1044s # */ 1044s # void 1044s # org_project_useful_interface_complete_single_arg_method_i ( 1044s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1044s # GDBusMethodInvocation *invocation, 1044s # gint arg_i) 1044s # { 1044s # g_dbus_method_invocation_return_value (invocation, 1044s # g_variant_new ("(i)", 1044s # arg_i)); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceProxy: 1044s # * 1044s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceProxyClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1044s # */ 1044s # 1044s # struct _OrgProjectUsefulInterfaceProxyPrivate 1044s # { 1044s # GData *qdata; 1044s # }; 1044s # 1044s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_useful_interface_proxy_finalize (GObject *object) 1044s # { 1044s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1044s # g_datalist_clear (&proxy->priv->qdata); 1044s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # const GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1044s # const gchar *sender_name G_GNUC_UNUSED, 1044s # const gchar *signal_name, 1044s # GVariant *parameters) 1044s # { 1044s # _ExtendedGDBusSignalInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # gsize n; 1044s # guint signal_id; 1044s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1044s # if (info == NULL) 1044s # return; 1044s # num_params = g_variant_n_children (parameters); 1044s # paramv = g_new0 (GValue, num_params + 1); 1044s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_set_object (¶mv[0], proxy); 1044s # g_variant_iter_init (&iter, parameters); 1044s # n = 1; 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_signal_emitv (paramv, signal_id, 0, NULL); 1044s # for (n = 0; n < num_params + 1; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1044s # GVariant *changed_properties, 1044s # const gchar *const *invalidated_properties) 1044s # { 1044s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1044s # guint n; 1044s # const gchar *key; 1044s # GVariantIter *iter; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # g_variant_get (changed_properties, "a{sv}", &iter); 1044s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1044s # g_datalist_remove_data (&proxy->priv->qdata, key); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # g_variant_iter_free (iter); 1044s # for (n = 0; invalidated_properties[n] != NULL; n++) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1044s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1044s # #else 1044s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1044s # #endif 1044s # 1044s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusProxyClass *proxy_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1044s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1044s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1044s # 1044s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1044s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1044s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_useful_interface_proxy_new ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_sync: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_sync ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_useful_interface_proxy_new_for_bus ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_for_bus_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus_sync: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_for_bus_sync ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceSkeleton: 1044s # * 1044s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceSkeletonClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1044s # */ 1044s # 1044s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1044s # { 1044s # GValue *properties; 1044s # GList *changed_properties; 1044s # GSource *changed_properties_idle_source; 1044s # GMainContext *context; 1044s # GMutex lock; 1044s # }; 1044s # 1044s # static void 1044s # _org_project_useful_interface_skeleton_handle_method_call ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name, 1044s # const gchar *method_name, 1044s # GVariant *parameters, 1044s # GDBusMethodInvocation *invocation, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # _ExtendedGDBusMethodInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # guint num_extra; 1044s # gsize n; 1044s # guint signal_id; 1044s # GValue return_value = G_VALUE_INIT; 1044s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1044s # g_assert (info != NULL); 1044s # num_params = g_variant_n_children (parameters); 1044s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1044s # n = 0; 1044s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_set_object (¶mv[n++], skeleton); 1044s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1044s # g_value_set_object (¶mv[n++], invocation); 1044s # if (info->pass_fdlist) 1044s # { 1044s # #ifdef G_OS_UNIX 1044s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1044s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1044s # #else 1044s # g_assert_not_reached (); 1044s # #endif 1044s # } 1044s # g_variant_iter_init (&iter, parameters); 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1044s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1044s # if (!g_value_get_boolean (&return_value)) 1044s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1044s # g_value_unset (&return_value); 1044s # for (n = 0; n < num_params + num_extra; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static GVariant * 1044s # _org_project_useful_interface_skeleton_handle_get_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # GVariant *ret; 1044s # ret = NULL; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # g_value_init (&value, pspec->value_type); 1044s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1044s # g_value_unset (&value); 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _org_project_useful_interface_skeleton_handle_set_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GVariant *variant, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # gboolean ret; 1044s # ret = FALSE; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # if (info->use_gvariant) 1044s # g_value_set_variant (&value, variant); 1044s # else 1044s # g_dbus_gvariant_to_gvalue (variant, &value); 1044s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # g_value_unset (&value); 1044s # ret = TRUE; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1044s # { 1044s # _org_project_useful_interface_skeleton_handle_method_call, 1044s # _org_project_useful_interface_skeleton_handle_get_property, 1044s # _org_project_useful_interface_skeleton_handle_set_property, 1044s # {NULL} 1044s # }; 1044s # 1044s # static GDBusInterfaceInfo * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return org_project_useful_interface_interface_info (); 1044s # } 1044s # 1044s # static GDBusInterfaceVTable * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1044s # } 1044s # 1044s # static GVariant * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1044s # 1044s # GVariantBuilder builder; 1044s # guint n; 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1044s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #else 1044s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #endif 1044s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1044s # goto out; 1044s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1044s # { 1044s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1044s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1044s # { 1044s # GVariant *value; 1044s # 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); 1044s # if (value != NULL) 1044s # { 1044s # g_variant_take_ref (value); 1044s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1044s # g_variant_unref (value); 1044s # } 1044s # } 1044s # } 1044s # out: 1044s # return g_variant_builder_end (&builder); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_useful_interface_skeleton_finalize (GObject *object) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1044s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1044s # if (skeleton->priv->changed_properties_idle_source != NULL) 1044s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1044s # g_main_context_unref (skeleton->priv->context); 1044s # g_mutex_clear (&skeleton->priv->lock); 1044s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1044s # #else 1044s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1044s # #endif 1044s # 1044s # g_mutex_init (&skeleton->priv->lock); 1044s # skeleton->priv->context = g_main_context_ref_thread_default (); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusInterfaceSkeletonClass *skeleton_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1044s # 1044s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1044s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1044s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1044s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1044s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_skeleton_new: 1044s # * 1044s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_skeleton_new (void) 1044s # { 1044s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1044s # } 1044s # Error: 1044s # 1044s # /tmp/tmp2adpb45_/tmpxgzh8gtb.xml: 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2adpb45_/tmpxgzh8gtb.xml', '--output', '-', '--body'] 1044s # Return code: 0 1044s # Output: 1044s # /* 1044s # * This file is generated by gdbus-codegen, do not modify it. 1044s # * 1044s # * The license of this code is the same as for the D-Bus interface description 1044s # * it was derived from. Note that it links to GLib, so must comply with the 1044s # * LGPL linking clauses. 1044s # */ 1044s # 1044s # #ifdef HAVE_CONFIG_H 1044s # # include "config.h" 1044s # #endif 1044s # 1044s # #include 1044s # #ifdef G_OS_UNIX 1044s # # include 1044s # #endif 1044s # 1044s # #ifdef G_ENABLE_DEBUG 1044s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1044s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1044s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1044s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1044s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1044s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1044s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1044s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1044s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1044s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1044s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1044s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1044s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1044s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1044s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1044s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1044s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1044s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1044s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1044s # #else /* !G_ENABLE_DEBUG */ 1044s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1044s # * Do not access GValues directly in your code. Instead, use the 1044s # * g_value_get_*() functions 1044s # */ 1044s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1044s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1044s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1044s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1044s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1044s # #endif /* !G_ENABLE_DEBUG */ 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusArgInfo parent_struct; 1044s # gboolean use_gvariant; 1044s # } _ExtendedGDBusArgInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusMethodInfo parent_struct; 1044s # const gchar *signal_name; 1044s # gboolean pass_fdlist; 1044s # } _ExtendedGDBusMethodInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusSignalInfo parent_struct; 1044s # const gchar *signal_name; 1044s # } _ExtendedGDBusSignalInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusPropertyInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # guint use_gvariant : 1; 1044s # guint emits_changed_signal : 1; 1044s # } _ExtendedGDBusPropertyInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusInterfaceInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # } _ExtendedGDBusInterfaceInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # const _ExtendedGDBusPropertyInfo *info; 1044s # guint prop_id; 1044s # GValue orig_value; /* the value before the change */ 1044s # } ChangedProperty; 1044s # 1044s # static void 1044s # _changed_property_free (ChangedProperty *data) 1044s # { 1044s # g_value_unset (&data->orig_value); 1044s # g_free (data); 1044s # } 1044s # 1044s # static gboolean 1044s # _g_strv_equal0 (gchar **a, gchar **b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # guint n; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # if (g_strv_length (a) != g_strv_length (b)) 1044s # goto out; 1044s # for (n = 0; a[n] != NULL; n++) 1044s # if (g_strcmp0 (a[n], b[n]) != 0) 1044s # goto out; 1044s # ret = TRUE; 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _g_variant_equal0 (GVariant *a, GVariant *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # ret = g_variant_equal (a, b); 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # G_GNUC_UNUSED static gboolean 1044s # _g_value_equal (const GValue *a, const GValue *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1044s # switch (G_VALUE_TYPE (a)) 1044s # { 1044s # case G_TYPE_BOOLEAN: 1044s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1044s # break; 1044s # case G_TYPE_UCHAR: 1044s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1044s # break; 1044s # case G_TYPE_INT: 1044s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1044s # break; 1044s # case G_TYPE_UINT: 1044s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1044s # break; 1044s # case G_TYPE_INT64: 1044s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1044s # break; 1044s # case G_TYPE_UINT64: 1044s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1044s # break; 1044s # case G_TYPE_DOUBLE: 1044s # { 1044s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1044s # gdouble da = g_value_get_double (a); 1044s # gdouble db = g_value_get_double (b); 1044s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1044s # } 1044s # break; 1044s # case G_TYPE_STRING: 1044s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1044s # break; 1044s # case G_TYPE_VARIANT: 1044s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1044s # break; 1044s # default: 1044s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1044s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1044s # else 1044s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1044s # break; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static void 1044s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint G_GNUC_UNUSED, 1044s # void *marshal_data) 1044s # { 1044s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1044s # (void *data1, 1044s # GDBusMethodInvocation *arg_method_invocation, 1044s # void *data2); 1044s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1044s # GCClosure *cc = (GCClosure*) closure; 1044s # void *data1, *data2; 1044s # gboolean v_return; 1044s # 1044s # g_return_if_fail (return_value != NULL); 1044s # g_return_if_fail (n_param_values == 2); 1044s # 1044s # if (G_CCLOSURE_SWAP_DATA (closure)) 1044s # { 1044s # data1 = closure->data; 1044s # data2 = g_value_peek_pointer (param_values + 0); 1044s # } 1044s # else 1044s # { 1044s # data1 = g_value_peek_pointer (param_values + 0); 1044s # data2 = closure->data; 1044s # } 1044s # 1044s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1044s # (marshal_data ? marshal_data : cc->callback); 1044s # 1044s # v_return = 1044s # callback (data1, 1044s # g_marshal_value_peek_object (param_values + 1), 1044s # data2); 1044s # 1044s # g_value_set_boolean (return_value, v_return); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ 1044s # * Code for interface org.project.UsefulInterface 1044s # * ------------------------------------------------------------------------ 1044s # */ 1044s # 1044s # /** 1044s # * SECTION:OrgProjectUsefulInterface 1044s # * @title: OrgProjectUsefulInterface 1044s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1044s # * 1044s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1044s # */ 1044s # 1044s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_arg_u = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "arg_u", 1044s # (gchar *) "u", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_pointers[] = 1044s # { 1044s # &_org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_arg_u.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_u = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "SingleArgMethodU", 1044s # NULL, 1044s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_pointers, 1044s # NULL 1044s # }, 1044s # "handle-single-arg-method-u", 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1044s # { 1044s # &_org_project_useful_interface_method_info_single_arg_method_u.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "org.project.UsefulInterface", 1044s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1044s # NULL, 1044s # NULL, 1044s # NULL 1044s # }, 1044s # "org-project-useful-interface", 1044s # }; 1044s # 1044s # 1044s # /** 1044s # * org_project_useful_interface_interface_info: 1044s # * 1044s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1044s # * 1044s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1044s # */ 1044s # GDBusInterfaceInfo * 1044s # org_project_useful_interface_interface_info (void) 1044s # { 1044s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_override_properties: 1044s # * @klass: The class structure for a #GObject derived class. 1044s # * @property_id_begin: The property id to assign to the first overridden property. 1044s # * 1044s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1044s # * The properties are overridden in the order they are defined. 1044s # * 1044s # * Returns: The last property id. 1044s # */ 1044s # guint 1044s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1044s # { 1044s # return property_id_begin - 1; 1044s # } 1044s # 1044s # 1044s # inline static void 1044s # org_project_useful_interface_method_marshal_single_arg_method_u ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterface: 1044s # * 1044s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceIface: 1044s # * @parent_iface: The parent interface. 1044s # * @handle_single_arg_method_u: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-u signal. 1044s # * 1044s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1044s # */ 1044s # 1044s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1044s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1044s # 1044s # static void 1044s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1044s # { 1044s # /* GObject signals for incoming D-Bus method calls: */ 1044s # /** 1044s # * OrgProjectUsefulInterface::handle-single-arg-method-u: 1044s # * @object: A #OrgProjectUsefulInterface. 1044s # * @invocation: A #GDBusMethodInvocation. 1044s # * 1044s # * Signal emitted when a remote caller is invoking the SingleArgMethodU() D-Bus method. 1044s # * 1044s # * 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. 1044s # * 1044s # * 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. 1044s # */ 1044s # g_signal_new ("handle-single-arg-method-u", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_u), 1044s # g_signal_accumulator_true_handled, 1044s # NULL, 1044s # org_project_useful_interface_method_marshal_single_arg_method_u, 1044s # G_TYPE_BOOLEAN, 1044s # 1, 1044s # G_TYPE_DBUS_METHOD_INVOCATION); 1044s # 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_u: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously invokes the SingleArgMethodU() D-Bus method on @proxy. 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_call_single_arg_method_u_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_call_single_arg_method_u_sync() for the synchronous, blocking version of this method. 1044s # */ 1044s # void 1044s # org_project_useful_interface_call_single_arg_method_u ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1044s # "SingleArgMethodU", 1044s # g_variant_new ("()"), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # callback, 1044s # user_data); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_u_finish: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @out_arg_u: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_u(). 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_u(). 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_useful_interface_call_single_arg_method_u_finish ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # guint *out_arg_u, 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "(u)", 1044s # out_arg_u); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_u_sync: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @out_arg_u: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Synchronously invokes the SingleArgMethodU() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_call_single_arg_method_u() for the asynchronous version of this method. 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_useful_interface_call_single_arg_method_u_sync ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # guint *out_arg_u, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1044s # "SingleArgMethodU", 1044s # g_variant_new ("()"), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "(u)", 1044s # out_arg_u); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_complete_single_arg_method_u: 1044s # * @object: A #OrgProjectUsefulInterface. 1044s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1044s # * @arg_u: Parameter to return. 1044s # * 1044s # * 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. 1044s # * 1044s # * This method will free @invocation, you cannot use it afterwards. 1044s # */ 1044s # void 1044s # org_project_useful_interface_complete_single_arg_method_u ( 1044s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1044s # GDBusMethodInvocation *invocation, 1044s # guint arg_u) 1044s # { 1044s # g_dbus_method_invocation_return_value (invocation, 1044s # g_variant_new ("(u)", 1044s # arg_u)); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceProxy: 1044s # * 1044s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceProxyClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1044s # */ 1044s # 1044s # struct _OrgProjectUsefulInterfaceProxyPrivate 1044s # { 1044s # GData *qdata; 1044s # }; 1044s # 1044s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_useful_interface_proxy_finalize (GObject *object) 1044s # { 1044s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1044s # g_datalist_clear (&proxy->priv->qdata); 1044s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # const GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1044s # const gchar *sender_name G_GNUC_UNUSED, 1044s # const gchar *signal_name, 1044s # GVariant *parameters) 1044s # { 1044s # _ExtendedGDBusSignalInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # gsize n; 1044s # guint signal_id; 1044s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1044s # if (info == NULL) 1044s # return; 1044s # num_params = g_variant_n_children (parameters); 1044s # paramv = g_new0 (GValue, num_params + 1); 1044s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_set_object (¶mv[0], proxy); 1044s # g_variant_iter_init (&iter, parameters); 1044s # n = 1; 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_signal_emitv (paramv, signal_id, 0, NULL); 1044s # for (n = 0; n < num_params + 1; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1044s # GVariant *changed_properties, 1044s # const gchar *const *invalidated_properties) 1044s # { 1044s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1044s # guint n; 1044s # const gchar *key; 1044s # GVariantIter *iter; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # g_variant_get (changed_properties, "a{sv}", &iter); 1044s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1044s # g_datalist_remove_data (&proxy->priv->qdata, key); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # g_variant_iter_free (iter); 1044s # for (n = 0; invalidated_properties[n] != NULL; n++) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1044s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1044s # #else 1044s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1044s # #endif 1044s # 1044s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusProxyClass *proxy_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1044s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1044s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1044s # 1044s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1044s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1044s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_useful_interface_proxy_new ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_sync: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_sync ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_useful_interface_proxy_new_for_bus ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_for_bus_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus_sync: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_for_bus_sync ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceSkeleton: 1044s # * 1044s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceSkeletonClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1044s # */ 1044s # 1044s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1044s # { 1044s # GValue *properties; 1044s # GList *changed_properties; 1044s # GSource *changed_properties_idle_source; 1044s # GMainContext *context; 1044s # GMutex lock; 1044s # }; 1044s # 1044s # static void 1044s # _org_project_useful_interface_skeleton_handle_method_call ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name, 1044s # const gchar *method_name, 1044s # GVariant *parameters, 1044s # GDBusMethodInvocation *invocation, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # _ExtendedGDBusMethodInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # guint num_extra; 1044s # gsize n; 1044s # guint signal_id; 1044s # GValue return_value = G_VALUE_INIT; 1044s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1044s # g_assert (info != NULL); 1044s # num_params = g_variant_n_children (parameters); 1044s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1044s # n = 0; 1044s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_set_object (¶mv[n++], skeleton); 1044s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1044s # g_value_set_object (¶mv[n++], invocation); 1044s # if (info->pass_fdlist) 1044s # { 1044s # #ifdef G_OS_UNIX 1044s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1044s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1044s # #else 1044s # g_assert_not_reached (); 1044s # #endif 1044s # } 1044s # g_variant_iter_init (&iter, parameters); 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1044s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1044s # if (!g_value_get_boolean (&return_value)) 1044s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1044s # g_value_unset (&return_value); 1044s # for (n = 0; n < num_params + num_extra; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static GVariant * 1044s # _org_project_useful_interface_skeleton_handle_get_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # GVariant *ret; 1044s # ret = NULL; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # g_value_init (&value, pspec->value_type); 1044s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1044s # g_value_unset (&value); 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _org_project_useful_interface_skeleton_handle_set_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GVariant *variant, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # gboolean ret; 1044s # ret = FALSE; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # if (info->use_gvariant) 1044s # g_value_set_variant (&value, variant); 1044s # else 1044s # g_dbus_gvariant_to_gvalue (variant, &value); 1044s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # g_value_unset (&value); 1044s # ret = TRUE; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1044s # { 1044s # _org_project_useful_interface_skeleton_handle_method_call, 1044s # _org_project_useful_interface_skeleton_handle_get_property, 1044s # _org_project_useful_interface_skeleton_handle_set_property, 1044s # {NULL} 1044s # }; 1044s # 1044s # static GDBusInterfaceInfo * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return org_project_useful_interface_interface_info (); 1044s # } 1044s # 1044s # static GDBusInterfaceVTable * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1044s # } 1044s # 1044s # static GVariant * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1044s # 1044s # GVariantBuilder builder; 1044s # guint n; 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1044s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #else 1044s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #endif 1044s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1044s # goto out; 1044s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1044s # { 1044s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1044s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1044s # { 1044s # GVariant *value; 1044s # 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); 1044s # if (value != NULL) 1044s # { 1044s # g_variant_take_ref (value); 1044s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1044s # g_variant_unref (value); 1044s # } 1044s # } 1044s # } 1044s # out: 1044s # return g_variant_builder_end (&builder); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_useful_interface_skeleton_finalize (GObject *object) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1044s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1044s # if (skeleton->priv->changed_properties_idle_source != NULL) 1044s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1044s # g_main_context_unref (skeleton->priv->context); 1044s # g_mutex_clear (&skeleton->priv->lock); 1044s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1044s # #else 1044s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1044s # #endif 1044s # 1044s # g_mutex_init (&skeleton->priv->lock); 1044s # skeleton->priv->context = g_main_context_ref_thread_default (); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusInterfaceSkeletonClass *skeleton_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1044s # 1044s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1044s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1044s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1044s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1044s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_skeleton_new: 1044s # * 1044s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_skeleton_new (void) 1044s # { 1044s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1044s # } 1044s # Error: 1044s # 1044s # /tmp/tmp2adpb45_/tmpz7ca7d3w.xml: 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2adpb45_/tmpz7ca7d3w.xml', '--output', '-', '--body'] 1044s # Return code: 0 1044s # Output: 1044s # /* 1044s # * This file is generated by gdbus-codegen, do not modify it. 1044s # * 1044s # * The license of this code is the same as for the D-Bus interface description 1044s # * it was derived from. Note that it links to GLib, so must comply with the 1044s # * LGPL linking clauses. 1044s # */ 1044s # 1044s # #ifdef HAVE_CONFIG_H 1044s # # include "config.h" 1044s # #endif 1044s # 1044s # #include 1044s # #ifdef G_OS_UNIX 1044s # # include 1044s # #endif 1044s # 1044s # #ifdef G_ENABLE_DEBUG 1044s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1044s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1044s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1044s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1044s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1044s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1044s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1044s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1044s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1044s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1044s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1044s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1044s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1044s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1044s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1044s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1044s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1044s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1044s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1044s # #else /* !G_ENABLE_DEBUG */ 1044s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1044s # * Do not access GValues directly in your code. Instead, use the 1044s # * g_value_get_*() functions 1044s # */ 1044s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1044s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1044s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1044s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1044s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1044s # #endif /* !G_ENABLE_DEBUG */ 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusArgInfo parent_struct; 1044s # gboolean use_gvariant; 1044s # } _ExtendedGDBusArgInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusMethodInfo parent_struct; 1044s # const gchar *signal_name; 1044s # gboolean pass_fdlist; 1044s # } _ExtendedGDBusMethodInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusSignalInfo parent_struct; 1044s # const gchar *signal_name; 1044s # } _ExtendedGDBusSignalInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusPropertyInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # guint use_gvariant : 1; 1044s # guint emits_changed_signal : 1; 1044s # } _ExtendedGDBusPropertyInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusInterfaceInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # } _ExtendedGDBusInterfaceInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # const _ExtendedGDBusPropertyInfo *info; 1044s # guint prop_id; 1044s # GValue orig_value; /* the value before the change */ 1044s # } ChangedProperty; 1044s # 1044s # static void 1044s # _changed_property_free (ChangedProperty *data) 1044s # { 1044s # g_value_unset (&data->orig_value); 1044s # g_free (data); 1044s # } 1044s # 1044s # static gboolean 1044s # _g_strv_equal0 (gchar **a, gchar **b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # guint n; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # if (g_strv_length (a) != g_strv_length (b)) 1044s # goto out; 1044s # for (n = 0; a[n] != NULL; n++) 1044s # if (g_strcmp0 (a[n], b[n]) != 0) 1044s # goto out; 1044s # ret = TRUE; 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _g_variant_equal0 (GVariant *a, GVariant *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # ret = g_variant_equal (a, b); 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # G_GNUC_UNUSED static gboolean 1044s # _g_value_equal (const GValue *a, const GValue *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1044s # switch (G_VALUE_TYPE (a)) 1044s # { 1044s # case G_TYPE_BOOLEAN: 1044s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1044s # break; 1044s # case G_TYPE_UCHAR: 1044s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1044s # break; 1044s # case G_TYPE_INT: 1044s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1044s # break; 1044s # case G_TYPE_UINT: 1044s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1044s # break; 1044s # case G_TYPE_INT64: 1044s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1044s # break; 1044s # case G_TYPE_UINT64: 1044s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1044s # break; 1044s # case G_TYPE_DOUBLE: 1044s # { 1044s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1044s # gdouble da = g_value_get_double (a); 1044s # gdouble db = g_value_get_double (b); 1044s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1044s # } 1044s # break; 1044s # case G_TYPE_STRING: 1044s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1044s # break; 1044s # case G_TYPE_VARIANT: 1044s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1044s # break; 1044s # default: 1044s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1044s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1044s # else 1044s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1044s # break; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static void 1044s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint G_GNUC_UNUSED, 1044s # void *marshal_data) 1044s # { 1044s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1044s # (void *data1, 1044s # GDBusMethodInvocation *arg_method_invocation, 1044s # void *data2); 1044s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1044s # GCClosure *cc = (GCClosure*) closure; 1044s # void *data1, *data2; 1044s # gboolean v_return; 1044s # 1044s # g_return_if_fail (return_value != NULL); 1044s # g_return_if_fail (n_param_values == 2); 1044s # 1044s # if (G_CCLOSURE_SWAP_DATA (closure)) 1044s # { 1044s # data1 = closure->data; 1044s # data2 = g_value_peek_pointer (param_values + 0); 1044s # } 1044s # else 1044s # { 1044s # data1 = g_value_peek_pointer (param_values + 0); 1044s # data2 = closure->data; 1044s # } 1044s # 1044s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1044s # (marshal_data ? marshal_data : cc->callback); 1044s # 1044s # v_return = 1044s # callback (data1, 1044s # g_marshal_value_peek_object (param_values + 1), 1044s # data2); 1044s # 1044s # g_value_set_boolean (return_value, v_return); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ 1044s # * Code for interface org.project.UsefulInterface 1044s # * ------------------------------------------------------------------------ 1044s # */ 1044s # 1044s # /** 1044s # * SECTION:OrgProjectUsefulInterface 1044s # * @title: OrgProjectUsefulInterface 1044s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1044s # * 1044s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1044s # */ 1044s # 1044s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_arg_x = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "arg_x", 1044s # (gchar *) "x", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_pointers[] = 1044s # { 1044s # &_org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_arg_x.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_x = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "SingleArgMethodX", 1044s # NULL, 1044s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_pointers, 1044s # NULL 1044s # }, 1044s # "handle-single-arg-method-x", 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1044s # { 1044s # &_org_project_useful_interface_method_info_single_arg_method_x.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "org.project.UsefulInterface", 1044s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1044s # NULL, 1044s # NULL, 1044s # NULL 1044s # }, 1044s # "org-project-useful-interface", 1044s # }; 1044s # 1044s # 1044s # /** 1044s # * org_project_useful_interface_interface_info: 1044s # * 1044s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1044s # * 1044s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1044s # */ 1044s # GDBusInterfaceInfo * 1044s # org_project_useful_interface_interface_info (void) 1044s # { 1044s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_override_properties: 1044s # * @klass: The class structure for a #GObject derived class. 1044s # * @property_id_begin: The property id to assign to the first overridden property. 1044s # * 1044s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1044s # * The properties are overridden in the order they are defined. 1044s # * 1044s # * Returns: The last property id. 1044s # */ 1044s # guint 1044s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1044s # { 1044s # return property_id_begin - 1; 1044s # } 1044s # 1044s # 1044s # inline static void 1044s # org_project_useful_interface_method_marshal_single_arg_method_x ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterface: 1044s # * 1044s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceIface: 1044s # * @parent_iface: The parent interface. 1044s # * @handle_single_arg_method_x: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-x signal. 1044s # * 1044s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1044s # */ 1044s # 1044s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1044s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1044s # 1044s # static void 1044s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1044s # { 1044s # /* GObject signals for incoming D-Bus method calls: */ 1044s # /** 1044s # * OrgProjectUsefulInterface::handle-single-arg-method-x: 1044s # * @object: A #OrgProjectUsefulInterface. 1044s # * @invocation: A #GDBusMethodInvocation. 1044s # * 1044s # * Signal emitted when a remote caller is invoking the SingleArgMethodX() D-Bus method. 1044s # * 1044s # * 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. 1044s # * 1044s # * 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. 1044s # */ 1044s # g_signal_new ("handle-single-arg-method-x", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_x), 1044s # g_signal_accumulator_true_handled, 1044s # NULL, 1044s # org_project_useful_interface_method_marshal_single_arg_method_x, 1044s # G_TYPE_BOOLEAN, 1044s # 1, 1044s # G_TYPE_DBUS_METHOD_INVOCATION); 1044s # 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_x: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously invokes the SingleArgMethodX() D-Bus method on @proxy. 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_call_single_arg_method_x_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_call_single_arg_method_x_sync() for the synchronous, blocking version of this method. 1044s # */ 1044s # void 1044s # org_project_useful_interface_call_single_arg_method_x ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1044s # "SingleArgMethodX", 1044s # g_variant_new ("()"), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # callback, 1044s # user_data); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_x_finish: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @out_arg_x: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_x(). 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_x(). 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_useful_interface_call_single_arg_method_x_finish ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # gint64 *out_arg_x, 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "(x)", 1044s # out_arg_x); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_x_sync: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @out_arg_x: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Synchronously invokes the SingleArgMethodX() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_call_single_arg_method_x() for the asynchronous version of this method. 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_useful_interface_call_single_arg_method_x_sync ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # gint64 *out_arg_x, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1044s # "SingleArgMethodX", 1044s # g_variant_new ("()"), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "(x)", 1044s # out_arg_x); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_complete_single_arg_method_x: 1044s # * @object: A #OrgProjectUsefulInterface. 1044s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1044s # * @arg_x: Parameter to return. 1044s # * 1044s # * 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. 1044s # * 1044s # * This method will free @invocation, you cannot use it afterwards. 1044s # */ 1044s # void 1044s # org_project_useful_interface_complete_single_arg_method_x ( 1044s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1044s # GDBusMethodInvocation *invocation, 1044s # gint64 arg_x) 1044s # { 1044s # g_dbus_method_invocation_return_value (invocation, 1044s # g_variant_new ("(x)", 1044s # arg_x)); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceProxy: 1044s # * 1044s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceProxyClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1044s # */ 1044s # 1044s # struct _OrgProjectUsefulInterfaceProxyPrivate 1044s # { 1044s # GData *qdata; 1044s # }; 1044s # 1044s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_useful_interface_proxy_finalize (GObject *object) 1044s # { 1044s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1044s # g_datalist_clear (&proxy->priv->qdata); 1044s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # const GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1044s # const gchar *sender_name G_GNUC_UNUSED, 1044s # const gchar *signal_name, 1044s # GVariant *parameters) 1044s # { 1044s # _ExtendedGDBusSignalInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # gsize n; 1044s # guint signal_id; 1044s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1044s # if (info == NULL) 1044s # return; 1044s # num_params = g_variant_n_children (parameters); 1044s # paramv = g_new0 (GValue, num_params + 1); 1044s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_set_object (¶mv[0], proxy); 1044s # g_variant_iter_init (&iter, parameters); 1044s # n = 1; 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_signal_emitv (paramv, signal_id, 0, NULL); 1044s # for (n = 0; n < num_params + 1; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1044s # GVariant *changed_properties, 1044s # const gchar *const *invalidated_properties) 1044s # { 1044s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1044s # guint n; 1044s # const gchar *key; 1044s # GVariantIter *iter; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # g_variant_get (changed_properties, "a{sv}", &iter); 1044s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1044s # g_datalist_remove_data (&proxy->priv->qdata, key); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # g_variant_iter_free (iter); 1044s # for (n = 0; invalidated_properties[n] != NULL; n++) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1044s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1044s # #else 1044s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1044s # #endif 1044s # 1044s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusProxyClass *proxy_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1044s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1044s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1044s # 1044s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1044s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1044s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_useful_interface_proxy_new ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_sync: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_sync ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_useful_interface_proxy_new_for_bus ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_for_bus_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus_sync: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_for_bus_sync ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceSkeleton: 1044s # * 1044s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceSkeletonClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1044s # */ 1044s # 1044s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1044s # { 1044s # GValue *properties; 1044s # GList *changed_properties; 1044s # GSource *changed_properties_idle_source; 1044s # GMainContext *context; 1044s # GMutex lock; 1044s # }; 1044s # 1044s # static void 1044s # _org_project_useful_interface_skeleton_handle_method_call ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name, 1044s # const gchar *method_name, 1044s # GVariant *parameters, 1044s # GDBusMethodInvocation *invocation, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # _ExtendedGDBusMethodInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # guint num_extra; 1044s # gsize n; 1044s # guint signal_id; 1044s # GValue return_value = G_VALUE_INIT; 1044s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1044s # g_assert (info != NULL); 1044s # num_params = g_variant_n_children (parameters); 1044s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1044s # n = 0; 1044s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_set_object (¶mv[n++], skeleton); 1044s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1044s # g_value_set_object (¶mv[n++], invocation); 1044s # if (info->pass_fdlist) 1044s # { 1044s # #ifdef G_OS_UNIX 1044s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1044s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1044s # #else 1044s # g_assert_not_reached (); 1044s # #endif 1044s # } 1044s # g_variant_iter_init (&iter, parameters); 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1044s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1044s # if (!g_value_get_boolean (&return_value)) 1044s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1044s # g_value_unset (&return_value); 1044s # for (n = 0; n < num_params + num_extra; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static GVariant * 1044s # _org_project_useful_interface_skeleton_handle_get_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # GVariant *ret; 1044s # ret = NULL; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # g_value_init (&value, pspec->value_type); 1044s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1044s # g_value_unset (&value); 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _org_project_useful_interface_skeleton_handle_set_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GVariant *variant, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # gboolean ret; 1044s # ret = FALSE; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # if (info->use_gvariant) 1044s # g_value_set_variant (&value, variant); 1044s # else 1044s # g_dbus_gvariant_to_gvalue (variant, &value); 1044s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # g_value_unset (&value); 1044s # ret = TRUE; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1044s # { 1044s # _org_project_useful_interface_skeleton_handle_method_call, 1044s # _org_project_useful_interface_skeleton_handle_get_property, 1044s # _org_project_useful_interface_skeleton_handle_set_property, 1044s # {NULL} 1044s # }; 1044s # 1044s # static GDBusInterfaceInfo * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return org_project_useful_interface_interface_info (); 1044s # } 1044s # 1044s # static GDBusInterfaceVTable * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1044s # } 1044s # 1044s # static GVariant * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1044s # 1044s # GVariantBuilder builder; 1044s # guint n; 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1044s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #else 1044s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #endif 1044s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1044s # goto out; 1044s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1044s # { 1044s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1044s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1044s # { 1044s # GVariant *value; 1044s # 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); 1044s # if (value != NULL) 1044s # { 1044s # g_variant_take_ref (value); 1044s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1044s # g_variant_unref (value); 1044s # } 1044s # } 1044s # } 1044s # out: 1044s # return g_variant_builder_end (&builder); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_useful_interface_skeleton_finalize (GObject *object) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1044s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1044s # if (skeleton->priv->changed_properties_idle_source != NULL) 1044s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1044s # g_main_context_unref (skeleton->priv->context); 1044s # g_mutex_clear (&skeleton->priv->lock); 1044s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1044s # #else 1044s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1044s # #endif 1044s # 1044s # g_mutex_init (&skeleton->priv->lock); 1044s # skeleton->priv->context = g_main_context_ref_thread_default (); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusInterfaceSkeletonClass *skeleton_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1044s # 1044s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1044s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1044s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1044s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1044s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_skeleton_new: 1044s # * 1044s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_skeleton_new (void) 1044s # { 1044s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1044s # } 1044s # Error: 1044s # 1044s # /tmp/tmp2adpb45_/tmpv24j6_7m.xml: 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2adpb45_/tmpv24j6_7m.xml', '--output', '-', '--body'] 1044s # Return code: 0 1044s # Output: 1044s # /* 1044s # * This file is generated by gdbus-codegen, do not modify it. 1044s # * 1044s # * The license of this code is the same as for the D-Bus interface description 1044s # * it was derived from. Note that it links to GLib, so must comply with the 1044s # * LGPL linking clauses. 1044s # */ 1044s # 1044s # #ifdef HAVE_CONFIG_H 1044s # # include "config.h" 1044s # #endif 1044s # 1044s # #include 1044s # #ifdef G_OS_UNIX 1044s # # include 1044s # #endif 1044s # 1044s # #ifdef G_ENABLE_DEBUG 1044s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1044s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1044s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1044s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1044s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1044s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1044s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1044s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1044s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1044s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1044s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1044s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1044s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1044s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1044s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1044s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1044s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1044s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1044s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1044s # #else /* !G_ENABLE_DEBUG */ 1044s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1044s # * Do not access GValues directly in your code. Instead, use the 1044s # * g_value_get_*() functions 1044s # */ 1044s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1044s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1044s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1044s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1044s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1044s # #endif /* !G_ENABLE_DEBUG */ 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusArgInfo parent_struct; 1044s # gboolean use_gvariant; 1044s # } _ExtendedGDBusArgInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusMethodInfo parent_struct; 1044s # const gchar *signal_name; 1044s # gboolean pass_fdlist; 1044s # } _ExtendedGDBusMethodInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusSignalInfo parent_struct; 1044s # const gchar *signal_name; 1044s # } _ExtendedGDBusSignalInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusPropertyInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # guint use_gvariant : 1; 1044s # guint emits_changed_signal : 1; 1044s # } _ExtendedGDBusPropertyInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusInterfaceInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # } _ExtendedGDBusInterfaceInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # const _ExtendedGDBusPropertyInfo *info; 1044s # guint prop_id; 1044s # GValue orig_value; /* the value before the change */ 1044s # } ChangedProperty; 1044s # 1044s # static void 1044s # _changed_property_free (ChangedProperty *data) 1044s # { 1044s # g_value_unset (&data->orig_value); 1044s # g_free (data); 1044s # } 1044s # 1044s # static gboolean 1044s # _g_strv_equal0 (gchar **a, gchar **b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # guint n; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # if (g_strv_length (a) != g_strv_length (b)) 1044s # goto out; 1044s # for (n = 0; a[n] != NULL; n++) 1044s # if (g_strcmp0 (a[n], b[n]) != 0) 1044s # goto out; 1044s # ret = TRUE; 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _g_variant_equal0 (GVariant *a, GVariant *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # ret = g_variant_equal (a, b); 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # G_GNUC_UNUSED static gboolean 1044s # _g_value_equal (const GValue *a, const GValue *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1044s # switch (G_VALUE_TYPE (a)) 1044s # { 1044s # case G_TYPE_BOOLEAN: 1044s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1044s # break; 1044s # case G_TYPE_UCHAR: 1044s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1044s # break; 1044s # case G_TYPE_INT: 1044s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1044s # break; 1044s # case G_TYPE_UINT: 1044s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1044s # break; 1044s # case G_TYPE_INT64: 1044s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1044s # break; 1044s # case G_TYPE_UINT64: 1044s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1044s # break; 1044s # case G_TYPE_DOUBLE: 1044s # { 1044s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1044s # gdouble da = g_value_get_double (a); 1044s # gdouble db = g_value_get_double (b); 1044s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1044s # } 1044s # break; 1044s # case G_TYPE_STRING: 1044s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1044s # break; 1044s # case G_TYPE_VARIANT: 1044s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1044s # break; 1044s # default: 1044s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1044s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1044s # else 1044s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1044s # break; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static void 1044s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint G_GNUC_UNUSED, 1044s # void *marshal_data) 1044s # { 1044s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1044s # (void *data1, 1044s # GDBusMethodInvocation *arg_method_invocation, 1044s # void *data2); 1044s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1044s # GCClosure *cc = (GCClosure*) closure; 1044s # void *data1, *data2; 1044s # gboolean v_return; 1044s # 1044s # g_return_if_fail (return_value != NULL); 1044s # g_return_if_fail (n_param_values == 2); 1044s # 1044s # if (G_CCLOSURE_SWAP_DATA (closure)) 1044s # { 1044s # data1 = closure->data; 1044s # data2 = g_value_peek_pointer (param_values + 0); 1044s # } 1044s # else 1044s # { 1044s # data1 = g_value_peek_pointer (param_values + 0); 1044s # data2 = closure->data; 1044s # } 1044s # 1044s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1044s # (marshal_data ? marshal_data : cc->callback); 1044s # 1044s # v_return = 1044s # callback (data1, 1044s # g_marshal_value_peek_object (param_values + 1), 1044s # data2); 1044s # 1044s # g_value_set_boolean (return_value, v_return); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ 1044s # * Code for interface org.project.UsefulInterface 1044s # * ------------------------------------------------------------------------ 1044s # */ 1044s # 1044s # /** 1044s # * SECTION:OrgProjectUsefulInterface 1044s # * @title: OrgProjectUsefulInterface 1044s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1044s # * 1044s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1044s # */ 1044s # 1044s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_arg_t = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "arg_t", 1044s # (gchar *) "t", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_pointers[] = 1044s # { 1044s # &_org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_arg_t.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_t = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "SingleArgMethodT", 1044s # NULL, 1044s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_pointers, 1044s # NULL 1044s # }, 1044s # "handle-single-arg-method-t", 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1044s # { 1044s # &_org_project_useful_interface_method_info_single_arg_method_t.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "org.project.UsefulInterface", 1044s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1044s # NULL, 1044s # NULL, 1044s # NULL 1044s # }, 1044s # "org-project-useful-interface", 1044s # }; 1044s # 1044s # 1044s # /** 1044s # * org_project_useful_interface_interface_info: 1044s # * 1044s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1044s # * 1044s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1044s # */ 1044s # GDBusInterfaceInfo * 1044s # org_project_useful_interface_interface_info (void) 1044s # { 1044s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_override_properties: 1044s # * @klass: The class structure for a #GObject derived class. 1044s # * @property_id_begin: The property id to assign to the first overridden property. 1044s # * 1044s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1044s # * The properties are overridden in the order they are defined. 1044s # * 1044s # * Returns: The last property id. 1044s # */ 1044s # guint 1044s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1044s # { 1044s # return property_id_begin - 1; 1044s # } 1044s # 1044s # 1044s # inline static void 1044s # org_project_useful_interface_method_marshal_single_arg_method_t ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterface: 1044s # * 1044s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceIface: 1044s # * @parent_iface: The parent interface. 1044s # * @handle_single_arg_method_t: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-t signal. 1044s # * 1044s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1044s # */ 1044s # 1044s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1044s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1044s # 1044s # static void 1044s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1044s # { 1044s # /* GObject signals for incoming D-Bus method calls: */ 1044s # /** 1044s # * OrgProjectUsefulInterface::handle-single-arg-method-t: 1044s # * @object: A #OrgProjectUsefulInterface. 1044s # * @invocation: A #GDBusMethodInvocation. 1044s # * 1044s # * Signal emitted when a remote caller is invoking the SingleArgMethodT() D-Bus method. 1044s # * 1044s # * 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. 1044s # * 1044s # * 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. 1044s # */ 1044s # g_signal_new ("handle-single-arg-method-t", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_t), 1044s # g_signal_accumulator_true_handled, 1044s # NULL, 1044s # org_project_useful_interface_method_marshal_single_arg_method_t, 1044s # G_TYPE_BOOLEAN, 1044s # 1, 1044s # G_TYPE_DBUS_METHOD_INVOCATION); 1044s # 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_t: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously invokes the SingleArgMethodT() D-Bus method on @proxy. 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_call_single_arg_method_t_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_call_single_arg_method_t_sync() for the synchronous, blocking version of this method. 1044s # */ 1044s # void 1044s # org_project_useful_interface_call_single_arg_method_t ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1044s # "SingleArgMethodT", 1044s # g_variant_new ("()"), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # callback, 1044s # user_data); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_t_finish: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @out_arg_t: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_t(). 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_t(). 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_useful_interface_call_single_arg_method_t_finish ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # guint64 *out_arg_t, 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "(t)", 1044s # out_arg_t); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_t_sync: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @out_arg_t: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Synchronously invokes the SingleArgMethodT() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_call_single_arg_method_t() for the asynchronous version of this method. 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_useful_interface_call_single_arg_method_t_sync ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # guint64 *out_arg_t, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1044s # "SingleArgMethodT", 1044s # g_variant_new ("()"), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "(t)", 1044s # out_arg_t); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_complete_single_arg_method_t: 1044s # * @object: A #OrgProjectUsefulInterface. 1044s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1044s # * @arg_t: Parameter to return. 1044s # * 1044s # * 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. 1044s # * 1044s # * This method will free @invocation, you cannot use it afterwards. 1044s # */ 1044s # void 1044s # org_project_useful_interface_complete_single_arg_method_t ( 1044s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1044s # GDBusMethodInvocation *invocation, 1044s # guint64 arg_t) 1044s # { 1044s # g_dbus_method_invocation_return_value (invocation, 1044s # g_variant_new ("(t)", 1044s # arg_t)); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceProxy: 1044s # * 1044s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceProxyClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1044s # */ 1044s # 1044s # struct _OrgProjectUsefulInterfaceProxyPrivate 1044s # { 1044s # GData *qdata; 1044s # }; 1044s # 1044s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_useful_interface_proxy_finalize (GObject *object) 1044s # { 1044s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1044s # g_datalist_clear (&proxy->priv->qdata); 1044s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # const GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1044s # const gchar *sender_name G_GNUC_UNUSED, 1044s # const gchar *signal_name, 1044s # GVariant *parameters) 1044s # { 1044s # _ExtendedGDBusSignalInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # gsize n; 1044s # guint signal_id; 1044s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1044s # if (info == NULL) 1044s # return; 1044s # num_params = g_variant_n_children (parameters); 1044s # paramv = g_new0 (GValue, num_params + 1); 1044s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_set_object (¶mv[0], proxy); 1044s # g_variant_iter_init (&iter, parameters); 1044s # n = 1; 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_signal_emitv (paramv, signal_id, 0, NULL); 1044s # for (n = 0; n < num_params + 1; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1044s # GVariant *changed_properties, 1044s # const gchar *const *invalidated_properties) 1044s # { 1044s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1044s # guint n; 1044s # const gchar *key; 1044s # GVariantIter *iter; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # g_variant_get (changed_properties, "a{sv}", &iter); 1044s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1044s # g_datalist_remove_data (&proxy->priv->qdata, key); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # g_variant_iter_free (iter); 1044s # for (n = 0; invalidated_properties[n] != NULL; n++) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1044s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1044s # #else 1044s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1044s # #endif 1044s # 1044s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusProxyClass *proxy_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1044s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1044s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1044s # 1044s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1044s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1044s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_useful_interface_proxy_new ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_sync: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_sync ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_useful_interface_proxy_new_for_bus ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_for_bus_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus_sync: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_for_bus_sync ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceSkeleton: 1044s # * 1044s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceSkeletonClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1044s # */ 1044s # 1044s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1044s # { 1044s # GValue *properties; 1044s # GList *changed_properties; 1044s # GSource *changed_properties_idle_source; 1044s # GMainContext *context; 1044s # GMutex lock; 1044s # }; 1044s # 1044s # static void 1044s # _org_project_useful_interface_skeleton_handle_method_call ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name, 1044s # const gchar *method_name, 1044s # GVariant *parameters, 1044s # GDBusMethodInvocation *invocation, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # _ExtendedGDBusMethodInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # guint num_extra; 1044s # gsize n; 1044s # guint signal_id; 1044s # GValue return_value = G_VALUE_INIT; 1044s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1044s # g_assert (info != NULL); 1044s # num_params = g_variant_n_children (parameters); 1044s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1044s # n = 0; 1044s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_set_object (¶mv[n++], skeleton); 1044s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1044s # g_value_set_object (¶mv[n++], invocation); 1044s # if (info->pass_fdlist) 1044s # { 1044s # #ifdef G_OS_UNIX 1044s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1044s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1044s # #else 1044s # g_assert_not_reached (); 1044s # #endif 1044s # } 1044s # g_variant_iter_init (&iter, parameters); 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1044s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1044s # if (!g_value_get_boolean (&return_value)) 1044s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1044s # g_value_unset (&return_value); 1044s # for (n = 0; n < num_params + num_extra; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static GVariant * 1044s # _org_project_useful_interface_skeleton_handle_get_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # GVariant *ret; 1044s # ret = NULL; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # g_value_init (&value, pspec->value_type); 1044s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1044s # g_value_unset (&value); 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _org_project_useful_interface_skeleton_handle_set_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GVariant *variant, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # gboolean ret; 1044s # ret = FALSE; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # if (info->use_gvariant) 1044s # g_value_set_variant (&value, variant); 1044s # else 1044s # g_dbus_gvariant_to_gvalue (variant, &value); 1044s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # g_value_unset (&value); 1044s # ret = TRUE; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1044s # { 1044s # _org_project_useful_interface_skeleton_handle_method_call, 1044s # _org_project_useful_interface_skeleton_handle_get_property, 1044s # _org_project_useful_interface_skeleton_handle_set_property, 1044s # {NULL} 1044s # }; 1044s # 1044s # static GDBusInterfaceInfo * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return org_project_useful_interface_interface_info (); 1044s # } 1044s # 1044s # static GDBusInterfaceVTable * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1044s # } 1044s # 1044s # static GVariant * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1044s # 1044s # GVariantBuilder builder; 1044s # guint n; 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1044s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #else 1044s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #endif 1044s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1044s # goto out; 1044s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1044s # { 1044s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1044s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1044s # { 1044s # GVariant *value; 1044s # 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); 1044s # if (value != NULL) 1044s # { 1044s # g_variant_take_ref (value); 1044s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1044s # g_variant_unref (value); 1044s # } 1044s # } 1044s # } 1044s # out: 1044s # return g_variant_builder_end (&builder); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_useful_interface_skeleton_finalize (GObject *object) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1044s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1044s # if (skeleton->priv->changed_properties_idle_source != NULL) 1044s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1044s # g_main_context_unref (skeleton->priv->context); 1044s # g_mutex_clear (&skeleton->priv->lock); 1044s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1044s # #else 1044s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1044s # #endif 1044s # 1044s # g_mutex_init (&skeleton->priv->lock); 1044s # skeleton->priv->context = g_main_context_ref_thread_default (); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusInterfaceSkeletonClass *skeleton_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1044s # 1044s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1044s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1044s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1044s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1044s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_skeleton_new: 1044s # * 1044s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_skeleton_new (void) 1044s # { 1044s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1044s # } 1044s # Error: 1044s # 1044s # /tmp/tmp2adpb45_/tmp7sua8d9i.xml: 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2adpb45_/tmp7sua8d9i.xml', '--output', '-', '--body'] 1044s # Return code: 0 1044s # Output: 1044s # /* 1044s # * This file is generated by gdbus-codegen, do not modify it. 1044s # * 1044s # * The license of this code is the same as for the D-Bus interface description 1044s # * it was derived from. Note that it links to GLib, so must comply with the 1044s # * LGPL linking clauses. 1044s # */ 1044s # 1044s # #ifdef HAVE_CONFIG_H 1044s # # include "config.h" 1044s # #endif 1044s # 1044s # #include 1044s # #ifdef G_OS_UNIX 1044s # # include 1044s # #endif 1044s # 1044s # #ifdef G_ENABLE_DEBUG 1044s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1044s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1044s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1044s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1044s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1044s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1044s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1044s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1044s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1044s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1044s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1044s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1044s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1044s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1044s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1044s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1044s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1044s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1044s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1044s # #else /* !G_ENABLE_DEBUG */ 1044s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1044s # * Do not access GValues directly in your code. Instead, use the 1044s # * g_value_get_*() functions 1044s # */ 1044s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1044s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1044s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1044s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1044s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1044s # #endif /* !G_ENABLE_DEBUG */ 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusArgInfo parent_struct; 1044s # gboolean use_gvariant; 1044s # } _ExtendedGDBusArgInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusMethodInfo parent_struct; 1044s # const gchar *signal_name; 1044s # gboolean pass_fdlist; 1044s # } _ExtendedGDBusMethodInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusSignalInfo parent_struct; 1044s # const gchar *signal_name; 1044s # } _ExtendedGDBusSignalInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusPropertyInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # guint use_gvariant : 1; 1044s # guint emits_changed_signal : 1; 1044s # } _ExtendedGDBusPropertyInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusInterfaceInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # } _ExtendedGDBusInterfaceInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # const _ExtendedGDBusPropertyInfo *info; 1044s # guint prop_id; 1044s # GValue orig_value; /* the value before the change */ 1044s # } ChangedProperty; 1044s # 1044s # static void 1044s # _changed_property_free (ChangedProperty *data) 1044s # { 1044s # g_value_unset (&data->orig_value); 1044s # g_free (data); 1044s # } 1044s # 1044s # static gboolean 1044s # _g_strv_equal0 (gchar **a, gchar **b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # guint n; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # if (g_strv_length (a) != g_strv_length (b)) 1044s # goto out; 1044s # for (n = 0; a[n] != NULL; n++) 1044s # if (g_strcmp0 (a[n], b[n]) != 0) 1044s # goto out; 1044s # ret = TRUE; 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _g_variant_equal0 (GVariant *a, GVariant *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # ret = g_variant_equal (a, b); 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # G_GNUC_UNUSED static gboolean 1044s # _g_value_equal (const GValue *a, const GValue *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1044s # switch (G_VALUE_TYPE (a)) 1044s # { 1044s # case G_TYPE_BOOLEAN: 1044s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1044s # break; 1044s # case G_TYPE_UCHAR: 1044s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1044s # break; 1044s # case G_TYPE_INT: 1044s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1044s # break; 1044s # case G_TYPE_UINT: 1044s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1044s # break; 1044s # case G_TYPE_INT64: 1044s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1044s # break; 1044s # case G_TYPE_UINT64: 1044s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1044s # break; 1044s # case G_TYPE_DOUBLE: 1044s # { 1044s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1044s # gdouble da = g_value_get_double (a); 1044s # gdouble db = g_value_get_double (b); 1044s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1044s # } 1044s # break; 1044s # case G_TYPE_STRING: 1044s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1044s # break; 1044s # case G_TYPE_VARIANT: 1044s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1044s # break; 1044s # default: 1044s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1044s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1044s # else 1044s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1044s # break; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static void 1044s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint G_GNUC_UNUSED, 1044s # void *marshal_data) 1044s # { 1044s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1044s # (void *data1, 1044s # GDBusMethodInvocation *arg_method_invocation, 1044s # void *data2); 1044s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1044s # GCClosure *cc = (GCClosure*) closure; 1044s # void *data1, *data2; 1044s # gboolean v_return; 1044s # 1044s # g_return_if_fail (return_value != NULL); 1044s # g_return_if_fail (n_param_values == 2); 1044s # 1044s # if (G_CCLOSURE_SWAP_DATA (closure)) 1044s # { 1044s # data1 = closure->data; 1044s # data2 = g_value_peek_pointer (param_values + 0); 1044s # } 1044s # else 1044s # { 1044s # data1 = g_value_peek_pointer (param_values + 0); 1044s # data2 = closure->data; 1044s # } 1044s # 1044s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1044s # (marshal_data ? marshal_data : cc->callback); 1044s # 1044s # v_return = 1044s # callback (data1, 1044s # g_marshal_value_peek_object (param_values + 1), 1044s # data2); 1044s # 1044s # g_value_set_boolean (return_value, v_return); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ 1044s # * Code for interface org.project.UsefulInterface 1044s # * ------------------------------------------------------------------------ 1044s # */ 1044s # 1044s # /** 1044s # * SECTION:OrgProjectUsefulInterface 1044s # * @title: OrgProjectUsefulInterface 1044s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1044s # * 1044s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1044s # */ 1044s # 1044s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_arg_d = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "arg_d", 1044s # (gchar *) "d", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_pointers[] = 1044s # { 1044s # &_org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_arg_d.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_d = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "SingleArgMethodD", 1044s # NULL, 1044s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_pointers, 1044s # NULL 1044s # }, 1044s # "handle-single-arg-method-d", 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1044s # { 1044s # &_org_project_useful_interface_method_info_single_arg_method_d.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "org.project.UsefulInterface", 1044s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1044s # NULL, 1044s # NULL, 1044s # NULL 1044s # }, 1044s # "org-project-useful-interface", 1044s # }; 1044s # 1044s # 1044s # /** 1044s # * org_project_useful_interface_interface_info: 1044s # * 1044s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1044s # * 1044s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1044s # */ 1044s # GDBusInterfaceInfo * 1044s # org_project_useful_interface_interface_info (void) 1044s # { 1044s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_override_properties: 1044s # * @klass: The class structure for a #GObject derived class. 1044s # * @property_id_begin: The property id to assign to the first overridden property. 1044s # * 1044s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1044s # * The properties are overridden in the order they are defined. 1044s # * 1044s # * Returns: The last property id. 1044s # */ 1044s # guint 1044s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1044s # { 1044s # return property_id_begin - 1; 1044s # } 1044s # 1044s # 1044s # inline static void 1044s # org_project_useful_interface_method_marshal_single_arg_method_d ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterface: 1044s # * 1044s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceIface: 1044s # * @parent_iface: The parent interface. 1044s # * @handle_single_arg_method_d: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-d signal. 1044s # * 1044s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1044s # */ 1044s # 1044s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1044s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1044s # 1044s # static void 1044s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1044s # { 1044s # /* GObject signals for incoming D-Bus method calls: */ 1044s # /** 1044s # * OrgProjectUsefulInterface::handle-single-arg-method-d: 1044s # * @object: A #OrgProjectUsefulInterface. 1044s # * @invocation: A #GDBusMethodInvocation. 1044s # * 1044s # * Signal emitted when a remote caller is invoking the SingleArgMethodD() D-Bus method. 1044s # * 1044s # * 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. 1044s # * 1044s # * 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. 1044s # */ 1044s # g_signal_new ("handle-single-arg-method-d", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_d), 1044s # g_signal_accumulator_true_handled, 1044s # NULL, 1044s # org_project_useful_interface_method_marshal_single_arg_method_d, 1044s # G_TYPE_BOOLEAN, 1044s # 1, 1044s # G_TYPE_DBUS_METHOD_INVOCATION); 1044s # 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_d: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously invokes the SingleArgMethodD() D-Bus method on @proxy. 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_call_single_arg_method_d_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_call_single_arg_method_d_sync() for the synchronous, blocking version of this method. 1044s # */ 1044s # void 1044s # org_project_useful_interface_call_single_arg_method_d ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1044s # "SingleArgMethodD", 1044s # g_variant_new ("()"), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # callback, 1044s # user_data); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_d_finish: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @out_arg_d: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_d(). 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_d(). 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_useful_interface_call_single_arg_method_d_finish ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # gdouble *out_arg_d, 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "(d)", 1044s # out_arg_d); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_d_sync: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @out_arg_d: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Synchronously invokes the SingleArgMethodD() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_call_single_arg_method_d() for the asynchronous version of this method. 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_useful_interface_call_single_arg_method_d_sync ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # gdouble *out_arg_d, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1044s # "SingleArgMethodD", 1044s # g_variant_new ("()"), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "(d)", 1044s # out_arg_d); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_complete_single_arg_method_d: 1044s # * @object: A #OrgProjectUsefulInterface. 1044s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1044s # * @arg_d: Parameter to return. 1044s # * 1044s # * 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. 1044s # * 1044s # * This method will free @invocation, you cannot use it afterwards. 1044s # */ 1044s # void 1044s # org_project_useful_interface_complete_single_arg_method_d ( 1044s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1044s # GDBusMethodInvocation *invocation, 1044s # gdouble arg_d) 1044s # { 1044s # g_dbus_method_invocation_return_value (invocation, 1044s # g_variant_new ("(d)", 1044s # arg_d)); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceProxy: 1044s # * 1044s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceProxyClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1044s # */ 1044s # 1044s # struct _OrgProjectUsefulInterfaceProxyPrivate 1044s # { 1044s # GData *qdata; 1044s # }; 1044s # 1044s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_useful_interface_proxy_finalize (GObject *object) 1044s # { 1044s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1044s # g_datalist_clear (&proxy->priv->qdata); 1044s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # const GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1044s # const gchar *sender_name G_GNUC_UNUSED, 1044s # const gchar *signal_name, 1044s # GVariant *parameters) 1044s # { 1044s # _ExtendedGDBusSignalInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # gsize n; 1044s # guint signal_id; 1044s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1044s # if (info == NULL) 1044s # return; 1044s # num_params = g_variant_n_children (parameters); 1044s # paramv = g_new0 (GValue, num_params + 1); 1044s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_set_object (¶mv[0], proxy); 1044s # g_variant_iter_init (&iter, parameters); 1044s # n = 1; 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_signal_emitv (paramv, signal_id, 0, NULL); 1044s # for (n = 0; n < num_params + 1; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1044s # GVariant *changed_properties, 1044s # const gchar *const *invalidated_properties) 1044s # { 1044s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1044s # guint n; 1044s # const gchar *key; 1044s # GVariantIter *iter; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # g_variant_get (changed_properties, "a{sv}", &iter); 1044s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1044s # g_datalist_remove_data (&proxy->priv->qdata, key); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # g_variant_iter_free (iter); 1044s # for (n = 0; invalidated_properties[n] != NULL; n++) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1044s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1044s # #else 1044s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1044s # #endif 1044s # 1044s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusProxyClass *proxy_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1044s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1044s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1044s # 1044s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1044s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1044s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_useful_interface_proxy_new ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_sync: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_sync ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_useful_interface_proxy_new_for_bus ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_for_bus_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus_sync: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_for_bus_sync ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceSkeleton: 1044s # * 1044s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceSkeletonClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1044s # */ 1044s # 1044s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1044s # { 1044s # GValue *properties; 1044s # GList *changed_properties; 1044s # GSource *changed_properties_idle_source; 1044s # GMainContext *context; 1044s # GMutex lock; 1044s # }; 1044s # 1044s # static void 1044s # _org_project_useful_interface_skeleton_handle_method_call ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name, 1044s # const gchar *method_name, 1044s # GVariant *parameters, 1044s # GDBusMethodInvocation *invocation, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # _ExtendedGDBusMethodInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # guint num_extra; 1044s # gsize n; 1044s # guint signal_id; 1044s # GValue return_value = G_VALUE_INIT; 1044s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1044s # g_assert (info != NULL); 1044s # num_params = g_variant_n_children (parameters); 1044s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1044s # n = 0; 1044s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_set_object (¶mv[n++], skeleton); 1044s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1044s # g_value_set_object (¶mv[n++], invocation); 1044s # if (info->pass_fdlist) 1044s # { 1044s # #ifdef G_OS_UNIX 1044s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1044s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1044s # #else 1044s # g_assert_not_reached (); 1044s # #endif 1044s # } 1044s # g_variant_iter_init (&iter, parameters); 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1044s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1044s # if (!g_value_get_boolean (&return_value)) 1044s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1044s # g_value_unset (&return_value); 1044s # for (n = 0; n < num_params + num_extra; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static GVariant * 1044s # _org_project_useful_interface_skeleton_handle_get_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # GVariant *ret; 1044s # ret = NULL; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # g_value_init (&value, pspec->value_type); 1044s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1044s # g_value_unset (&value); 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _org_project_useful_interface_skeleton_handle_set_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GVariant *variant, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # gboolean ret; 1044s # ret = FALSE; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # if (info->use_gvariant) 1044s # g_value_set_variant (&value, variant); 1044s # else 1044s # g_dbus_gvariant_to_gvalue (variant, &value); 1044s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # g_value_unset (&value); 1044s # ret = TRUE; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1044s # { 1044s # _org_project_useful_interface_skeleton_handle_method_call, 1044s # _org_project_useful_interface_skeleton_handle_get_property, 1044s # _org_project_useful_interface_skeleton_handle_set_property, 1044s # {NULL} 1044s # }; 1044s # 1044s # static GDBusInterfaceInfo * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return org_project_useful_interface_interface_info (); 1044s # } 1044s # 1044s # static GDBusInterfaceVTable * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1044s # } 1044s # 1044s # static GVariant * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1044s # 1044s # GVariantBuilder builder; 1044s # guint n; 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1044s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #else 1044s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #endif 1044s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1044s # goto out; 1044s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1044s # { 1044s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1044s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1044s # { 1044s # GVariant *value; 1044s # 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); 1044s # if (value != NULL) 1044s # { 1044s # g_variant_take_ref (value); 1044s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1044s # g_variant_unref (value); 1044s # } 1044s # } 1044s # } 1044s # out: 1044s # return g_variant_builder_end (&builder); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_useful_interface_skeleton_finalize (GObject *object) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1044s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1044s # if (skeleton->priv->changed_properties_idle_source != NULL) 1044s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1044s # g_main_context_unref (skeleton->priv->context); 1044s # g_mutex_clear (&skeleton->priv->lock); 1044s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1044s # #else 1044s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1044s # #endif 1044s # 1044s # g_mutex_init (&skeleton->priv->lock); 1044s # skeleton->priv->context = g_main_context_ref_thread_default (); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusInterfaceSkeletonClass *skeleton_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1044s # 1044s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1044s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1044s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1044s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1044s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_skeleton_new: 1044s # * 1044s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_skeleton_new (void) 1044s # { 1044s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1044s # } 1044s # Error: 1044s # 1044s # /tmp/tmp2adpb45_/tmpa91ijv68.xml: 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2adpb45_/tmpa91ijv68.xml', '--output', '-', '--body'] 1044s # Return code: 0 1044s # Output: 1044s # /* 1044s # * This file is generated by gdbus-codegen, do not modify it. 1044s # * 1044s # * The license of this code is the same as for the D-Bus interface description 1044s # * it was derived from. Note that it links to GLib, so must comply with the 1044s # * LGPL linking clauses. 1044s # */ 1044s # 1044s # #ifdef HAVE_CONFIG_H 1044s # # include "config.h" 1044s # #endif 1044s # 1044s # #include 1044s # #ifdef G_OS_UNIX 1044s # # include 1044s # #endif 1044s # 1044s # #ifdef G_ENABLE_DEBUG 1044s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1044s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1044s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1044s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1044s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1044s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1044s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1044s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1044s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1044s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1044s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1044s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1044s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1044s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1044s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1044s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1044s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1044s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1044s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1044s # #else /* !G_ENABLE_DEBUG */ 1044s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1044s # * Do not access GValues directly in your code. Instead, use the 1044s # * g_value_get_*() functions 1044s # */ 1044s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1044s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1044s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1044s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1044s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1044s # #endif /* !G_ENABLE_DEBUG */ 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusArgInfo parent_struct; 1044s # gboolean use_gvariant; 1044s # } _ExtendedGDBusArgInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusMethodInfo parent_struct; 1044s # const gchar *signal_name; 1044s # gboolean pass_fdlist; 1044s # } _ExtendedGDBusMethodInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusSignalInfo parent_struct; 1044s # const gchar *signal_name; 1044s # } _ExtendedGDBusSignalInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusPropertyInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # guint use_gvariant : 1; 1044s # guint emits_changed_signal : 1; 1044s # } _ExtendedGDBusPropertyInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusInterfaceInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # } _ExtendedGDBusInterfaceInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # const _ExtendedGDBusPropertyInfo *info; 1044s # guint prop_id; 1044s # GValue orig_value; /* the value before the change */ 1044s # } ChangedProperty; 1044s # 1044s # static void 1044s # _changed_property_free (ChangedProperty *data) 1044s # { 1044s # g_value_unset (&data->orig_value); 1044s # g_free (data); 1044s # } 1044s # 1044s # static gboolean 1044s # _g_strv_equal0 (gchar **a, gchar **b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # guint n; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # if (g_strv_length (a) != g_strv_length (b)) 1044s # goto out; 1044s # for (n = 0; a[n] != NULL; n++) 1044s # if (g_strcmp0 (a[n], b[n]) != 0) 1044s # goto out; 1044s # ret = TRUE; 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _g_variant_equal0 (GVariant *a, GVariant *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # ret = g_variant_equal (a, b); 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # G_GNUC_UNUSED static gboolean 1044s # _g_value_equal (const GValue *a, const GValue *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1044s # switch (G_VALUE_TYPE (a)) 1044s # { 1044s # case G_TYPE_BOOLEAN: 1044s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1044s # break; 1044s # case G_TYPE_UCHAR: 1044s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1044s # break; 1044s # case G_TYPE_INT: 1044s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1044s # break; 1044s # case G_TYPE_UINT: 1044s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1044s # break; 1044s # case G_TYPE_INT64: 1044s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1044s # break; 1044s # case G_TYPE_UINT64: 1044s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1044s # break; 1044s # case G_TYPE_DOUBLE: 1044s # { 1044s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1044s # gdouble da = g_value_get_double (a); 1044s # gdouble db = g_value_get_double (b); 1044s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1044s # } 1044s # break; 1044s # case G_TYPE_STRING: 1044s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1044s # break; 1044s # case G_TYPE_VARIANT: 1044s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1044s # break; 1044s # default: 1044s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1044s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1044s # else 1044s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1044s # break; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static void 1044s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint G_GNUC_UNUSED, 1044s # void *marshal_data) 1044s # { 1044s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1044s # (void *data1, 1044s # GDBusMethodInvocation *arg_method_invocation, 1044s # void *data2); 1044s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1044s # GCClosure *cc = (GCClosure*) closure; 1044s # void *data1, *data2; 1044s # gboolean v_return; 1044s # 1044s # g_return_if_fail (return_value != NULL); 1044s # g_return_if_fail (n_param_values == 2); 1044s # 1044s # if (G_CCLOSURE_SWAP_DATA (closure)) 1044s # { 1044s # data1 = closure->data; 1044s # data2 = g_value_peek_pointer (param_values + 0); 1044s # } 1044s # else 1044s # { 1044s # data1 = g_value_peek_pointer (param_values + 0); 1044s # data2 = closure->data; 1044s # } 1044s # 1044s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1044s # (marshal_data ? marshal_data : cc->callback); 1044s # 1044s # v_return = 1044s # callback (data1, 1044s # g_marshal_value_peek_object (param_values + 1), 1044s # data2); 1044s # 1044s # g_value_set_boolean (return_value, v_return); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ 1044s # * Code for interface org.project.UsefulInterface 1044s # * ------------------------------------------------------------------------ 1044s # */ 1044s # 1044s # /** 1044s # * SECTION:OrgProjectUsefulInterface 1044s # * @title: OrgProjectUsefulInterface 1044s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1044s # * 1044s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1044s # */ 1044s # 1044s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_arg_s = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "arg_s", 1044s # (gchar *) "s", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_pointers[] = 1044s # { 1044s # &_org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_arg_s.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_s = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "SingleArgMethodS", 1044s # NULL, 1044s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_pointers, 1044s # NULL 1044s # }, 1044s # "handle-single-arg-method-s", 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1044s # { 1044s # &_org_project_useful_interface_method_info_single_arg_method_s.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "org.project.UsefulInterface", 1044s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1044s # NULL, 1044s # NULL, 1044s # NULL 1044s # }, 1044s # "org-project-useful-interface", 1044s # }; 1044s # 1044s # 1044s # /** 1044s # * org_project_useful_interface_interface_info: 1044s # * 1044s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1044s # * 1044s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1044s # */ 1044s # GDBusInterfaceInfo * 1044s # org_project_useful_interface_interface_info (void) 1044s # { 1044s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_override_properties: 1044s # * @klass: The class structure for a #GObject derived class. 1044s # * @property_id_begin: The property id to assign to the first overridden property. 1044s # * 1044s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1044s # * The properties are overridden in the order they are defined. 1044s # * 1044s # * Returns: The last property id. 1044s # */ 1044s # guint 1044s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1044s # { 1044s # return property_id_begin - 1; 1044s # } 1044s # 1044s # 1044s # inline static void 1044s # org_project_useful_interface_method_marshal_single_arg_method_s ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterface: 1044s # * 1044s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceIface: 1044s # * @parent_iface: The parent interface. 1044s # * @handle_single_arg_method_s: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-s signal. 1044s # * 1044s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1044s # */ 1044s # 1044s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1044s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1044s # 1044s # static void 1044s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1044s # { 1044s # /* GObject signals for incoming D-Bus method calls: */ 1044s # /** 1044s # * OrgProjectUsefulInterface::handle-single-arg-method-s: 1044s # * @object: A #OrgProjectUsefulInterface. 1044s # * @invocation: A #GDBusMethodInvocation. 1044s # * 1044s # * Signal emitted when a remote caller is invoking the SingleArgMethodS() D-Bus method. 1044s # * 1044s # * 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. 1044s # * 1044s # * 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. 1044s # */ 1044s # g_signal_new ("handle-single-arg-method-s", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_s), 1044s # g_signal_accumulator_true_handled, 1044s # NULL, 1044s # org_project_useful_interface_method_marshal_single_arg_method_s, 1044s # G_TYPE_BOOLEAN, 1044s # 1, 1044s # G_TYPE_DBUS_METHOD_INVOCATION); 1044s # 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_s: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously invokes the SingleArgMethodS() D-Bus method on @proxy. 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_call_single_arg_method_s_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_call_single_arg_method_s_sync() for the synchronous, blocking version of this method. 1044s # */ 1044s # void 1044s # org_project_useful_interface_call_single_arg_method_s ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1044s # "SingleArgMethodS", 1044s # g_variant_new ("()"), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # callback, 1044s # user_data); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_s_finish: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @out_arg_s: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_s(). 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_s(). 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_useful_interface_call_single_arg_method_s_finish ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # gchar **out_arg_s, 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "(s)", 1044s # out_arg_s); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_s_sync: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @out_arg_s: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Synchronously invokes the SingleArgMethodS() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_call_single_arg_method_s() for the asynchronous version of this method. 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_useful_interface_call_single_arg_method_s_sync ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # gchar **out_arg_s, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1044s # "SingleArgMethodS", 1044s # g_variant_new ("()"), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "(s)", 1044s # out_arg_s); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_complete_single_arg_method_s: 1044s # * @object: A #OrgProjectUsefulInterface. 1044s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1044s # * @arg_s: Parameter to return. 1044s # * 1044s # * 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. 1044s # * 1044s # * This method will free @invocation, you cannot use it afterwards. 1044s # */ 1044s # void 1044s # org_project_useful_interface_complete_single_arg_method_s ( 1044s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1044s # GDBusMethodInvocation *invocation, 1044s # const gchar *arg_s) 1044s # { 1044s # g_dbus_method_invocation_return_value (invocation, 1044s # g_variant_new ("(s)", 1044s # arg_s)); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceProxy: 1044s # * 1044s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceProxyClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1044s # */ 1044s # 1044s # struct _OrgProjectUsefulInterfaceProxyPrivate 1044s # { 1044s # GData *qdata; 1044s # }; 1044s # 1044s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_useful_interface_proxy_finalize (GObject *object) 1044s # { 1044s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1044s # g_datalist_clear (&proxy->priv->qdata); 1044s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # const GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1044s # const gchar *sender_name G_GNUC_UNUSED, 1044s # const gchar *signal_name, 1044s # GVariant *parameters) 1044s # { 1044s # _ExtendedGDBusSignalInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # gsize n; 1044s # guint signal_id; 1044s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1044s # if (info == NULL) 1044s # return; 1044s # num_params = g_variant_n_children (parameters); 1044s # paramv = g_new0 (GValue, num_params + 1); 1044s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_set_object (¶mv[0], proxy); 1044s # g_variant_iter_init (&iter, parameters); 1044s # n = 1; 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_signal_emitv (paramv, signal_id, 0, NULL); 1044s # for (n = 0; n < num_params + 1; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1044s # GVariant *changed_properties, 1044s # const gchar *const *invalidated_properties) 1044s # { 1044s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1044s # guint n; 1044s # const gchar *key; 1044s # GVariantIter *iter; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # g_variant_get (changed_properties, "a{sv}", &iter); 1044s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1044s # g_datalist_remove_data (&proxy->priv->qdata, key); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # g_variant_iter_free (iter); 1044s # for (n = 0; invalidated_properties[n] != NULL; n++) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1044s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1044s # #else 1044s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1044s # #endif 1044s # 1044s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusProxyClass *proxy_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1044s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1044s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1044s # 1044s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1044s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1044s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_useful_interface_proxy_new ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_sync: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_sync ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_useful_interface_proxy_new_for_bus ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_for_bus_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus_sync: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_for_bus_sync ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceSkeleton: 1044s # * 1044s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceSkeletonClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1044s # */ 1044s # 1044s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1044s # { 1044s # GValue *properties; 1044s # GList *changed_properties; 1044s # GSource *changed_properties_idle_source; 1044s # GMainContext *context; 1044s # GMutex lock; 1044s # }; 1044s # 1044s # static void 1044s # _org_project_useful_interface_skeleton_handle_method_call ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name, 1044s # const gchar *method_name, 1044s # GVariant *parameters, 1044s # GDBusMethodInvocation *invocation, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # _ExtendedGDBusMethodInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # guint num_extra; 1044s # gsize n; 1044s # guint signal_id; 1044s # GValue return_value = G_VALUE_INIT; 1044s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1044s # g_assert (info != NULL); 1044s # num_params = g_variant_n_children (parameters); 1044s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1044s # n = 0; 1044s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_set_object (¶mv[n++], skeleton); 1044s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1044s # g_value_set_object (¶mv[n++], invocation); 1044s # if (info->pass_fdlist) 1044s # { 1044s # #ifdef G_OS_UNIX 1044s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1044s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1044s # #else 1044s # g_assert_not_reached (); 1044s # #endif 1044s # } 1044s # g_variant_iter_init (&iter, parameters); 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1044s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1044s # if (!g_value_get_boolean (&return_value)) 1044s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1044s # g_value_unset (&return_value); 1044s # for (n = 0; n < num_params + num_extra; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static GVariant * 1044s # _org_project_useful_interface_skeleton_handle_get_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # GVariant *ret; 1044s # ret = NULL; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # g_value_init (&value, pspec->value_type); 1044s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1044s # g_value_unset (&value); 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _org_project_useful_interface_skeleton_handle_set_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GVariant *variant, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # gboolean ret; 1044s # ret = FALSE; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # if (info->use_gvariant) 1044s # g_value_set_variant (&value, variant); 1044s # else 1044s # g_dbus_gvariant_to_gvalue (variant, &value); 1044s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # g_value_unset (&value); 1044s # ret = TRUE; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1044s # { 1044s # _org_project_useful_interface_skeleton_handle_method_call, 1044s # _org_project_useful_interface_skeleton_handle_get_property, 1044s # _org_project_useful_interface_skeleton_handle_set_property, 1044s # {NULL} 1044s # }; 1044s # 1044s # static GDBusInterfaceInfo * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return org_project_useful_interface_interface_info (); 1044s # } 1044s # 1044s # static GDBusInterfaceVTable * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1044s # } 1044s # 1044s # static GVariant * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1044s # 1044s # GVariantBuilder builder; 1044s # guint n; 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1044s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #else 1044s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #endif 1044s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1044s # goto out; 1044s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1044s # { 1044s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1044s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1044s # { 1044s # GVariant *value; 1044s # 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); 1044s # if (value != NULL) 1044s # { 1044s # g_variant_take_ref (value); 1044s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1044s # g_variant_unref (value); 1044s # } 1044s # } 1044s # } 1044s # out: 1044s # return g_variant_builder_end (&builder); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_useful_interface_skeleton_finalize (GObject *object) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1044s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1044s # if (skeleton->priv->changed_properties_idle_source != NULL) 1044s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1044s # g_main_context_unref (skeleton->priv->context); 1044s # g_mutex_clear (&skeleton->priv->lock); 1044s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1044s # #else 1044s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1044s # #endif 1044s # 1044s # g_mutex_init (&skeleton->priv->lock); 1044s # skeleton->priv->context = g_main_context_ref_thread_default (); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusInterfaceSkeletonClass *skeleton_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1044s # 1044s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1044s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1044s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1044s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1044s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_skeleton_new: 1044s # * 1044s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_skeleton_new (void) 1044s # { 1044s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1044s # } 1044s # Error: 1044s # 1044s # /tmp/tmp2adpb45_/tmpm_8_nb6e.xml: 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2adpb45_/tmpm_8_nb6e.xml', '--output', '-', '--body'] 1044s # Return code: 0 1044s # Output: 1044s # /* 1044s # * This file is generated by gdbus-codegen, do not modify it. 1044s # * 1044s # * The license of this code is the same as for the D-Bus interface description 1044s # * it was derived from. Note that it links to GLib, so must comply with the 1044s # * LGPL linking clauses. 1044s # */ 1044s # 1044s # #ifdef HAVE_CONFIG_H 1044s # # include "config.h" 1044s # #endif 1044s # 1044s # #include 1044s # #ifdef G_OS_UNIX 1044s # # include 1044s # #endif 1044s # 1044s # #ifdef G_ENABLE_DEBUG 1044s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1044s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1044s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1044s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1044s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1044s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1044s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1044s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1044s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1044s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1044s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1044s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1044s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1044s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1044s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1044s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1044s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1044s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1044s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1044s # #else /* !G_ENABLE_DEBUG */ 1044s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1044s # * Do not access GValues directly in your code. Instead, use the 1044s # * g_value_get_*() functions 1044s # */ 1044s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1044s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1044s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1044s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1044s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1044s # #endif /* !G_ENABLE_DEBUG */ 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusArgInfo parent_struct; 1044s # gboolean use_gvariant; 1044s # } _ExtendedGDBusArgInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusMethodInfo parent_struct; 1044s # const gchar *signal_name; 1044s # gboolean pass_fdlist; 1044s # } _ExtendedGDBusMethodInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusSignalInfo parent_struct; 1044s # const gchar *signal_name; 1044s # } _ExtendedGDBusSignalInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusPropertyInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # guint use_gvariant : 1; 1044s # guint emits_changed_signal : 1; 1044s # } _ExtendedGDBusPropertyInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusInterfaceInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # } _ExtendedGDBusInterfaceInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # const _ExtendedGDBusPropertyInfo *info; 1044s # guint prop_id; 1044s # GValue orig_value; /* the value before the change */ 1044s # } ChangedProperty; 1044s # 1044s # static void 1044s # _changed_property_free (ChangedProperty *data) 1044s # { 1044s # g_value_unset (&data->orig_value); 1044s # g_free (data); 1044s # } 1044s # 1044s # static gboolean 1044s # _g_strv_equal0 (gchar **a, gchar **b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # guint n; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # if (g_strv_length (a) != g_strv_length (b)) 1044s # goto out; 1044s # for (n = 0; a[n] != NULL; n++) 1044s # if (g_strcmp0 (a[n], b[n]) != 0) 1044s # goto out; 1044s # ret = TRUE; 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _g_variant_equal0 (GVariant *a, GVariant *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # ret = g_variant_equal (a, b); 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # G_GNUC_UNUSED static gboolean 1044s # _g_value_equal (const GValue *a, const GValue *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1044s # switch (G_VALUE_TYPE (a)) 1044s # { 1044s # case G_TYPE_BOOLEAN: 1044s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1044s # break; 1044s # case G_TYPE_UCHAR: 1044s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1044s # break; 1044s # case G_TYPE_INT: 1044s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1044s # break; 1044s # case G_TYPE_UINT: 1044s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1044s # break; 1044s # case G_TYPE_INT64: 1044s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1044s # break; 1044s # case G_TYPE_UINT64: 1044s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1044s # break; 1044s # case G_TYPE_DOUBLE: 1044s # { 1044s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1044s # gdouble da = g_value_get_double (a); 1044s # gdouble db = g_value_get_double (b); 1044s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1044s # } 1044s # break; 1044s # case G_TYPE_STRING: 1044s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1044s # break; 1044s # case G_TYPE_VARIANT: 1044s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1044s # break; 1044s # default: 1044s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1044s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1044s # else 1044s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1044s # break; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static void 1044s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint G_GNUC_UNUSED, 1044s # void *marshal_data) 1044s # { 1044s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1044s # (void *data1, 1044s # GDBusMethodInvocation *arg_method_invocation, 1044s # void *data2); 1044s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1044s # GCClosure *cc = (GCClosure*) closure; 1044s # void *data1, *data2; 1044s # gboolean v_return; 1044s # 1044s # g_return_if_fail (return_value != NULL); 1044s # g_return_if_fail (n_param_values == 2); 1044s # 1044s # if (G_CCLOSURE_SWAP_DATA (closure)) 1044s # { 1044s # data1 = closure->data; 1044s # data2 = g_value_peek_pointer (param_values + 0); 1044s # } 1044s # else 1044s # { 1044s # data1 = g_value_peek_pointer (param_values + 0); 1044s # data2 = closure->data; 1044s # } 1044s # 1044s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1044s # (marshal_data ? marshal_data : cc->callback); 1044s # 1044s # v_return = 1044s # callback (data1, 1044s # g_marshal_value_peek_object (param_values + 1), 1044s # data2); 1044s # 1044s # g_value_set_boolean (return_value, v_return); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ 1044s # * Code for interface org.project.UsefulInterface 1044s # * ------------------------------------------------------------------------ 1044s # */ 1044s # 1044s # /** 1044s # * SECTION:OrgProjectUsefulInterface 1044s # * @title: OrgProjectUsefulInterface 1044s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1044s # * 1044s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1044s # */ 1044s # 1044s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_arg_o = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "arg_o", 1044s # (gchar *) "o", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_pointers[] = 1044s # { 1044s # &_org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_arg_o.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_o = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "SingleArgMethodO", 1044s # NULL, 1044s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_pointers, 1044s # NULL 1044s # }, 1044s # "handle-single-arg-method-o", 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1044s # { 1044s # &_org_project_useful_interface_method_info_single_arg_method_o.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "org.project.UsefulInterface", 1044s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1044s # NULL, 1044s # NULL, 1044s # NULL 1044s # }, 1044s # "org-project-useful-interface", 1044s # }; 1044s # 1044s # 1044s # /** 1044s # * org_project_useful_interface_interface_info: 1044s # * 1044s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1044s # * 1044s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1044s # */ 1044s # GDBusInterfaceInfo * 1044s # org_project_useful_interface_interface_info (void) 1044s # { 1044s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_override_properties: 1044s # * @klass: The class structure for a #GObject derived class. 1044s # * @property_id_begin: The property id to assign to the first overridden property. 1044s # * 1044s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1044s # * The properties are overridden in the order they are defined. 1044s # * 1044s # * Returns: The last property id. 1044s # */ 1044s # guint 1044s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1044s # { 1044s # return property_id_begin - 1; 1044s # } 1044s # 1044s # 1044s # inline static void 1044s # org_project_useful_interface_method_marshal_single_arg_method_o ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterface: 1044s # * 1044s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceIface: 1044s # * @parent_iface: The parent interface. 1044s # * @handle_single_arg_method_o: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-o signal. 1044s # * 1044s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1044s # */ 1044s # 1044s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1044s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1044s # 1044s # static void 1044s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1044s # { 1044s # /* GObject signals for incoming D-Bus method calls: */ 1044s # /** 1044s # * OrgProjectUsefulInterface::handle-single-arg-method-o: 1044s # * @object: A #OrgProjectUsefulInterface. 1044s # * @invocation: A #GDBusMethodInvocation. 1044s # * 1044s # * Signal emitted when a remote caller is invoking the SingleArgMethodO() D-Bus method. 1044s # * 1044s # * 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. 1044s # * 1044s # * 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. 1044s # */ 1044s # g_signal_new ("handle-single-arg-method-o", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_o), 1044s # g_signal_accumulator_true_handled, 1044s # NULL, 1044s # org_project_useful_interface_method_marshal_single_arg_method_o, 1044s # G_TYPE_BOOLEAN, 1044s # 1, 1044s # G_TYPE_DBUS_METHOD_INVOCATION); 1044s # 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_o: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously invokes the SingleArgMethodO() D-Bus method on @proxy. 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_call_single_arg_method_o_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_call_single_arg_method_o_sync() for the synchronous, blocking version of this method. 1044s # */ 1044s # void 1044s # org_project_useful_interface_call_single_arg_method_o ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1044s # "SingleArgMethodO", 1044s # g_variant_new ("()"), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # callback, 1044s # user_data); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_o_finish: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @out_arg_o: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_o(). 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_o(). 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_useful_interface_call_single_arg_method_o_finish ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # gchar **out_arg_o, 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "(o)", 1044s # out_arg_o); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_o_sync: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @out_arg_o: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Synchronously invokes the SingleArgMethodO() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_call_single_arg_method_o() for the asynchronous version of this method. 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_useful_interface_call_single_arg_method_o_sync ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # gchar **out_arg_o, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1044s # "SingleArgMethodO", 1044s # g_variant_new ("()"), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "(o)", 1044s # out_arg_o); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_complete_single_arg_method_o: 1044s # * @object: A #OrgProjectUsefulInterface. 1044s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1044s # * @arg_o: Parameter to return. 1044s # * 1044s # * 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. 1044s # * 1044s # * This method will free @invocation, you cannot use it afterwards. 1044s # */ 1044s # void 1044s # org_project_useful_interface_complete_single_arg_method_o ( 1044s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1044s # GDBusMethodInvocation *invocation, 1044s # const gchar *arg_o) 1044s # { 1044s # g_dbus_method_invocation_return_value (invocation, 1044s # g_variant_new ("(o)", 1044s # arg_o)); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceProxy: 1044s # * 1044s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceProxyClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1044s # */ 1044s # 1044s # struct _OrgProjectUsefulInterfaceProxyPrivate 1044s # { 1044s # GData *qdata; 1044s # }; 1044s # 1044s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_useful_interface_proxy_finalize (GObject *object) 1044s # { 1044s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1044s # g_datalist_clear (&proxy->priv->qdata); 1044s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # const GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1044s # const gchar *sender_name G_GNUC_UNUSED, 1044s # const gchar *signal_name, 1044s # GVariant *parameters) 1044s # { 1044s # _ExtendedGDBusSignalInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # gsize n; 1044s # guint signal_id; 1044s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1044s # if (info == NULL) 1044s # return; 1044s # num_params = g_variant_n_children (parameters); 1044s # paramv = g_new0 (GValue, num_params + 1); 1044s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_set_object (¶mv[0], proxy); 1044s # g_variant_iter_init (&iter, parameters); 1044s # n = 1; 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_signal_emitv (paramv, signal_id, 0, NULL); 1044s # for (n = 0; n < num_params + 1; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1044s # GVariant *changed_properties, 1044s # const gchar *const *invalidated_properties) 1044s # { 1044s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1044s # guint n; 1044s # const gchar *key; 1044s # GVariantIter *iter; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # g_variant_get (changed_properties, "a{sv}", &iter); 1044s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1044s # g_datalist_remove_data (&proxy->priv->qdata, key); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # g_variant_iter_free (iter); 1044s # for (n = 0; invalidated_properties[n] != NULL; n++) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1044s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1044s # #else 1044s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1044s # #endif 1044s # 1044s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusProxyClass *proxy_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1044s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1044s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1044s # 1044s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1044s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1044s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_useful_interface_proxy_new ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_sync: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_sync ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_useful_interface_proxy_new_for_bus ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_for_bus_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus_sync: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_for_bus_sync ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceSkeleton: 1044s # * 1044s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceSkeletonClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1044s # */ 1044s # 1044s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1044s # { 1044s # GValue *properties; 1044s # GList *changed_properties; 1044s # GSource *changed_properties_idle_source; 1044s # GMainContext *context; 1044s # GMutex lock; 1044s # }; 1044s # 1044s # static void 1044s # _org_project_useful_interface_skeleton_handle_method_call ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name, 1044s # const gchar *method_name, 1044s # GVariant *parameters, 1044s # GDBusMethodInvocation *invocation, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # _ExtendedGDBusMethodInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # guint num_extra; 1044s # gsize n; 1044s # guint signal_id; 1044s # GValue return_value = G_VALUE_INIT; 1044s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1044s # g_assert (info != NULL); 1044s # num_params = g_variant_n_children (parameters); 1044s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1044s # n = 0; 1044s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_set_object (¶mv[n++], skeleton); 1044s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1044s # g_value_set_object (¶mv[n++], invocation); 1044s # if (info->pass_fdlist) 1044s # { 1044s # #ifdef G_OS_UNIX 1044s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1044s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1044s # #else 1044s # g_assert_not_reached (); 1044s # #endif 1044s # } 1044s # g_variant_iter_init (&iter, parameters); 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1044s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1044s # if (!g_value_get_boolean (&return_value)) 1044s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1044s # g_value_unset (&return_value); 1044s # for (n = 0; n < num_params + num_extra; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static GVariant * 1044s # _org_project_useful_interface_skeleton_handle_get_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # GVariant *ret; 1044s # ret = NULL; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # g_value_init (&value, pspec->value_type); 1044s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1044s # g_value_unset (&value); 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _org_project_useful_interface_skeleton_handle_set_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GVariant *variant, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # gboolean ret; 1044s # ret = FALSE; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # if (info->use_gvariant) 1044s # g_value_set_variant (&value, variant); 1044s # else 1044s # g_dbus_gvariant_to_gvalue (variant, &value); 1044s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # g_value_unset (&value); 1044s # ret = TRUE; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1044s # { 1044s # _org_project_useful_interface_skeleton_handle_method_call, 1044s # _org_project_useful_interface_skeleton_handle_get_property, 1044s # _org_project_useful_interface_skeleton_handle_set_property, 1044s # {NULL} 1044s # }; 1044s # 1044s # static GDBusInterfaceInfo * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return org_project_useful_interface_interface_info (); 1044s # } 1044s # 1044s # static GDBusInterfaceVTable * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1044s # } 1044s # 1044s # static GVariant * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1044s # 1044s # GVariantBuilder builder; 1044s # guint n; 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1044s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #else 1044s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #endif 1044s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1044s # goto out; 1044s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1044s # { 1044s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1044s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1044s # { 1044s # GVariant *value; 1044s # 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); 1044s # if (value != NULL) 1044s # { 1044s # g_variant_take_ref (value); 1044s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1044s # g_variant_unref (value); 1044s # } 1044s # } 1044s # } 1044s # out: 1044s # return g_variant_builder_end (&builder); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_useful_interface_skeleton_finalize (GObject *object) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1044s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1044s # if (skeleton->priv->changed_properties_idle_source != NULL) 1044s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1044s # g_main_context_unref (skeleton->priv->context); 1044s # g_mutex_clear (&skeleton->priv->lock); 1044s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1044s # #else 1044s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1044s # #endif 1044s # 1044s # g_mutex_init (&skeleton->priv->lock); 1044s # skeleton->priv->context = g_main_context_ref_thread_default (); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusInterfaceSkeletonClass *skeleton_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1044s # 1044s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1044s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1044s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1044s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1044s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_skeleton_new: 1044s # * 1044s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_skeleton_new (void) 1044s # { 1044s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1044s # } 1044s # Error: 1044s # 1044s # /tmp/tmp2adpb45_/tmp8xmony3l.xml: 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2adpb45_/tmp8xmony3l.xml', '--output', '-', '--body'] 1044s # Return code: 0 1044s # Output: 1044s # /* 1044s # * This file is generated by gdbus-codegen, do not modify it. 1044s # * 1044s # * The license of this code is the same as for the D-Bus interface description 1044s # * it was derived from. Note that it links to GLib, so must comply with the 1044s # * LGPL linking clauses. 1044s # */ 1044s # 1044s # #ifdef HAVE_CONFIG_H 1044s # # include "config.h" 1044s # #endif 1044s # 1044s # #include 1044s # #ifdef G_OS_UNIX 1044s # # include 1044s # #endif 1044s # 1044s # #ifdef G_ENABLE_DEBUG 1044s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1044s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1044s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1044s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1044s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1044s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1044s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1044s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1044s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1044s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1044s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1044s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1044s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1044s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1044s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1044s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1044s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1044s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1044s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1044s # #else /* !G_ENABLE_DEBUG */ 1044s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1044s # * Do not access GValues directly in your code. Instead, use the 1044s # * g_value_get_*() functions 1044s # */ 1044s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1044s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1044s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1044s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1044s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1044s # #endif /* !G_ENABLE_DEBUG */ 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusArgInfo parent_struct; 1044s # gboolean use_gvariant; 1044s # } _ExtendedGDBusArgInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusMethodInfo parent_struct; 1044s # const gchar *signal_name; 1044s # gboolean pass_fdlist; 1044s # } _ExtendedGDBusMethodInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusSignalInfo parent_struct; 1044s # const gchar *signal_name; 1044s # } _ExtendedGDBusSignalInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusPropertyInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # guint use_gvariant : 1; 1044s # guint emits_changed_signal : 1; 1044s # } _ExtendedGDBusPropertyInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusInterfaceInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # } _ExtendedGDBusInterfaceInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # const _ExtendedGDBusPropertyInfo *info; 1044s # guint prop_id; 1044s # GValue orig_value; /* the value before the change */ 1044s # } ChangedProperty; 1044s # 1044s # static void 1044s # _changed_property_free (ChangedProperty *data) 1044s # { 1044s # g_value_unset (&data->orig_value); 1044s # g_free (data); 1044s # } 1044s # 1044s # static gboolean 1044s # _g_strv_equal0 (gchar **a, gchar **b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # guint n; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # if (g_strv_length (a) != g_strv_length (b)) 1044s # goto out; 1044s # for (n = 0; a[n] != NULL; n++) 1044s # if (g_strcmp0 (a[n], b[n]) != 0) 1044s # goto out; 1044s # ret = TRUE; 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _g_variant_equal0 (GVariant *a, GVariant *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # ret = g_variant_equal (a, b); 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # G_GNUC_UNUSED static gboolean 1044s # _g_value_equal (const GValue *a, const GValue *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1044s # switch (G_VALUE_TYPE (a)) 1044s # { 1044s # case G_TYPE_BOOLEAN: 1044s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1044s # break; 1044s # case G_TYPE_UCHAR: 1044s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1044s # break; 1044s # case G_TYPE_INT: 1044s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1044s # break; 1044s # case G_TYPE_UINT: 1044s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1044s # break; 1044s # case G_TYPE_INT64: 1044s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1044s # break; 1044s # case G_TYPE_UINT64: 1044s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1044s # break; 1044s # case G_TYPE_DOUBLE: 1044s # { 1044s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1044s # gdouble da = g_value_get_double (a); 1044s # gdouble db = g_value_get_double (b); 1044s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1044s # } 1044s # break; 1044s # case G_TYPE_STRING: 1044s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1044s # break; 1044s # case G_TYPE_VARIANT: 1044s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1044s # break; 1044s # default: 1044s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1044s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1044s # else 1044s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1044s # break; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static void 1044s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint G_GNUC_UNUSED, 1044s # void *marshal_data) 1044s # { 1044s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1044s # (void *data1, 1044s # GDBusMethodInvocation *arg_method_invocation, 1044s # void *data2); 1044s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1044s # GCClosure *cc = (GCClosure*) closure; 1044s # void *data1, *data2; 1044s # gboolean v_return; 1044s # 1044s # g_return_if_fail (return_value != NULL); 1044s # g_return_if_fail (n_param_values == 2); 1044s # 1044s # if (G_CCLOSURE_SWAP_DATA (closure)) 1044s # { 1044s # data1 = closure->data; 1044s # data2 = g_value_peek_pointer (param_values + 0); 1044s # } 1044s # else 1044s # { 1044s # data1 = g_value_peek_pointer (param_values + 0); 1044s # data2 = closure->data; 1044s # } 1044s # 1044s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1044s # (marshal_data ? marshal_data : cc->callback); 1044s # 1044s # v_return = 1044s # callback (data1, 1044s # g_marshal_value_peek_object (param_values + 1), 1044s # data2); 1044s # 1044s # g_value_set_boolean (return_value, v_return); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ 1044s # * Code for interface org.project.UsefulInterface 1044s # * ------------------------------------------------------------------------ 1044s # */ 1044s # 1044s # /** 1044s # * SECTION:OrgProjectUsefulInterface 1044s # * @title: OrgProjectUsefulInterface 1044s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1044s # * 1044s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1044s # */ 1044s # 1044s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_arg_g = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "arg_g", 1044s # (gchar *) "g", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_pointers[] = 1044s # { 1044s # &_org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_arg_g.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_g = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "SingleArgMethodG", 1044s # NULL, 1044s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_pointers, 1044s # NULL 1044s # }, 1044s # "handle-single-arg-method-g", 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1044s # { 1044s # &_org_project_useful_interface_method_info_single_arg_method_g.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "org.project.UsefulInterface", 1044s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1044s # NULL, 1044s # NULL, 1044s # NULL 1044s # }, 1044s # "org-project-useful-interface", 1044s # }; 1044s # 1044s # 1044s # /** 1044s # * org_project_useful_interface_interface_info: 1044s # * 1044s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1044s # * 1044s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1044s # */ 1044s # GDBusInterfaceInfo * 1044s # org_project_useful_interface_interface_info (void) 1044s # { 1044s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_override_properties: 1044s # * @klass: The class structure for a #GObject derived class. 1044s # * @property_id_begin: The property id to assign to the first overridden property. 1044s # * 1044s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1044s # * The properties are overridden in the order they are defined. 1044s # * 1044s # * Returns: The last property id. 1044s # */ 1044s # guint 1044s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1044s # { 1044s # return property_id_begin - 1; 1044s # } 1044s # 1044s # 1044s # inline static void 1044s # org_project_useful_interface_method_marshal_single_arg_method_g ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterface: 1044s # * 1044s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceIface: 1044s # * @parent_iface: The parent interface. 1044s # * @handle_single_arg_method_g: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-g signal. 1044s # * 1044s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1044s # */ 1044s # 1044s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1044s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1044s # 1044s # static void 1044s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1044s # { 1044s # /* GObject signals for incoming D-Bus method calls: */ 1044s # /** 1044s # * OrgProjectUsefulInterface::handle-single-arg-method-g: 1044s # * @object: A #OrgProjectUsefulInterface. 1044s # * @invocation: A #GDBusMethodInvocation. 1044s # * 1044s # * Signal emitted when a remote caller is invoking the SingleArgMethodG() D-Bus method. 1044s # * 1044s # * 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. 1044s # * 1044s # * 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. 1044s # */ 1044s # g_signal_new ("handle-single-arg-method-g", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_g), 1044s # g_signal_accumulator_true_handled, 1044s # NULL, 1044s # org_project_useful_interface_method_marshal_single_arg_method_g, 1044s # G_TYPE_BOOLEAN, 1044s # 1, 1044s # G_TYPE_DBUS_METHOD_INVOCATION); 1044s # 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_g: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously invokes the SingleArgMethodG() D-Bus method on @proxy. 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_call_single_arg_method_g_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_call_single_arg_method_g_sync() for the synchronous, blocking version of this method. 1044s # */ 1044s # void 1044s # org_project_useful_interface_call_single_arg_method_g ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1044s # "SingleArgMethodG", 1044s # g_variant_new ("()"), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # callback, 1044s # user_data); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_g_finish: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @out_arg_g: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_g(). 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_g(). 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_useful_interface_call_single_arg_method_g_finish ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # gchar **out_arg_g, 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "(g)", 1044s # out_arg_g); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_g_sync: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @out_arg_g: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Synchronously invokes the SingleArgMethodG() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_call_single_arg_method_g() for the asynchronous version of this method. 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_useful_interface_call_single_arg_method_g_sync ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # gchar **out_arg_g, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1044s # "SingleArgMethodG", 1044s # g_variant_new ("()"), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "(g)", 1044s # out_arg_g); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_complete_single_arg_method_g: 1044s # * @object: A #OrgProjectUsefulInterface. 1044s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1044s # * @arg_g: Parameter to return. 1044s # * 1044s # * 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. 1044s # * 1044s # * This method will free @invocation, you cannot use it afterwards. 1044s # */ 1044s # void 1044s # org_project_useful_interface_complete_single_arg_method_g ( 1044s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1044s # GDBusMethodInvocation *invocation, 1044s # const gchar *arg_g) 1044s # { 1044s # g_dbus_method_invocation_return_value (invocation, 1044s # g_variant_new ("(g)", 1044s # arg_g)); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceProxy: 1044s # * 1044s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceProxyClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1044s # */ 1044s # 1044s # struct _OrgProjectUsefulInterfaceProxyPrivate 1044s # { 1044s # GData *qdata; 1044s # }; 1044s # 1044s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_useful_interface_proxy_finalize (GObject *object) 1044s # { 1044s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1044s # g_datalist_clear (&proxy->priv->qdata); 1044s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # const GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1044s # const gchar *sender_name G_GNUC_UNUSED, 1044s # const gchar *signal_name, 1044s # GVariant *parameters) 1044s # { 1044s # _ExtendedGDBusSignalInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # gsize n; 1044s # guint signal_id; 1044s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1044s # if (info == NULL) 1044s # return; 1044s # num_params = g_variant_n_children (parameters); 1044s # paramv = g_new0 (GValue, num_params + 1); 1044s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_set_object (¶mv[0], proxy); 1044s # g_variant_iter_init (&iter, parameters); 1044s # n = 1; 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_signal_emitv (paramv, signal_id, 0, NULL); 1044s # for (n = 0; n < num_params + 1; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1044s # GVariant *changed_properties, 1044s # const gchar *const *invalidated_properties) 1044s # { 1044s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1044s # guint n; 1044s # const gchar *key; 1044s # GVariantIter *iter; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # g_variant_get (changed_properties, "a{sv}", &iter); 1044s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1044s # g_datalist_remove_data (&proxy->priv->qdata, key); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # g_variant_iter_free (iter); 1044s # for (n = 0; invalidated_properties[n] != NULL; n++) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1044s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1044s # #else 1044s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1044s # #endif 1044s # 1044s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusProxyClass *proxy_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1044s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1044s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1044s # 1044s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1044s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1044s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_useful_interface_proxy_new ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_sync: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_sync ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_useful_interface_proxy_new_for_bus ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_for_bus_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus_sync: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_for_bus_sync ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceSkeleton: 1044s # * 1044s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceSkeletonClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1044s # */ 1044s # 1044s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1044s # { 1044s # GValue *properties; 1044s # GList *changed_properties; 1044s # GSource *changed_properties_idle_source; 1044s # GMainContext *context; 1044s # GMutex lock; 1044s # }; 1044s # 1044s # static void 1044s # _org_project_useful_interface_skeleton_handle_method_call ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name, 1044s # const gchar *method_name, 1044s # GVariant *parameters, 1044s # GDBusMethodInvocation *invocation, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # _ExtendedGDBusMethodInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # guint num_extra; 1044s # gsize n; 1044s # guint signal_id; 1044s # GValue return_value = G_VALUE_INIT; 1044s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1044s # g_assert (info != NULL); 1044s # num_params = g_variant_n_children (parameters); 1044s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1044s # n = 0; 1044s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_set_object (¶mv[n++], skeleton); 1044s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1044s # g_value_set_object (¶mv[n++], invocation); 1044s # if (info->pass_fdlist) 1044s # { 1044s # #ifdef G_OS_UNIX 1044s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1044s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1044s # #else 1044s # g_assert_not_reached (); 1044s # #endif 1044s # } 1044s # g_variant_iter_init (&iter, parameters); 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1044s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1044s # if (!g_value_get_boolean (&return_value)) 1044s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1044s # g_value_unset (&return_value); 1044s # for (n = 0; n < num_params + num_extra; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static GVariant * 1044s # _org_project_useful_interface_skeleton_handle_get_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # GVariant *ret; 1044s # ret = NULL; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # g_value_init (&value, pspec->value_type); 1044s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1044s # g_value_unset (&value); 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _org_project_useful_interface_skeleton_handle_set_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GVariant *variant, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # gboolean ret; 1044s # ret = FALSE; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # if (info->use_gvariant) 1044s # g_value_set_variant (&value, variant); 1044s # else 1044s # g_dbus_gvariant_to_gvalue (variant, &value); 1044s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # g_value_unset (&value); 1044s # ret = TRUE; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1044s # { 1044s # _org_project_useful_interface_skeleton_handle_method_call, 1044s # _org_project_useful_interface_skeleton_handle_get_property, 1044s # _org_project_useful_interface_skeleton_handle_set_property, 1044s # {NULL} 1044s # }; 1044s # 1044s # static GDBusInterfaceInfo * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return org_project_useful_interface_interface_info (); 1044s # } 1044s # 1044s # static GDBusInterfaceVTable * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1044s # } 1044s # 1044s # static GVariant * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1044s # 1044s # GVariantBuilder builder; 1044s # guint n; 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1044s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #else 1044s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #endif 1044s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1044s # goto out; 1044s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1044s # { 1044s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1044s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1044s # { 1044s # GVariant *value; 1044s # 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); 1044s # if (value != NULL) 1044s # { 1044s # g_variant_take_ref (value); 1044s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1044s # g_variant_unref (value); 1044s # } 1044s # } 1044s # } 1044s # out: 1044s # return g_variant_builder_end (&builder); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_useful_interface_skeleton_finalize (GObject *object) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1044s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1044s # if (skeleton->priv->changed_properties_idle_source != NULL) 1044s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1044s # g_main_context_unref (skeleton->priv->context); 1044s # g_mutex_clear (&skeleton->priv->lock); 1044s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1044s # #else 1044s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1044s # #endif 1044s # 1044s # g_mutex_init (&skeleton->priv->lock); 1044s # skeleton->priv->context = g_main_context_ref_thread_default (); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusInterfaceSkeletonClass *skeleton_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1044s # 1044s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1044s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1044s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1044s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1044s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_skeleton_new: 1044s # * 1044s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_skeleton_new (void) 1044s # { 1044s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1044s # } 1044s # Error: 1044s # 1044s # /tmp/tmp2adpb45_/tmpnr5f3973.xml: 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2adpb45_/tmpnr5f3973.xml', '--output', '-', '--body'] 1044s # Return code: 0 1044s # Output: 1044s # /* 1044s # * This file is generated by gdbus-codegen, do not modify it. 1044s # * 1044s # * The license of this code is the same as for the D-Bus interface description 1044s # * it was derived from. Note that it links to GLib, so must comply with the 1044s # * LGPL linking clauses. 1044s # */ 1044s # 1044s # #ifdef HAVE_CONFIG_H 1044s # # include "config.h" 1044s # #endif 1044s # 1044s # #include 1044s # #ifdef G_OS_UNIX 1044s # # include 1044s # #endif 1044s # 1044s # #ifdef G_ENABLE_DEBUG 1044s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1044s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1044s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1044s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1044s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1044s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1044s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1044s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1044s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1044s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1044s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1044s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1044s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1044s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1044s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1044s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1044s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1044s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1044s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1044s # #else /* !G_ENABLE_DEBUG */ 1044s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1044s # * Do not access GValues directly in your code. Instead, use the 1044s # * g_value_get_*() functions 1044s # */ 1044s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1044s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1044s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1044s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1044s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1044s # #endif /* !G_ENABLE_DEBUG */ 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusArgInfo parent_struct; 1044s # gboolean use_gvariant; 1044s # } _ExtendedGDBusArgInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusMethodInfo parent_struct; 1044s # const gchar *signal_name; 1044s # gboolean pass_fdlist; 1044s # } _ExtendedGDBusMethodInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusSignalInfo parent_struct; 1044s # const gchar *signal_name; 1044s # } _ExtendedGDBusSignalInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusPropertyInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # guint use_gvariant : 1; 1044s # guint emits_changed_signal : 1; 1044s # } _ExtendedGDBusPropertyInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusInterfaceInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # } _ExtendedGDBusInterfaceInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # const _ExtendedGDBusPropertyInfo *info; 1044s # guint prop_id; 1044s # GValue orig_value; /* the value before the change */ 1044s # } ChangedProperty; 1044s # 1044s # static void 1044s # _changed_property_free (ChangedProperty *data) 1044s # { 1044s # g_value_unset (&data->orig_value); 1044s # g_free (data); 1044s # } 1044s # 1044s # static gboolean 1044s # _g_strv_equal0 (gchar **a, gchar **b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # guint n; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # if (g_strv_length (a) != g_strv_length (b)) 1044s # goto out; 1044s # for (n = 0; a[n] != NULL; n++) 1044s # if (g_strcmp0 (a[n], b[n]) != 0) 1044s # goto out; 1044s # ret = TRUE; 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _g_variant_equal0 (GVariant *a, GVariant *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # ret = g_variant_equal (a, b); 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # G_GNUC_UNUSED static gboolean 1044s # _g_value_equal (const GValue *a, const GValue *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1044s # switch (G_VALUE_TYPE (a)) 1044s # { 1044s # case G_TYPE_BOOLEAN: 1044s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1044s # break; 1044s # case G_TYPE_UCHAR: 1044s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1044s # break; 1044s # case G_TYPE_INT: 1044s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1044s # break; 1044s # case G_TYPE_UINT: 1044s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1044s # break; 1044s # case G_TYPE_INT64: 1044s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1044s # break; 1044s # case G_TYPE_UINT64: 1044s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1044s # break; 1044s # case G_TYPE_DOUBLE: 1044s # { 1044s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1044s # gdouble da = g_value_get_double (a); 1044s # gdouble db = g_value_get_double (b); 1044s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1044s # } 1044s # break; 1044s # case G_TYPE_STRING: 1044s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1044s # break; 1044s # case G_TYPE_VARIANT: 1044s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1044s # break; 1044s # default: 1044s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1044s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1044s # else 1044s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1044s # break; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static void 1044s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint G_GNUC_UNUSED, 1044s # void *marshal_data) 1044s # { 1044s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1044s # (void *data1, 1044s # GDBusMethodInvocation *arg_method_invocation, 1044s # void *data2); 1044s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1044s # GCClosure *cc = (GCClosure*) closure; 1044s # void *data1, *data2; 1044s # gboolean v_return; 1044s # 1044s # g_return_if_fail (return_value != NULL); 1044s # g_return_if_fail (n_param_values == 2); 1044s # 1044s # if (G_CCLOSURE_SWAP_DATA (closure)) 1044s # { 1044s # data1 = closure->data; 1044s # data2 = g_value_peek_pointer (param_values + 0); 1044s # } 1044s # else 1044s # { 1044s # data1 = g_value_peek_pointer (param_values + 0); 1044s # data2 = closure->data; 1044s # } 1044s # 1044s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1044s # (marshal_data ? marshal_data : cc->callback); 1044s # 1044s # v_return = 1044s # callback (data1, 1044s # g_marshal_value_peek_object (param_values + 1), 1044s # data2); 1044s # 1044s # g_value_set_boolean (return_value, v_return); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ 1044s # * Code for interface org.project.UsefulInterface 1044s # * ------------------------------------------------------------------------ 1044s # */ 1044s # 1044s # /** 1044s # * SECTION:OrgProjectUsefulInterface 1044s # * @title: OrgProjectUsefulInterface 1044s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1044s # * 1044s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1044s # */ 1044s # 1044s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_arg_h = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "arg_h", 1044s # (gchar *) "h", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_pointers[] = 1044s # { 1044s # &_org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_arg_h.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_h = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "SingleArgMethodH", 1044s # NULL, 1044s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_pointers, 1044s # NULL 1044s # }, 1044s # "handle-single-arg-method-h", 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1044s # { 1044s # &_org_project_useful_interface_method_info_single_arg_method_h.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "org.project.UsefulInterface", 1044s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1044s # NULL, 1044s # NULL, 1044s # NULL 1044s # }, 1044s # "org-project-useful-interface", 1044s # }; 1044s # 1044s # 1044s # /** 1044s # * org_project_useful_interface_interface_info: 1044s # * 1044s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1044s # * 1044s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1044s # */ 1044s # GDBusInterfaceInfo * 1044s # org_project_useful_interface_interface_info (void) 1044s # { 1044s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_override_properties: 1044s # * @klass: The class structure for a #GObject derived class. 1044s # * @property_id_begin: The property id to assign to the first overridden property. 1044s # * 1044s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1044s # * The properties are overridden in the order they are defined. 1044s # * 1044s # * Returns: The last property id. 1044s # */ 1044s # guint 1044s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1044s # { 1044s # return property_id_begin - 1; 1044s # } 1044s # 1044s # 1044s # inline static void 1044s # org_project_useful_interface_method_marshal_single_arg_method_h ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterface: 1044s # * 1044s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceIface: 1044s # * @parent_iface: The parent interface. 1044s # * @handle_single_arg_method_h: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-h signal. 1044s # * 1044s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1044s # */ 1044s # 1044s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1044s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1044s # 1044s # static void 1044s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1044s # { 1044s # /* GObject signals for incoming D-Bus method calls: */ 1044s # /** 1044s # * OrgProjectUsefulInterface::handle-single-arg-method-h: 1044s # * @object: A #OrgProjectUsefulInterface. 1044s # * @invocation: A #GDBusMethodInvocation. 1044s # * 1044s # * Signal emitted when a remote caller is invoking the SingleArgMethodH() D-Bus method. 1044s # * 1044s # * 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. 1044s # * 1044s # * 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. 1044s # */ 1044s # g_signal_new ("handle-single-arg-method-h", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_h), 1044s # g_signal_accumulator_true_handled, 1044s # NULL, 1044s # org_project_useful_interface_method_marshal_single_arg_method_h, 1044s # G_TYPE_BOOLEAN, 1044s # 1, 1044s # G_TYPE_DBUS_METHOD_INVOCATION); 1044s # 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_h: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously invokes the SingleArgMethodH() D-Bus method on @proxy. 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_call_single_arg_method_h_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_call_single_arg_method_h_sync() for the synchronous, blocking version of this method. 1044s # */ 1044s # void 1044s # org_project_useful_interface_call_single_arg_method_h ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1044s # "SingleArgMethodH", 1044s # g_variant_new ("()"), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # callback, 1044s # user_data); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_h_finish: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @out_arg_h: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_h(). 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_h(). 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_useful_interface_call_single_arg_method_h_finish ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # GVariant **out_arg_h, 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "(@h)", 1044s # out_arg_h); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_h_sync: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @out_arg_h: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Synchronously invokes the SingleArgMethodH() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_call_single_arg_method_h() for the asynchronous version of this method. 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_useful_interface_call_single_arg_method_h_sync ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # GVariant **out_arg_h, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1044s # "SingleArgMethodH", 1044s # g_variant_new ("()"), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "(@h)", 1044s # out_arg_h); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_complete_single_arg_method_h: 1044s # * @object: A #OrgProjectUsefulInterface. 1044s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1044s # * @arg_h: Parameter to return. 1044s # * 1044s # * 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. 1044s # * 1044s # * This method will free @invocation, you cannot use it afterwards. 1044s # */ 1044s # void 1044s # org_project_useful_interface_complete_single_arg_method_h ( 1044s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1044s # GDBusMethodInvocation *invocation, 1044s # GVariant *arg_h) 1044s # { 1044s # g_dbus_method_invocation_return_value (invocation, 1044s # g_variant_new ("(@h)", 1044s # arg_h)); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceProxy: 1044s # * 1044s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceProxyClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1044s # */ 1044s # 1044s # struct _OrgProjectUsefulInterfaceProxyPrivate 1044s # { 1044s # GData *qdata; 1044s # }; 1044s # 1044s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_useful_interface_proxy_finalize (GObject *object) 1044s # { 1044s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1044s # g_datalist_clear (&proxy->priv->qdata); 1044s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # const GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1044s # const gchar *sender_name G_GNUC_UNUSED, 1044s # const gchar *signal_name, 1044s # GVariant *parameters) 1044s # { 1044s # _ExtendedGDBusSignalInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # gsize n; 1044s # guint signal_id; 1044s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1044s # if (info == NULL) 1044s # return; 1044s # num_params = g_variant_n_children (parameters); 1044s # paramv = g_new0 (GValue, num_params + 1); 1044s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_set_object (¶mv[0], proxy); 1044s # g_variant_iter_init (&iter, parameters); 1044s # n = 1; 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_signal_emitv (paramv, signal_id, 0, NULL); 1044s # for (n = 0; n < num_params + 1; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1044s # GVariant *changed_properties, 1044s # const gchar *const *invalidated_properties) 1044s # { 1044s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1044s # guint n; 1044s # const gchar *key; 1044s # GVariantIter *iter; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # g_variant_get (changed_properties, "a{sv}", &iter); 1044s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1044s # g_datalist_remove_data (&proxy->priv->qdata, key); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # g_variant_iter_free (iter); 1044s # for (n = 0; invalidated_properties[n] != NULL; n++) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1044s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1044s # #else 1044s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1044s # #endif 1044s # 1044s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusProxyClass *proxy_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1044s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1044s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1044s # 1044s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1044s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1044s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_useful_interface_proxy_new ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_sync: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_sync ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_useful_interface_proxy_new_for_bus ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_for_bus_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus_sync: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_for_bus_sync ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceSkeleton: 1044s # * 1044s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceSkeletonClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1044s # */ 1044s # 1044s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1044s # { 1044s # GValue *properties; 1044s # GList *changed_properties; 1044s # GSource *changed_properties_idle_source; 1044s # GMainContext *context; 1044s # GMutex lock; 1044s # }; 1044s # 1044s # static void 1044s # _org_project_useful_interface_skeleton_handle_method_call ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name, 1044s # const gchar *method_name, 1044s # GVariant *parameters, 1044s # GDBusMethodInvocation *invocation, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # _ExtendedGDBusMethodInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # guint num_extra; 1044s # gsize n; 1044s # guint signal_id; 1044s # GValue return_value = G_VALUE_INIT; 1044s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1044s # g_assert (info != NULL); 1044s # num_params = g_variant_n_children (parameters); 1044s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1044s # n = 0; 1044s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_set_object (¶mv[n++], skeleton); 1044s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1044s # g_value_set_object (¶mv[n++], invocation); 1044s # if (info->pass_fdlist) 1044s # { 1044s # #ifdef G_OS_UNIX 1044s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1044s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1044s # #else 1044s # g_assert_not_reached (); 1044s # #endif 1044s # } 1044s # g_variant_iter_init (&iter, parameters); 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1044s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1044s # if (!g_value_get_boolean (&return_value)) 1044s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1044s # g_value_unset (&return_value); 1044s # for (n = 0; n < num_params + num_extra; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static GVariant * 1044s # _org_project_useful_interface_skeleton_handle_get_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # GVariant *ret; 1044s # ret = NULL; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # g_value_init (&value, pspec->value_type); 1044s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1044s # g_value_unset (&value); 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _org_project_useful_interface_skeleton_handle_set_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GVariant *variant, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # gboolean ret; 1044s # ret = FALSE; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # if (info->use_gvariant) 1044s # g_value_set_variant (&value, variant); 1044s # else 1044s # g_dbus_gvariant_to_gvalue (variant, &value); 1044s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # g_value_unset (&value); 1044s # ret = TRUE; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1044s # { 1044s # _org_project_useful_interface_skeleton_handle_method_call, 1044s # _org_project_useful_interface_skeleton_handle_get_property, 1044s # _org_project_useful_interface_skeleton_handle_set_property, 1044s # {NULL} 1044s # }; 1044s # 1044s # static GDBusInterfaceInfo * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return org_project_useful_interface_interface_info (); 1044s # } 1044s # 1044s # static GDBusInterfaceVTable * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1044s # } 1044s # 1044s # static GVariant * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1044s # 1044s # GVariantBuilder builder; 1044s # guint n; 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1044s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #else 1044s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #endif 1044s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1044s # goto out; 1044s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1044s # { 1044s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1044s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1044s # { 1044s # GVariant *value; 1044s # 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); 1044s # if (value != NULL) 1044s # { 1044s # g_variant_take_ref (value); 1044s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1044s # g_variant_unref (value); 1044s # } 1044s # } 1044s # } 1044s # out: 1044s # return g_variant_builder_end (&builder); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_useful_interface_skeleton_finalize (GObject *object) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1044s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1044s # if (skeleton->priv->changed_properties_idle_source != NULL) 1044s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1044s # g_main_context_unref (skeleton->priv->context); 1044s # g_mutex_clear (&skeleton->priv->lock); 1044s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1044s # #else 1044s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1044s # #endif 1044s # 1044s # g_mutex_init (&skeleton->priv->lock); 1044s # skeleton->priv->context = g_main_context_ref_thread_default (); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusInterfaceSkeletonClass *skeleton_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1044s # 1044s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1044s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1044s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1044s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1044s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_skeleton_new: 1044s # * 1044s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_skeleton_new (void) 1044s # { 1044s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1044s # } 1044s # Error: 1044s # 1044s # /tmp/tmp2adpb45_/tmpy16wlqcr.xml: 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2adpb45_/tmpy16wlqcr.xml', '--output', '-', '--body'] 1044s # Return code: 0 1044s # Output: 1044s # /* 1044s # * This file is generated by gdbus-codegen, do not modify it. 1044s # * 1044s # * The license of this code is the same as for the D-Bus interface description 1044s # * it was derived from. Note that it links to GLib, so must comply with the 1044s # * LGPL linking clauses. 1044s # */ 1044s # 1044s # #ifdef HAVE_CONFIG_H 1044s # # include "config.h" 1044s # #endif 1044s # 1044s # #include 1044s # #ifdef G_OS_UNIX 1044s # # include 1044s # #endif 1044s # 1044s # #ifdef G_ENABLE_DEBUG 1044s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1044s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1044s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1044s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1044s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1044s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1044s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1044s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1044s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1044s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1044s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1044s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1044s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1044s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1044s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1044s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1044s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1044s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1044s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1044s # #else /* !G_ENABLE_DEBUG */ 1044s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1044s # * Do not access GValues directly in your code. Instead, use the 1044s # * g_value_get_*() functions 1044s # */ 1044s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1044s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1044s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1044s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1044s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1044s # #endif /* !G_ENABLE_DEBUG */ 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusArgInfo parent_struct; 1044s # gboolean use_gvariant; 1044s # } _ExtendedGDBusArgInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusMethodInfo parent_struct; 1044s # const gchar *signal_name; 1044s # gboolean pass_fdlist; 1044s # } _ExtendedGDBusMethodInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusSignalInfo parent_struct; 1044s # const gchar *signal_name; 1044s # } _ExtendedGDBusSignalInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusPropertyInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # guint use_gvariant : 1; 1044s # guint emits_changed_signal : 1; 1044s # } _ExtendedGDBusPropertyInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusInterfaceInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # } _ExtendedGDBusInterfaceInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # const _ExtendedGDBusPropertyInfo *info; 1044s # guint prop_id; 1044s # GValue orig_value; /* the value before the change */ 1044s # } ChangedProperty; 1044s # 1044s # static void 1044s # _changed_property_free (ChangedProperty *data) 1044s # { 1044s # g_value_unset (&data->orig_value); 1044s # g_free (data); 1044s # } 1044s # 1044s # static gboolean 1044s # _g_strv_equal0 (gchar **a, gchar **b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # guint n; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # if (g_strv_length (a) != g_strv_length (b)) 1044s # goto out; 1044s # for (n = 0; a[n] != NULL; n++) 1044s # if (g_strcmp0 (a[n], b[n]) != 0) 1044s # goto out; 1044s # ret = TRUE; 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _g_variant_equal0 (GVariant *a, GVariant *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # ret = g_variant_equal (a, b); 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # G_GNUC_UNUSED static gboolean 1044s # _g_value_equal (const GValue *a, const GValue *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1044s # switch (G_VALUE_TYPE (a)) 1044s # { 1044s # case G_TYPE_BOOLEAN: 1044s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1044s # break; 1044s # case G_TYPE_UCHAR: 1044s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1044s # break; 1044s # case G_TYPE_INT: 1044s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1044s # break; 1044s # case G_TYPE_UINT: 1044s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1044s # break; 1044s # case G_TYPE_INT64: 1044s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1044s # break; 1044s # case G_TYPE_UINT64: 1044s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1044s # break; 1044s # case G_TYPE_DOUBLE: 1044s # { 1044s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1044s # gdouble da = g_value_get_double (a); 1044s # gdouble db = g_value_get_double (b); 1044s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1044s # } 1044s # break; 1044s # case G_TYPE_STRING: 1044s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1044s # break; 1044s # case G_TYPE_VARIANT: 1044s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1044s # break; 1044s # default: 1044s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1044s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1044s # else 1044s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1044s # break; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static void 1044s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint G_GNUC_UNUSED, 1044s # void *marshal_data) 1044s # { 1044s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1044s # (void *data1, 1044s # GDBusMethodInvocation *arg_method_invocation, 1044s # void *data2); 1044s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1044s # GCClosure *cc = (GCClosure*) closure; 1044s # void *data1, *data2; 1044s # gboolean v_return; 1044s # 1044s # g_return_if_fail (return_value != NULL); 1044s # g_return_if_fail (n_param_values == 2); 1044s # 1044s # if (G_CCLOSURE_SWAP_DATA (closure)) 1044s # { 1044s # data1 = closure->data; 1044s # data2 = g_value_peek_pointer (param_values + 0); 1044s # } 1044s # else 1044s # { 1044s # data1 = g_value_peek_pointer (param_values + 0); 1044s # data2 = closure->data; 1044s # } 1044s # 1044s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1044s # (marshal_data ? marshal_data : cc->callback); 1044s # 1044s # v_return = 1044s # callback (data1, 1044s # g_marshal_value_peek_object (param_values + 1), 1044s # data2); 1044s # 1044s # g_value_set_boolean (return_value, v_return); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ 1044s # * Code for interface org.project.UsefulInterface 1044s # * ------------------------------------------------------------------------ 1044s # */ 1044s # 1044s # /** 1044s # * SECTION:OrgProjectUsefulInterface 1044s # * @title: OrgProjectUsefulInterface 1044s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1044s # * 1044s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1044s # */ 1044s # 1044s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_arg_ay = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "arg_ay", 1044s # (gchar *) "ay", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_pointers[] = 1044s # { 1044s # &_org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_arg_ay.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ay = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "SingleArgMethodAy", 1044s # NULL, 1044s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_pointers, 1044s # NULL 1044s # }, 1044s # "handle-single-arg-method-ay", 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1044s # { 1044s # &_org_project_useful_interface_method_info_single_arg_method_ay.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "org.project.UsefulInterface", 1044s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1044s # NULL, 1044s # NULL, 1044s # NULL 1044s # }, 1044s # "org-project-useful-interface", 1044s # }; 1044s # 1044s # 1044s # /** 1044s # * org_project_useful_interface_interface_info: 1044s # * 1044s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1044s # * 1044s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1044s # */ 1044s # GDBusInterfaceInfo * 1044s # org_project_useful_interface_interface_info (void) 1044s # { 1044s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_override_properties: 1044s # * @klass: The class structure for a #GObject derived class. 1044s # * @property_id_begin: The property id to assign to the first overridden property. 1044s # * 1044s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1044s # * The properties are overridden in the order they are defined. 1044s # * 1044s # * Returns: The last property id. 1044s # */ 1044s # guint 1044s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1044s # { 1044s # return property_id_begin - 1; 1044s # } 1044s # 1044s # 1044s # inline static void 1044s # org_project_useful_interface_method_marshal_single_arg_method_ay ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterface: 1044s # * 1044s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceIface: 1044s # * @parent_iface: The parent interface. 1044s # * @handle_single_arg_method_ay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ay signal. 1044s # * 1044s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1044s # */ 1044s # 1044s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1044s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1044s # 1044s # static void 1044s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1044s # { 1044s # /* GObject signals for incoming D-Bus method calls: */ 1044s # /** 1044s # * OrgProjectUsefulInterface::handle-single-arg-method-ay: 1044s # * @object: A #OrgProjectUsefulInterface. 1044s # * @invocation: A #GDBusMethodInvocation. 1044s # * 1044s # * Signal emitted when a remote caller is invoking the SingleArgMethodAy() D-Bus method. 1044s # * 1044s # * 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. 1044s # * 1044s # * 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. 1044s # */ 1044s # g_signal_new ("handle-single-arg-method-ay", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ay), 1044s # g_signal_accumulator_true_handled, 1044s # NULL, 1044s # org_project_useful_interface_method_marshal_single_arg_method_ay, 1044s # G_TYPE_BOOLEAN, 1044s # 1, 1044s # G_TYPE_DBUS_METHOD_INVOCATION); 1044s # 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_ay: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_call_single_arg_method_ay_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_call_single_arg_method_ay_sync() for the synchronous, blocking version of this method. 1044s # */ 1044s # void 1044s # org_project_useful_interface_call_single_arg_method_ay ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1044s # "SingleArgMethodAy", 1044s # g_variant_new ("()"), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # callback, 1044s # user_data); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_ay_finish: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @out_arg_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ay(). 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ay(). 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_useful_interface_call_single_arg_method_ay_finish ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # gchar **out_arg_ay, 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "(^ay)", 1044s # out_arg_ay); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_ay_sync: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @out_arg_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Synchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_call_single_arg_method_ay() for the asynchronous version of this method. 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_useful_interface_call_single_arg_method_ay_sync ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # gchar **out_arg_ay, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1044s # "SingleArgMethodAy", 1044s # g_variant_new ("()"), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "(^ay)", 1044s # out_arg_ay); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_complete_single_arg_method_ay: 1044s # * @object: A #OrgProjectUsefulInterface. 1044s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1044s # * @arg_ay: Parameter to return. 1044s # * 1044s # * 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. 1044s # * 1044s # * This method will free @invocation, you cannot use it afterwards. 1044s # */ 1044s # void 1044s # org_project_useful_interface_complete_single_arg_method_ay ( 1044s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1044s # GDBusMethodInvocation *invocation, 1044s # const gchar *arg_ay) 1044s # { 1044s # g_dbus_method_invocation_return_value (invocation, 1044s # g_variant_new ("(^ay)", 1044s # arg_ay)); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceProxy: 1044s # * 1044s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceProxyClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1044s # */ 1044s # 1044s # struct _OrgProjectUsefulInterfaceProxyPrivate 1044s # { 1044s # GData *qdata; 1044s # }; 1044s # 1044s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_useful_interface_proxy_finalize (GObject *object) 1044s # { 1044s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1044s # g_datalist_clear (&proxy->priv->qdata); 1044s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # const GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1044s # const gchar *sender_name G_GNUC_UNUSED, 1044s # const gchar *signal_name, 1044s # GVariant *parameters) 1044s # { 1044s # _ExtendedGDBusSignalInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # gsize n; 1044s # guint signal_id; 1044s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1044s # if (info == NULL) 1044s # return; 1044s # num_params = g_variant_n_children (parameters); 1044s # paramv = g_new0 (GValue, num_params + 1); 1044s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_set_object (¶mv[0], proxy); 1044s # g_variant_iter_init (&iter, parameters); 1044s # n = 1; 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_signal_emitv (paramv, signal_id, 0, NULL); 1044s # for (n = 0; n < num_params + 1; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1044s # GVariant *changed_properties, 1044s # const gchar *const *invalidated_properties) 1044s # { 1044s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1044s # guint n; 1044s # const gchar *key; 1044s # GVariantIter *iter; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # g_variant_get (changed_properties, "a{sv}", &iter); 1044s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1044s # g_datalist_remove_data (&proxy->priv->qdata, key); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # g_variant_iter_free (iter); 1044s # for (n = 0; invalidated_properties[n] != NULL; n++) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1044s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1044s # #else 1044s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1044s # #endif 1044s # 1044s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusProxyClass *proxy_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1044s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1044s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1044s # 1044s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1044s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1044s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_useful_interface_proxy_new ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_sync: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_sync ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_useful_interface_proxy_new_for_bus ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_for_bus_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus_sync: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_for_bus_sync ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceSkeleton: 1044s # * 1044s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceSkeletonClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1044s # */ 1044s # 1044s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1044s # { 1044s # GValue *properties; 1044s # GList *changed_properties; 1044s # GSource *changed_properties_idle_source; 1044s # GMainContext *context; 1044s # GMutex lock; 1044s # }; 1044s # 1044s # static void 1044s # _org_project_useful_interface_skeleton_handle_method_call ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name, 1044s # const gchar *method_name, 1044s # GVariant *parameters, 1044s # GDBusMethodInvocation *invocation, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # _ExtendedGDBusMethodInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # guint num_extra; 1044s # gsize n; 1044s # guint signal_id; 1044s # GValue return_value = G_VALUE_INIT; 1044s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1044s # g_assert (info != NULL); 1044s # num_params = g_variant_n_children (parameters); 1044s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1044s # n = 0; 1044s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_set_object (¶mv[n++], skeleton); 1044s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1044s # g_value_set_object (¶mv[n++], invocation); 1044s # if (info->pass_fdlist) 1044s # { 1044s # #ifdef G_OS_UNIX 1044s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1044s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1044s # #else 1044s # g_assert_not_reached (); 1044s # #endif 1044s # } 1044s # g_variant_iter_init (&iter, parameters); 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1044s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1044s # if (!g_value_get_boolean (&return_value)) 1044s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1044s # g_value_unset (&return_value); 1044s # for (n = 0; n < num_params + num_extra; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static GVariant * 1044s # _org_project_useful_interface_skeleton_handle_get_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # GVariant *ret; 1044s # ret = NULL; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # g_value_init (&value, pspec->value_type); 1044s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1044s # g_value_unset (&value); 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _org_project_useful_interface_skeleton_handle_set_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GVariant *variant, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # gboolean ret; 1044s # ret = FALSE; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # if (info->use_gvariant) 1044s # g_value_set_variant (&value, variant); 1044s # else 1044s # g_dbus_gvariant_to_gvalue (variant, &value); 1044s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # g_value_unset (&value); 1044s # ret = TRUE; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1044s # { 1044s # _org_project_useful_interface_skeleton_handle_method_call, 1044s # _org_project_useful_interface_skeleton_handle_get_property, 1044s # _org_project_useful_interface_skeleton_handle_set_property, 1044s # {NULL} 1044s # }; 1044s # 1044s # static GDBusInterfaceInfo * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return org_project_useful_interface_interface_info (); 1044s # } 1044s # 1044s # static GDBusInterfaceVTable * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1044s # } 1044s # 1044s # static GVariant * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1044s # 1044s # GVariantBuilder builder; 1044s # guint n; 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1044s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #else 1044s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #endif 1044s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1044s # goto out; 1044s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1044s # { 1044s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1044s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1044s # { 1044s # GVariant *value; 1044s # 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); 1044s # if (value != NULL) 1044s # { 1044s # g_variant_take_ref (value); 1044s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1044s # g_variant_unref (value); 1044s # } 1044s # } 1044s # } 1044s # out: 1044s # return g_variant_builder_end (&builder); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_useful_interface_skeleton_finalize (GObject *object) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1044s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1044s # if (skeleton->priv->changed_properties_idle_source != NULL) 1044s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1044s # g_main_context_unref (skeleton->priv->context); 1044s # g_mutex_clear (&skeleton->priv->lock); 1044s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1044s # #else 1044s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1044s # #endif 1044s # 1044s # g_mutex_init (&skeleton->priv->lock); 1044s # skeleton->priv->context = g_main_context_ref_thread_default (); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusInterfaceSkeletonClass *skeleton_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1044s # 1044s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1044s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1044s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1044s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1044s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_skeleton_new: 1044s # * 1044s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_skeleton_new (void) 1044s # { 1044s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1044s # } 1044s # Error: 1044s # 1044s # /tmp/tmp2adpb45_/tmpeoq79k7p.xml: 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2adpb45_/tmpeoq79k7p.xml', '--output', '-', '--body'] 1044s # Return code: 0 1044s # Output: 1044s # /* 1044s # * This file is generated by gdbus-codegen, do not modify it. 1044s # * 1044s # * The license of this code is the same as for the D-Bus interface description 1044s # * it was derived from. Note that it links to GLib, so must comply with the 1044s # * LGPL linking clauses. 1044s # */ 1044s # 1044s # #ifdef HAVE_CONFIG_H 1044s # # include "config.h" 1044s # #endif 1044s # 1044s # #include 1044s # #ifdef G_OS_UNIX 1044s # # include 1044s # #endif 1044s # 1044s # #ifdef G_ENABLE_DEBUG 1044s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1044s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1044s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1044s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1044s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1044s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1044s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1044s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1044s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1044s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1044s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1044s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1044s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1044s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1044s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1044s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1044s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1044s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1044s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1044s # #else /* !G_ENABLE_DEBUG */ 1044s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1044s # * Do not access GValues directly in your code. Instead, use the 1044s # * g_value_get_*() functions 1044s # */ 1044s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1044s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1044s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1044s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1044s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1044s # #endif /* !G_ENABLE_DEBUG */ 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusArgInfo parent_struct; 1044s # gboolean use_gvariant; 1044s # } _ExtendedGDBusArgInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusMethodInfo parent_struct; 1044s # const gchar *signal_name; 1044s # gboolean pass_fdlist; 1044s # } _ExtendedGDBusMethodInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusSignalInfo parent_struct; 1044s # const gchar *signal_name; 1044s # } _ExtendedGDBusSignalInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusPropertyInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # guint use_gvariant : 1; 1044s # guint emits_changed_signal : 1; 1044s # } _ExtendedGDBusPropertyInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusInterfaceInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # } _ExtendedGDBusInterfaceInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # const _ExtendedGDBusPropertyInfo *info; 1044s # guint prop_id; 1044s # GValue orig_value; /* the value before the change */ 1044s # } ChangedProperty; 1044s # 1044s # static void 1044s # _changed_property_free (ChangedProperty *data) 1044s # { 1044s # g_value_unset (&data->orig_value); 1044s # g_free (data); 1044s # } 1044s # 1044s # static gboolean 1044s # _g_strv_equal0 (gchar **a, gchar **b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # guint n; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # if (g_strv_length (a) != g_strv_length (b)) 1044s # goto out; 1044s # for (n = 0; a[n] != NULL; n++) 1044s # if (g_strcmp0 (a[n], b[n]) != 0) 1044s # goto out; 1044s # ret = TRUE; 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _g_variant_equal0 (GVariant *a, GVariant *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # ret = g_variant_equal (a, b); 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # G_GNUC_UNUSED static gboolean 1044s # _g_value_equal (const GValue *a, const GValue *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1044s # switch (G_VALUE_TYPE (a)) 1044s # { 1044s # case G_TYPE_BOOLEAN: 1044s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1044s # break; 1044s # case G_TYPE_UCHAR: 1044s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1044s # break; 1044s # case G_TYPE_INT: 1044s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1044s # break; 1044s # case G_TYPE_UINT: 1044s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1044s # break; 1044s # case G_TYPE_INT64: 1044s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1044s # break; 1044s # case G_TYPE_UINT64: 1044s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1044s # break; 1044s # case G_TYPE_DOUBLE: 1044s # { 1044s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1044s # gdouble da = g_value_get_double (a); 1044s # gdouble db = g_value_get_double (b); 1044s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1044s # } 1044s # break; 1044s # case G_TYPE_STRING: 1044s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1044s # break; 1044s # case G_TYPE_VARIANT: 1044s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1044s # break; 1044s # default: 1044s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1044s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1044s # else 1044s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1044s # break; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static void 1044s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint G_GNUC_UNUSED, 1044s # void *marshal_data) 1044s # { 1044s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1044s # (void *data1, 1044s # GDBusMethodInvocation *arg_method_invocation, 1044s # void *data2); 1044s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1044s # GCClosure *cc = (GCClosure*) closure; 1044s # void *data1, *data2; 1044s # gboolean v_return; 1044s # 1044s # g_return_if_fail (return_value != NULL); 1044s # g_return_if_fail (n_param_values == 2); 1044s # 1044s # if (G_CCLOSURE_SWAP_DATA (closure)) 1044s # { 1044s # data1 = closure->data; 1044s # data2 = g_value_peek_pointer (param_values + 0); 1044s # } 1044s # else 1044s # { 1044s # data1 = g_value_peek_pointer (param_values + 0); 1044s # data2 = closure->data; 1044s # } 1044s # 1044s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1044s # (marshal_data ? marshal_data : cc->callback); 1044s # 1044s # v_return = 1044s # callback (data1, 1044s # g_marshal_value_peek_object (param_values + 1), 1044s # data2); 1044s # 1044s # g_value_set_boolean (return_value, v_return); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ 1044s # * Code for interface org.project.UsefulInterface 1044s # * ------------------------------------------------------------------------ 1044s # */ 1044s # 1044s # /** 1044s # * SECTION:OrgProjectUsefulInterface 1044s # * @title: OrgProjectUsefulInterface 1044s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1044s # * 1044s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1044s # */ 1044s # 1044s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_arg_as = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "arg_as", 1044s # (gchar *) "as", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_pointers[] = 1044s # { 1044s # &_org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_arg_as.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_as = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "SingleArgMethodAs", 1044s # NULL, 1044s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_pointers, 1044s # NULL 1044s # }, 1044s # "handle-single-arg-method-as", 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1044s # { 1044s # &_org_project_useful_interface_method_info_single_arg_method_as.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "org.project.UsefulInterface", 1044s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1044s # NULL, 1044s # NULL, 1044s # NULL 1044s # }, 1044s # "org-project-useful-interface", 1044s # }; 1044s # 1044s # 1044s # /** 1044s # * org_project_useful_interface_interface_info: 1044s # * 1044s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1044s # * 1044s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1044s # */ 1044s # GDBusInterfaceInfo * 1044s # org_project_useful_interface_interface_info (void) 1044s # { 1044s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_override_properties: 1044s # * @klass: The class structure for a #GObject derived class. 1044s # * @property_id_begin: The property id to assign to the first overridden property. 1044s # * 1044s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1044s # * The properties are overridden in the order they are defined. 1044s # * 1044s # * Returns: The last property id. 1044s # */ 1044s # guint 1044s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1044s # { 1044s # return property_id_begin - 1; 1044s # } 1044s # 1044s # 1044s # inline static void 1044s # org_project_useful_interface_method_marshal_single_arg_method_as ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterface: 1044s # * 1044s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceIface: 1044s # * @parent_iface: The parent interface. 1044s # * @handle_single_arg_method_as: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-as signal. 1044s # * 1044s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1044s # */ 1044s # 1044s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1044s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1044s # 1044s # static void 1044s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1044s # { 1044s # /* GObject signals for incoming D-Bus method calls: */ 1044s # /** 1044s # * OrgProjectUsefulInterface::handle-single-arg-method-as: 1044s # * @object: A #OrgProjectUsefulInterface. 1044s # * @invocation: A #GDBusMethodInvocation. 1044s # * 1044s # * Signal emitted when a remote caller is invoking the SingleArgMethodAs() D-Bus method. 1044s # * 1044s # * 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. 1044s # * 1044s # * 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. 1044s # */ 1044s # g_signal_new ("handle-single-arg-method-as", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_as), 1044s # g_signal_accumulator_true_handled, 1044s # NULL, 1044s # org_project_useful_interface_method_marshal_single_arg_method_as, 1044s # G_TYPE_BOOLEAN, 1044s # 1, 1044s # G_TYPE_DBUS_METHOD_INVOCATION); 1044s # 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_as: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_call_single_arg_method_as_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_call_single_arg_method_as_sync() for the synchronous, blocking version of this method. 1044s # */ 1044s # void 1044s # org_project_useful_interface_call_single_arg_method_as ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1044s # "SingleArgMethodAs", 1044s # g_variant_new ("()"), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # callback, 1044s # user_data); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_as_finish: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @out_arg_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_as(). 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_as(). 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_useful_interface_call_single_arg_method_as_finish ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # gchar ***out_arg_as, 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "(^as)", 1044s # out_arg_as); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_as_sync: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @out_arg_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Synchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_call_single_arg_method_as() for the asynchronous version of this method. 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_useful_interface_call_single_arg_method_as_sync ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # gchar ***out_arg_as, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1044s # "SingleArgMethodAs", 1044s # g_variant_new ("()"), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "(^as)", 1044s # out_arg_as); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_complete_single_arg_method_as: 1044s # * @object: A #OrgProjectUsefulInterface. 1044s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1044s # * @arg_as: Parameter to return. 1044s # * 1044s # * 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. 1044s # * 1044s # * This method will free @invocation, you cannot use it afterwards. 1044s # */ 1044s # void 1044s # org_project_useful_interface_complete_single_arg_method_as ( 1044s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1044s # GDBusMethodInvocation *invocation, 1044s # const gchar *const *arg_as) 1044s # { 1044s # g_dbus_method_invocation_return_value (invocation, 1044s # g_variant_new ("(^as)", 1044s # arg_as)); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceProxy: 1044s # * 1044s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceProxyClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1044s # */ 1044s # 1044s # struct _OrgProjectUsefulInterfaceProxyPrivate 1044s # { 1044s # GData *qdata; 1044s # }; 1044s # 1044s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_useful_interface_proxy_finalize (GObject *object) 1044s # { 1044s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1044s # g_datalist_clear (&proxy->priv->qdata); 1044s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # const GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1044s # const gchar *sender_name G_GNUC_UNUSED, 1044s # const gchar *signal_name, 1044s # GVariant *parameters) 1044s # { 1044s # _ExtendedGDBusSignalInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # gsize n; 1044s # guint signal_id; 1044s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1044s # if (info == NULL) 1044s # return; 1044s # num_params = g_variant_n_children (parameters); 1044s # paramv = g_new0 (GValue, num_params + 1); 1044s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_set_object (¶mv[0], proxy); 1044s # g_variant_iter_init (&iter, parameters); 1044s # n = 1; 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_signal_emitv (paramv, signal_id, 0, NULL); 1044s # for (n = 0; n < num_params + 1; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1044s # GVariant *changed_properties, 1044s # const gchar *const *invalidated_properties) 1044s # { 1044s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1044s # guint n; 1044s # const gchar *key; 1044s # GVariantIter *iter; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # g_variant_get (changed_properties, "a{sv}", &iter); 1044s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1044s # g_datalist_remove_data (&proxy->priv->qdata, key); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # g_variant_iter_free (iter); 1044s # for (n = 0; invalidated_properties[n] != NULL; n++) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1044s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1044s # #else 1044s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1044s # #endif 1044s # 1044s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusProxyClass *proxy_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1044s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1044s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1044s # 1044s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1044s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1044s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_useful_interface_proxy_new ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_sync: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_sync ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_useful_interface_proxy_new_for_bus ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_for_bus_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus_sync: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_for_bus_sync ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceSkeleton: 1044s # * 1044s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceSkeletonClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1044s # */ 1044s # 1044s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1044s # { 1044s # GValue *properties; 1044s # GList *changed_properties; 1044s # GSource *changed_properties_idle_source; 1044s # GMainContext *context; 1044s # GMutex lock; 1044s # }; 1044s # 1044s # static void 1044s # _org_project_useful_interface_skeleton_handle_method_call ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name, 1044s # const gchar *method_name, 1044s # GVariant *parameters, 1044s # GDBusMethodInvocation *invocation, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # _ExtendedGDBusMethodInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # guint num_extra; 1044s # gsize n; 1044s # guint signal_id; 1044s # GValue return_value = G_VALUE_INIT; 1044s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1044s # g_assert (info != NULL); 1044s # num_params = g_variant_n_children (parameters); 1044s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1044s # n = 0; 1044s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_set_object (¶mv[n++], skeleton); 1044s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1044s # g_value_set_object (¶mv[n++], invocation); 1044s # if (info->pass_fdlist) 1044s # { 1044s # #ifdef G_OS_UNIX 1044s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1044s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1044s # #else 1044s # g_assert_not_reached (); 1044s # #endif 1044s # } 1044s # g_variant_iter_init (&iter, parameters); 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1044s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1044s # if (!g_value_get_boolean (&return_value)) 1044s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1044s # g_value_unset (&return_value); 1044s # for (n = 0; n < num_params + num_extra; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static GVariant * 1044s # _org_project_useful_interface_skeleton_handle_get_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # GVariant *ret; 1044s # ret = NULL; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # g_value_init (&value, pspec->value_type); 1044s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1044s # g_value_unset (&value); 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _org_project_useful_interface_skeleton_handle_set_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GVariant *variant, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # gboolean ret; 1044s # ret = FALSE; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # if (info->use_gvariant) 1044s # g_value_set_variant (&value, variant); 1044s # else 1044s # g_dbus_gvariant_to_gvalue (variant, &value); 1044s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # g_value_unset (&value); 1044s # ret = TRUE; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1044s # { 1044s # _org_project_useful_interface_skeleton_handle_method_call, 1044s # _org_project_useful_interface_skeleton_handle_get_property, 1044s # _org_project_useful_interface_skeleton_handle_set_property, 1044s # {NULL} 1044s # }; 1044s # 1044s # static GDBusInterfaceInfo * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return org_project_useful_interface_interface_info (); 1044s # } 1044s # 1044s # static GDBusInterfaceVTable * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1044s # } 1044s # 1044s # static GVariant * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1044s # 1044s # GVariantBuilder builder; 1044s # guint n; 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1044s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #else 1044s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #endif 1044s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1044s # goto out; 1044s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1044s # { 1044s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1044s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1044s # { 1044s # GVariant *value; 1044s # 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); 1044s # if (value != NULL) 1044s # { 1044s # g_variant_take_ref (value); 1044s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1044s # g_variant_unref (value); 1044s # } 1044s # } 1044s # } 1044s # out: 1044s # return g_variant_builder_end (&builder); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_useful_interface_skeleton_finalize (GObject *object) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1044s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1044s # if (skeleton->priv->changed_properties_idle_source != NULL) 1044s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1044s # g_main_context_unref (skeleton->priv->context); 1044s # g_mutex_clear (&skeleton->priv->lock); 1044s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1044s # #else 1044s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1044s # #endif 1044s # 1044s # g_mutex_init (&skeleton->priv->lock); 1044s # skeleton->priv->context = g_main_context_ref_thread_default (); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusInterfaceSkeletonClass *skeleton_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1044s # 1044s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1044s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1044s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1044s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1044s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_skeleton_new: 1044s # * 1044s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_skeleton_new (void) 1044s # { 1044s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1044s # } 1044s # Error: 1044s # 1044s # /tmp/tmp2adpb45_/tmpbvivxasf.xml: 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2adpb45_/tmpbvivxasf.xml', '--output', '-', '--body'] 1044s # Return code: 0 1044s # Output: 1044s # /* 1044s # * This file is generated by gdbus-codegen, do not modify it. 1044s # * 1044s # * The license of this code is the same as for the D-Bus interface description 1044s # * it was derived from. Note that it links to GLib, so must comply with the 1044s # * LGPL linking clauses. 1044s # */ 1044s # 1044s # #ifdef HAVE_CONFIG_H 1044s # # include "config.h" 1044s # #endif 1044s # 1044s # #include 1044s # #ifdef G_OS_UNIX 1044s # # include 1044s # #endif 1044s # 1044s # #ifdef G_ENABLE_DEBUG 1044s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1044s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1044s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1044s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1044s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1044s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1044s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1044s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1044s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1044s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1044s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1044s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1044s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1044s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1044s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1044s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1044s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1044s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1044s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1044s # #else /* !G_ENABLE_DEBUG */ 1044s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1044s # * Do not access GValues directly in your code. Instead, use the 1044s # * g_value_get_*() functions 1044s # */ 1044s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1044s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1044s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1044s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1044s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1044s # #endif /* !G_ENABLE_DEBUG */ 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusArgInfo parent_struct; 1044s # gboolean use_gvariant; 1044s # } _ExtendedGDBusArgInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusMethodInfo parent_struct; 1044s # const gchar *signal_name; 1044s # gboolean pass_fdlist; 1044s # } _ExtendedGDBusMethodInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusSignalInfo parent_struct; 1044s # const gchar *signal_name; 1044s # } _ExtendedGDBusSignalInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusPropertyInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # guint use_gvariant : 1; 1044s # guint emits_changed_signal : 1; 1044s # } _ExtendedGDBusPropertyInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusInterfaceInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # } _ExtendedGDBusInterfaceInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # const _ExtendedGDBusPropertyInfo *info; 1044s # guint prop_id; 1044s # GValue orig_value; /* the value before the change */ 1044s # } ChangedProperty; 1044s # 1044s # static void 1044s # _changed_property_free (ChangedProperty *data) 1044s # { 1044s # g_value_unset (&data->orig_value); 1044s # g_free (data); 1044s # } 1044s # 1044s # static gboolean 1044s # _g_strv_equal0 (gchar **a, gchar **b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # guint n; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # if (g_strv_length (a) != g_strv_length (b)) 1044s # goto out; 1044s # for (n = 0; a[n] != NULL; n++) 1044s # if (g_strcmp0 (a[n], b[n]) != 0) 1044s # goto out; 1044s # ret = TRUE; 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _g_variant_equal0 (GVariant *a, GVariant *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # ret = g_variant_equal (a, b); 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # G_GNUC_UNUSED static gboolean 1044s # _g_value_equal (const GValue *a, const GValue *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1044s # switch (G_VALUE_TYPE (a)) 1044s # { 1044s # case G_TYPE_BOOLEAN: 1044s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1044s # break; 1044s # case G_TYPE_UCHAR: 1044s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1044s # break; 1044s # case G_TYPE_INT: 1044s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1044s # break; 1044s # case G_TYPE_UINT: 1044s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1044s # break; 1044s # case G_TYPE_INT64: 1044s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1044s # break; 1044s # case G_TYPE_UINT64: 1044s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1044s # break; 1044s # case G_TYPE_DOUBLE: 1044s # { 1044s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1044s # gdouble da = g_value_get_double (a); 1044s # gdouble db = g_value_get_double (b); 1044s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1044s # } 1044s # break; 1044s # case G_TYPE_STRING: 1044s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1044s # break; 1044s # case G_TYPE_VARIANT: 1044s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1044s # break; 1044s # default: 1044s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1044s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1044s # else 1044s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1044s # break; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static void 1044s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint G_GNUC_UNUSED, 1044s # void *marshal_data) 1044s # { 1044s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1044s # (void *data1, 1044s # GDBusMethodInvocation *arg_method_invocation, 1044s # void *data2); 1044s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1044s # GCClosure *cc = (GCClosure*) closure; 1044s # void *data1, *data2; 1044s # gboolean v_return; 1044s # 1044s # g_return_if_fail (return_value != NULL); 1044s # g_return_if_fail (n_param_values == 2); 1044s # 1044s # if (G_CCLOSURE_SWAP_DATA (closure)) 1044s # { 1044s # data1 = closure->data; 1044s # data2 = g_value_peek_pointer (param_values + 0); 1044s # } 1044s # else 1044s # { 1044s # data1 = g_value_peek_pointer (param_values + 0); 1044s # data2 = closure->data; 1044s # } 1044s # 1044s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1044s # (marshal_data ? marshal_data : cc->callback); 1044s # 1044s # v_return = 1044s # callback (data1, 1044s # g_marshal_value_peek_object (param_values + 1), 1044s # data2); 1044s # 1044s # g_value_set_boolean (return_value, v_return); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ 1044s # * Code for interface org.project.UsefulInterface 1044s # * ------------------------------------------------------------------------ 1044s # */ 1044s # 1044s # /** 1044s # * SECTION:OrgProjectUsefulInterface 1044s # * @title: OrgProjectUsefulInterface 1044s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1044s # * 1044s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1044s # */ 1044s # 1044s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_arg_ao = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "arg_ao", 1044s # (gchar *) "ao", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_pointers[] = 1044s # { 1044s # &_org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_arg_ao.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ao = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "SingleArgMethodAo", 1044s # NULL, 1044s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_pointers, 1044s # NULL 1044s # }, 1044s # "handle-single-arg-method-ao", 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1044s # { 1044s # &_org_project_useful_interface_method_info_single_arg_method_ao.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "org.project.UsefulInterface", 1044s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1044s # NULL, 1044s # NULL, 1044s # NULL 1044s # }, 1044s # "org-project-useful-interface", 1044s # }; 1044s # 1044s # 1044s # /** 1044s # * org_project_useful_interface_interface_info: 1044s # * 1044s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1044s # * 1044s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1044s # */ 1044s # GDBusInterfaceInfo * 1044s # org_project_useful_interface_interface_info (void) 1044s # { 1044s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_override_properties: 1044s # * @klass: The class structure for a #GObject derived class. 1044s # * @property_id_begin: The property id to assign to the first overridden property. 1044s # * 1044s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1044s # * The properties are overridden in the order they are defined. 1044s # * 1044s # * Returns: The last property id. 1044s # */ 1044s # guint 1044s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1044s # { 1044s # return property_id_begin - 1; 1044s # } 1044s # 1044s # 1044s # inline static void 1044s # org_project_useful_interface_method_marshal_single_arg_method_ao ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterface: 1044s # * 1044s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceIface: 1044s # * @parent_iface: The parent interface. 1044s # * @handle_single_arg_method_ao: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ao signal. 1044s # * 1044s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1044s # */ 1044s # 1044s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1044s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1044s # 1044s # static void 1044s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1044s # { 1044s # /* GObject signals for incoming D-Bus method calls: */ 1044s # /** 1044s # * OrgProjectUsefulInterface::handle-single-arg-method-ao: 1044s # * @object: A #OrgProjectUsefulInterface. 1044s # * @invocation: A #GDBusMethodInvocation. 1044s # * 1044s # * Signal emitted when a remote caller is invoking the SingleArgMethodAo() D-Bus method. 1044s # * 1044s # * 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. 1044s # * 1044s # * 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. 1044s # */ 1044s # g_signal_new ("handle-single-arg-method-ao", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ao), 1044s # g_signal_accumulator_true_handled, 1044s # NULL, 1044s # org_project_useful_interface_method_marshal_single_arg_method_ao, 1044s # G_TYPE_BOOLEAN, 1044s # 1, 1044s # G_TYPE_DBUS_METHOD_INVOCATION); 1044s # 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_ao: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_call_single_arg_method_ao_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_call_single_arg_method_ao_sync() for the synchronous, blocking version of this method. 1044s # */ 1044s # void 1044s # org_project_useful_interface_call_single_arg_method_ao ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1044s # "SingleArgMethodAo", 1044s # g_variant_new ("()"), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # callback, 1044s # user_data); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_ao_finish: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @out_arg_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ao(). 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ao(). 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_useful_interface_call_single_arg_method_ao_finish ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # gchar ***out_arg_ao, 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "(^ao)", 1044s # out_arg_ao); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_ao_sync: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @out_arg_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Synchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_call_single_arg_method_ao() for the asynchronous version of this method. 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_useful_interface_call_single_arg_method_ao_sync ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # gchar ***out_arg_ao, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1044s # "SingleArgMethodAo", 1044s # g_variant_new ("()"), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "(^ao)", 1044s # out_arg_ao); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_complete_single_arg_method_ao: 1044s # * @object: A #OrgProjectUsefulInterface. 1044s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1044s # * @arg_ao: Parameter to return. 1044s # * 1044s # * 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. 1044s # * 1044s # * This method will free @invocation, you cannot use it afterwards. 1044s # */ 1044s # void 1044s # org_project_useful_interface_complete_single_arg_method_ao ( 1044s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1044s # GDBusMethodInvocation *invocation, 1044s # const gchar *const *arg_ao) 1044s # { 1044s # g_dbus_method_invocation_return_value (invocation, 1044s # g_variant_new ("(^ao)", 1044s # arg_ao)); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceProxy: 1044s # * 1044s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceProxyClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1044s # */ 1044s # 1044s # struct _OrgProjectUsefulInterfaceProxyPrivate 1044s # { 1044s # GData *qdata; 1044s # }; 1044s # 1044s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_useful_interface_proxy_finalize (GObject *object) 1044s # { 1044s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1044s # g_datalist_clear (&proxy->priv->qdata); 1044s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # const GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1044s # const gchar *sender_name G_GNUC_UNUSED, 1044s # const gchar *signal_name, 1044s # GVariant *parameters) 1044s # { 1044s # _ExtendedGDBusSignalInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # gsize n; 1044s # guint signal_id; 1044s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1044s # if (info == NULL) 1044s # return; 1044s # num_params = g_variant_n_children (parameters); 1044s # paramv = g_new0 (GValue, num_params + 1); 1044s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_set_object (¶mv[0], proxy); 1044s # g_variant_iter_init (&iter, parameters); 1044s # n = 1; 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_signal_emitv (paramv, signal_id, 0, NULL); 1044s # for (n = 0; n < num_params + 1; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1044s # GVariant *changed_properties, 1044s # const gchar *const *invalidated_properties) 1044s # { 1044s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1044s # guint n; 1044s # const gchar *key; 1044s # GVariantIter *iter; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # g_variant_get (changed_properties, "a{sv}", &iter); 1044s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1044s # g_datalist_remove_data (&proxy->priv->qdata, key); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # g_variant_iter_free (iter); 1044s # for (n = 0; invalidated_properties[n] != NULL; n++) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1044s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1044s # #else 1044s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1044s # #endif 1044s # 1044s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusProxyClass *proxy_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1044s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1044s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1044s # 1044s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1044s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1044s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_useful_interface_proxy_new ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_sync: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_sync ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_useful_interface_proxy_new_for_bus ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_for_bus_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus_sync: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_for_bus_sync ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceSkeleton: 1044s # * 1044s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceSkeletonClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1044s # */ 1044s # 1044s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1044s # { 1044s # GValue *properties; 1044s # GList *changed_properties; 1044s # GSource *changed_properties_idle_source; 1044s # GMainContext *context; 1044s # GMutex lock; 1044s # }; 1044s # 1044s # static void 1044s # _org_project_useful_interface_skeleton_handle_method_call ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name, 1044s # const gchar *method_name, 1044s # GVariant *parameters, 1044s # GDBusMethodInvocation *invocation, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # _ExtendedGDBusMethodInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # guint num_extra; 1044s # gsize n; 1044s # guint signal_id; 1044s # GValue return_value = G_VALUE_INIT; 1044s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1044s # g_assert (info != NULL); 1044s # num_params = g_variant_n_children (parameters); 1044s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1044s # n = 0; 1044s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_set_object (¶mv[n++], skeleton); 1044s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1044s # g_value_set_object (¶mv[n++], invocation); 1044s # if (info->pass_fdlist) 1044s # { 1044s # #ifdef G_OS_UNIX 1044s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1044s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1044s # #else 1044s # g_assert_not_reached (); 1044s # #endif 1044s # } 1044s # g_variant_iter_init (&iter, parameters); 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1044s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1044s # if (!g_value_get_boolean (&return_value)) 1044s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1044s # g_value_unset (&return_value); 1044s # for (n = 0; n < num_params + num_extra; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static GVariant * 1044s # _org_project_useful_interface_skeleton_handle_get_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # GVariant *ret; 1044s # ret = NULL; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # g_value_init (&value, pspec->value_type); 1044s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1044s # g_value_unset (&value); 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _org_project_useful_interface_skeleton_handle_set_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GVariant *variant, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # gboolean ret; 1044s # ret = FALSE; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # if (info->use_gvariant) 1044s # g_value_set_variant (&value, variant); 1044s # else 1044s # g_dbus_gvariant_to_gvalue (variant, &value); 1044s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # g_value_unset (&value); 1044s # ret = TRUE; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1044s # { 1044s # _org_project_useful_interface_skeleton_handle_method_call, 1044s # _org_project_useful_interface_skeleton_handle_get_property, 1044s # _org_project_useful_interface_skeleton_handle_set_property, 1044s # {NULL} 1044s # }; 1044s # 1044s # static GDBusInterfaceInfo * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return org_project_useful_interface_interface_info (); 1044s # } 1044s # 1044s # static GDBusInterfaceVTable * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1044s # } 1044s # 1044s # static GVariant * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1044s # 1044s # GVariantBuilder builder; 1044s # guint n; 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1044s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #else 1044s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #endif 1044s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1044s # goto out; 1044s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1044s # { 1044s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1044s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1044s # { 1044s # GVariant *value; 1044s # 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); 1044s # if (value != NULL) 1044s # { 1044s # g_variant_take_ref (value); 1044s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1044s # g_variant_unref (value); 1044s # } 1044s # } 1044s # } 1044s # out: 1044s # return g_variant_builder_end (&builder); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_useful_interface_skeleton_finalize (GObject *object) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1044s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1044s # if (skeleton->priv->changed_properties_idle_source != NULL) 1044s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1044s # g_main_context_unref (skeleton->priv->context); 1044s # g_mutex_clear (&skeleton->priv->lock); 1044s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1044s # #else 1044s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1044s # #endif 1044s # 1044s # g_mutex_init (&skeleton->priv->lock); 1044s # skeleton->priv->context = g_main_context_ref_thread_default (); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusInterfaceSkeletonClass *skeleton_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1044s # 1044s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1044s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1044s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1044s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1044s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_skeleton_new: 1044s # * 1044s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_skeleton_new (void) 1044s # { 1044s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1044s # } 1044s # Error: 1044s # 1044s # /tmp/tmp2adpb45_/tmpt908mthc.xml: 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2adpb45_/tmpt908mthc.xml', '--output', '-', '--body'] 1044s # Return code: 0 1044s # Output: 1044s # /* 1044s # * This file is generated by gdbus-codegen, do not modify it. 1044s # * 1044s # * The license of this code is the same as for the D-Bus interface description 1044s # * it was derived from. Note that it links to GLib, so must comply with the 1044s # * LGPL linking clauses. 1044s # */ 1044s # 1044s # #ifdef HAVE_CONFIG_H 1044s # # include "config.h" 1044s # #endif 1044s # 1044s # #include 1044s # #ifdef G_OS_UNIX 1044s # # include 1044s # #endif 1044s # 1044s # #ifdef G_ENABLE_DEBUG 1044s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1044s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1044s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1044s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1044s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1044s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1044s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1044s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1044s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1044s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1044s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1044s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1044s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1044s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1044s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1044s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1044s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1044s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1044s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1044s # #else /* !G_ENABLE_DEBUG */ 1044s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1044s # * Do not access GValues directly in your code. Instead, use the 1044s # * g_value_get_*() functions 1044s # */ 1044s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1044s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1044s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1044s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1044s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1044s # #endif /* !G_ENABLE_DEBUG */ 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusArgInfo parent_struct; 1044s # gboolean use_gvariant; 1044s # } _ExtendedGDBusArgInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusMethodInfo parent_struct; 1044s # const gchar *signal_name; 1044s # gboolean pass_fdlist; 1044s # } _ExtendedGDBusMethodInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusSignalInfo parent_struct; 1044s # const gchar *signal_name; 1044s # } _ExtendedGDBusSignalInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusPropertyInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # guint use_gvariant : 1; 1044s # guint emits_changed_signal : 1; 1044s # } _ExtendedGDBusPropertyInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusInterfaceInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # } _ExtendedGDBusInterfaceInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # const _ExtendedGDBusPropertyInfo *info; 1044s # guint prop_id; 1044s # GValue orig_value; /* the value before the change */ 1044s # } ChangedProperty; 1044s # 1044s # static void 1044s # _changed_property_free (ChangedProperty *data) 1044s # { 1044s # g_value_unset (&data->orig_value); 1044s # g_free (data); 1044s # } 1044s # 1044s # static gboolean 1044s # _g_strv_equal0 (gchar **a, gchar **b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # guint n; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # if (g_strv_length (a) != g_strv_length (b)) 1044s # goto out; 1044s # for (n = 0; a[n] != NULL; n++) 1044s # if (g_strcmp0 (a[n], b[n]) != 0) 1044s # goto out; 1044s # ret = TRUE; 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _g_variant_equal0 (GVariant *a, GVariant *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # ret = g_variant_equal (a, b); 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # G_GNUC_UNUSED static gboolean 1044s # _g_value_equal (const GValue *a, const GValue *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1044s # switch (G_VALUE_TYPE (a)) 1044s # { 1044s # case G_TYPE_BOOLEAN: 1044s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1044s # break; 1044s # case G_TYPE_UCHAR: 1044s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1044s # break; 1044s # case G_TYPE_INT: 1044s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1044s # break; 1044s # case G_TYPE_UINT: 1044s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1044s # break; 1044s # case G_TYPE_INT64: 1044s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1044s # break; 1044s # case G_TYPE_UINT64: 1044s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1044s # break; 1044s # case G_TYPE_DOUBLE: 1044s # { 1044s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1044s # gdouble da = g_value_get_double (a); 1044s # gdouble db = g_value_get_double (b); 1044s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1044s # } 1044s # break; 1044s # case G_TYPE_STRING: 1044s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1044s # break; 1044s # case G_TYPE_VARIANT: 1044s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1044s # break; 1044s # default: 1044s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1044s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1044s # else 1044s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1044s # break; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static void 1044s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint G_GNUC_UNUSED, 1044s # void *marshal_data) 1044s # { 1044s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1044s # (void *data1, 1044s # GDBusMethodInvocation *arg_method_invocation, 1044s # void *data2); 1044s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1044s # GCClosure *cc = (GCClosure*) closure; 1044s # void *data1, *data2; 1044s # gboolean v_return; 1044s # 1044s # g_return_if_fail (return_value != NULL); 1044s # g_return_if_fail (n_param_values == 2); 1044s # 1044s # if (G_CCLOSURE_SWAP_DATA (closure)) 1044s # { 1044s # data1 = closure->data; 1044s # data2 = g_value_peek_pointer (param_values + 0); 1044s # } 1044s # else 1044s # { 1044s # data1 = g_value_peek_pointer (param_values + 0); 1044s # data2 = closure->data; 1044s # } 1044s # 1044s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1044s # (marshal_data ? marshal_data : cc->callback); 1044s # 1044s # v_return = 1044s # callback (data1, 1044s # g_marshal_value_peek_object (param_values + 1), 1044s # data2); 1044s # 1044s # g_value_set_boolean (return_value, v_return); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ 1044s # * Code for interface org.project.UsefulInterface 1044s # * ------------------------------------------------------------------------ 1044s # */ 1044s # 1044s # /** 1044s # * SECTION:OrgProjectUsefulInterface 1044s # * @title: OrgProjectUsefulInterface 1044s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1044s # * 1044s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1044s # */ 1044s # 1044s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_arg_aay = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "arg_aay", 1044s # (gchar *) "aay", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_pointers[] = 1044s # { 1044s # &_org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_arg_aay.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_aay = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "SingleArgMethodAay", 1044s # NULL, 1044s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_pointers, 1044s # NULL 1044s # }, 1044s # "handle-single-arg-method-aay", 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1044s # { 1044s # &_org_project_useful_interface_method_info_single_arg_method_aay.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "org.project.UsefulInterface", 1044s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1044s # NULL, 1044s # NULL, 1044s # NULL 1044s # }, 1044s # "org-project-useful-interface", 1044s # }; 1044s # 1044s # 1044s # /** 1044s # * org_project_useful_interface_interface_info: 1044s # * 1044s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1044s # * 1044s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1044s # */ 1044s # GDBusInterfaceInfo * 1044s # org_project_useful_interface_interface_info (void) 1044s # { 1044s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_override_properties: 1044s # * @klass: The class structure for a #GObject derived class. 1044s # * @property_id_begin: The property id to assign to the first overridden property. 1044s # * 1044s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1044s # * The properties are overridden in the order they are defined. 1044s # * 1044s # * Returns: The last property id. 1044s # */ 1044s # guint 1044s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1044s # { 1044s # return property_id_begin - 1; 1044s # } 1044s # 1044s # 1044s # inline static void 1044s # org_project_useful_interface_method_marshal_single_arg_method_aay ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterface: 1044s # * 1044s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceIface: 1044s # * @parent_iface: The parent interface. 1044s # * @handle_single_arg_method_aay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-aay signal. 1044s # * 1044s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1044s # */ 1044s # 1044s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1044s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1044s # 1044s # static void 1044s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1044s # { 1044s # /* GObject signals for incoming D-Bus method calls: */ 1044s # /** 1044s # * OrgProjectUsefulInterface::handle-single-arg-method-aay: 1044s # * @object: A #OrgProjectUsefulInterface. 1044s # * @invocation: A #GDBusMethodInvocation. 1044s # * 1044s # * Signal emitted when a remote caller is invoking the SingleArgMethodAay() D-Bus method. 1044s # * 1044s # * 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. 1044s # * 1044s # * 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. 1044s # */ 1044s # g_signal_new ("handle-single-arg-method-aay", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_aay), 1044s # g_signal_accumulator_true_handled, 1044s # NULL, 1044s # org_project_useful_interface_method_marshal_single_arg_method_aay, 1044s # G_TYPE_BOOLEAN, 1044s # 1, 1044s # G_TYPE_DBUS_METHOD_INVOCATION); 1044s # 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_aay: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_call_single_arg_method_aay_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_call_single_arg_method_aay_sync() for the synchronous, blocking version of this method. 1044s # */ 1044s # void 1044s # org_project_useful_interface_call_single_arg_method_aay ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1044s # "SingleArgMethodAay", 1044s # g_variant_new ("()"), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # callback, 1044s # user_data); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_aay_finish: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @out_arg_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_aay(). 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_aay(). 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_useful_interface_call_single_arg_method_aay_finish ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # gchar ***out_arg_aay, 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "(^aay)", 1044s # out_arg_aay); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_aay_sync: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @out_arg_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Synchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_call_single_arg_method_aay() for the asynchronous version of this method. 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_useful_interface_call_single_arg_method_aay_sync ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # gchar ***out_arg_aay, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1044s # "SingleArgMethodAay", 1044s # g_variant_new ("()"), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "(^aay)", 1044s # out_arg_aay); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_complete_single_arg_method_aay: 1044s # * @object: A #OrgProjectUsefulInterface. 1044s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1044s # * @arg_aay: Parameter to return. 1044s # * 1044s # * 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. 1044s # * 1044s # * This method will free @invocation, you cannot use it afterwards. 1044s # */ 1044s # void 1044s # org_project_useful_interface_complete_single_arg_method_aay ( 1044s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1044s # GDBusMethodInvocation *invocation, 1044s # const gchar *const *arg_aay) 1044s # { 1044s # g_dbus_method_invocation_return_value (invocation, 1044s # g_variant_new ("(^aay)", 1044s # arg_aay)); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceProxy: 1044s # * 1044s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceProxyClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1044s # */ 1044s # 1044s # struct _OrgProjectUsefulInterfaceProxyPrivate 1044s # { 1044s # GData *qdata; 1044s # }; 1044s # 1044s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_useful_interface_proxy_finalize (GObject *object) 1044s # { 1044s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1044s # g_datalist_clear (&proxy->priv->qdata); 1044s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # const GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1044s # const gchar *sender_name G_GNUC_UNUSED, 1044s # const gchar *signal_name, 1044s # GVariant *parameters) 1044s # { 1044s # _ExtendedGDBusSignalInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # gsize n; 1044s # guint signal_id; 1044s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1044s # if (info == NULL) 1044s # return; 1044s # num_params = g_variant_n_children (parameters); 1044s # paramv = g_new0 (GValue, num_params + 1); 1044s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_set_object (¶mv[0], proxy); 1044s # g_variant_iter_init (&iter, parameters); 1044s # n = 1; 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_signal_emitv (paramv, signal_id, 0, NULL); 1044s # for (n = 0; n < num_params + 1; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1044s # GVariant *changed_properties, 1044s # const gchar *const *invalidated_properties) 1044s # { 1044s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1044s # guint n; 1044s # const gchar *key; 1044s # GVariantIter *iter; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # g_variant_get (changed_properties, "a{sv}", &iter); 1044s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1044s # g_datalist_remove_data (&proxy->priv->qdata, key); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # g_variant_iter_free (iter); 1044s # for (n = 0; invalidated_properties[n] != NULL; n++) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1044s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1044s # #else 1044s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1044s # #endif 1044s # 1044s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusProxyClass *proxy_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1044s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1044s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1044s # 1044s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1044s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1044s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_useful_interface_proxy_new ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_sync: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_sync ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_useful_interface_proxy_new_for_bus ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_for_bus_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus_sync: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_for_bus_sync ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceSkeleton: 1044s # * 1044s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceSkeletonClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1044s # */ 1044s # 1044s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1044s # { 1044s # GValue *properties; 1044s # GList *changed_properties; 1044s # GSource *changed_properties_idle_source; 1044s # GMainContext *context; 1044s # GMutex lock; 1044s # }; 1044s # 1044s # static void 1044s # _org_project_useful_interface_skeleton_handle_method_call ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name, 1044s # const gchar *method_name, 1044s # GVariant *parameters, 1044s # GDBusMethodInvocation *invocation, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # _ExtendedGDBusMethodInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # guint num_extra; 1044s # gsize n; 1044s # guint signal_id; 1044s # GValue return_value = G_VALUE_INIT; 1044s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1044s # g_assert (info != NULL); 1044s # num_params = g_variant_n_children (parameters); 1044s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1044s # n = 0; 1044s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_set_object (¶mv[n++], skeleton); 1044s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1044s # g_value_set_object (¶mv[n++], invocation); 1044s # if (info->pass_fdlist) 1044s # { 1044s # #ifdef G_OS_UNIX 1044s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1044s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1044s # #else 1044s # g_assert_not_reached (); 1044s # #endif 1044s # } 1044s # g_variant_iter_init (&iter, parameters); 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1044s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1044s # if (!g_value_get_boolean (&return_value)) 1044s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1044s # g_value_unset (&return_value); 1044s # for (n = 0; n < num_params + num_extra; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static GVariant * 1044s # _org_project_useful_interface_skeleton_handle_get_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # GVariant *ret; 1044s # ret = NULL; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # g_value_init (&value, pspec->value_type); 1044s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1044s # g_value_unset (&value); 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _org_project_useful_interface_skeleton_handle_set_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GVariant *variant, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # gboolean ret; 1044s # ret = FALSE; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # if (info->use_gvariant) 1044s # g_value_set_variant (&value, variant); 1044s # else 1044s # g_dbus_gvariant_to_gvalue (variant, &value); 1044s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # g_value_unset (&value); 1044s # ret = TRUE; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1044s # { 1044s # _org_project_useful_interface_skeleton_handle_method_call, 1044s # _org_project_useful_interface_skeleton_handle_get_property, 1044s # _org_project_useful_interface_skeleton_handle_set_property, 1044s # {NULL} 1044s # }; 1044s # 1044s # static GDBusInterfaceInfo * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return org_project_useful_interface_interface_info (); 1044s # } 1044s # 1044s # static GDBusInterfaceVTable * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1044s # } 1044s # 1044s # static GVariant * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1044s # 1044s # GVariantBuilder builder; 1044s # guint n; 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1044s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #else 1044s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #endif 1044s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1044s # goto out; 1044s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1044s # { 1044s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1044s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1044s # { 1044s # GVariant *value; 1044s # 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); 1044s # if (value != NULL) 1044s # { 1044s # g_variant_take_ref (value); 1044s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1044s # g_variant_unref (value); 1044s # } 1044s # } 1044s # } 1044s # out: 1044s # return g_variant_builder_end (&builder); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_useful_interface_skeleton_finalize (GObject *object) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1044s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1044s # if (skeleton->priv->changed_properties_idle_source != NULL) 1044s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1044s # g_main_context_unref (skeleton->priv->context); 1044s # g_mutex_clear (&skeleton->priv->lock); 1044s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1044s # #else 1044s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1044s # #endif 1044s # 1044s # g_mutex_init (&skeleton->priv->lock); 1044s # skeleton->priv->context = g_main_context_ref_thread_default (); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusInterfaceSkeletonClass *skeleton_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1044s # 1044s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1044s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1044s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1044s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1044s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_skeleton_new: 1044s # * 1044s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_skeleton_new (void) 1044s # { 1044s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1044s # } 1044s # Error: 1044s # 1044s # /tmp/tmp2adpb45_/tmpfrr8bxl7.xml: 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2adpb45_/tmpfrr8bxl7.xml', '--output', '-', '--body'] 1044s # Return code: 0 1044s # Output: 1044s # /* 1044s # * This file is generated by gdbus-codegen, do not modify it. 1044s # * 1044s # * The license of this code is the same as for the D-Bus interface description 1044s # * it was derived from. Note that it links to GLib, so must comply with the 1044s # * LGPL linking clauses. 1044s # */ 1044s # 1044s # #ifdef HAVE_CONFIG_H 1044s # # include "config.h" 1044s # #endif 1044s # 1044s # #include 1044s # #ifdef G_OS_UNIX 1044s # # include 1044s # #endif 1044s # 1044s # #ifdef G_ENABLE_DEBUG 1044s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1044s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1044s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1044s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1044s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1044s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1044s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1044s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1044s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1044s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1044s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1044s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1044s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1044s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1044s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1044s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1044s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1044s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1044s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1044s # #else /* !G_ENABLE_DEBUG */ 1044s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1044s # * Do not access GValues directly in your code. Instead, use the 1044s # * g_value_get_*() functions 1044s # */ 1044s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1044s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1044s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1044s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1044s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1044s # #endif /* !G_ENABLE_DEBUG */ 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusArgInfo parent_struct; 1044s # gboolean use_gvariant; 1044s # } _ExtendedGDBusArgInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusMethodInfo parent_struct; 1044s # const gchar *signal_name; 1044s # gboolean pass_fdlist; 1044s # } _ExtendedGDBusMethodInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusSignalInfo parent_struct; 1044s # const gchar *signal_name; 1044s # } _ExtendedGDBusSignalInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusPropertyInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # guint use_gvariant : 1; 1044s # guint emits_changed_signal : 1; 1044s # } _ExtendedGDBusPropertyInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusInterfaceInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # } _ExtendedGDBusInterfaceInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # const _ExtendedGDBusPropertyInfo *info; 1044s # guint prop_id; 1044s # GValue orig_value; /* the value before the change */ 1044s # } ChangedProperty; 1044s # 1044s # static void 1044s # _changed_property_free (ChangedProperty *data) 1044s # { 1044s # g_value_unset (&data->orig_value); 1044s # g_free (data); 1044s # } 1044s # 1044s # static gboolean 1044s # _g_strv_equal0 (gchar **a, gchar **b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # guint n; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # if (g_strv_length (a) != g_strv_length (b)) 1044s # goto out; 1044s # for (n = 0; a[n] != NULL; n++) 1044s # if (g_strcmp0 (a[n], b[n]) != 0) 1044s # goto out; 1044s # ret = TRUE; 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _g_variant_equal0 (GVariant *a, GVariant *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # ret = g_variant_equal (a, b); 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # G_GNUC_UNUSED static gboolean 1044s # _g_value_equal (const GValue *a, const GValue *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1044s # switch (G_VALUE_TYPE (a)) 1044s # { 1044s # case G_TYPE_BOOLEAN: 1044s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1044s # break; 1044s # case G_TYPE_UCHAR: 1044s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1044s # break; 1044s # case G_TYPE_INT: 1044s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1044s # break; 1044s # case G_TYPE_UINT: 1044s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1044s # break; 1044s # case G_TYPE_INT64: 1044s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1044s # break; 1044s # case G_TYPE_UINT64: 1044s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1044s # break; 1044s # case G_TYPE_DOUBLE: 1044s # { 1044s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1044s # gdouble da = g_value_get_double (a); 1044s # gdouble db = g_value_get_double (b); 1044s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1044s # } 1044s # break; 1044s # case G_TYPE_STRING: 1044s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1044s # break; 1044s # case G_TYPE_VARIANT: 1044s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1044s # break; 1044s # default: 1044s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1044s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1044s # else 1044s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1044s # break; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static void 1044s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint G_GNUC_UNUSED, 1044s # void *marshal_data) 1044s # { 1044s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1044s # (void *data1, 1044s # GDBusMethodInvocation *arg_method_invocation, 1044s # void *data2); 1044s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1044s # GCClosure *cc = (GCClosure*) closure; 1044s # void *data1, *data2; 1044s # gboolean v_return; 1044s # 1044s # g_return_if_fail (return_value != NULL); 1044s # g_return_if_fail (n_param_values == 2); 1044s # 1044s # if (G_CCLOSURE_SWAP_DATA (closure)) 1044s # { 1044s # data1 = closure->data; 1044s # data2 = g_value_peek_pointer (param_values + 0); 1044s # } 1044s # else 1044s # { 1044s # data1 = g_value_peek_pointer (param_values + 0); 1044s # data2 = closure->data; 1044s # } 1044s # 1044s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1044s # (marshal_data ? marshal_data : cc->callback); 1044s # 1044s # v_return = 1044s # callback (data1, 1044s # g_marshal_value_peek_object (param_values + 1), 1044s # data2); 1044s # 1044s # g_value_set_boolean (return_value, v_return); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ 1044s # * Code for interface org.project.UsefulInterface 1044s # * ------------------------------------------------------------------------ 1044s # */ 1044s # 1044s # /** 1044s # * SECTION:OrgProjectUsefulInterface 1044s # * @title: OrgProjectUsefulInterface 1044s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1044s # * 1044s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1044s # */ 1044s # 1044s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_arg_asv = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "arg_asv", 1044s # (gchar *) "a{sv}", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_pointers[] = 1044s # { 1044s # &_org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_arg_asv.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_asv = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "SingleArgMethodAsv", 1044s # NULL, 1044s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_pointers, 1044s # NULL 1044s # }, 1044s # "handle-single-arg-method-asv", 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1044s # { 1044s # &_org_project_useful_interface_method_info_single_arg_method_asv.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "org.project.UsefulInterface", 1044s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1044s # NULL, 1044s # NULL, 1044s # NULL 1044s # }, 1044s # "org-project-useful-interface", 1044s # }; 1044s # 1044s # 1044s # /** 1044s # * org_project_useful_interface_interface_info: 1044s # * 1044s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1044s # * 1044s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1044s # */ 1044s # GDBusInterfaceInfo * 1044s # org_project_useful_interface_interface_info (void) 1044s # { 1044s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_override_properties: 1044s # * @klass: The class structure for a #GObject derived class. 1044s # * @property_id_begin: The property id to assign to the first overridden property. 1044s # * 1044s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1044s # * The properties are overridden in the order they are defined. 1044s # * 1044s # * Returns: The last property id. 1044s # */ 1044s # guint 1044s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1044s # { 1044s # return property_id_begin - 1; 1044s # } 1044s # 1044s # 1044s # inline static void 1044s # org_project_useful_interface_method_marshal_single_arg_method_asv ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterface: 1044s # * 1044s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceIface: 1044s # * @parent_iface: The parent interface. 1044s # * @handle_single_arg_method_asv: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-asv signal. 1044s # * 1044s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1044s # */ 1044s # 1044s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1044s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1044s # 1044s # static void 1044s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1044s # { 1044s # /* GObject signals for incoming D-Bus method calls: */ 1044s # /** 1044s # * OrgProjectUsefulInterface::handle-single-arg-method-asv: 1044s # * @object: A #OrgProjectUsefulInterface. 1044s # * @invocation: A #GDBusMethodInvocation. 1044s # * 1044s # * Signal emitted when a remote caller is invoking the SingleArgMethodAsv() D-Bus method. 1044s # * 1044s # * 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. 1044s # * 1044s # * 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. 1044s # */ 1044s # g_signal_new ("handle-single-arg-method-asv", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_asv), 1044s # g_signal_accumulator_true_handled, 1044s # NULL, 1044s # org_project_useful_interface_method_marshal_single_arg_method_asv, 1044s # G_TYPE_BOOLEAN, 1044s # 1, 1044s # G_TYPE_DBUS_METHOD_INVOCATION); 1044s # 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_asv: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_call_single_arg_method_asv_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_call_single_arg_method_asv_sync() for the synchronous, blocking version of this method. 1044s # */ 1044s # void 1044s # org_project_useful_interface_call_single_arg_method_asv ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1044s # "SingleArgMethodAsv", 1044s # g_variant_new ("()"), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # callback, 1044s # user_data); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_asv_finish: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @out_arg_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_asv(). 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_asv(). 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_useful_interface_call_single_arg_method_asv_finish ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # GVariant **out_arg_asv, 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "(@a{sv})", 1044s # out_arg_asv); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_call_single_arg_method_asv_sync: 1044s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1044s # * @out_arg_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Synchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_call_single_arg_method_asv() for the asynchronous version of this method. 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_useful_interface_call_single_arg_method_asv_sync ( 1044s # OrgProjectUsefulInterface *proxy, 1044s # GVariant **out_arg_asv, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1044s # "SingleArgMethodAsv", 1044s # g_variant_new ("()"), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "(@a{sv})", 1044s # out_arg_asv); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_complete_single_arg_method_asv: 1044s # * @object: A #OrgProjectUsefulInterface. 1044s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1044s # * @arg_asv: Parameter to return. 1044s # * 1044s # * 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. 1044s # * 1044s # * This method will free @invocation, you cannot use it afterwards. 1044s # */ 1044s # void 1044s # org_project_useful_interface_complete_single_arg_method_asv ( 1044s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1044s # GDBusMethodInvocation *invocation, 1044s # GVariant *arg_asv) 1044s # { 1044s # g_dbus_method_invocation_return_value (invocation, 1044s # g_variant_new ("(@a{sv})", 1044s # arg_asv)); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceProxy: 1044s # * 1044s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceProxyClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1044s # */ 1044s # 1044s # struct _OrgProjectUsefulInterfaceProxyPrivate 1044s # { 1044s # GData *qdata; 1044s # }; 1044s # 1044s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_useful_interface_proxy_finalize (GObject *object) 1044s # { 1044s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1044s # g_datalist_clear (&proxy->priv->qdata); 1044s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # const GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1044s # const gchar *sender_name G_GNUC_UNUSED, 1044s # const gchar *signal_name, 1044s # GVariant *parameters) 1044s # { 1044s # _ExtendedGDBusSignalInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # gsize n; 1044s # guint signal_id; 1044s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1044s # if (info == NULL) 1044s # return; 1044s # num_params = g_variant_n_children (parameters); 1044s # paramv = g_new0 (GValue, num_params + 1); 1044s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_set_object (¶mv[0], proxy); 1044s # g_variant_iter_init (&iter, parameters); 1044s # n = 1; 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_signal_emitv (paramv, signal_id, 0, NULL); 1044s # for (n = 0; n < num_params + 1; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1044s # GVariant *changed_properties, 1044s # const gchar *const *invalidated_properties) 1044s # { 1044s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1044s # guint n; 1044s # const gchar *key; 1044s # GVariantIter *iter; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # g_variant_get (changed_properties, "a{sv}", &iter); 1044s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1044s # g_datalist_remove_data (&proxy->priv->qdata, key); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # g_variant_iter_free (iter); 1044s # for (n = 0; invalidated_properties[n] != NULL; n++) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1044s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1044s # #else 1044s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1044s # #endif 1044s # 1044s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusProxyClass *proxy_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1044s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1044s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1044s # 1044s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1044s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1044s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_useful_interface_proxy_new ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_sync: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_sync ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_useful_interface_proxy_new_for_bus ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_for_bus_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus_sync: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_for_bus_sync ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceSkeleton: 1044s # * 1044s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceSkeletonClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1044s # */ 1044s # 1044s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1044s # { 1044s # GValue *properties; 1044s # GList *changed_properties; 1044s # GSource *changed_properties_idle_source; 1044s # GMainContext *context; 1044s # GMutex lock; 1044s # }; 1044s # 1044s # static void 1044s # _org_project_useful_interface_skeleton_handle_method_call ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name, 1044s # const gchar *method_name, 1044s # GVariant *parameters, 1044s # GDBusMethodInvocation *invocation, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # _ExtendedGDBusMethodInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # guint num_extra; 1044s # gsize n; 1044s # guint signal_id; 1044s # GValue return_value = G_VALUE_INIT; 1044s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1044s # g_assert (info != NULL); 1044s # num_params = g_variant_n_children (parameters); 1044s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1044s # n = 0; 1044s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_set_object (¶mv[n++], skeleton); 1044s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1044s # g_value_set_object (¶mv[n++], invocation); 1044s # if (info->pass_fdlist) 1044s # { 1044s # #ifdef G_OS_UNIX 1044s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1044s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1044s # #else 1044s # g_assert_not_reached (); 1044s # #endif 1044s # } 1044s # g_variant_iter_init (&iter, parameters); 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1044s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1044s # if (!g_value_get_boolean (&return_value)) 1044s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1044s # g_value_unset (&return_value); 1044s # for (n = 0; n < num_params + num_extra; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static GVariant * 1044s # _org_project_useful_interface_skeleton_handle_get_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # GVariant *ret; 1044s # ret = NULL; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # g_value_init (&value, pspec->value_type); 1044s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1044s # g_value_unset (&value); 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _org_project_useful_interface_skeleton_handle_set_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GVariant *variant, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # gboolean ret; 1044s # ret = FALSE; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # if (info->use_gvariant) 1044s # g_value_set_variant (&value, variant); 1044s # else 1044s # g_dbus_gvariant_to_gvalue (variant, &value); 1044s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # g_value_unset (&value); 1044s # ret = TRUE; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1044s # { 1044s # _org_project_useful_interface_skeleton_handle_method_call, 1044s # _org_project_useful_interface_skeleton_handle_get_property, 1044s # _org_project_useful_interface_skeleton_handle_set_property, 1044s # {NULL} 1044s # }; 1044s # 1044s # static GDBusInterfaceInfo * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return org_project_useful_interface_interface_info (); 1044s # } 1044s # 1044s # static GDBusInterfaceVTable * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1044s # } 1044s # 1044s # static GVariant * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1044s # 1044s # GVariantBuilder builder; 1044s # guint n; 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1044s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #else 1044s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #endif 1044s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1044s # goto out; 1044s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1044s # { 1044s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1044s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1044s # { 1044s # GVariant *value; 1044s # 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); 1044s # if (value != NULL) 1044s # { 1044s # g_variant_take_ref (value); 1044s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1044s # g_variant_unref (value); 1044s # } 1044s # } 1044s # } 1044s # out: 1044s # return g_variant_builder_end (&builder); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_useful_interface_skeleton_finalize (GObject *object) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1044s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1044s # if (skeleton->priv->changed_properties_idle_source != NULL) 1044s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1044s # g_main_context_unref (skeleton->priv->context); 1044s # g_mutex_clear (&skeleton->priv->lock); 1044s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1044s # #else 1044s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1044s # #endif 1044s # 1044s # g_mutex_init (&skeleton->priv->lock); 1044s # skeleton->priv->context = g_main_context_ref_thread_default (); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusInterfaceSkeletonClass *skeleton_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1044s # 1044s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1044s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1044s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1044s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1044s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_skeleton_new: 1044s # * 1044s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_skeleton_new (void) 1044s # { 1044s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1044s # } 1044s # Error: 1044s ok 12 __main__.TestCodegen.test_generate_methods_marshallers_multiple_in_args 1044s # gdbus-codegen: /usr/bin/gdbus-codegen 1044s # tmpdir: /tmp/tmp_7l35exq 1044s # /tmp/tmp_7l35exq/tmp0vb7nc3r.xml: 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp_7l35exq/tmp0vb7nc3r.xml', '--output', '-', '--body'] 1044s # Return code: 0 1044s # Output: 1044s # /* 1044s # * This file is generated by gdbus-codegen, do not modify it. 1044s # * 1044s # * The license of this code is the same as for the D-Bus interface description 1044s # * it was derived from. Note that it links to GLib, so must comply with the 1044s # * LGPL linking clauses. 1044s # */ 1044s # 1044s # #ifdef HAVE_CONFIG_H 1044s # # include "config.h" 1044s # #endif 1044s # 1044s # #include 1044s # #ifdef G_OS_UNIX 1044s # # include 1044s # #endif 1044s # 1044s # #ifdef G_ENABLE_DEBUG 1044s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1044s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1044s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1044s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1044s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1044s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1044s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1044s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1044s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1044s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1044s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1044s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1044s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1044s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1044s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1044s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1044s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1044s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1044s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1044s # #else /* !G_ENABLE_DEBUG */ 1044s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1044s # * Do not access GValues directly in your code. Instead, use the 1044s # * g_value_get_*() functions 1044s # */ 1044s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1044s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1044s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1044s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1044s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1044s # #endif /* !G_ENABLE_DEBUG */ 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusArgInfo parent_struct; 1044s # gboolean use_gvariant; 1044s # } _ExtendedGDBusArgInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusMethodInfo parent_struct; 1044s # const gchar *signal_name; 1044s # gboolean pass_fdlist; 1044s # } _ExtendedGDBusMethodInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusSignalInfo parent_struct; 1044s # const gchar *signal_name; 1044s # } _ExtendedGDBusSignalInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusPropertyInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # guint use_gvariant : 1; 1044s # guint emits_changed_signal : 1; 1044s # } _ExtendedGDBusPropertyInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusInterfaceInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # } _ExtendedGDBusInterfaceInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # const _ExtendedGDBusPropertyInfo *info; 1044s # guint prop_id; 1044s # GValue orig_value; /* the value before the change */ 1044s # } ChangedProperty; 1044s # 1044s # static void 1044s # _changed_property_free (ChangedProperty *data) 1044s # { 1044s # g_value_unset (&data->orig_value); 1044s # g_free (data); 1044s # } 1044s # 1044s # static gboolean 1044s # _g_strv_equal0 (gchar **a, gchar **b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # guint n; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # if (g_strv_length (a) != g_strv_length (b)) 1044s # goto out; 1044s # for (n = 0; a[n] != NULL; n++) 1044s # if (g_strcmp0 (a[n], b[n]) != 0) 1044s # goto out; 1044s # ret = TRUE; 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _g_variant_equal0 (GVariant *a, GVariant *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # ret = g_variant_equal (a, b); 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # G_GNUC_UNUSED static gboolean 1044s # _g_value_equal (const GValue *a, const GValue *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1044s # switch (G_VALUE_TYPE (a)) 1044s # { 1044s # case G_TYPE_BOOLEAN: 1044s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1044s # break; 1044s # case G_TYPE_UCHAR: 1044s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1044s # break; 1044s # case G_TYPE_INT: 1044s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1044s # break; 1044s # case G_TYPE_UINT: 1044s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1044s # break; 1044s # case G_TYPE_INT64: 1044s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1044s # break; 1044s # case G_TYPE_UINT64: 1044s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1044s # break; 1044s # case G_TYPE_DOUBLE: 1044s # { 1044s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1044s # gdouble da = g_value_get_double (a); 1044s # gdouble db = g_value_get_double (b); 1044s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1044s # } 1044s # break; 1044s # case G_TYPE_STRING: 1044s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1044s # break; 1044s # case G_TYPE_VARIANT: 1044s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1044s # break; 1044s # default: 1044s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1044s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1044s # else 1044s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1044s # break; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static void 1044s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint G_GNUC_UNUSED, 1044s # void *marshal_data) 1044s # { 1044s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1044s # (void *data1, 1044s # GDBusMethodInvocation *arg_method_invocation, 1044s # gboolean arg_an_b, 1044s # guchar arg_an_y, 1044s # gint16 arg_an_n, 1044s # guint16 arg_an_q, 1044s # gint arg_an_i, 1044s # guint arg_an_u, 1044s # gint64 arg_an_x, 1044s # guint64 arg_an_t, 1044s # gdouble arg_an_d, 1044s # const gchar *arg_an_s, 1044s # const gchar *arg_an_o, 1044s # const gchar *arg_an_g, 1044s # GVariant *arg_an_h, 1044s # const gchar *arg_an_ay, 1044s # const gchar *const *arg_an_as, 1044s # const gchar *const *arg_an_ao, 1044s # const gchar *const *arg_an_aay, 1044s # GVariant *arg_an_asv, 1044s # void *data2); 1044s # _GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 1044s # GCClosure *cc = (GCClosure*) closure; 1044s # void *data1, *data2; 1044s # gboolean v_return; 1044s # 1044s # g_return_if_fail (return_value != NULL); 1044s # g_return_if_fail (n_param_values == 20); 1044s # 1044s # if (G_CCLOSURE_SWAP_DATA (closure)) 1044s # { 1044s # data1 = closure->data; 1044s # data2 = g_value_peek_pointer (param_values + 0); 1044s # } 1044s # else 1044s # { 1044s # data1 = g_value_peek_pointer (param_values + 0); 1044s # data2 = closure->data; 1044s # } 1044s # 1044s # callback = (_GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1044s # (marshal_data ? marshal_data : cc->callback); 1044s # 1044s # v_return = 1044s # callback (data1, 1044s # g_marshal_value_peek_object (param_values + 1), 1044s # g_marshal_value_peek_boolean (param_values + 2), 1044s # g_marshal_value_peek_uchar (param_values + 3), 1044s # g_marshal_value_peek_int (param_values + 4), 1044s # g_marshal_value_peek_uint (param_values + 5), 1044s # g_marshal_value_peek_int (param_values + 6), 1044s # g_marshal_value_peek_uint (param_values + 7), 1044s # g_marshal_value_peek_int64 (param_values + 8), 1044s # g_marshal_value_peek_uint64 (param_values + 9), 1044s # g_marshal_value_peek_double (param_values + 10), 1044s # g_marshal_value_peek_string (param_values + 11), 1044s # g_marshal_value_peek_string (param_values + 12), 1044s # g_marshal_value_peek_string (param_values + 13), 1044s # g_marshal_value_peek_variant (param_values + 14), 1044s # g_marshal_value_peek_string (param_values + 15), 1044s # g_marshal_value_peek_boxed (param_values + 16), 1044s # g_marshal_value_peek_boxed (param_values + 17), 1044s # g_marshal_value_peek_boxed (param_values + 18), 1044s # g_marshal_value_peek_variant (param_values + 19), 1044s # data2); 1044s # 1044s # g_value_set_boolean (return_value, v_return); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ 1044s # * Code for interface org.project.CallableIface 1044s # * ------------------------------------------------------------------------ 1044s # */ 1044s # 1044s # /** 1044s # * SECTION:OrgProjectCallableIface 1044s # * @title: OrgProjectCallableIface 1044s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 1044s # * 1044s # * This section contains code for working with the org.project.CallableIface D-Bus interface in C. 1044s # */ 1044s # 1044s # /* ---- Introspection data for org.project.CallableIface ---- */ 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_b = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_b", 1044s # (gchar *) "b", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_y = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_y", 1044s # (gchar *) "y", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_n = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_n", 1044s # (gchar *) "n", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_q = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_q", 1044s # (gchar *) "q", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_i = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_i", 1044s # (gchar *) "i", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_u = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_u", 1044s # (gchar *) "u", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_x = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_x", 1044s # (gchar *) "x", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_t = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_t", 1044s # (gchar *) "t", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_d = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_d", 1044s # (gchar *) "d", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_s = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_s", 1044s # (gchar *) "s", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_o = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_o", 1044s # (gchar *) "o", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_g = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_g", 1044s # (gchar *) "g", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_h = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_h", 1044s # (gchar *) "h", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_ay", 1044s # (gchar *) "ay", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_as = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_as", 1044s # (gchar *) "as", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_ao", 1044s # (gchar *) "ao", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_aay", 1044s # (gchar *) "aay", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_asv", 1044s # (gchar *) "a{sv}", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_pointers[] = 1044s # { 1044s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_b.parent_struct, 1044s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_y.parent_struct, 1044s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_n.parent_struct, 1044s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_q.parent_struct, 1044s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_i.parent_struct, 1044s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_u.parent_struct, 1044s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_x.parent_struct, 1044s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_t.parent_struct, 1044s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_d.parent_struct, 1044s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_s.parent_struct, 1044s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_o.parent_struct, 1044s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_g.parent_struct, 1044s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_h.parent_struct, 1044s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay.parent_struct, 1044s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_as.parent_struct, 1044s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao.parent_struct, 1044s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay.parent_struct, 1044s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_method_with_many_args = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "MethodWithManyArgs", 1044s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_pointers, 1044s # NULL, 1044s # NULL 1044s # }, 1044s # "handle-method-with-many-args", 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_b = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_b", 1044s # (gchar *) "b", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_y = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_y", 1044s # (gchar *) "y", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_n = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_n", 1044s # (gchar *) "n", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_q = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_q", 1044s # (gchar *) "q", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_i = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_i", 1044s # (gchar *) "i", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_u = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_u", 1044s # (gchar *) "u", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_x = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_x", 1044s # (gchar *) "x", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_t = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_t", 1044s # (gchar *) "t", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_d = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_d", 1044s # (gchar *) "d", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_s = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_s", 1044s # (gchar *) "s", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_o = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_o", 1044s # (gchar *) "o", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_g = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_g", 1044s # (gchar *) "g", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_h = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_h", 1044s # (gchar *) "h", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ay = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_ay", 1044s # (gchar *) "ay", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_as = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_as", 1044s # (gchar *) "as", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ao = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_ao", 1044s # (gchar *) "ao", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_aay = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_aay", 1044s # (gchar *) "aay", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_asv = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_asv", 1044s # (gchar *) "a{sv}", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_pointers[] = 1044s # { 1044s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_b.parent_struct, 1044s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_y.parent_struct, 1044s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_n.parent_struct, 1044s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_q.parent_struct, 1044s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_i.parent_struct, 1044s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_u.parent_struct, 1044s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_x.parent_struct, 1044s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_t.parent_struct, 1044s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_d.parent_struct, 1044s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_s.parent_struct, 1044s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_o.parent_struct, 1044s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_g.parent_struct, 1044s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_h.parent_struct, 1044s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ay.parent_struct, 1044s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_as.parent_struct, 1044s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ao.parent_struct, 1044s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_aay.parent_struct, 1044s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_asv.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_same_method_with_many_args = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "SameMethodWithManyArgs", 1044s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_pointers, 1044s # NULL, 1044s # NULL 1044s # }, 1044s # "handle-same-method-with-many-args", 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 1044s # { 1044s # &_org_project_callable_iface_method_info_method_with_many_args.parent_struct, 1044s # &_org_project_callable_iface_method_info_same_method_with_many_args.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "org.project.CallableIface", 1044s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 1044s # NULL, 1044s # NULL, 1044s # NULL 1044s # }, 1044s # "org-project-callable-iface", 1044s # }; 1044s # 1044s # 1044s # /** 1044s # * org_project_callable_iface_interface_info: 1044s # * 1044s # * Gets a machine-readable description of the org.project.CallableIface D-Bus interface. 1044s # * 1044s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1044s # */ 1044s # GDBusInterfaceInfo * 1044s # org_project_callable_iface_interface_info (void) 1044s # { 1044s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 1044s # } 1044s # 1044s # /** 1044s # * org_project_callable_iface_override_properties: 1044s # * @klass: The class structure for a #GObject derived class. 1044s # * @property_id_begin: The property id to assign to the first overridden property. 1044s # * 1044s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 1044s # * The properties are overridden in the order they are defined. 1044s # * 1044s # * Returns: The last property id. 1044s # */ 1044s # guint 1044s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1044s # { 1044s # return property_id_begin - 1; 1044s # } 1044s # 1044s # 1044s # inline static void 1044s # org_project_callable_iface_method_marshal_method_with_many_args ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # _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, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # inline static void 1044s # org_project_callable_iface_method_marshal_same_method_with_many_args ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # _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, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # 1044s # /** 1044s # * OrgProjectCallableIface: 1044s # * 1044s # * Abstract interface type for the D-Bus interface org.project.CallableIface. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectCallableIfaceIface: 1044s # * @parent_iface: The parent interface. 1044s # * @handle_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-method-with-many-args signal. 1044s # * @handle_same_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-same-method-with-many-args signal. 1044s # * 1044s # * Virtual table for the D-Bus interface org.project.CallableIface. 1044s # */ 1044s # 1044s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 1044s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 1044s # 1044s # static void 1044s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 1044s # { 1044s # /* GObject signals for incoming D-Bus method calls: */ 1044s # /** 1044s # * OrgProjectCallableIface::handle-method-with-many-args: 1044s # * @object: A #OrgProjectCallableIface. 1044s # * @invocation: A #GDBusMethodInvocation. 1044s # * @arg_an_b: Argument passed by remote caller. 1044s # * @arg_an_y: Argument passed by remote caller. 1044s # * @arg_an_n: Argument passed by remote caller. 1044s # * @arg_an_q: Argument passed by remote caller. 1044s # * @arg_an_i: Argument passed by remote caller. 1044s # * @arg_an_u: Argument passed by remote caller. 1044s # * @arg_an_x: Argument passed by remote caller. 1044s # * @arg_an_t: Argument passed by remote caller. 1044s # * @arg_an_d: Argument passed by remote caller. 1044s # * @arg_an_s: Argument passed by remote caller. 1044s # * @arg_an_o: Argument passed by remote caller. 1044s # * @arg_an_g: Argument passed by remote caller. 1044s # * @arg_an_h: Argument passed by remote caller. 1044s # * @arg_an_ay: Argument passed by remote caller. 1044s # * @arg_an_as: Argument passed by remote caller. 1044s # * @arg_an_ao: Argument passed by remote caller. 1044s # * @arg_an_aay: Argument passed by remote caller. 1044s # * @arg_an_asv: Argument passed by remote caller. 1044s # * 1044s # * Signal emitted when a remote caller is invoking the MethodWithManyArgs() D-Bus method. 1044s # * 1044s # * 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. 1044s # * 1044s # * 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. 1044s # */ 1044s # g_signal_new ("handle-method-with-many-args", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_method_with_many_args), 1044s # g_signal_accumulator_true_handled, 1044s # NULL, 1044s # org_project_callable_iface_method_marshal_method_with_many_args, 1044s # G_TYPE_BOOLEAN, 1044s # 19, 1044s # 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); 1044s # 1044s # /** 1044s # * OrgProjectCallableIface::handle-same-method-with-many-args: 1044s # * @object: A #OrgProjectCallableIface. 1044s # * @invocation: A #GDBusMethodInvocation. 1044s # * @arg_an_b: Argument passed by remote caller. 1044s # * @arg_an_y: Argument passed by remote caller. 1044s # * @arg_an_n: Argument passed by remote caller. 1044s # * @arg_an_q: Argument passed by remote caller. 1044s # * @arg_an_i: Argument passed by remote caller. 1044s # * @arg_an_u: Argument passed by remote caller. 1044s # * @arg_an_x: Argument passed by remote caller. 1044s # * @arg_an_t: Argument passed by remote caller. 1044s # * @arg_an_d: Argument passed by remote caller. 1044s # * @arg_an_s: Argument passed by remote caller. 1044s # * @arg_an_o: Argument passed by remote caller. 1044s # * @arg_an_g: Argument passed by remote caller. 1044s # * @arg_an_h: Argument passed by remote caller. 1044s # * @arg_an_ay: Argument passed by remote caller. 1044s # * @arg_an_as: Argument passed by remote caller. 1044s # * @arg_an_ao: Argument passed by remote caller. 1044s # * @arg_an_aay: Argument passed by remote caller. 1044s # * @arg_an_asv: Argument passed by remote caller. 1044s # * 1044s # * Signal emitted when a remote caller is invoking the SameMethodWithManyArgs() D-Bus method. 1044s # * 1044s # * 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. 1044s # * 1044s # * 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. 1044s # */ 1044s # g_signal_new ("handle-same-method-with-many-args", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_same_method_with_many_args), 1044s # g_signal_accumulator_true_handled, 1044s # NULL, 1044s # org_project_callable_iface_method_marshal_same_method_with_many_args, 1044s # G_TYPE_BOOLEAN, 1044s # 19, 1044s # 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); 1044s # 1044s # } 1044s # 1044s # /** 1044s # * org_project_callable_iface_call_method_with_many_args: 1044s # * @proxy: A #OrgProjectCallableIfaceProxy. 1044s # * @arg_an_b: Argument to pass with the method invocation. 1044s # * @arg_an_y: Argument to pass with the method invocation. 1044s # * @arg_an_n: Argument to pass with the method invocation. 1044s # * @arg_an_q: Argument to pass with the method invocation. 1044s # * @arg_an_i: Argument to pass with the method invocation. 1044s # * @arg_an_u: Argument to pass with the method invocation. 1044s # * @arg_an_x: Argument to pass with the method invocation. 1044s # * @arg_an_t: Argument to pass with the method invocation. 1044s # * @arg_an_d: Argument to pass with the method invocation. 1044s # * @arg_an_s: Argument to pass with the method invocation. 1044s # * @arg_an_o: Argument to pass with the method invocation. 1044s # * @arg_an_g: Argument to pass with the method invocation. 1044s # * @arg_an_h: Argument to pass with the method invocation. 1044s # * @arg_an_ay: Argument to pass with the method invocation. 1044s # * @arg_an_as: Argument to pass with the method invocation. 1044s # * @arg_an_ao: Argument to pass with the method invocation. 1044s # * @arg_an_aay: Argument to pass with the method invocation. 1044s # * @arg_an_asv: Argument to pass with the method invocation. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 1044s # */ 1044s # void 1044s # org_project_callable_iface_call_method_with_many_args ( 1044s # OrgProjectCallableIface *proxy, 1044s # gboolean arg_an_b, 1044s # guchar arg_an_y, 1044s # gint16 arg_an_n, 1044s # guint16 arg_an_q, 1044s # gint arg_an_i, 1044s # guint arg_an_u, 1044s # gint64 arg_an_x, 1044s # guint64 arg_an_t, 1044s # gdouble arg_an_d, 1044s # const gchar *arg_an_s, 1044s # const gchar *arg_an_o, 1044s # const gchar *arg_an_g, 1044s # GVariant *arg_an_h, 1044s # const gchar *arg_an_ay, 1044s # const gchar *const *arg_an_as, 1044s # const gchar *const *arg_an_ao, 1044s # const gchar *const *arg_an_aay, 1044s # GVariant *arg_an_asv, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1044s # "MethodWithManyArgs", 1044s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1044s # arg_an_b, 1044s # arg_an_y, 1044s # arg_an_n, 1044s # arg_an_q, 1044s # arg_an_i, 1044s # arg_an_u, 1044s # arg_an_x, 1044s # arg_an_t, 1044s # arg_an_d, 1044s # arg_an_s, 1044s # arg_an_o, 1044s # arg_an_g, 1044s # arg_an_h, 1044s # arg_an_ay, 1044s # arg_an_as, 1044s # arg_an_ao, 1044s # arg_an_aay, 1044s # arg_an_asv), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # callback, 1044s # user_data); 1044s # } 1044s # 1044s # /** 1044s # * org_project_callable_iface_call_method_with_many_args_finish: 1044s # * @proxy: A #OrgProjectCallableIfaceProxy. 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_method_with_many_args(). 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Finishes an operation started with org_project_callable_iface_call_method_with_many_args(). 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_callable_iface_call_method_with_many_args_finish ( 1044s # OrgProjectCallableIface *proxy, 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "()"); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_callable_iface_call_method_with_many_args_sync: 1044s # * @proxy: A #OrgProjectCallableIfaceProxy. 1044s # * @arg_an_b: Argument to pass with the method invocation. 1044s # * @arg_an_y: Argument to pass with the method invocation. 1044s # * @arg_an_n: Argument to pass with the method invocation. 1044s # * @arg_an_q: Argument to pass with the method invocation. 1044s # * @arg_an_i: Argument to pass with the method invocation. 1044s # * @arg_an_u: Argument to pass with the method invocation. 1044s # * @arg_an_x: Argument to pass with the method invocation. 1044s # * @arg_an_t: Argument to pass with the method invocation. 1044s # * @arg_an_d: Argument to pass with the method invocation. 1044s # * @arg_an_s: Argument to pass with the method invocation. 1044s # * @arg_an_o: Argument to pass with the method invocation. 1044s # * @arg_an_g: Argument to pass with the method invocation. 1044s # * @arg_an_h: Argument to pass with the method invocation. 1044s # * @arg_an_ay: Argument to pass with the method invocation. 1044s # * @arg_an_as: Argument to pass with the method invocation. 1044s # * @arg_an_ao: Argument to pass with the method invocation. 1044s # * @arg_an_aay: Argument to pass with the method invocation. 1044s # * @arg_an_asv: Argument to pass with the method invocation. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Synchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_callable_iface_call_method_with_many_args_sync ( 1044s # OrgProjectCallableIface *proxy, 1044s # gboolean arg_an_b, 1044s # guchar arg_an_y, 1044s # gint16 arg_an_n, 1044s # guint16 arg_an_q, 1044s # gint arg_an_i, 1044s # guint arg_an_u, 1044s # gint64 arg_an_x, 1044s # guint64 arg_an_t, 1044s # gdouble arg_an_d, 1044s # const gchar *arg_an_s, 1044s # const gchar *arg_an_o, 1044s # const gchar *arg_an_g, 1044s # GVariant *arg_an_h, 1044s # const gchar *arg_an_ay, 1044s # const gchar *const *arg_an_as, 1044s # const gchar *const *arg_an_ao, 1044s # const gchar *const *arg_an_aay, 1044s # GVariant *arg_an_asv, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1044s # "MethodWithManyArgs", 1044s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1044s # arg_an_b, 1044s # arg_an_y, 1044s # arg_an_n, 1044s # arg_an_q, 1044s # arg_an_i, 1044s # arg_an_u, 1044s # arg_an_x, 1044s # arg_an_t, 1044s # arg_an_d, 1044s # arg_an_s, 1044s # arg_an_o, 1044s # arg_an_g, 1044s # arg_an_h, 1044s # arg_an_ay, 1044s # arg_an_as, 1044s # arg_an_ao, 1044s # arg_an_aay, 1044s # arg_an_asv), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "()"); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_callable_iface_call_same_method_with_many_args: 1044s # * @proxy: A #OrgProjectCallableIfaceProxy. 1044s # * @arg_an_b: Argument to pass with the method invocation. 1044s # * @arg_an_y: Argument to pass with the method invocation. 1044s # * @arg_an_n: Argument to pass with the method invocation. 1044s # * @arg_an_q: Argument to pass with the method invocation. 1044s # * @arg_an_i: Argument to pass with the method invocation. 1044s # * @arg_an_u: Argument to pass with the method invocation. 1044s # * @arg_an_x: Argument to pass with the method invocation. 1044s # * @arg_an_t: Argument to pass with the method invocation. 1044s # * @arg_an_d: Argument to pass with the method invocation. 1044s # * @arg_an_s: Argument to pass with the method invocation. 1044s # * @arg_an_o: Argument to pass with the method invocation. 1044s # * @arg_an_g: Argument to pass with the method invocation. 1044s # * @arg_an_h: Argument to pass with the method invocation. 1044s # * @arg_an_ay: Argument to pass with the method invocation. 1044s # * @arg_an_as: Argument to pass with the method invocation. 1044s # * @arg_an_ao: Argument to pass with the method invocation. 1044s # * @arg_an_aay: Argument to pass with the method invocation. 1044s # * @arg_an_asv: Argument to pass with the method invocation. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously invokes the SameMethodWithManyArgs() D-Bus method on @proxy. 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_callable_iface_call_same_method_with_many_args_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_callable_iface_call_same_method_with_many_args_sync() for the synchronous, blocking version of this method. 1044s # */ 1044s # void 1044s # org_project_callable_iface_call_same_method_with_many_args ( 1044s # OrgProjectCallableIface *proxy, 1044s # gboolean arg_an_b, 1044s # guchar arg_an_y, 1044s # gint16 arg_an_n, 1044s # guint16 arg_an_q, 1044s # gint arg_an_i, 1044s # guint arg_an_u, 1044s # gint64 arg_an_x, 1044s # guint64 arg_an_t, 1044s # gdouble arg_an_d, 1044s # const gchar *arg_an_s, 1044s # const gchar *arg_an_o, 1044s # const gchar *arg_an_g, 1044s # GVariant *arg_an_h, 1044s # const gchar *arg_an_ay, 1044s # const gchar *const *arg_an_as, 1044s # const gchar *const *arg_an_ao, 1044s # const gchar *const *arg_an_aay, 1044s # GVariant *arg_an_asv, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1044s # "SameMethodWithManyArgs", 1044s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1044s # arg_an_b, 1044s # arg_an_y, 1044s # arg_an_n, 1044s # arg_an_q, 1044s # arg_an_i, 1044s # arg_an_u, 1044s # arg_an_x, 1044s # arg_an_t, 1044s # arg_an_d, 1044s # arg_an_s, 1044s # arg_an_o, 1044s # arg_an_g, 1044s # arg_an_h, 1044s # arg_an_ay, 1044s # arg_an_as, 1044s # arg_an_ao, 1044s # arg_an_aay, 1044s # arg_an_asv), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # callback, 1044s # user_data); 1044s # } 1044s # 1044s # /** 1044s # * org_project_callable_iface_call_same_method_with_many_args_finish: 1044s # * @proxy: A #OrgProjectCallableIfaceProxy. 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_same_method_with_many_args(). 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Finishes an operation started with org_project_callable_iface_call_same_method_with_many_args(). 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_callable_iface_call_same_method_with_many_args_finish ( 1044s # OrgProjectCallableIface *proxy, 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "()"); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_callable_iface_call_same_method_with_many_args_sync: 1044s # * @proxy: A #OrgProjectCallableIfaceProxy. 1044s # * @arg_an_b: Argument to pass with the method invocation. 1044s # * @arg_an_y: Argument to pass with the method invocation. 1044s # * @arg_an_n: Argument to pass with the method invocation. 1044s # * @arg_an_q: Argument to pass with the method invocation. 1044s # * @arg_an_i: Argument to pass with the method invocation. 1044s # * @arg_an_u: Argument to pass with the method invocation. 1044s # * @arg_an_x: Argument to pass with the method invocation. 1044s # * @arg_an_t: Argument to pass with the method invocation. 1044s # * @arg_an_d: Argument to pass with the method invocation. 1044s # * @arg_an_s: Argument to pass with the method invocation. 1044s # * @arg_an_o: Argument to pass with the method invocation. 1044s # * @arg_an_g: Argument to pass with the method invocation. 1044s # * @arg_an_h: Argument to pass with the method invocation. 1044s # * @arg_an_ay: Argument to pass with the method invocation. 1044s # * @arg_an_as: Argument to pass with the method invocation. 1044s # * @arg_an_ao: Argument to pass with the method invocation. 1044s # * @arg_an_aay: Argument to pass with the method invocation. 1044s # * @arg_an_asv: Argument to pass with the method invocation. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Synchronously invokes the SameMethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_callable_iface_call_same_method_with_many_args() for the asynchronous version of this method. 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_callable_iface_call_same_method_with_many_args_sync ( 1044s # OrgProjectCallableIface *proxy, 1044s # gboolean arg_an_b, 1044s # guchar arg_an_y, 1044s # gint16 arg_an_n, 1044s # guint16 arg_an_q, 1044s # gint arg_an_i, 1044s # guint arg_an_u, 1044s # gint64 arg_an_x, 1044s # guint64 arg_an_t, 1044s # gdouble arg_an_d, 1044s # const gchar *arg_an_s, 1044s # const gchar *arg_an_o, 1044s # const gchar *arg_an_g, 1044s # GVariant *arg_an_h, 1044s # const gchar *arg_an_ay, 1044s # const gchar *const *arg_an_as, 1044s # const gchar *const *arg_an_ao, 1044s # const gchar *const *arg_an_aay, 1044s # GVariant *arg_an_asv, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1044s # "SameMethodWithManyArgs", 1044s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1044s # arg_an_b, 1044s # arg_an_y, 1044s # arg_an_n, 1044s # arg_an_q, 1044s # arg_an_i, 1044s # arg_an_u, 1044s # arg_an_x, 1044s # arg_an_t, 1044s # arg_an_d, 1044s # arg_an_s, 1044s # arg_an_o, 1044s # arg_an_g, 1044s # arg_an_h, 1044s # arg_an_ay, 1044s # arg_an_as, 1044s # arg_an_ao, 1044s # arg_an_aay, 1044s # arg_an_asv), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "()"); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_callable_iface_complete_method_with_many_args: 1044s # * @object: A #OrgProjectCallableIface. 1044s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1044s # * 1044s # * 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. 1044s # * 1044s # * This method will free @invocation, you cannot use it afterwards. 1044s # */ 1044s # void 1044s # org_project_callable_iface_complete_method_with_many_args ( 1044s # OrgProjectCallableIface *object G_GNUC_UNUSED, 1044s # GDBusMethodInvocation *invocation) 1044s # { 1044s # g_dbus_method_invocation_return_value (invocation, 1044s # g_variant_new ("()")); 1044s # } 1044s # 1044s # /** 1044s # * org_project_callable_iface_complete_same_method_with_many_args: 1044s # * @object: A #OrgProjectCallableIface. 1044s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1044s # * 1044s # * 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. 1044s # * 1044s # * This method will free @invocation, you cannot use it afterwards. 1044s # */ 1044s # void 1044s # org_project_callable_iface_complete_same_method_with_many_args ( 1044s # OrgProjectCallableIface *object G_GNUC_UNUSED, 1044s # GDBusMethodInvocation *invocation) 1044s # { 1044s # g_dbus_method_invocation_return_value (invocation, 1044s # g_variant_new ("()")); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectCallableIfaceProxy: 1044s # * 1044s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectCallableIfaceProxyClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectCallableIfaceProxy. 1044s # */ 1044s # 1044s # struct _OrgProjectCallableIfaceProxyPrivate 1044s # { 1044s # GData *qdata; 1044s # }; 1044s # 1044s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_callable_iface_proxy_finalize (GObject *object) 1044s # { 1044s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 1044s # g_datalist_clear (&proxy->priv->qdata); 1044s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # const GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1044s # const gchar *sender_name G_GNUC_UNUSED, 1044s # const gchar *signal_name, 1044s # GVariant *parameters) 1044s # { 1044s # _ExtendedGDBusSignalInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # gsize n; 1044s # guint signal_id; 1044s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 1044s # if (info == NULL) 1044s # return; 1044s # num_params = g_variant_n_children (parameters); 1044s # paramv = g_new0 (GValue, num_params + 1); 1044s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1044s # g_value_set_object (¶mv[0], proxy); 1044s # g_variant_iter_init (&iter, parameters); 1044s # n = 1; 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1044s # g_signal_emitv (paramv, signal_id, 0, NULL); 1044s # for (n = 0; n < num_params + 1; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static void 1044s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1044s # GVariant *changed_properties, 1044s # const gchar *const *invalidated_properties) 1044s # { 1044s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 1044s # guint n; 1044s # const gchar *key; 1044s # GVariantIter *iter; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # g_variant_get (changed_properties, "a{sv}", &iter); 1044s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 1044s # g_datalist_remove_data (&proxy->priv->qdata, key); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # g_variant_iter_free (iter); 1044s # for (n = 0; invalidated_properties[n] != NULL; n++) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1044s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # } 1044s # 1044s # static void 1044s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 1044s # #else 1044s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 1044s # #endif 1044s # 1044s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 1044s # } 1044s # 1044s # static void 1044s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusProxyClass *proxy_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 1044s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 1044s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 1044s # 1044s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1044s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 1044s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_callable_iface_proxy_new: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new() for more details. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_callable_iface_proxy_new ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # 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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_callable_iface_proxy_new_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectCallableIface * 1044s # org_project_callable_iface_proxy_new_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_callable_iface_proxy_new_sync: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Synchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new_sync() for more details. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectCallableIface * 1044s # org_project_callable_iface_proxy_new_sync ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /** 1044s # * org_project_callable_iface_proxy_new_for_bus: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_callable_iface_proxy_new_for_bus ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # 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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_callable_iface_proxy_new_for_bus_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectCallableIface * 1044s # org_project_callable_iface_proxy_new_for_bus_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_callable_iface_proxy_new_for_bus_sync: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectCallableIface * 1044s # org_project_callable_iface_proxy_new_for_bus_sync ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectCallableIfaceSkeleton: 1044s # * 1044s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectCallableIfaceSkeletonClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectCallableIfaceSkeleton. 1044s # */ 1044s # 1044s # struct _OrgProjectCallableIfaceSkeletonPrivate 1044s # { 1044s # GValue *properties; 1044s # GList *changed_properties; 1044s # GSource *changed_properties_idle_source; 1044s # GMainContext *context; 1044s # GMutex lock; 1044s # }; 1044s # 1044s # static void 1044s # _org_project_callable_iface_skeleton_handle_method_call ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name, 1044s # const gchar *method_name, 1044s # GVariant *parameters, 1044s # GDBusMethodInvocation *invocation, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1044s # _ExtendedGDBusMethodInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # guint num_extra; 1044s # gsize n; 1044s # guint signal_id; 1044s # GValue return_value = G_VALUE_INIT; 1044s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1044s # g_assert (info != NULL); 1044s # num_params = g_variant_n_children (parameters); 1044s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1044s # n = 0; 1044s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1044s # g_value_set_object (¶mv[n++], skeleton); 1044s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1044s # g_value_set_object (¶mv[n++], invocation); 1044s # if (info->pass_fdlist) 1044s # { 1044s # #ifdef G_OS_UNIX 1044s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1044s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1044s # #else 1044s # g_assert_not_reached (); 1044s # #endif 1044s # } 1044s # g_variant_iter_init (&iter, parameters); 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1044s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1044s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1044s # if (!g_value_get_boolean (&return_value)) 1044s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1044s # g_value_unset (&return_value); 1044s # for (n = 0; n < num_params + num_extra; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static GVariant * 1044s # _org_project_callable_iface_skeleton_handle_get_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # GVariant *ret; 1044s # ret = NULL; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # g_value_init (&value, pspec->value_type); 1044s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1044s # g_value_unset (&value); 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _org_project_callable_iface_skeleton_handle_set_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GVariant *variant, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # gboolean ret; 1044s # ret = FALSE; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # if (info->use_gvariant) 1044s # g_value_set_variant (&value, variant); 1044s # else 1044s # g_dbus_gvariant_to_gvalue (variant, &value); 1044s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # g_value_unset (&value); 1044s # ret = TRUE; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 1044s # { 1044s # _org_project_callable_iface_skeleton_handle_method_call, 1044s # _org_project_callable_iface_skeleton_handle_get_property, 1044s # _org_project_callable_iface_skeleton_handle_set_property, 1044s # {NULL} 1044s # }; 1044s # 1044s # static GDBusInterfaceInfo * 1044s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return org_project_callable_iface_interface_info (); 1044s # } 1044s # 1044s # static GDBusInterfaceVTable * 1044s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 1044s # } 1044s # 1044s # static GVariant * 1044s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1044s # { 1044s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 1044s # 1044s # GVariantBuilder builder; 1044s # guint n; 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1044s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #else 1044s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #endif 1044s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 1044s # goto out; 1044s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1044s # { 1044s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 1044s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1044s # { 1044s # GVariant *value; 1044s # 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); 1044s # if (value != NULL) 1044s # { 1044s # g_variant_take_ref (value); 1044s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1044s # g_variant_unref (value); 1044s # } 1044s # } 1044s # } 1044s # out: 1044s # return g_variant_builder_end (&builder); 1044s # } 1044s # 1044s # static void 1044s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_callable_iface_skeleton_finalize (GObject *object) 1044s # { 1044s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 1044s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1044s # if (skeleton->priv->changed_properties_idle_source != NULL) 1044s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1044s # g_main_context_unref (skeleton->priv->context); 1044s # g_mutex_clear (&skeleton->priv->lock); 1044s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 1044s # #else 1044s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 1044s # #endif 1044s # 1044s # g_mutex_init (&skeleton->priv->lock); 1044s # skeleton->priv->context = g_main_context_ref_thread_default (); 1044s # } 1044s # 1044s # static void 1044s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusInterfaceSkeletonClass *skeleton_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 1044s # 1044s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1044s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 1044s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 1044s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 1044s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_callable_iface_skeleton_new: 1044s # * 1044s # * Creates a skeleton object for the D-Bus interface org.project.CallableIface. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 1044s # */ 1044s # OrgProjectCallableIface * 1044s # org_project_callable_iface_skeleton_new (void) 1044s # { 1044s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ 1044s # * Code for interface org.project.OtherCallableIface 1044s # * ------------------------------------------------------------------------ 1044s # */ 1044s # 1044s # /** 1044s # * SECTION:OrgProjectOtherCallableIface 1044s # * @title: OrgProjectOtherCallableIface 1044s # * @short_description: Generated C code for the org.project.OtherCallableIface D-Bus interface 1044s # * 1044s # * This section contains code for working with the org.project.OtherCallableIface D-Bus interface in C. 1044s # */ 1044s # 1044s # /* ---- Introspection data for org.project.OtherCallableIface ---- */ 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_b = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_b", 1044s # (gchar *) "b", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_y = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_y", 1044s # (gchar *) "y", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_n = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_n", 1044s # (gchar *) "n", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_q = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_q", 1044s # (gchar *) "q", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_i = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_i", 1044s # (gchar *) "i", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_u = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_u", 1044s # (gchar *) "u", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_x = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_x", 1044s # (gchar *) "x", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_t = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_t", 1044s # (gchar *) "t", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_d = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_d", 1044s # (gchar *) "d", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_s = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_s", 1044s # (gchar *) "s", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_o = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_o", 1044s # (gchar *) "o", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_g = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_g", 1044s # (gchar *) "g", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_h = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_h", 1044s # (gchar *) "h", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_ay", 1044s # (gchar *) "ay", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_as = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_as", 1044s # (gchar *) "as", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_ao", 1044s # (gchar *) "ao", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_aay", 1044s # (gchar *) "aay", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_asv", 1044s # (gchar *) "a{sv}", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusArgInfo * const _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_pointers[] = 1044s # { 1044s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_b.parent_struct, 1044s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_y.parent_struct, 1044s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_n.parent_struct, 1044s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_q.parent_struct, 1044s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_i.parent_struct, 1044s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_u.parent_struct, 1044s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_x.parent_struct, 1044s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_t.parent_struct, 1044s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_d.parent_struct, 1044s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_s.parent_struct, 1044s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_o.parent_struct, 1044s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_g.parent_struct, 1044s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_h.parent_struct, 1044s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay.parent_struct, 1044s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_as.parent_struct, 1044s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao.parent_struct, 1044s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay.parent_struct, 1044s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusMethodInfo _org_project_other_callable_iface_method_info_method_with_many_args = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "MethodWithManyArgs", 1044s # (GDBusArgInfo **) &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_pointers, 1044s # NULL, 1044s # NULL 1044s # }, 1044s # "handle-method-with-many-args", 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusMethodInfo * const _org_project_other_callable_iface_method_info_pointers[] = 1044s # { 1044s # &_org_project_other_callable_iface_method_info_method_with_many_args.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusInterfaceInfo _org_project_other_callable_iface_interface_info = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "org.project.OtherCallableIface", 1044s # (GDBusMethodInfo **) &_org_project_other_callable_iface_method_info_pointers, 1044s # NULL, 1044s # NULL, 1044s # NULL 1044s # }, 1044s # "org-project-other-callable-iface", 1044s # }; 1044s # 1044s # 1044s # /** 1044s # * org_project_other_callable_iface_interface_info: 1044s # * 1044s # * Gets a machine-readable description of the org.project.OtherCallableIface D-Bus interface. 1044s # * 1044s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1044s # */ 1044s # GDBusInterfaceInfo * 1044s # org_project_other_callable_iface_interface_info (void) 1044s # { 1044s # return (GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct; 1044s # } 1044s # 1044s # /** 1044s # * org_project_other_callable_iface_override_properties: 1044s # * @klass: The class structure for a #GObject derived class. 1044s # * @property_id_begin: The property id to assign to the first overridden property. 1044s # * 1044s # * Overrides all #GObject properties in the #OrgProjectOtherCallableIface interface for a concrete class. 1044s # * The properties are overridden in the order they are defined. 1044s # * 1044s # * Returns: The last property id. 1044s # */ 1044s # guint 1044s # org_project_other_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1044s # { 1044s # return property_id_begin - 1; 1044s # } 1044s # 1044s # 1044s # inline static void 1044s # org_project_other_callable_iface_method_marshal_method_with_many_args ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # _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, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # 1044s # /** 1044s # * OrgProjectOtherCallableIface: 1044s # * 1044s # * Abstract interface type for the D-Bus interface org.project.OtherCallableIface. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectOtherCallableIfaceIface: 1044s # * @parent_iface: The parent interface. 1044s # * @handle_method_with_many_args: Handler for the #OrgProjectOtherCallableIface::handle-method-with-many-args signal. 1044s # * 1044s # * Virtual table for the D-Bus interface org.project.OtherCallableIface. 1044s # */ 1044s # 1044s # typedef OrgProjectOtherCallableIfaceIface OrgProjectOtherCallableIfaceInterface; 1044s # G_DEFINE_INTERFACE (OrgProjectOtherCallableIface, org_project_other_callable_iface, G_TYPE_OBJECT) 1044s # 1044s # static void 1044s # org_project_other_callable_iface_default_init (OrgProjectOtherCallableIfaceIface *iface) 1044s # { 1044s # /* GObject signals for incoming D-Bus method calls: */ 1044s # /** 1044s # * OrgProjectOtherCallableIface::handle-method-with-many-args: 1044s # * @object: A #OrgProjectOtherCallableIface. 1044s # * @invocation: A #GDBusMethodInvocation. 1044s # * @arg_an_b: Argument passed by remote caller. 1044s # * @arg_an_y: Argument passed by remote caller. 1044s # * @arg_an_n: Argument passed by remote caller. 1044s # * @arg_an_q: Argument passed by remote caller. 1044s # * @arg_an_i: Argument passed by remote caller. 1044s # * @arg_an_u: Argument passed by remote caller. 1044s # * @arg_an_x: Argument passed by remote caller. 1044s # * @arg_an_t: Argument passed by remote caller. 1044s # * @arg_an_d: Argument passed by remote caller. 1044s # * @arg_an_s: Argument passed by remote caller. 1044s # * @arg_an_o: Argument passed by remote caller. 1044s # * @arg_an_g: Argument passed by remote caller. 1044s # * @arg_an_h: Argument passed by remote caller. 1044s # * @arg_an_ay: Argument passed by remote caller. 1044s # * @arg_an_as: Argument passed by remote caller. 1044s # * @arg_an_ao: Argument passed by remote caller. 1044s # * @arg_an_aay: Argument passed by remote caller. 1044s # * @arg_an_asv: Argument passed by remote caller. 1044s # * 1044s # * Signal emitted when a remote caller is invoking the MethodWithManyArgs() D-Bus method. 1044s # * 1044s # * 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. 1044s # * 1044s # * 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. 1044s # */ 1044s # g_signal_new ("handle-method-with-many-args", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectOtherCallableIfaceIface, handle_method_with_many_args), 1044s # g_signal_accumulator_true_handled, 1044s # NULL, 1044s # org_project_other_callable_iface_method_marshal_method_with_many_args, 1044s # G_TYPE_BOOLEAN, 1044s # 19, 1044s # 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); 1044s # 1044s # } 1044s # 1044s # /** 1044s # * org_project_other_callable_iface_call_method_with_many_args: 1044s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1044s # * @arg_an_b: Argument to pass with the method invocation. 1044s # * @arg_an_y: Argument to pass with the method invocation. 1044s # * @arg_an_n: Argument to pass with the method invocation. 1044s # * @arg_an_q: Argument to pass with the method invocation. 1044s # * @arg_an_i: Argument to pass with the method invocation. 1044s # * @arg_an_u: Argument to pass with the method invocation. 1044s # * @arg_an_x: Argument to pass with the method invocation. 1044s # * @arg_an_t: Argument to pass with the method invocation. 1044s # * @arg_an_d: Argument to pass with the method invocation. 1044s # * @arg_an_s: Argument to pass with the method invocation. 1044s # * @arg_an_o: Argument to pass with the method invocation. 1044s # * @arg_an_g: Argument to pass with the method invocation. 1044s # * @arg_an_h: Argument to pass with the method invocation. 1044s # * @arg_an_ay: Argument to pass with the method invocation. 1044s # * @arg_an_as: Argument to pass with the method invocation. 1044s # * @arg_an_ao: Argument to pass with the method invocation. 1044s # * @arg_an_aay: Argument to pass with the method invocation. 1044s # * @arg_an_asv: Argument to pass with the method invocation. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_other_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_other_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 1044s # */ 1044s # void 1044s # org_project_other_callable_iface_call_method_with_many_args ( 1044s # OrgProjectOtherCallableIface *proxy, 1044s # gboolean arg_an_b, 1044s # guchar arg_an_y, 1044s # gint16 arg_an_n, 1044s # guint16 arg_an_q, 1044s # gint arg_an_i, 1044s # guint arg_an_u, 1044s # gint64 arg_an_x, 1044s # guint64 arg_an_t, 1044s # gdouble arg_an_d, 1044s # const gchar *arg_an_s, 1044s # const gchar *arg_an_o, 1044s # const gchar *arg_an_g, 1044s # GVariant *arg_an_h, 1044s # const gchar *arg_an_ay, 1044s # const gchar *const *arg_an_as, 1044s # const gchar *const *arg_an_ao, 1044s # const gchar *const *arg_an_aay, 1044s # GVariant *arg_an_asv, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1044s # "MethodWithManyArgs", 1044s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1044s # arg_an_b, 1044s # arg_an_y, 1044s # arg_an_n, 1044s # arg_an_q, 1044s # arg_an_i, 1044s # arg_an_u, 1044s # arg_an_x, 1044s # arg_an_t, 1044s # arg_an_d, 1044s # arg_an_s, 1044s # arg_an_o, 1044s # arg_an_g, 1044s # arg_an_h, 1044s # arg_an_ay, 1044s # arg_an_as, 1044s # arg_an_ao, 1044s # arg_an_aay, 1044s # arg_an_asv), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # callback, 1044s # user_data); 1044s # } 1044s # 1044s # /** 1044s # * org_project_other_callable_iface_call_method_with_many_args_finish: 1044s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_call_method_with_many_args(). 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Finishes an operation started with org_project_other_callable_iface_call_method_with_many_args(). 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_other_callable_iface_call_method_with_many_args_finish ( 1044s # OrgProjectOtherCallableIface *proxy, 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "()"); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_other_callable_iface_call_method_with_many_args_sync: 1044s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1044s # * @arg_an_b: Argument to pass with the method invocation. 1044s # * @arg_an_y: Argument to pass with the method invocation. 1044s # * @arg_an_n: Argument to pass with the method invocation. 1044s # * @arg_an_q: Argument to pass with the method invocation. 1044s # * @arg_an_i: Argument to pass with the method invocation. 1044s # * @arg_an_u: Argument to pass with the method invocation. 1044s # * @arg_an_x: Argument to pass with the method invocation. 1044s # * @arg_an_t: Argument to pass with the method invocation. 1044s # * @arg_an_d: Argument to pass with the method invocation. 1044s # * @arg_an_s: Argument to pass with the method invocation. 1044s # * @arg_an_o: Argument to pass with the method invocation. 1044s # * @arg_an_g: Argument to pass with the method invocation. 1044s # * @arg_an_h: Argument to pass with the method invocation. 1044s # * @arg_an_ay: Argument to pass with the method invocation. 1044s # * @arg_an_as: Argument to pass with the method invocation. 1044s # * @arg_an_ao: Argument to pass with the method invocation. 1044s # * @arg_an_aay: Argument to pass with the method invocation. 1044s # * @arg_an_asv: Argument to pass with the method invocation. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Synchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_other_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_other_callable_iface_call_method_with_many_args_sync ( 1044s # OrgProjectOtherCallableIface *proxy, 1044s # gboolean arg_an_b, 1044s # guchar arg_an_y, 1044s # gint16 arg_an_n, 1044s # guint16 arg_an_q, 1044s # gint arg_an_i, 1044s # guint arg_an_u, 1044s # gint64 arg_an_x, 1044s # guint64 arg_an_t, 1044s # gdouble arg_an_d, 1044s # const gchar *arg_an_s, 1044s # const gchar *arg_an_o, 1044s # const gchar *arg_an_g, 1044s # GVariant *arg_an_h, 1044s # const gchar *arg_an_ay, 1044s # const gchar *const *arg_an_as, 1044s # const gchar *const *arg_an_ao, 1044s # const gchar *const *arg_an_aay, 1044s # GVariant *arg_an_asv, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1044s # "MethodWithManyArgs", 1044s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1044s # arg_an_b, 1044s # arg_an_y, 1044s # arg_an_n, 1044s # arg_an_q, 1044s # arg_an_i, 1044s # arg_an_u, 1044s # arg_an_x, 1044s # arg_an_t, 1044s # arg_an_d, 1044s # arg_an_s, 1044s # arg_an_o, 1044s # arg_an_g, 1044s # arg_an_h, 1044s # arg_an_ay, 1044s # arg_an_as, 1044s # arg_an_ao, 1044s # arg_an_aay, 1044s # arg_an_asv), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "()"); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_other_callable_iface_complete_method_with_many_args: 1044s # * @object: A #OrgProjectOtherCallableIface. 1044s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1044s # * 1044s # * 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. 1044s # * 1044s # * This method will free @invocation, you cannot use it afterwards. 1044s # */ 1044s # void 1044s # org_project_other_callable_iface_complete_method_with_many_args ( 1044s # OrgProjectOtherCallableIface *object G_GNUC_UNUSED, 1044s # GDBusMethodInvocation *invocation) 1044s # { 1044s # g_dbus_method_invocation_return_value (invocation, 1044s # g_variant_new ("()")); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectOtherCallableIfaceProxy: 1044s # * 1044s # * The #OrgProjectOtherCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectOtherCallableIfaceProxyClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectOtherCallableIfaceProxy. 1044s # */ 1044s # 1044s # struct _OrgProjectOtherCallableIfaceProxyPrivate 1044s # { 1044s # GData *qdata; 1044s # }; 1044s # 1044s # static void org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface); 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceProxy) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_other_callable_iface_proxy_finalize (GObject *object) 1044s # { 1044s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (object); 1044s # g_datalist_clear (&proxy->priv->qdata); 1044s # G_OBJECT_CLASS (org_project_other_callable_iface_proxy_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_other_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_other_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # const GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_other_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1044s # const gchar *sender_name G_GNUC_UNUSED, 1044s # const gchar *signal_name, 1044s # GVariant *parameters) 1044s # { 1044s # _ExtendedGDBusSignalInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # gsize n; 1044s # guint signal_id; 1044s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, signal_name); 1044s # if (info == NULL) 1044s # return; 1044s # num_params = g_variant_n_children (parameters); 1044s # paramv = g_new0 (GValue, num_params + 1); 1044s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1044s # g_value_set_object (¶mv[0], proxy); 1044s # g_variant_iter_init (&iter, parameters); 1044s # n = 1; 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1044s # g_signal_emitv (paramv, signal_id, 0, NULL); 1044s # for (n = 0; n < num_params + 1; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static void 1044s # org_project_other_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1044s # GVariant *changed_properties, 1044s # const gchar *const *invalidated_properties) 1044s # { 1044s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (_proxy); 1044s # guint n; 1044s # const gchar *key; 1044s # GVariantIter *iter; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # g_variant_get (changed_properties, "a{sv}", &iter); 1044s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, key); 1044s # g_datalist_remove_data (&proxy->priv->qdata, key); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # g_variant_iter_free (iter); 1044s # for (n = 0; invalidated_properties[n] != NULL; n++) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1044s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # } 1044s # 1044s # static void 1044s # org_project_other_callable_iface_proxy_init (OrgProjectOtherCallableIfaceProxy *proxy) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # proxy->priv = org_project_other_callable_iface_proxy_get_instance_private (proxy); 1044s # #else 1044s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY, OrgProjectOtherCallableIfaceProxyPrivate); 1044s # #endif 1044s # 1044s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_callable_iface_interface_info ()); 1044s # } 1044s # 1044s # static void 1044s # org_project_other_callable_iface_proxy_class_init (OrgProjectOtherCallableIfaceProxyClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusProxyClass *proxy_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_other_callable_iface_proxy_finalize; 1044s # gobject_class->get_property = org_project_other_callable_iface_proxy_get_property; 1044s # gobject_class->set_property = org_project_other_callable_iface_proxy_set_property; 1044s # 1044s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1044s # proxy_class->g_signal = org_project_other_callable_iface_proxy_g_signal; 1044s # proxy_class->g_properties_changed = org_project_other_callable_iface_proxy_g_properties_changed; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceProxyPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_other_callable_iface_proxy_new: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new() for more details. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_other_callable_iface_proxy_new_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_other_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_other_callable_iface_proxy_new ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # 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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_other_callable_iface_proxy_new_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_other_callable_iface_proxy_new(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectOtherCallableIface * 1044s # org_project_other_callable_iface_proxy_new_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_other_callable_iface_proxy_new_sync: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new_sync() for more details. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_other_callable_iface_proxy_new() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectOtherCallableIface * 1044s # org_project_other_callable_iface_proxy_new_sync ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /** 1044s # * org_project_other_callable_iface_proxy_new_for_bus: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Like org_project_other_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_other_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_other_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_other_callable_iface_proxy_new_for_bus ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # 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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_other_callable_iface_proxy_new_for_bus_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new_for_bus(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_other_callable_iface_proxy_new_for_bus(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectOtherCallableIface * 1044s # org_project_other_callable_iface_proxy_new_for_bus_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_other_callable_iface_proxy_new_for_bus_sync: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Like org_project_other_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_other_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectOtherCallableIface * 1044s # org_project_other_callable_iface_proxy_new_for_bus_sync ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectOtherCallableIfaceSkeleton: 1044s # * 1044s # * The #OrgProjectOtherCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectOtherCallableIfaceSkeletonClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectOtherCallableIfaceSkeleton. 1044s # */ 1044s # 1044s # struct _OrgProjectOtherCallableIfaceSkeletonPrivate 1044s # { 1044s # GValue *properties; 1044s # GList *changed_properties; 1044s # GSource *changed_properties_idle_source; 1044s # GMainContext *context; 1044s # GMutex lock; 1044s # }; 1044s # 1044s # static void 1044s # _org_project_other_callable_iface_skeleton_handle_method_call ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name, 1044s # const gchar *method_name, 1044s # GVariant *parameters, 1044s # GDBusMethodInvocation *invocation, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1044s # _ExtendedGDBusMethodInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # guint num_extra; 1044s # gsize n; 1044s # guint signal_id; 1044s # GValue return_value = G_VALUE_INIT; 1044s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1044s # g_assert (info != NULL); 1044s # num_params = g_variant_n_children (parameters); 1044s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1044s # n = 0; 1044s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1044s # g_value_set_object (¶mv[n++], skeleton); 1044s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1044s # g_value_set_object (¶mv[n++], invocation); 1044s # if (info->pass_fdlist) 1044s # { 1044s # #ifdef G_OS_UNIX 1044s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1044s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1044s # #else 1044s # g_assert_not_reached (); 1044s # #endif 1044s # } 1044s # g_variant_iter_init (&iter, parameters); 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1044s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1044s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1044s # if (!g_value_get_boolean (&return_value)) 1044s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1044s # g_value_unset (&return_value); 1044s # for (n = 0; n < num_params + num_extra; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static GVariant * 1044s # _org_project_other_callable_iface_skeleton_handle_get_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # GVariant *ret; 1044s # ret = NULL; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # g_value_init (&value, pspec->value_type); 1044s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1044s # g_value_unset (&value); 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _org_project_other_callable_iface_skeleton_handle_set_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GVariant *variant, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # gboolean ret; 1044s # ret = FALSE; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # if (info->use_gvariant) 1044s # g_value_set_variant (&value, variant); 1044s # else 1044s # g_dbus_gvariant_to_gvalue (variant, &value); 1044s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # g_value_unset (&value); 1044s # ret = TRUE; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static const GDBusInterfaceVTable _org_project_other_callable_iface_skeleton_vtable = 1044s # { 1044s # _org_project_other_callable_iface_skeleton_handle_method_call, 1044s # _org_project_other_callable_iface_skeleton_handle_get_property, 1044s # _org_project_other_callable_iface_skeleton_handle_set_property, 1044s # {NULL} 1044s # }; 1044s # 1044s # static GDBusInterfaceInfo * 1044s # org_project_other_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return org_project_other_callable_iface_interface_info (); 1044s # } 1044s # 1044s # static GDBusInterfaceVTable * 1044s # org_project_other_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return (GDBusInterfaceVTable *) &_org_project_other_callable_iface_skeleton_vtable; 1044s # } 1044s # 1044s # static GVariant * 1044s # org_project_other_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1044s # { 1044s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (_skeleton); 1044s # 1044s # GVariantBuilder builder; 1044s # guint n; 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1044s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #else 1044s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #endif 1044s # if (_org_project_other_callable_iface_interface_info.parent_struct.properties == NULL) 1044s # goto out; 1044s # for (n = 0; _org_project_other_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1044s # { 1044s # GDBusPropertyInfo *info = _org_project_other_callable_iface_interface_info.parent_struct.properties[n]; 1044s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1044s # { 1044s # GVariant *value; 1044s # 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); 1044s # if (value != NULL) 1044s # { 1044s # g_variant_take_ref (value); 1044s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1044s # g_variant_unref (value); 1044s # } 1044s # } 1044s # } 1044s # out: 1044s # return g_variant_builder_end (&builder); 1044s # } 1044s # 1044s # static void 1044s # org_project_other_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface); 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceSkeleton) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_other_callable_iface_skeleton_finalize (GObject *object) 1044s # { 1044s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (object); 1044s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1044s # if (skeleton->priv->changed_properties_idle_source != NULL) 1044s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1044s # g_main_context_unref (skeleton->priv->context); 1044s # g_mutex_clear (&skeleton->priv->lock); 1044s # G_OBJECT_CLASS (org_project_other_callable_iface_skeleton_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_other_callable_iface_skeleton_init (OrgProjectOtherCallableIfaceSkeleton *skeleton) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # skeleton->priv = org_project_other_callable_iface_skeleton_get_instance_private (skeleton); 1044s # #else 1044s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, OrgProjectOtherCallableIfaceSkeletonPrivate); 1044s # #endif 1044s # 1044s # g_mutex_init (&skeleton->priv->lock); 1044s # skeleton->priv->context = g_main_context_ref_thread_default (); 1044s # } 1044s # 1044s # static void 1044s # org_project_other_callable_iface_skeleton_class_init (OrgProjectOtherCallableIfaceSkeletonClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusInterfaceSkeletonClass *skeleton_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_other_callable_iface_skeleton_finalize; 1044s # 1044s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1044s # skeleton_class->get_info = org_project_other_callable_iface_skeleton_dbus_interface_get_info; 1044s # skeleton_class->get_properties = org_project_other_callable_iface_skeleton_dbus_interface_get_properties; 1044s # skeleton_class->flush = org_project_other_callable_iface_skeleton_dbus_interface_flush; 1044s # skeleton_class->get_vtable = org_project_other_callable_iface_skeleton_dbus_interface_get_vtable; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceSkeletonPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_other_callable_iface_skeleton_new: 1044s # * 1044s # * Creates a skeleton object for the D-Bus interface org.project.OtherCallableIface. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceSkeleton): The skeleton object. 1044s # */ 1044s # OrgProjectOtherCallableIface * 1044s # org_project_other_callable_iface_skeleton_new (void) 1044s # { 1044s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, NULL)); 1044s # } 1044s # Error: 1044s ok 13 __main__.TestCodegen.test_generate_methods_marshallers_multiple_out_args 1044s # gdbus-codegen: /usr/bin/gdbus-codegen 1044s # tmpdir: /tmp/tmpd5535qku 1044s # /tmp/tmpd5535qku/tmps6fm36hy.xml: 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpd5535qku/tmps6fm36hy.xml', '--output', '-', '--body'] 1044s # Return code: 0 1044s # Output: 1044s # /* 1044s # * This file is generated by gdbus-codegen, do not modify it. 1044s # * 1044s # * The license of this code is the same as for the D-Bus interface description 1044s # * it was derived from. Note that it links to GLib, so must comply with the 1044s # * LGPL linking clauses. 1044s # */ 1044s # 1044s # #ifdef HAVE_CONFIG_H 1044s # # include "config.h" 1044s # #endif 1044s # 1044s # #include 1044s # #ifdef G_OS_UNIX 1044s # # include 1044s # #endif 1044s # 1044s # #ifdef G_ENABLE_DEBUG 1044s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1044s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1044s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1044s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1044s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1044s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1044s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1044s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1044s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1044s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1044s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1044s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1044s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1044s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1044s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1044s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1044s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1044s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1044s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1044s # #else /* !G_ENABLE_DEBUG */ 1044s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1044s # * Do not access GValues directly in your code. Instead, use the 1044s # * g_value_get_*() functions 1044s # */ 1044s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1044s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1044s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1044s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1044s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1044s # #endif /* !G_ENABLE_DEBUG */ 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusArgInfo parent_struct; 1044s # gboolean use_gvariant; 1044s # } _ExtendedGDBusArgInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusMethodInfo parent_struct; 1044s # const gchar *signal_name; 1044s # gboolean pass_fdlist; 1044s # } _ExtendedGDBusMethodInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusSignalInfo parent_struct; 1044s # const gchar *signal_name; 1044s # } _ExtendedGDBusSignalInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusPropertyInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # guint use_gvariant : 1; 1044s # guint emits_changed_signal : 1; 1044s # } _ExtendedGDBusPropertyInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusInterfaceInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # } _ExtendedGDBusInterfaceInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # const _ExtendedGDBusPropertyInfo *info; 1044s # guint prop_id; 1044s # GValue orig_value; /* the value before the change */ 1044s # } ChangedProperty; 1044s # 1044s # static void 1044s # _changed_property_free (ChangedProperty *data) 1044s # { 1044s # g_value_unset (&data->orig_value); 1044s # g_free (data); 1044s # } 1044s # 1044s # static gboolean 1044s # _g_strv_equal0 (gchar **a, gchar **b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # guint n; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # if (g_strv_length (a) != g_strv_length (b)) 1044s # goto out; 1044s # for (n = 0; a[n] != NULL; n++) 1044s # if (g_strcmp0 (a[n], b[n]) != 0) 1044s # goto out; 1044s # ret = TRUE; 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _g_variant_equal0 (GVariant *a, GVariant *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # ret = g_variant_equal (a, b); 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # G_GNUC_UNUSED static gboolean 1044s # _g_value_equal (const GValue *a, const GValue *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1044s # switch (G_VALUE_TYPE (a)) 1044s # { 1044s # case G_TYPE_BOOLEAN: 1044s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1044s # break; 1044s # case G_TYPE_UCHAR: 1044s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1044s # break; 1044s # case G_TYPE_INT: 1044s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1044s # break; 1044s # case G_TYPE_UINT: 1044s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1044s # break; 1044s # case G_TYPE_INT64: 1044s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1044s # break; 1044s # case G_TYPE_UINT64: 1044s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1044s # break; 1044s # case G_TYPE_DOUBLE: 1044s # { 1044s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1044s # gdouble da = g_value_get_double (a); 1044s # gdouble db = g_value_get_double (b); 1044s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1044s # } 1044s # break; 1044s # case G_TYPE_STRING: 1044s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1044s # break; 1044s # case G_TYPE_VARIANT: 1044s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1044s # break; 1044s # default: 1044s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1044s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1044s # else 1044s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1044s # break; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static void 1044s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint G_GNUC_UNUSED, 1044s # void *marshal_data) 1044s # { 1044s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1044s # (void *data1, 1044s # GDBusMethodInvocation *arg_method_invocation, 1044s # void *data2); 1044s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1044s # GCClosure *cc = (GCClosure*) closure; 1044s # void *data1, *data2; 1044s # gboolean v_return; 1044s # 1044s # g_return_if_fail (return_value != NULL); 1044s # g_return_if_fail (n_param_values == 2); 1044s # 1044s # if (G_CCLOSURE_SWAP_DATA (closure)) 1044s # { 1044s # data1 = closure->data; 1044s # data2 = g_value_peek_pointer (param_values + 0); 1044s # } 1044s # else 1044s # { 1044s # data1 = g_value_peek_pointer (param_values + 0); 1044s # data2 = closure->data; 1044s # } 1044s # 1044s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1044s # (marshal_data ? marshal_data : cc->callback); 1044s # 1044s # v_return = 1044s # callback (data1, 1044s # g_marshal_value_peek_object (param_values + 1), 1044s # data2); 1044s # 1044s # g_value_set_boolean (return_value, v_return); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ 1044s # * Code for interface org.project.CallableIface 1044s # * ------------------------------------------------------------------------ 1044s # */ 1044s # 1044s # /** 1044s # * SECTION:OrgProjectCallableIface 1044s # * @title: OrgProjectCallableIface 1044s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 1044s # * 1044s # * This section contains code for working with the org.project.CallableIface D-Bus interface in C. 1044s # */ 1044s # 1044s # /* ---- Introspection data for org.project.CallableIface ---- */ 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_b = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_b", 1044s # (gchar *) "b", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_y = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_y", 1044s # (gchar *) "y", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_n = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_n", 1044s # (gchar *) "n", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_q = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_q", 1044s # (gchar *) "q", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_i = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_i", 1044s # (gchar *) "i", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_u = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_u", 1044s # (gchar *) "u", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_x = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_x", 1044s # (gchar *) "x", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_t = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_t", 1044s # (gchar *) "t", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_d = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_d", 1044s # (gchar *) "d", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_s = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_s", 1044s # (gchar *) "s", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_o = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_o", 1044s # (gchar *) "o", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_g = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_g", 1044s # (gchar *) "g", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_h = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_h", 1044s # (gchar *) "h", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ay = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_ay", 1044s # (gchar *) "ay", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_as = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_as", 1044s # (gchar *) "as", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ao = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_ao", 1044s # (gchar *) "ao", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_aay = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_aay", 1044s # (gchar *) "aay", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_asv = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_asv", 1044s # (gchar *) "a{sv}", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_pointers[] = 1044s # { 1044s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_b.parent_struct, 1044s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_y.parent_struct, 1044s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_n.parent_struct, 1044s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_q.parent_struct, 1044s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_i.parent_struct, 1044s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_u.parent_struct, 1044s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_x.parent_struct, 1044s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_t.parent_struct, 1044s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_d.parent_struct, 1044s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_s.parent_struct, 1044s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_o.parent_struct, 1044s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_g.parent_struct, 1044s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_h.parent_struct, 1044s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ay.parent_struct, 1044s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_as.parent_struct, 1044s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ao.parent_struct, 1044s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_aay.parent_struct, 1044s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_asv.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_method_with_many_args = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "MethodWithManyArgs", 1044s # NULL, 1044s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_pointers, 1044s # NULL 1044s # }, 1044s # "handle-method-with-many-args", 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 1044s # { 1044s # &_org_project_callable_iface_method_info_method_with_many_args.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "org.project.CallableIface", 1044s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 1044s # NULL, 1044s # NULL, 1044s # NULL 1044s # }, 1044s # "org-project-callable-iface", 1044s # }; 1044s # 1044s # 1044s # /** 1044s # * org_project_callable_iface_interface_info: 1044s # * 1044s # * Gets a machine-readable description of the org.project.CallableIface D-Bus interface. 1044s # * 1044s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1044s # */ 1044s # GDBusInterfaceInfo * 1044s # org_project_callable_iface_interface_info (void) 1044s # { 1044s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 1044s # } 1044s # 1044s # /** 1044s # * org_project_callable_iface_override_properties: 1044s # * @klass: The class structure for a #GObject derived class. 1044s # * @property_id_begin: The property id to assign to the first overridden property. 1044s # * 1044s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 1044s # * The properties are overridden in the order they are defined. 1044s # * 1044s # * Returns: The last property id. 1044s # */ 1044s # guint 1044s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1044s # { 1044s # return property_id_begin - 1; 1044s # } 1044s # 1044s # 1044s # inline static void 1044s # org_project_callable_iface_method_marshal_method_with_many_args ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # 1044s # /** 1044s # * OrgProjectCallableIface: 1044s # * 1044s # * Abstract interface type for the D-Bus interface org.project.CallableIface. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectCallableIfaceIface: 1044s # * @parent_iface: The parent interface. 1044s # * @handle_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-method-with-many-args signal. 1044s # * 1044s # * Virtual table for the D-Bus interface org.project.CallableIface. 1044s # */ 1044s # 1044s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 1044s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 1044s # 1044s # static void 1044s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 1044s # { 1044s # /* GObject signals for incoming D-Bus method calls: */ 1044s # /** 1044s # * OrgProjectCallableIface::handle-method-with-many-args: 1044s # * @object: A #OrgProjectCallableIface. 1044s # * @invocation: A #GDBusMethodInvocation. 1044s # * 1044s # * Signal emitted when a remote caller is invoking the MethodWithManyArgs() D-Bus method. 1044s # * 1044s # * 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. 1044s # * 1044s # * 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. 1044s # */ 1044s # g_signal_new ("handle-method-with-many-args", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_method_with_many_args), 1044s # g_signal_accumulator_true_handled, 1044s # NULL, 1044s # org_project_callable_iface_method_marshal_method_with_many_args, 1044s # G_TYPE_BOOLEAN, 1044s # 1, 1044s # G_TYPE_DBUS_METHOD_INVOCATION); 1044s # 1044s # } 1044s # 1044s # /** 1044s # * org_project_callable_iface_call_method_with_many_args: 1044s # * @proxy: A #OrgProjectCallableIfaceProxy. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 1044s # */ 1044s # void 1044s # org_project_callable_iface_call_method_with_many_args ( 1044s # OrgProjectCallableIface *proxy, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1044s # "MethodWithManyArgs", 1044s # g_variant_new ("()"), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # callback, 1044s # user_data); 1044s # } 1044s # 1044s # /** 1044s # * org_project_callable_iface_call_method_with_many_args_finish: 1044s # * @proxy: A #OrgProjectCallableIfaceProxy. 1044s # * @out_an_b: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @out_an_y: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @out_an_n: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @out_an_q: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @out_an_i: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @out_an_u: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @out_an_x: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @out_an_t: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @out_an_d: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @out_an_s: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @out_an_o: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @out_an_g: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @out_an_h: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @out_an_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @out_an_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1044s # * @out_an_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1044s # * @out_an_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1044s # * @out_an_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_method_with_many_args(). 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Finishes an operation started with org_project_callable_iface_call_method_with_many_args(). 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_callable_iface_call_method_with_many_args_finish ( 1044s # OrgProjectCallableIface *proxy, 1044s # gboolean *out_an_b, 1044s # guchar *out_an_y, 1044s # gint16 *out_an_n, 1044s # guint16 *out_an_q, 1044s # gint *out_an_i, 1044s # guint *out_an_u, 1044s # gint64 *out_an_x, 1044s # guint64 *out_an_t, 1044s # gdouble *out_an_d, 1044s # gchar **out_an_s, 1044s # gchar **out_an_o, 1044s # gchar **out_an_g, 1044s # GVariant **out_an_h, 1044s # gchar **out_an_ay, 1044s # gchar ***out_an_as, 1044s # gchar ***out_an_ao, 1044s # gchar ***out_an_aay, 1044s # GVariant **out_an_asv, 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1044s # out_an_b, 1044s # out_an_y, 1044s # out_an_n, 1044s # out_an_q, 1044s # out_an_i, 1044s # out_an_u, 1044s # out_an_x, 1044s # out_an_t, 1044s # out_an_d, 1044s # out_an_s, 1044s # out_an_o, 1044s # out_an_g, 1044s # out_an_h, 1044s # out_an_ay, 1044s # out_an_as, 1044s # out_an_ao, 1044s # out_an_aay, 1044s # out_an_asv); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_callable_iface_call_method_with_many_args_sync: 1044s # * @proxy: A #OrgProjectCallableIfaceProxy. 1044s # * @out_an_b: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @out_an_y: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @out_an_n: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @out_an_q: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @out_an_i: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @out_an_u: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @out_an_x: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @out_an_t: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @out_an_d: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @out_an_s: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @out_an_o: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @out_an_g: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @out_an_h: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @out_an_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @out_an_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1044s # * @out_an_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1044s # * @out_an_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1044s # * @out_an_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Synchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # org_project_callable_iface_call_method_with_many_args_sync ( 1044s # OrgProjectCallableIface *proxy, 1044s # gboolean *out_an_b, 1044s # guchar *out_an_y, 1044s # gint16 *out_an_n, 1044s # guint16 *out_an_q, 1044s # gint *out_an_i, 1044s # guint *out_an_u, 1044s # gint64 *out_an_x, 1044s # guint64 *out_an_t, 1044s # gdouble *out_an_d, 1044s # gchar **out_an_s, 1044s # gchar **out_an_o, 1044s # gchar **out_an_g, 1044s # GVariant **out_an_h, 1044s # gchar **out_an_ay, 1044s # gchar ***out_an_as, 1044s # gchar ***out_an_ao, 1044s # gchar ***out_an_aay, 1044s # GVariant **out_an_asv, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1044s # "MethodWithManyArgs", 1044s # g_variant_new ("()"), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # cancellable, 1044s # error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1044s # out_an_b, 1044s # out_an_y, 1044s # out_an_n, 1044s # out_an_q, 1044s # out_an_i, 1044s # out_an_u, 1044s # out_an_x, 1044s # out_an_t, 1044s # out_an_d, 1044s # out_an_s, 1044s # out_an_o, 1044s # out_an_g, 1044s # out_an_h, 1044s # out_an_ay, 1044s # out_an_as, 1044s # out_an_ao, 1044s # out_an_aay, 1044s # out_an_asv); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_callable_iface_complete_method_with_many_args: 1044s # * @object: A #OrgProjectCallableIface. 1044s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1044s # * @an_b: Parameter to return. 1044s # * @an_y: Parameter to return. 1044s # * @an_n: Parameter to return. 1044s # * @an_q: Parameter to return. 1044s # * @an_i: Parameter to return. 1044s # * @an_u: Parameter to return. 1044s # * @an_x: Parameter to return. 1044s # * @an_t: Parameter to return. 1044s # * @an_d: Parameter to return. 1044s # * @an_s: Parameter to return. 1044s # * @an_o: Parameter to return. 1044s # * @an_g: Parameter to return. 1044s # * @an_h: Parameter to return. 1044s # * @an_ay: Parameter to return. 1044s # * @an_as: Parameter to return. 1044s # * @an_ao: Parameter to return. 1044s # * @an_aay: Parameter to return. 1044s # * @an_asv: Parameter to return. 1044s # * 1044s # * 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. 1044s # * 1044s # * This method will free @invocation, you cannot use it afterwards. 1044s # */ 1044s # void 1044s # org_project_callable_iface_complete_method_with_many_args ( 1044s # OrgProjectCallableIface *object G_GNUC_UNUSED, 1044s # GDBusMethodInvocation *invocation, 1044s # gboolean an_b, 1044s # guchar an_y, 1044s # gint16 an_n, 1044s # guint16 an_q, 1044s # gint an_i, 1044s # guint an_u, 1044s # gint64 an_x, 1044s # guint64 an_t, 1044s # gdouble an_d, 1044s # const gchar *an_s, 1044s # const gchar *an_o, 1044s # const gchar *an_g, 1044s # GVariant *an_h, 1044s # const gchar *an_ay, 1044s # const gchar *const *an_as, 1044s # const gchar *const *an_ao, 1044s # const gchar *const *an_aay, 1044s # GVariant *an_asv) 1044s # { 1044s # g_dbus_method_invocation_return_value (invocation, 1044s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1044s # an_b, 1044s # an_y, 1044s # an_n, 1044s # an_q, 1044s # an_i, 1044s # an_u, 1044s # an_x, 1044s # an_t, 1044s # an_d, 1044s # an_s, 1044s # an_o, 1044s # an_g, 1044s # an_h, 1044s # an_ay, 1044s # an_as, 1044s # an_ao, 1044s # an_aay, 1044s # an_asv)); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectCallableIfaceProxy: 1044s # * 1044s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectCallableIfaceProxyClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectCallableIfaceProxy. 1044s # */ 1044s # 1044s # struct _OrgProjectCallableIfaceProxyPrivate 1044s # { 1044s # GData *qdata; 1044s # }; 1044s # 1044s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_callable_iface_proxy_finalize (GObject *object) 1044s # { 1044s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 1044s # g_datalist_clear (&proxy->priv->qdata); 1044s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # const GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1044s # const gchar *sender_name G_GNUC_UNUSED, 1044s # const gchar *signal_name, 1044s # GVariant *parameters) 1044s # { 1044s # _ExtendedGDBusSignalInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # gsize n; 1044s # guint signal_id; 1044s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 1044s # if (info == NULL) 1044s # return; 1044s # num_params = g_variant_n_children (parameters); 1044s # paramv = g_new0 (GValue, num_params + 1); 1044s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1044s # g_value_set_object (¶mv[0], proxy); 1044s # g_variant_iter_init (&iter, parameters); 1044s # n = 1; 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1044s # g_signal_emitv (paramv, signal_id, 0, NULL); 1044s # for (n = 0; n < num_params + 1; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static void 1044s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1044s # GVariant *changed_properties, 1044s # const gchar *const *invalidated_properties) 1044s # { 1044s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 1044s # guint n; 1044s # const gchar *key; 1044s # GVariantIter *iter; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # g_variant_get (changed_properties, "a{sv}", &iter); 1044s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 1044s # g_datalist_remove_data (&proxy->priv->qdata, key); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # g_variant_iter_free (iter); 1044s # for (n = 0; invalidated_properties[n] != NULL; n++) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1044s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # } 1044s # 1044s # static void 1044s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 1044s # #else 1044s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 1044s # #endif 1044s # 1044s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 1044s # } 1044s # 1044s # static void 1044s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusProxyClass *proxy_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 1044s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 1044s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 1044s # 1044s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1044s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 1044s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_callable_iface_proxy_new: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new() for more details. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_callable_iface_proxy_new ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # 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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_callable_iface_proxy_new_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectCallableIface * 1044s # org_project_callable_iface_proxy_new_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_callable_iface_proxy_new_sync: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Synchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new_sync() for more details. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectCallableIface * 1044s # org_project_callable_iface_proxy_new_sync ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /** 1044s # * org_project_callable_iface_proxy_new_for_bus: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_callable_iface_proxy_new_for_bus ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # 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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_callable_iface_proxy_new_for_bus_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectCallableIface * 1044s # org_project_callable_iface_proxy_new_for_bus_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_callable_iface_proxy_new_for_bus_sync: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectCallableIface * 1044s # org_project_callable_iface_proxy_new_for_bus_sync ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectCallableIfaceSkeleton: 1044s # * 1044s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectCallableIfaceSkeletonClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectCallableIfaceSkeleton. 1044s # */ 1044s # 1044s # struct _OrgProjectCallableIfaceSkeletonPrivate 1044s # { 1044s # GValue *properties; 1044s # GList *changed_properties; 1044s # GSource *changed_properties_idle_source; 1044s # GMainContext *context; 1044s # GMutex lock; 1044s # }; 1044s # 1044s # static void 1044s # _org_project_callable_iface_skeleton_handle_method_call ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name, 1044s # const gchar *method_name, 1044s # GVariant *parameters, 1044s # GDBusMethodInvocation *invocation, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1044s # _ExtendedGDBusMethodInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # guint num_extra; 1044s # gsize n; 1044s # guint signal_id; 1044s # GValue return_value = G_VALUE_INIT; 1044s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1044s # g_assert (info != NULL); 1044s # num_params = g_variant_n_children (parameters); 1044s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1044s # n = 0; 1044s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1044s # g_value_set_object (¶mv[n++], skeleton); 1044s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1044s # g_value_set_object (¶mv[n++], invocation); 1044s # if (info->pass_fdlist) 1044s # { 1044s # #ifdef G_OS_UNIX 1044s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1044s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1044s # #else 1044s # g_assert_not_reached (); 1044s # #endif 1044s # } 1044s # g_variant_iter_init (&iter, parameters); 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1044s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1044s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1044s # if (!g_value_get_boolean (&return_value)) 1044s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1044s # g_value_unset (&return_value); 1044s # for (n = 0; n < num_params + num_extra; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static GVariant * 1044s # _org_project_callable_iface_skeleton_handle_get_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # GVariant *ret; 1044s # ret = NULL; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # g_value_init (&value, pspec->value_type); 1044s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1044s # g_value_unset (&value); 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _org_project_callable_iface_skeleton_handle_set_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GVariant *variant, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # gboolean ret; 1044s # ret = FALSE; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # if (info->use_gvariant) 1044s # g_value_set_variant (&value, variant); 1044s # else 1044s # g_dbus_gvariant_to_gvalue (variant, &value); 1044s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # g_value_unset (&value); 1044s # ret = TRUE; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 1044s # { 1044s # _org_project_callable_iface_skeleton_handle_method_call, 1044s # _org_project_callable_iface_skeleton_handle_get_property, 1044s # _org_project_callable_iface_skeleton_handle_set_property, 1044s # {NULL} 1044s # }; 1044s # 1044s # static GDBusInterfaceInfo * 1044s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return org_project_callable_iface_interface_info (); 1044s # } 1044s # 1044s # static GDBusInterfaceVTable * 1044s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 1044s # } 1044s # 1044s # static GVariant * 1044s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1044s # { 1044s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 1044s # 1044s # GVariantBuilder builder; 1044s # guint n; 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1044s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #else 1044s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #endif 1044s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 1044s # goto out; 1044s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1044s # { 1044s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 1044s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1044s # { 1044s # GVariant *value; 1044s # 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); 1044s # if (value != NULL) 1044s # { 1044s # g_variant_take_ref (value); 1044s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1044s # g_variant_unref (value); 1044s # } 1044s # } 1044s # } 1044s # out: 1044s # return g_variant_builder_end (&builder); 1044s # } 1044s # 1044s # static void 1044s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_callable_iface_skeleton_finalize (GObject *object) 1044s # { 1044s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 1044s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1044s # if (skeleton->priv->changed_properties_idle_source != NULL) 1044s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1044s # g_main_context_unref (skeleton->priv->context); 1044s # g_mutex_clear (&skeleton->priv->lock); 1044s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 1044s # #else 1044s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 1044s # #endif 1044s # 1044s # g_mutex_init (&skeleton->priv->lock); 1044s # skeleton->priv->context = g_main_context_ref_thread_default (); 1044s # } 1044s # 1044s # static void 1044s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusInterfaceSkeletonClass *skeleton_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 1044s # 1044s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1044s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 1044s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 1044s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 1044s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_callable_iface_skeleton_new: 1044s # * 1044s # * Creates a skeleton object for the D-Bus interface org.project.CallableIface. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 1044s # */ 1044s # OrgProjectCallableIface * 1044s # org_project_callable_iface_skeleton_new (void) 1044s # { 1044s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 1044s # } 1044s # Error: 1044s ok 14 __main__.TestCodegen.test_generate_methods_marshallers_with_unix_fds 1044s # gdbus-codegen: /usr/bin/gdbus-codegen 1044s # tmpdir: /tmp/tmpopntjc_2 1044s # /tmp/tmpopntjc_2/tmpnmxs9cjc.xml: 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpopntjc_2/tmpnmxs9cjc.xml', '--output', '-', '--body'] 1044s # Return code: 0 1044s # Output: 1044s # /* 1044s # * This file is generated by gdbus-codegen, do not modify it. 1044s # * 1044s # * The license of this code is the same as for the D-Bus interface description 1044s # * it was derived from. Note that it links to GLib, so must comply with the 1044s # * LGPL linking clauses. 1044s # */ 1044s # 1044s # #ifdef HAVE_CONFIG_H 1044s # # include "config.h" 1044s # #endif 1044s # 1044s # #include 1044s # #ifdef G_OS_UNIX 1044s # # include 1044s # #endif 1044s # 1044s # #ifdef G_ENABLE_DEBUG 1044s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1044s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1044s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1044s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1044s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1044s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1044s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1044s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1044s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1044s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1044s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1044s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1044s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1044s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1044s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1044s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1044s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1044s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1044s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1044s # #else /* !G_ENABLE_DEBUG */ 1044s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1044s # * Do not access GValues directly in your code. Instead, use the 1044s # * g_value_get_*() functions 1044s # */ 1044s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1044s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1044s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1044s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1044s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1044s # #endif /* !G_ENABLE_DEBUG */ 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusArgInfo parent_struct; 1044s # gboolean use_gvariant; 1044s # } _ExtendedGDBusArgInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusMethodInfo parent_struct; 1044s # const gchar *signal_name; 1044s # gboolean pass_fdlist; 1044s # } _ExtendedGDBusMethodInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusSignalInfo parent_struct; 1044s # const gchar *signal_name; 1044s # } _ExtendedGDBusSignalInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusPropertyInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # guint use_gvariant : 1; 1044s # guint emits_changed_signal : 1; 1044s # } _ExtendedGDBusPropertyInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusInterfaceInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # } _ExtendedGDBusInterfaceInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # const _ExtendedGDBusPropertyInfo *info; 1044s # guint prop_id; 1044s # GValue orig_value; /* the value before the change */ 1044s # } ChangedProperty; 1044s # 1044s # static void 1044s # _changed_property_free (ChangedProperty *data) 1044s # { 1044s # g_value_unset (&data->orig_value); 1044s # g_free (data); 1044s # } 1044s # 1044s # static gboolean 1044s # _g_strv_equal0 (gchar **a, gchar **b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # guint n; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # if (g_strv_length (a) != g_strv_length (b)) 1044s # goto out; 1044s # for (n = 0; a[n] != NULL; n++) 1044s # if (g_strcmp0 (a[n], b[n]) != 0) 1044s # goto out; 1044s # ret = TRUE; 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _g_variant_equal0 (GVariant *a, GVariant *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # ret = g_variant_equal (a, b); 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # G_GNUC_UNUSED static gboolean 1044s # _g_value_equal (const GValue *a, const GValue *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1044s # switch (G_VALUE_TYPE (a)) 1044s # { 1044s # case G_TYPE_BOOLEAN: 1044s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1044s # break; 1044s # case G_TYPE_UCHAR: 1044s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1044s # break; 1044s # case G_TYPE_INT: 1044s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1044s # break; 1044s # case G_TYPE_UINT: 1044s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1044s # break; 1044s # case G_TYPE_INT64: 1044s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1044s # break; 1044s # case G_TYPE_UINT64: 1044s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1044s # break; 1044s # case G_TYPE_DOUBLE: 1044s # { 1044s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1044s # gdouble da = g_value_get_double (a); 1044s # gdouble db = g_value_get_double (b); 1044s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1044s # } 1044s # break; 1044s # case G_TYPE_STRING: 1044s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1044s # break; 1044s # case G_TYPE_VARIANT: 1044s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1044s # break; 1044s # default: 1044s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1044s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1044s # else 1044s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1044s # break; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static void 1044s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_OBJECT_STRING ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint G_GNUC_UNUSED, 1044s # void *marshal_data) 1044s # { 1044s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectObjectStringFunc) 1044s # (void *data1, 1044s # GDBusMethodInvocation *arg_method_invocation, 1044s # GUnixFDList *arg_fd_list, 1044s # const gchar *arg_greeting, 1044s # void *data2); 1044s # _GDbusCodegenMarshalBoolean_ObjectObjectStringFunc callback; 1044s # GCClosure *cc = (GCClosure*) closure; 1044s # void *data1, *data2; 1044s # gboolean v_return; 1044s # 1044s # g_return_if_fail (return_value != NULL); 1044s # g_return_if_fail (n_param_values == 4); 1044s # 1044s # if (G_CCLOSURE_SWAP_DATA (closure)) 1044s # { 1044s # data1 = closure->data; 1044s # data2 = g_value_peek_pointer (param_values + 0); 1044s # } 1044s # else 1044s # { 1044s # data1 = g_value_peek_pointer (param_values + 0); 1044s # data2 = closure->data; 1044s # } 1044s # 1044s # callback = (_GDbusCodegenMarshalBoolean_ObjectObjectStringFunc) 1044s # (marshal_data ? marshal_data : cc->callback); 1044s # 1044s # v_return = 1044s # callback (data1, 1044s # g_marshal_value_peek_object (param_values + 1), 1044s # g_marshal_value_peek_object (param_values + 2), 1044s # g_marshal_value_peek_string (param_values + 3), 1044s # data2); 1044s # 1044s # g_value_set_boolean (return_value, v_return); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ 1044s # * Code for interface test.FDPassing 1044s # * ------------------------------------------------------------------------ 1044s # */ 1044s # 1044s # /** 1044s # * SECTION:TestFDPassing 1044s # * @title: TestFDPassing 1044s # * @short_description: Generated C code for the test.FDPassing D-Bus interface 1044s # * 1044s # * This section contains code for working with the test.FDPassing D-Bus interface in C. 1044s # */ 1044s # 1044s # /* ---- Introspection data for test.FDPassing ---- */ 1044s # 1044s # static const _ExtendedGDBusArgInfo _test_fdpassing_method_info_hello_fd_IN_ARG_greeting = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "greeting", 1044s # (gchar *) "s", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusArgInfo * const _test_fdpassing_method_info_hello_fd_IN_ARG_pointers[] = 1044s # { 1044s # &_test_fdpassing_method_info_hello_fd_IN_ARG_greeting.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _test_fdpassing_method_info_hello_fd_OUT_ARG_response = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "response", 1044s # (gchar *) "s", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusArgInfo * const _test_fdpassing_method_info_hello_fd_OUT_ARG_pointers[] = 1044s # { 1044s # &_test_fdpassing_method_info_hello_fd_OUT_ARG_response.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusMethodInfo _test_fdpassing_method_info_hello_fd = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "HelloFD", 1044s # (GDBusArgInfo **) &_test_fdpassing_method_info_hello_fd_IN_ARG_pointers, 1044s # (GDBusArgInfo **) &_test_fdpassing_method_info_hello_fd_OUT_ARG_pointers, 1044s # NULL 1044s # }, 1044s # "handle-hello-fd", 1044s # TRUE 1044s # }; 1044s # 1044s # static const GDBusMethodInfo * const _test_fdpassing_method_info_pointers[] = 1044s # { 1044s # &_test_fdpassing_method_info_hello_fd.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusInterfaceInfo _test_fdpassing_interface_info = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "test.FDPassing", 1044s # (GDBusMethodInfo **) &_test_fdpassing_method_info_pointers, 1044s # NULL, 1044s # NULL, 1044s # NULL 1044s # }, 1044s # "test-fdpassing", 1044s # }; 1044s # 1044s # 1044s # /** 1044s # * test_fdpassing_interface_info: 1044s # * 1044s # * Gets a machine-readable description of the test.FDPassing D-Bus interface. 1044s # * 1044s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1044s # */ 1044s # GDBusInterfaceInfo * 1044s # test_fdpassing_interface_info (void) 1044s # { 1044s # return (GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct; 1044s # } 1044s # 1044s # /** 1044s # * test_fdpassing_override_properties: 1044s # * @klass: The class structure for a #GObject derived class. 1044s # * @property_id_begin: The property id to assign to the first overridden property. 1044s # * 1044s # * Overrides all #GObject properties in the #TestFDPassing interface for a concrete class. 1044s # * The properties are overridden in the order they are defined. 1044s # * 1044s # * Returns: The last property id. 1044s # */ 1044s # guint 1044s # test_fdpassing_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1044s # { 1044s # return property_id_begin - 1; 1044s # } 1044s # 1044s # 1044s # inline static void 1044s # test_fdpassing_method_marshal_hello_fd ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_OBJECT_STRING (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # 1044s # /** 1044s # * TestFDPassing: 1044s # * 1044s # * Abstract interface type for the D-Bus interface test.FDPassing. 1044s # */ 1044s # 1044s # /** 1044s # * TestFDPassingIface: 1044s # * @parent_iface: The parent interface. 1044s # * @handle_hello_fd: Handler for the #TestFDPassing::handle-hello-fd signal. 1044s # * 1044s # * Virtual table for the D-Bus interface test.FDPassing. 1044s # */ 1044s # 1044s # typedef TestFDPassingIface TestFDPassingInterface; 1044s # G_DEFINE_INTERFACE (TestFDPassing, test_fdpassing, G_TYPE_OBJECT) 1044s # 1044s # static void 1044s # test_fdpassing_default_init (TestFDPassingIface *iface) 1044s # { 1044s # /* GObject signals for incoming D-Bus method calls: */ 1044s # /** 1044s # * TestFDPassing::handle-hello-fd: 1044s # * @object: A #TestFDPassing. 1044s # * @invocation: A #GDBusMethodInvocation. 1044s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 1044s # * @arg_greeting: Argument passed by remote caller. 1044s # * 1044s # * Signal emitted when a remote caller is invoking the HelloFD() D-Bus method. 1044s # * 1044s # * 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. 1044s # * 1044s # * 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. 1044s # */ 1044s # g_signal_new ("handle-hello-fd", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (TestFDPassingIface, handle_hello_fd), 1044s # g_signal_accumulator_true_handled, 1044s # NULL, 1044s # test_fdpassing_method_marshal_hello_fd, 1044s # G_TYPE_BOOLEAN, 1044s # 3, 1044s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UNIX_FD_LIST, G_TYPE_STRING); 1044s # 1044s # } 1044s # 1044s # /** 1044s # * test_fdpassing_call_hello_fd: 1044s # * @proxy: A #TestFDPassingProxy. 1044s # * @arg_greeting: Argument to pass with the method invocation. 1044s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously invokes the HelloFD() D-Bus method on @proxy. 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call test_fdpassing_call_hello_fd_finish() to get the result of the operation. 1044s # * 1044s # * See test_fdpassing_call_hello_fd_sync() for the synchronous, blocking version of this method. 1044s # */ 1044s # void 1044s # test_fdpassing_call_hello_fd ( 1044s # TestFDPassing *proxy, 1044s # const gchar *arg_greeting, 1044s # GUnixFDList *fd_list, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_dbus_proxy_call_with_unix_fd_list (G_DBUS_PROXY (proxy), 1044s # "HelloFD", 1044s # g_variant_new ("(s)", 1044s # arg_greeting), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # fd_list, 1044s # cancellable, 1044s # callback, 1044s # user_data); 1044s # } 1044s # 1044s # /** 1044s # * test_fdpassing_call_hello_fd_finish: 1044s # * @proxy: A #TestFDPassingProxy. 1044s # * @out_response: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @out_fd_list: (out) (optional) (nullable): Return location for a #GUnixFDList or %NULL to ignore. 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_call_hello_fd(). 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Finishes an operation started with test_fdpassing_call_hello_fd(). 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # test_fdpassing_call_hello_fd_finish ( 1044s # TestFDPassing *proxy, 1044s # gchar **out_response, 1044s # GUnixFDList **out_fd_list, 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_with_unix_fd_list_finish (G_DBUS_PROXY (proxy), out_fd_list, res, error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "(s)", 1044s # out_response); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * test_fdpassing_call_hello_fd_sync: 1044s # * @proxy: A #TestFDPassingProxy. 1044s # * @arg_greeting: Argument to pass with the method invocation. 1044s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 1044s # * @out_response: (out) (optional): Return location for return parameter or %NULL to ignore. 1044s # * @out_fd_list: (out) (optional) (nullable): Return location for a #GUnixFDList or %NULL. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL. 1044s # * 1044s # * Synchronously invokes the HelloFD() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1044s # * 1044s # * See test_fdpassing_call_hello_fd() for the asynchronous version of this method. 1044s # * 1044s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1044s # */ 1044s # gboolean 1044s # test_fdpassing_call_hello_fd_sync ( 1044s # TestFDPassing *proxy, 1044s # const gchar *arg_greeting, 1044s # GUnixFDList *fd_list, 1044s # gchar **out_response, 1044s # GUnixFDList **out_fd_list, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GVariant *_ret; 1044s # _ret = g_dbus_proxy_call_with_unix_fd_list_sync (G_DBUS_PROXY (proxy), 1044s # "HelloFD", 1044s # g_variant_new ("(s)", 1044s # arg_greeting), 1044s # G_DBUS_CALL_FLAGS_NONE, 1044s # -1, 1044s # fd_list, 1044s # out_fd_list, 1044s # cancellable, 1044s # error); 1044s # if (_ret == NULL) 1044s # goto _out; 1044s # g_variant_get (_ret, 1044s # "(s)", 1044s # out_response); 1044s # g_variant_unref (_ret); 1044s # _out: 1044s # return _ret != NULL; 1044s # } 1044s # 1044s # /** 1044s # * test_fdpassing_complete_hello_fd: 1044s # * @object: A #TestFDPassing. 1044s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1044s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 1044s # * @response: Parameter to return. 1044s # * 1044s # * 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. 1044s # * 1044s # * This method will free @invocation, you cannot use it afterwards. 1044s # */ 1044s # void 1044s # test_fdpassing_complete_hello_fd ( 1044s # TestFDPassing *object G_GNUC_UNUSED, 1044s # GDBusMethodInvocation *invocation, 1044s # GUnixFDList *fd_list, 1044s # const gchar *response) 1044s # { 1044s # g_dbus_method_invocation_return_value_with_unix_fd_list (invocation, 1044s # g_variant_new ("(s)", 1044s # response), 1044s # fd_list); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * TestFDPassingProxy: 1044s # * 1044s # * The #TestFDPassingProxy structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * TestFDPassingProxyClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #TestFDPassingProxy. 1044s # */ 1044s # 1044s # struct _TestFDPassingProxyPrivate 1044s # { 1044s # GData *qdata; 1044s # }; 1044s # 1044s # static void test_fdpassing_proxy_iface_init (TestFDPassingIface *iface); 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingProxy, test_fdpassing_proxy, G_TYPE_DBUS_PROXY, 1044s # G_ADD_PRIVATE (TestFDPassingProxy) 1044s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_proxy_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingProxy, test_fdpassing_proxy, G_TYPE_DBUS_PROXY, 1044s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_proxy_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # test_fdpassing_proxy_finalize (GObject *object) 1044s # { 1044s # TestFDPassingProxy *proxy = TEST_FDPASSING_PROXY (object); 1044s # g_datalist_clear (&proxy->priv->qdata); 1044s # G_OBJECT_CLASS (test_fdpassing_proxy_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # test_fdpassing_proxy_get_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # test_fdpassing_proxy_set_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # const GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # test_fdpassing_proxy_g_signal (GDBusProxy *proxy, 1044s # const gchar *sender_name G_GNUC_UNUSED, 1044s # const gchar *signal_name, 1044s # GVariant *parameters) 1044s # { 1044s # _ExtendedGDBusSignalInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # gsize n; 1044s # guint signal_id; 1044s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, signal_name); 1044s # if (info == NULL) 1044s # return; 1044s # num_params = g_variant_n_children (parameters); 1044s # paramv = g_new0 (GValue, num_params + 1); 1044s # g_value_init (¶mv[0], TYPE_TEST_FDPASSING); 1044s # g_value_set_object (¶mv[0], proxy); 1044s # g_variant_iter_init (&iter, parameters); 1044s # n = 1; 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_TEST_FDPASSING); 1044s # g_signal_emitv (paramv, signal_id, 0, NULL); 1044s # for (n = 0; n < num_params + 1; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static void 1044s # test_fdpassing_proxy_g_properties_changed (GDBusProxy *_proxy, 1044s # GVariant *changed_properties, 1044s # const gchar *const *invalidated_properties) 1044s # { 1044s # TestFDPassingProxy *proxy = TEST_FDPASSING_PROXY (_proxy); 1044s # guint n; 1044s # const gchar *key; 1044s # GVariantIter *iter; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # g_variant_get (changed_properties, "a{sv}", &iter); 1044s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, key); 1044s # g_datalist_remove_data (&proxy->priv->qdata, key); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # g_variant_iter_free (iter); 1044s # for (n = 0; invalidated_properties[n] != NULL; n++) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, invalidated_properties[n]); 1044s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # } 1044s # 1044s # static void 1044s # test_fdpassing_proxy_init (TestFDPassingProxy *proxy) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # proxy->priv = test_fdpassing_proxy_get_instance_private (proxy); 1044s # #else 1044s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_TEST_FDPASSING_PROXY, TestFDPassingProxyPrivate); 1044s # #endif 1044s # 1044s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), test_fdpassing_interface_info ()); 1044s # } 1044s # 1044s # static void 1044s # test_fdpassing_proxy_class_init (TestFDPassingProxyClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusProxyClass *proxy_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = test_fdpassing_proxy_finalize; 1044s # gobject_class->get_property = test_fdpassing_proxy_get_property; 1044s # gobject_class->set_property = test_fdpassing_proxy_set_property; 1044s # 1044s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1044s # proxy_class->g_signal = test_fdpassing_proxy_g_signal; 1044s # proxy_class->g_properties_changed = test_fdpassing_proxy_g_properties_changed; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (TestFDPassingProxyPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # test_fdpassing_proxy_iface_init (TestFDPassingIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * test_fdpassing_proxy_new: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously creates a proxy for the D-Bus interface test.FDPassing. See g_dbus_proxy_new() for more details. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call test_fdpassing_proxy_new_finish() to get the result of the operation. 1044s # * 1044s # * See test_fdpassing_proxy_new_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # test_fdpassing_proxy_new ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # 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); 1044s # } 1044s # 1044s # /** 1044s # * test_fdpassing_proxy_new_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_proxy_new(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with test_fdpassing_proxy_new(). 1044s # * 1044s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # TestFDPassing * 1044s # test_fdpassing_proxy_new_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return TEST_FDPASSING (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * test_fdpassing_proxy_new_sync: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Synchronously creates a proxy for the D-Bus interface test.FDPassing. See g_dbus_proxy_new_sync() for more details. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See test_fdpassing_proxy_new() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # TestFDPassing * 1044s # test_fdpassing_proxy_new_sync ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return TEST_FDPASSING (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /** 1044s # * test_fdpassing_proxy_new_for_bus: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Like test_fdpassing_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call test_fdpassing_proxy_new_for_bus_finish() to get the result of the operation. 1044s # * 1044s # * See test_fdpassing_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # test_fdpassing_proxy_new_for_bus ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # 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); 1044s # } 1044s # 1044s # /** 1044s # * test_fdpassing_proxy_new_for_bus_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_proxy_new_for_bus(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with test_fdpassing_proxy_new_for_bus(). 1044s # * 1044s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # TestFDPassing * 1044s # test_fdpassing_proxy_new_for_bus_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return TEST_FDPASSING (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * test_fdpassing_proxy_new_for_bus_sync: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Like test_fdpassing_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See test_fdpassing_proxy_new_for_bus() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # TestFDPassing * 1044s # test_fdpassing_proxy_new_for_bus_sync ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return TEST_FDPASSING (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * TestFDPassingSkeleton: 1044s # * 1044s # * The #TestFDPassingSkeleton structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * TestFDPassingSkeletonClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #TestFDPassingSkeleton. 1044s # */ 1044s # 1044s # struct _TestFDPassingSkeletonPrivate 1044s # { 1044s # GValue *properties; 1044s # GList *changed_properties; 1044s # GSource *changed_properties_idle_source; 1044s # GMainContext *context; 1044s # GMutex lock; 1044s # }; 1044s # 1044s # static void 1044s # _test_fdpassing_skeleton_handle_method_call ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name, 1044s # const gchar *method_name, 1044s # GVariant *parameters, 1044s # GDBusMethodInvocation *invocation, 1044s # gpointer user_data) 1044s # { 1044s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 1044s # _ExtendedGDBusMethodInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # guint num_extra; 1044s # gsize n; 1044s # guint signal_id; 1044s # GValue return_value = G_VALUE_INIT; 1044s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1044s # g_assert (info != NULL); 1044s # num_params = g_variant_n_children (parameters); 1044s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1044s # n = 0; 1044s # g_value_init (¶mv[n], TYPE_TEST_FDPASSING); 1044s # g_value_set_object (¶mv[n++], skeleton); 1044s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1044s # g_value_set_object (¶mv[n++], invocation); 1044s # if (info->pass_fdlist) 1044s # { 1044s # #ifdef G_OS_UNIX 1044s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1044s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1044s # #else 1044s # g_assert_not_reached (); 1044s # #endif 1044s # } 1044s # g_variant_iter_init (&iter, parameters); 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_TEST_FDPASSING); 1044s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1044s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1044s # if (!g_value_get_boolean (&return_value)) 1044s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1044s # g_value_unset (&return_value); 1044s # for (n = 0; n < num_params + num_extra; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static GVariant * 1044s # _test_fdpassing_skeleton_handle_get_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # GVariant *ret; 1044s # ret = NULL; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # g_value_init (&value, pspec->value_type); 1044s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1044s # g_value_unset (&value); 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _test_fdpassing_skeleton_handle_set_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GVariant *variant, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # gboolean ret; 1044s # ret = FALSE; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # if (info->use_gvariant) 1044s # g_value_set_variant (&value, variant); 1044s # else 1044s # g_dbus_gvariant_to_gvalue (variant, &value); 1044s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # g_value_unset (&value); 1044s # ret = TRUE; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static const GDBusInterfaceVTable _test_fdpassing_skeleton_vtable = 1044s # { 1044s # _test_fdpassing_skeleton_handle_method_call, 1044s # _test_fdpassing_skeleton_handle_get_property, 1044s # _test_fdpassing_skeleton_handle_set_property, 1044s # {NULL} 1044s # }; 1044s # 1044s # static GDBusInterfaceInfo * 1044s # test_fdpassing_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return test_fdpassing_interface_info (); 1044s # } 1044s # 1044s # static GDBusInterfaceVTable * 1044s # test_fdpassing_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return (GDBusInterfaceVTable *) &_test_fdpassing_skeleton_vtable; 1044s # } 1044s # 1044s # static GVariant * 1044s # test_fdpassing_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1044s # { 1044s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (_skeleton); 1044s # 1044s # GVariantBuilder builder; 1044s # guint n; 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1044s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #else 1044s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #endif 1044s # if (_test_fdpassing_interface_info.parent_struct.properties == NULL) 1044s # goto out; 1044s # for (n = 0; _test_fdpassing_interface_info.parent_struct.properties[n] != NULL; n++) 1044s # { 1044s # GDBusPropertyInfo *info = _test_fdpassing_interface_info.parent_struct.properties[n]; 1044s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1044s # { 1044s # GVariant *value; 1044s # 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); 1044s # if (value != NULL) 1044s # { 1044s # g_variant_take_ref (value); 1044s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1044s # g_variant_unref (value); 1044s # } 1044s # } 1044s # } 1044s # out: 1044s # return g_variant_builder_end (&builder); 1044s # } 1044s # 1044s # static void 1044s # test_fdpassing_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void test_fdpassing_skeleton_iface_init (TestFDPassingIface *iface); 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingSkeleton, test_fdpassing_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_ADD_PRIVATE (TestFDPassingSkeleton) 1044s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_skeleton_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingSkeleton, test_fdpassing_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_skeleton_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # test_fdpassing_skeleton_finalize (GObject *object) 1044s # { 1044s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (object); 1044s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1044s # if (skeleton->priv->changed_properties_idle_source != NULL) 1044s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1044s # g_main_context_unref (skeleton->priv->context); 1044s # g_mutex_clear (&skeleton->priv->lock); 1044s # G_OBJECT_CLASS (test_fdpassing_skeleton_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # test_fdpassing_skeleton_init (TestFDPassingSkeleton *skeleton) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # skeleton->priv = test_fdpassing_skeleton_get_instance_private (skeleton); 1044s # #else 1044s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_TEST_FDPASSING_SKELETON, TestFDPassingSkeletonPrivate); 1044s # #endif 1044s # 1044s # g_mutex_init (&skeleton->priv->lock); 1044s # skeleton->priv->context = g_main_context_ref_thread_default (); 1044s # } 1044s # 1044s # static void 1044s # test_fdpassing_skeleton_class_init (TestFDPassingSkeletonClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusInterfaceSkeletonClass *skeleton_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = test_fdpassing_skeleton_finalize; 1044s # 1044s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1044s # skeleton_class->get_info = test_fdpassing_skeleton_dbus_interface_get_info; 1044s # skeleton_class->get_properties = test_fdpassing_skeleton_dbus_interface_get_properties; 1044s # skeleton_class->flush = test_fdpassing_skeleton_dbus_interface_flush; 1044s # skeleton_class->get_vtable = test_fdpassing_skeleton_dbus_interface_get_vtable; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (TestFDPassingSkeletonPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # test_fdpassing_skeleton_iface_init (TestFDPassingIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * test_fdpassing_skeleton_new: 1044s # * 1044s # * Creates a skeleton object for the D-Bus interface test.FDPassing. 1044s # * 1044s # * Returns: (transfer full) (type TestFDPassingSkeleton): The skeleton object. 1044s # */ 1044s # TestFDPassing * 1044s # test_fdpassing_skeleton_new (void) 1044s # { 1044s # return TEST_FDPASSING (g_object_new (TYPE_TEST_FDPASSING_SKELETON, NULL)); 1044s # } 1044s # Error: 1044s ok 15 __main__.TestCodegen.test_generate_rst 1044s # gdbus-codegen: /usr/bin/gdbus-codegen 1044s # tmpdir: /tmp/tmpu6o2js7r 1044s # /tmp/tmpu6o2js7r/tmp6p9womm_.xml: 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpu6o2js7r/tmp6p9womm_.xml', '--generate-rst', 'test'] 1044s # Return code: 0 1044s # Output: 1044s # 1044s # Error: 1044s ok 16 __main__.TestCodegen.test_generate_rst_method 1044s # gdbus-codegen: /usr/bin/gdbus-codegen 1044s # tmpdir: /tmp/tmpi0ul_m0h 1044s # /tmp/tmpi0ul_m0h/tmpbs_bwz7l.xml: 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpi0ul_m0h/tmpbs_bwz7l.xml', '--generate-rst', 'test'] 1044s # Return code: 0 1044s # Output: 1044s # 1044s # Error: 1044s ok 17 __main__.TestCodegen.test_generate_rst_property 1044s # gdbus-codegen: /usr/bin/gdbus-codegen 1044s # tmpdir: /tmp/tmpmx8v1nv5 1044s # /tmp/tmpmx8v1nv5/tmpyee2uoha.xml: 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpmx8v1nv5/tmpyee2uoha.xml', '--generate-rst', 'test'] 1044s # Return code: 0 1044s # Output: 1044s # 1044s # Error: 1044s ok 18 __main__.TestCodegen.test_generate_rst_signal 1044s # gdbus-codegen: /usr/bin/gdbus-codegen 1044s # tmpdir: /tmp/tmpxuodvc4v 1044s # /tmp/tmpxuodvc4v/tmp15hlc5mn.xml: 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxuodvc4v/tmp15hlc5mn.xml', '--generate-rst', 'test'] 1044s # Return code: 0 1044s # Output: 1044s # 1044s # Error: 1044s ok 19 __main__.TestCodegen.test_generate_signal_id_multiple_signal_args_types 1044s # gdbus-codegen: /usr/bin/gdbus-codegen 1044s # tmpdir: /tmp/tmpk_lvt2t1 1044s # /tmp/tmpk_lvt2t1/tmprngmt29m.xml: 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpk_lvt2t1/tmprngmt29m.xml', '--output', '-', '--body'] 1044s # Return code: 0 1044s # Output: 1044s # /* 1044s # * This file is generated by gdbus-codegen, do not modify it. 1044s # * 1044s # * The license of this code is the same as for the D-Bus interface description 1044s # * it was derived from. Note that it links to GLib, so must comply with the 1044s # * LGPL linking clauses. 1044s # */ 1044s # 1044s # #ifdef HAVE_CONFIG_H 1044s # # include "config.h" 1044s # #endif 1044s # 1044s # #include 1044s # #ifdef G_OS_UNIX 1044s # # include 1044s # #endif 1044s # 1044s # #ifdef G_ENABLE_DEBUG 1044s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1044s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1044s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1044s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1044s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1044s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1044s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1044s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1044s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1044s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1044s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1044s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1044s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1044s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1044s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1044s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1044s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1044s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1044s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1044s # #else /* !G_ENABLE_DEBUG */ 1044s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1044s # * Do not access GValues directly in your code. Instead, use the 1044s # * g_value_get_*() functions 1044s # */ 1044s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1044s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1044s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1044s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1044s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1044s # #endif /* !G_ENABLE_DEBUG */ 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusArgInfo parent_struct; 1044s # gboolean use_gvariant; 1044s # } _ExtendedGDBusArgInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusMethodInfo parent_struct; 1044s # const gchar *signal_name; 1044s # gboolean pass_fdlist; 1044s # } _ExtendedGDBusMethodInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusSignalInfo parent_struct; 1044s # const gchar *signal_name; 1044s # } _ExtendedGDBusSignalInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusPropertyInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # guint use_gvariant : 1; 1044s # guint emits_changed_signal : 1; 1044s # } _ExtendedGDBusPropertyInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusInterfaceInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # } _ExtendedGDBusInterfaceInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # const _ExtendedGDBusPropertyInfo *info; 1044s # guint prop_id; 1044s # GValue orig_value; /* the value before the change */ 1044s # } ChangedProperty; 1044s # 1044s # static void 1044s # _changed_property_free (ChangedProperty *data) 1044s # { 1044s # g_value_unset (&data->orig_value); 1044s # g_free (data); 1044s # } 1044s # 1044s # static gboolean 1044s # _g_strv_equal0 (gchar **a, gchar **b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # guint n; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # if (g_strv_length (a) != g_strv_length (b)) 1044s # goto out; 1044s # for (n = 0; a[n] != NULL; n++) 1044s # if (g_strcmp0 (a[n], b[n]) != 0) 1044s # goto out; 1044s # ret = TRUE; 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _g_variant_equal0 (GVariant *a, GVariant *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # ret = g_variant_equal (a, b); 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # G_GNUC_UNUSED static gboolean 1044s # _g_value_equal (const GValue *a, const GValue *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1044s # switch (G_VALUE_TYPE (a)) 1044s # { 1044s # case G_TYPE_BOOLEAN: 1044s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1044s # break; 1044s # case G_TYPE_UCHAR: 1044s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1044s # break; 1044s # case G_TYPE_INT: 1044s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1044s # break; 1044s # case G_TYPE_UINT: 1044s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1044s # break; 1044s # case G_TYPE_INT64: 1044s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1044s # break; 1044s # case G_TYPE_UINT64: 1044s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1044s # break; 1044s # case G_TYPE_DOUBLE: 1044s # { 1044s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1044s # gdouble da = g_value_get_double (a); 1044s # gdouble db = g_value_get_double (b); 1044s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1044s # } 1044s # break; 1044s # case G_TYPE_STRING: 1044s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1044s # break; 1044s # case G_TYPE_VARIANT: 1044s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1044s # break; 1044s # default: 1044s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1044s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1044s # else 1044s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1044s # break; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static void 1044s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 1044s # GClosure *closure, 1044s # GValue *return_value G_GNUC_UNUSED, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint G_GNUC_UNUSED, 1044s # void *marshal_data) 1044s # { 1044s # typedef void (*_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1044s # (void *data1, 1044s # gboolean arg_an_b, 1044s # guchar arg_an_y, 1044s # gint16 arg_an_n, 1044s # guint16 arg_an_q, 1044s # gint arg_an_i, 1044s # guint arg_an_u, 1044s # gint64 arg_an_x, 1044s # guint64 arg_an_t, 1044s # gdouble arg_an_d, 1044s # const gchar *arg_an_s, 1044s # const gchar *arg_an_o, 1044s # const gchar *arg_an_g, 1044s # GVariant *arg_an_h, 1044s # const gchar *arg_an_ay, 1044s # const gchar *const *arg_an_as, 1044s # const gchar *const *arg_an_ao, 1044s # const gchar *const *arg_an_aay, 1044s # GVariant *arg_an_asv, 1044s # void *data2); 1044s # _GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 1044s # GCClosure *cc = (GCClosure*) closure; 1044s # void *data1, *data2; 1044s # 1044s # g_return_if_fail (n_param_values == 19); 1044s # 1044s # if (G_CCLOSURE_SWAP_DATA (closure)) 1044s # { 1044s # data1 = closure->data; 1044s # data2 = g_value_peek_pointer (param_values + 0); 1044s # } 1044s # else 1044s # { 1044s # data1 = g_value_peek_pointer (param_values + 0); 1044s # data2 = closure->data; 1044s # } 1044s # 1044s # callback = (_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1044s # (marshal_data ? marshal_data : cc->callback); 1044s # 1044s # callback (data1, 1044s # g_marshal_value_peek_boolean (param_values + 1), 1044s # g_marshal_value_peek_uchar (param_values + 2), 1044s # g_marshal_value_peek_int (param_values + 3), 1044s # g_marshal_value_peek_uint (param_values + 4), 1044s # g_marshal_value_peek_int (param_values + 5), 1044s # g_marshal_value_peek_uint (param_values + 6), 1044s # g_marshal_value_peek_int64 (param_values + 7), 1044s # g_marshal_value_peek_uint64 (param_values + 8), 1044s # g_marshal_value_peek_double (param_values + 9), 1044s # g_marshal_value_peek_string (param_values + 10), 1044s # g_marshal_value_peek_string (param_values + 11), 1044s # g_marshal_value_peek_string (param_values + 12), 1044s # g_marshal_value_peek_variant (param_values + 13), 1044s # g_marshal_value_peek_string (param_values + 14), 1044s # g_marshal_value_peek_boxed (param_values + 15), 1044s # g_marshal_value_peek_boxed (param_values + 16), 1044s # g_marshal_value_peek_boxed (param_values + 17), 1044s # g_marshal_value_peek_variant (param_values + 18), 1044s # data2); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ 1044s # * Code for interface org.project.SignalingIface 1044s # * ------------------------------------------------------------------------ 1044s # */ 1044s # 1044s # /** 1044s # * SECTION:OrgProjectSignalingIface 1044s # * @title: OrgProjectSignalingIface 1044s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1044s # * 1044s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1044s # */ 1044s # 1044s # enum 1044s # { 1044s # _ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS, 1044s # }; 1044s # 1044s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 1044s # 1044s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_b", 1044s # (gchar *) "b", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_y", 1044s # (gchar *) "y", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_n", 1044s # (gchar *) "n", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_q", 1044s # (gchar *) "q", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_i", 1044s # (gchar *) "i", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_u", 1044s # (gchar *) "u", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_x", 1044s # (gchar *) "x", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_t", 1044s # (gchar *) "t", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_d", 1044s # (gchar *) "d", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_s", 1044s # (gchar *) "s", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_o", 1044s # (gchar *) "o", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_g", 1044s # (gchar *) "g", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_h", 1044s # (gchar *) "h", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_ay", 1044s # (gchar *) "ay", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_as", 1044s # (gchar *) "as", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_ao", 1044s # (gchar *) "ao", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_aay", 1044s # (gchar *) "aay", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_asv", 1044s # (gchar *) "a{sv}", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers[] = 1044s # { 1044s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b.parent_struct, 1044s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y.parent_struct, 1044s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n.parent_struct, 1044s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q.parent_struct, 1044s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i.parent_struct, 1044s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u.parent_struct, 1044s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x.parent_struct, 1044s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t.parent_struct, 1044s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d.parent_struct, 1044s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s.parent_struct, 1044s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o.parent_struct, 1044s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g.parent_struct, 1044s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h.parent_struct, 1044s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay.parent_struct, 1044s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as.parent_struct, 1044s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao.parent_struct, 1044s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay.parent_struct, 1044s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_signal_with_many_args = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "SignalWithManyArgs", 1044s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers, 1044s # NULL 1044s # }, 1044s # "signal-with-many-args" 1044s # }; 1044s # 1044s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1044s # { 1044s # &_org_project_signaling_iface_signal_info_signal_with_many_args.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "org.project.SignalingIface", 1044s # NULL, 1044s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1044s # NULL, 1044s # NULL 1044s # }, 1044s # "org-project-signaling-iface", 1044s # }; 1044s # 1044s # 1044s # /** 1044s # * org_project_signaling_iface_interface_info: 1044s # * 1044s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1044s # * 1044s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1044s # */ 1044s # GDBusInterfaceInfo * 1044s # org_project_signaling_iface_interface_info (void) 1044s # { 1044s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1044s # } 1044s # 1044s # /** 1044s # * org_project_signaling_iface_override_properties: 1044s # * @klass: The class structure for a #GObject derived class. 1044s # * @property_id_begin: The property id to assign to the first overridden property. 1044s # * 1044s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1044s # * The properties are overridden in the order they are defined. 1044s # * 1044s # * Returns: The last property id. 1044s # */ 1044s # guint 1044s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1044s # { 1044s # return property_id_begin - 1; 1044s # } 1044s # 1044s # 1044s # inline static void 1044s # org_project_signaling_iface_signal_marshal_signal_with_many_args ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # 1044s # /** 1044s # * OrgProjectSignalingIface: 1044s # * 1044s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectSignalingIfaceIface: 1044s # * @parent_iface: The parent interface. 1044s # * @signal_with_many_args: Handler for the #OrgProjectSignalingIface::signal-with-many-args signal. 1044s # * 1044s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1044s # */ 1044s # 1044s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1044s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1044s # 1044s # static void 1044s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1044s # { 1044s # /* GObject signals for received D-Bus signals: */ 1044s # /** 1044s # * OrgProjectSignalingIface::signal-with-many-args: 1044s # * @object: A #OrgProjectSignalingIface. 1044s # * @arg_an_b: Argument. 1044s # * @arg_an_y: Argument. 1044s # * @arg_an_n: Argument. 1044s # * @arg_an_q: Argument. 1044s # * @arg_an_i: Argument. 1044s # * @arg_an_u: Argument. 1044s # * @arg_an_x: Argument. 1044s # * @arg_an_t: Argument. 1044s # * @arg_an_d: Argument. 1044s # * @arg_an_s: Argument. 1044s # * @arg_an_o: Argument. 1044s # * @arg_an_g: Argument. 1044s # * @arg_an_h: Argument. 1044s # * @arg_an_ay: Argument. 1044s # * @arg_an_as: Argument. 1044s # * @arg_an_ao: Argument. 1044s # * @arg_an_aay: Argument. 1044s # * @arg_an_asv: Argument. 1044s # * 1044s # * On the client-side, this signal is emitted whenever the D-Bus signal "SignalWithManyArgs" is received. 1044s # * 1044s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1044s # */ 1044s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS] = 1044s # g_signal_new ("signal-with-many-args", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, signal_with_many_args), 1044s # NULL, 1044s # NULL, 1044s # org_project_signaling_iface_signal_marshal_signal_with_many_args, 1044s # G_TYPE_NONE, 1044s # 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); 1044s # 1044s # } 1044s # 1044s # /** 1044s # * org_project_signaling_iface_emit_signal_with_many_args: 1044s # * @object: A #OrgProjectSignalingIface. 1044s # * @arg_an_b: Argument to pass with the signal. 1044s # * @arg_an_y: Argument to pass with the signal. 1044s # * @arg_an_n: Argument to pass with the signal. 1044s # * @arg_an_q: Argument to pass with the signal. 1044s # * @arg_an_i: Argument to pass with the signal. 1044s # * @arg_an_u: Argument to pass with the signal. 1044s # * @arg_an_x: Argument to pass with the signal. 1044s # * @arg_an_t: Argument to pass with the signal. 1044s # * @arg_an_d: Argument to pass with the signal. 1044s # * @arg_an_s: Argument to pass with the signal. 1044s # * @arg_an_o: Argument to pass with the signal. 1044s # * @arg_an_g: Argument to pass with the signal. 1044s # * @arg_an_h: Argument to pass with the signal. 1044s # * @arg_an_ay: Argument to pass with the signal. 1044s # * @arg_an_as: Argument to pass with the signal. 1044s # * @arg_an_ao: Argument to pass with the signal. 1044s # * @arg_an_aay: Argument to pass with the signal. 1044s # * @arg_an_asv: Argument to pass with the signal. 1044s # * 1044s # * Emits the "SignalWithManyArgs" D-Bus signal. 1044s # */ 1044s # void 1044s # org_project_signaling_iface_emit_signal_with_many_args ( 1044s # OrgProjectSignalingIface *object, 1044s # gboolean arg_an_b, 1044s # guchar arg_an_y, 1044s # gint16 arg_an_n, 1044s # guint16 arg_an_q, 1044s # gint arg_an_i, 1044s # guint arg_an_u, 1044s # gint64 arg_an_x, 1044s # guint64 arg_an_t, 1044s # gdouble arg_an_d, 1044s # const gchar *arg_an_s, 1044s # const gchar *arg_an_o, 1044s # const gchar *arg_an_g, 1044s # GVariant *arg_an_h, 1044s # const gchar *arg_an_ay, 1044s # const gchar *const *arg_an_as, 1044s # const gchar *const *arg_an_ao, 1044s # const gchar *const *arg_an_aay, 1044s # GVariant *arg_an_asv) 1044s # { 1044s # 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); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectSignalingIfaceProxy: 1044s # * 1044s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectSignalingIfaceProxyClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectSignalingIfaceProxy. 1044s # */ 1044s # 1044s # struct _OrgProjectSignalingIfaceProxyPrivate 1044s # { 1044s # GData *qdata; 1044s # }; 1044s # 1044s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_signaling_iface_proxy_finalize (GObject *object) 1044s # { 1044s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1044s # g_datalist_clear (&proxy->priv->qdata); 1044s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # const GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1044s # const gchar *sender_name G_GNUC_UNUSED, 1044s # const gchar *signal_name, 1044s # GVariant *parameters) 1044s # { 1044s # _ExtendedGDBusSignalInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # gsize n; 1044s # guint signal_id; 1044s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1044s # if (info == NULL) 1044s # return; 1044s # num_params = g_variant_n_children (parameters); 1044s # paramv = g_new0 (GValue, num_params + 1); 1044s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1044s # g_value_set_object (¶mv[0], proxy); 1044s # g_variant_iter_init (&iter, parameters); 1044s # n = 1; 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1044s # g_signal_emitv (paramv, signal_id, 0, NULL); 1044s # for (n = 0; n < num_params + 1; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static void 1044s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1044s # GVariant *changed_properties, 1044s # const gchar *const *invalidated_properties) 1044s # { 1044s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1044s # guint n; 1044s # const gchar *key; 1044s # GVariantIter *iter; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # g_variant_get (changed_properties, "a{sv}", &iter); 1044s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1044s # g_datalist_remove_data (&proxy->priv->qdata, key); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # g_variant_iter_free (iter); 1044s # for (n = 0; invalidated_properties[n] != NULL; n++) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1044s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # } 1044s # 1044s # static void 1044s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1044s # #else 1044s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1044s # #endif 1044s # 1044s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1044s # } 1044s # 1044s # static void 1044s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusProxyClass *proxy_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1044s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1044s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1044s # 1044s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1044s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1044s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_signaling_iface_proxy_new: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_signaling_iface_proxy_new ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # 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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_signaling_iface_proxy_new_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectSignalingIface * 1044s # org_project_signaling_iface_proxy_new_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_signaling_iface_proxy_new_sync: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectSignalingIface * 1044s # org_project_signaling_iface_proxy_new_sync ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /** 1044s # * org_project_signaling_iface_proxy_new_for_bus: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_signaling_iface_proxy_new_for_bus ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # 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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectSignalingIface * 1044s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectSignalingIface * 1044s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectSignalingIfaceSkeleton: 1044s # * 1044s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectSignalingIfaceSkeletonClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1044s # */ 1044s # 1044s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1044s # { 1044s # GValue *properties; 1044s # GList *changed_properties; 1044s # GSource *changed_properties_idle_source; 1044s # GMainContext *context; 1044s # GMutex lock; 1044s # }; 1044s # 1044s # static void 1044s # _org_project_signaling_iface_skeleton_handle_method_call ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name, 1044s # const gchar *method_name, 1044s # GVariant *parameters, 1044s # GDBusMethodInvocation *invocation, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1044s # _ExtendedGDBusMethodInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # guint num_extra; 1044s # gsize n; 1044s # guint signal_id; 1044s # GValue return_value = G_VALUE_INIT; 1044s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1044s # g_assert (info != NULL); 1044s # num_params = g_variant_n_children (parameters); 1044s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1044s # n = 0; 1044s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1044s # g_value_set_object (¶mv[n++], skeleton); 1044s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1044s # g_value_set_object (¶mv[n++], invocation); 1044s # if (info->pass_fdlist) 1044s # { 1044s # #ifdef G_OS_UNIX 1044s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1044s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1044s # #else 1044s # g_assert_not_reached (); 1044s # #endif 1044s # } 1044s # g_variant_iter_init (&iter, parameters); 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1044s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1044s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1044s # if (!g_value_get_boolean (&return_value)) 1044s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1044s # g_value_unset (&return_value); 1044s # for (n = 0; n < num_params + num_extra; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static GVariant * 1044s # _org_project_signaling_iface_skeleton_handle_get_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # GVariant *ret; 1044s # ret = NULL; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # g_value_init (&value, pspec->value_type); 1044s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1044s # g_value_unset (&value); 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _org_project_signaling_iface_skeleton_handle_set_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GVariant *variant, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # gboolean ret; 1044s # ret = FALSE; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # if (info->use_gvariant) 1044s # g_value_set_variant (&value, variant); 1044s # else 1044s # g_dbus_gvariant_to_gvalue (variant, &value); 1044s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # g_value_unset (&value); 1044s # ret = TRUE; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1044s # { 1044s # _org_project_signaling_iface_skeleton_handle_method_call, 1044s # _org_project_signaling_iface_skeleton_handle_get_property, 1044s # _org_project_signaling_iface_skeleton_handle_set_property, 1044s # {NULL} 1044s # }; 1044s # 1044s # static GDBusInterfaceInfo * 1044s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return org_project_signaling_iface_interface_info (); 1044s # } 1044s # 1044s # static GDBusInterfaceVTable * 1044s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1044s # } 1044s # 1044s # static GVariant * 1044s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1044s # { 1044s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1044s # 1044s # GVariantBuilder builder; 1044s # guint n; 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1044s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #else 1044s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #endif 1044s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1044s # goto out; 1044s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1044s # { 1044s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1044s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1044s # { 1044s # GVariant *value; 1044s # 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); 1044s # if (value != NULL) 1044s # { 1044s # g_variant_take_ref (value); 1044s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1044s # g_variant_unref (value); 1044s # } 1044s # } 1044s # } 1044s # out: 1044s # return g_variant_builder_end (&builder); 1044s # } 1044s # 1044s # static void 1044s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # _org_project_signaling_iface_on_signal_signal_with_many_args ( 1044s # OrgProjectSignalingIface *object, 1044s # gboolean arg_an_b, 1044s # guchar arg_an_y, 1044s # gint16 arg_an_n, 1044s # guint16 arg_an_q, 1044s # gint arg_an_i, 1044s # guint arg_an_u, 1044s # gint64 arg_an_x, 1044s # guint64 arg_an_t, 1044s # gdouble arg_an_d, 1044s # const gchar *arg_an_s, 1044s # const gchar *arg_an_o, 1044s # const gchar *arg_an_g, 1044s # GVariant *arg_an_h, 1044s # const gchar *arg_an_ay, 1044s # const gchar *const *arg_an_as, 1044s # const gchar *const *arg_an_ao, 1044s # const gchar *const *arg_an_aay, 1044s # GVariant *arg_an_asv) 1044s # { 1044s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1044s # 1044s # GList *connections, *l; 1044s # GVariant *signal_variant; 1044s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1044s # 1044s # signal_variant = g_variant_ref_sink (g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1044s # arg_an_b, 1044s # arg_an_y, 1044s # arg_an_n, 1044s # arg_an_q, 1044s # arg_an_i, 1044s # arg_an_u, 1044s # arg_an_x, 1044s # arg_an_t, 1044s # arg_an_d, 1044s # arg_an_s, 1044s # arg_an_o, 1044s # arg_an_g, 1044s # arg_an_h, 1044s # arg_an_ay, 1044s # arg_an_as, 1044s # arg_an_ao, 1044s # arg_an_aay, 1044s # arg_an_asv)); 1044s # for (l = connections; l != NULL; l = l->next) 1044s # { 1044s # GDBusConnection *connection = l->data; 1044s # g_dbus_connection_emit_signal (connection, 1044s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SignalWithManyArgs", 1044s # signal_variant, NULL); 1044s # } 1044s # g_variant_unref (signal_variant); 1044s # g_list_free_full (connections, g_object_unref); 1044s # } 1044s # 1044s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1044s # { 1044s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1044s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1044s # if (skeleton->priv->changed_properties_idle_source != NULL) 1044s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1044s # g_main_context_unref (skeleton->priv->context); 1044s # g_mutex_clear (&skeleton->priv->lock); 1044s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1044s # #else 1044s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1044s # #endif 1044s # 1044s # g_mutex_init (&skeleton->priv->lock); 1044s # skeleton->priv->context = g_main_context_ref_thread_default (); 1044s # } 1044s # 1044s # static void 1044s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusInterfaceSkeletonClass *skeleton_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1044s # 1044s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1044s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1044s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1044s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1044s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1044s # { 1044s # iface->signal_with_many_args = _org_project_signaling_iface_on_signal_signal_with_many_args; 1044s # } 1044s # 1044s # /** 1044s # * org_project_signaling_iface_skeleton_new: 1044s # * 1044s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1044s # */ 1044s # OrgProjectSignalingIface * 1044s # org_project_signaling_iface_skeleton_new (void) 1044s # { 1044s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1044s # } 1044s # Error: 1044s ok 20 __main__.TestCodegen.test_generate_signal_id_multiple_signals_types 1044s # gdbus-codegen: /usr/bin/gdbus-codegen 1044s # tmpdir: /tmp/tmp7iyans98 1044s # /tmp/tmp7iyans98/tmpmunwjqj9.xml: 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7iyans98/tmpmunwjqj9.xml', '--output', '-', '--body'] 1044s # Return code: 0 1044s # Output: 1044s # /* 1044s # * This file is generated by gdbus-codegen, do not modify it. 1044s # * 1044s # * The license of this code is the same as for the D-Bus interface description 1044s # * it was derived from. Note that it links to GLib, so must comply with the 1044s # * LGPL linking clauses. 1044s # */ 1044s # 1044s # #ifdef HAVE_CONFIG_H 1044s # # include "config.h" 1044s # #endif 1044s # 1044s # #include 1044s # #ifdef G_OS_UNIX 1044s # # include 1044s # #endif 1044s # 1044s # #ifdef G_ENABLE_DEBUG 1044s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1044s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1044s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1044s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1044s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1044s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1044s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1044s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1044s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1044s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1044s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1044s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1044s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1044s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1044s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1044s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1044s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1044s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1044s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1044s # #else /* !G_ENABLE_DEBUG */ 1044s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1044s # * Do not access GValues directly in your code. Instead, use the 1044s # * g_value_get_*() functions 1044s # */ 1044s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1044s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1044s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1044s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1044s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1044s # #endif /* !G_ENABLE_DEBUG */ 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusArgInfo parent_struct; 1044s # gboolean use_gvariant; 1044s # } _ExtendedGDBusArgInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusMethodInfo parent_struct; 1044s # const gchar *signal_name; 1044s # gboolean pass_fdlist; 1044s # } _ExtendedGDBusMethodInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusSignalInfo parent_struct; 1044s # const gchar *signal_name; 1044s # } _ExtendedGDBusSignalInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusPropertyInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # guint use_gvariant : 1; 1044s # guint emits_changed_signal : 1; 1044s # } _ExtendedGDBusPropertyInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusInterfaceInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # } _ExtendedGDBusInterfaceInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # const _ExtendedGDBusPropertyInfo *info; 1044s # guint prop_id; 1044s # GValue orig_value; /* the value before the change */ 1044s # } ChangedProperty; 1044s # 1044s # static void 1044s # _changed_property_free (ChangedProperty *data) 1044s # { 1044s # g_value_unset (&data->orig_value); 1044s # g_free (data); 1044s # } 1044s # 1044s # static gboolean 1044s # _g_strv_equal0 (gchar **a, gchar **b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # guint n; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # if (g_strv_length (a) != g_strv_length (b)) 1044s # goto out; 1044s # for (n = 0; a[n] != NULL; n++) 1044s # if (g_strcmp0 (a[n], b[n]) != 0) 1044s # goto out; 1044s # ret = TRUE; 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _g_variant_equal0 (GVariant *a, GVariant *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # ret = g_variant_equal (a, b); 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # G_GNUC_UNUSED static gboolean 1044s # _g_value_equal (const GValue *a, const GValue *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1044s # switch (G_VALUE_TYPE (a)) 1044s # { 1044s # case G_TYPE_BOOLEAN: 1044s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1044s # break; 1044s # case G_TYPE_UCHAR: 1044s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1044s # break; 1044s # case G_TYPE_INT: 1044s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1044s # break; 1044s # case G_TYPE_UINT: 1044s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1044s # break; 1044s # case G_TYPE_INT64: 1044s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1044s # break; 1044s # case G_TYPE_UINT64: 1044s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1044s # break; 1044s # case G_TYPE_DOUBLE: 1044s # { 1044s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1044s # gdouble da = g_value_get_double (a); 1044s # gdouble db = g_value_get_double (b); 1044s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1044s # } 1044s # break; 1044s # case G_TYPE_STRING: 1044s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1044s # break; 1044s # case G_TYPE_VARIANT: 1044s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1044s # break; 1044s # default: 1044s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1044s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1044s # else 1044s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1044s # break; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static void 1044s # _g_dbus_codegen_marshal_VOID__INT64 ( 1044s # GClosure *closure, 1044s # GValue *return_value G_GNUC_UNUSED, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint G_GNUC_UNUSED, 1044s # void *marshal_data) 1044s # { 1044s # typedef void (*_GDbusCodegenMarshalVoid_Int64Func) 1044s # (void *data1, 1044s # gint64 arg_an_x, 1044s # void *data2); 1044s # _GDbusCodegenMarshalVoid_Int64Func callback; 1044s # GCClosure *cc = (GCClosure*) closure; 1044s # void *data1, *data2; 1044s # 1044s # g_return_if_fail (n_param_values == 2); 1044s # 1044s # if (G_CCLOSURE_SWAP_DATA (closure)) 1044s # { 1044s # data1 = closure->data; 1044s # data2 = g_value_peek_pointer (param_values + 0); 1044s # } 1044s # else 1044s # { 1044s # data1 = g_value_peek_pointer (param_values + 0); 1044s # data2 = closure->data; 1044s # } 1044s # 1044s # callback = (_GDbusCodegenMarshalVoid_Int64Func) 1044s # (marshal_data ? marshal_data : cc->callback); 1044s # 1044s # callback (data1, 1044s # g_marshal_value_peek_int64 (param_values + 1), 1044s # data2); 1044s # } 1044s # 1044s # static void 1044s # _g_dbus_codegen_marshal_VOID__UINT64 ( 1044s # GClosure *closure, 1044s # GValue *return_value G_GNUC_UNUSED, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint G_GNUC_UNUSED, 1044s # void *marshal_data) 1044s # { 1044s # typedef void (*_GDbusCodegenMarshalVoid_Uint64Func) 1044s # (void *data1, 1044s # guint64 arg_an_t, 1044s # void *data2); 1044s # _GDbusCodegenMarshalVoid_Uint64Func callback; 1044s # GCClosure *cc = (GCClosure*) closure; 1044s # void *data1, *data2; 1044s # 1044s # g_return_if_fail (n_param_values == 2); 1044s # 1044s # if (G_CCLOSURE_SWAP_DATA (closure)) 1044s # { 1044s # data1 = closure->data; 1044s # data2 = g_value_peek_pointer (param_values + 0); 1044s # } 1044s # else 1044s # { 1044s # data1 = g_value_peek_pointer (param_values + 0); 1044s # data2 = closure->data; 1044s # } 1044s # 1044s # callback = (_GDbusCodegenMarshalVoid_Uint64Func) 1044s # (marshal_data ? marshal_data : cc->callback); 1044s # 1044s # callback (data1, 1044s # g_marshal_value_peek_uint64 (param_values + 1), 1044s # data2); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ 1044s # * Code for interface org.project.SignalingIface 1044s # * ------------------------------------------------------------------------ 1044s # */ 1044s # 1044s # /** 1044s # * SECTION:OrgProjectSignalingIface 1044s # * @title: OrgProjectSignalingIface 1044s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1044s # * 1044s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1044s # */ 1044s # 1044s # enum 1044s # { 1044s # _ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL, 1044s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B, 1044s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y, 1044s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N, 1044s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q, 1044s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I, 1044s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U, 1044s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X, 1044s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T, 1044s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D, 1044s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S, 1044s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O, 1044s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G, 1044s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H, 1044s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY, 1044s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS, 1044s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO, 1044s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY, 1044s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV, 1044s # }; 1044s # 1044s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[19] = { 0 }; 1044s # 1044s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1044s # 1044s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_no_arg_signal = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "NoArgSignal", 1044s # NULL, 1044s # NULL 1044s # }, 1044s # "no-arg-signal" 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_an_b = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_b", 1044s # (gchar *) "b", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers[] = 1044s # { 1044s # &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_an_b.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_b = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "SingleArgSignalB", 1044s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers, 1044s # NULL 1044s # }, 1044s # "single-arg-signal-b" 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_an_y = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_y", 1044s # (gchar *) "y", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers[] = 1044s # { 1044s # &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_an_y.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_y = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "SingleArgSignalY", 1044s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers, 1044s # NULL 1044s # }, 1044s # "single-arg-signal-y" 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_an_n = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_n", 1044s # (gchar *) "n", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers[] = 1044s # { 1044s # &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_an_n.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_n = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "SingleArgSignalN", 1044s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers, 1044s # NULL 1044s # }, 1044s # "single-arg-signal-n" 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_an_q = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_q", 1044s # (gchar *) "q", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers[] = 1044s # { 1044s # &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_an_q.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_q = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "SingleArgSignalQ", 1044s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers, 1044s # NULL 1044s # }, 1044s # "single-arg-signal-q" 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_an_i = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_i", 1044s # (gchar *) "i", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers[] = 1044s # { 1044s # &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_an_i.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_i = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "SingleArgSignalI", 1044s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers, 1044s # NULL 1044s # }, 1044s # "single-arg-signal-i" 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_an_u = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_u", 1044s # (gchar *) "u", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers[] = 1044s # { 1044s # &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_an_u.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_u = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "SingleArgSignalU", 1044s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers, 1044s # NULL 1044s # }, 1044s # "single-arg-signal-u" 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_an_x = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_x", 1044s # (gchar *) "x", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers[] = 1044s # { 1044s # &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_an_x.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_x = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "SingleArgSignalX", 1044s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers, 1044s # NULL 1044s # }, 1044s # "single-arg-signal-x" 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_an_t = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_t", 1044s # (gchar *) "t", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers[] = 1044s # { 1044s # &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_an_t.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_t = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "SingleArgSignalT", 1044s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers, 1044s # NULL 1044s # }, 1044s # "single-arg-signal-t" 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_an_d = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_d", 1044s # (gchar *) "d", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers[] = 1044s # { 1044s # &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_an_d.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_d = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "SingleArgSignalD", 1044s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers, 1044s # NULL 1044s # }, 1044s # "single-arg-signal-d" 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_an_s = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_s", 1044s # (gchar *) "s", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers[] = 1044s # { 1044s # &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_an_s.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_s = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "SingleArgSignalS", 1044s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers, 1044s # NULL 1044s # }, 1044s # "single-arg-signal-s" 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_an_o = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_o", 1044s # (gchar *) "o", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers[] = 1044s # { 1044s # &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_an_o.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_o = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "SingleArgSignalO", 1044s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers, 1044s # NULL 1044s # }, 1044s # "single-arg-signal-o" 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_an_g = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_g", 1044s # (gchar *) "g", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers[] = 1044s # { 1044s # &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_an_g.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_g = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "SingleArgSignalG", 1044s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers, 1044s # NULL 1044s # }, 1044s # "single-arg-signal-g" 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_an_h = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_h", 1044s # (gchar *) "h", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers[] = 1044s # { 1044s # &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_an_h.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_h = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "SingleArgSignalH", 1044s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers, 1044s # NULL 1044s # }, 1044s # "single-arg-signal-h" 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_an_ay = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_ay", 1044s # (gchar *) "ay", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers[] = 1044s # { 1044s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_an_ay.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "SingleArgSignalAY", 1044s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers, 1044s # NULL 1044s # }, 1044s # "single-arg-signal-ay" 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_an_as = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_as", 1044s # (gchar *) "as", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers[] = 1044s # { 1044s # &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_an_as.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_as = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "SingleArgSignalAS", 1044s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers, 1044s # NULL 1044s # }, 1044s # "single-arg-signal-as" 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_an_ao = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_ao", 1044s # (gchar *) "ao", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers[] = 1044s # { 1044s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_an_ao.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "SingleArgSignalAO", 1044s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers, 1044s # NULL 1044s # }, 1044s # "single-arg-signal-ao" 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_an_aay = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_aay", 1044s # (gchar *) "aay", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers[] = 1044s # { 1044s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_an_aay.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "SingleArgSignalAAY", 1044s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers, 1044s # NULL 1044s # }, 1044s # "single-arg-signal-aay" 1044s # }; 1044s # 1044s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_an_asv = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "an_asv", 1044s # (gchar *) "a{sv}", 1044s # NULL 1044s # }, 1044s # FALSE 1044s # }; 1044s # 1044s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers[] = 1044s # { 1044s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_an_asv.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "SingleArgSignalASV", 1044s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers, 1044s # NULL 1044s # }, 1044s # "single-arg-signal-asv" 1044s # }; 1044s # 1044s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1044s # { 1044s # &_org_project_signaling_iface_signal_info_no_arg_signal.parent_struct, 1044s # &_org_project_signaling_iface_signal_info_single_arg_signal_b.parent_struct, 1044s # &_org_project_signaling_iface_signal_info_single_arg_signal_y.parent_struct, 1044s # &_org_project_signaling_iface_signal_info_single_arg_signal_n.parent_struct, 1044s # &_org_project_signaling_iface_signal_info_single_arg_signal_q.parent_struct, 1044s # &_org_project_signaling_iface_signal_info_single_arg_signal_i.parent_struct, 1044s # &_org_project_signaling_iface_signal_info_single_arg_signal_u.parent_struct, 1044s # &_org_project_signaling_iface_signal_info_single_arg_signal_x.parent_struct, 1044s # &_org_project_signaling_iface_signal_info_single_arg_signal_t.parent_struct, 1044s # &_org_project_signaling_iface_signal_info_single_arg_signal_d.parent_struct, 1044s # &_org_project_signaling_iface_signal_info_single_arg_signal_s.parent_struct, 1044s # &_org_project_signaling_iface_signal_info_single_arg_signal_o.parent_struct, 1044s # &_org_project_signaling_iface_signal_info_single_arg_signal_g.parent_struct, 1044s # &_org_project_signaling_iface_signal_info_single_arg_signal_h.parent_struct, 1044s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay.parent_struct, 1044s # &_org_project_signaling_iface_signal_info_single_arg_signal_as.parent_struct, 1044s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao.parent_struct, 1044s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay.parent_struct, 1044s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "org.project.SignalingIface", 1044s # NULL, 1044s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1044s # NULL, 1044s # NULL 1044s # }, 1044s # "org-project-signaling-iface", 1044s # }; 1044s # 1044s # 1044s # /** 1044s # * org_project_signaling_iface_interface_info: 1044s # * 1044s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1044s # * 1044s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1044s # */ 1044s # GDBusInterfaceInfo * 1044s # org_project_signaling_iface_interface_info (void) 1044s # { 1044s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1044s # } 1044s # 1044s # /** 1044s # * org_project_signaling_iface_override_properties: 1044s # * @klass: The class structure for a #GObject derived class. 1044s # * @property_id_begin: The property id to assign to the first overridden property. 1044s # * 1044s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1044s # * The properties are overridden in the order they are defined. 1044s # * 1044s # * Returns: The last property id. 1044s # */ 1044s # guint 1044s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1044s # { 1044s # return property_id_begin - 1; 1044s # } 1044s # 1044s # 1044s # inline static void 1044s # org_project_signaling_iface_signal_marshal_no_arg_signal ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # g_cclosure_marshal_VOID__VOID (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # inline static void 1044s # org_project_signaling_iface_signal_marshal_single_arg_signal_b ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # g_cclosure_marshal_VOID__BOOLEAN (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # inline static void 1044s # org_project_signaling_iface_signal_marshal_single_arg_signal_y ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # g_cclosure_marshal_VOID__UCHAR (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # inline static void 1044s # org_project_signaling_iface_signal_marshal_single_arg_signal_n ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # g_cclosure_marshal_VOID__INT (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # inline static void 1044s # org_project_signaling_iface_signal_marshal_single_arg_signal_q ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # g_cclosure_marshal_VOID__UINT (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # inline static void 1044s # org_project_signaling_iface_signal_marshal_single_arg_signal_i ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # g_cclosure_marshal_VOID__INT (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # inline static void 1044s # org_project_signaling_iface_signal_marshal_single_arg_signal_u ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # g_cclosure_marshal_VOID__UINT (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # inline static void 1044s # org_project_signaling_iface_signal_marshal_single_arg_signal_x ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # _g_dbus_codegen_marshal_VOID__INT64 (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # inline static void 1044s # org_project_signaling_iface_signal_marshal_single_arg_signal_t ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # _g_dbus_codegen_marshal_VOID__UINT64 (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # inline static void 1044s # org_project_signaling_iface_signal_marshal_single_arg_signal_d ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # g_cclosure_marshal_VOID__DOUBLE (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # inline static void 1044s # org_project_signaling_iface_signal_marshal_single_arg_signal_s ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # g_cclosure_marshal_VOID__STRING (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # inline static void 1044s # org_project_signaling_iface_signal_marshal_single_arg_signal_o ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # g_cclosure_marshal_VOID__STRING (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # inline static void 1044s # org_project_signaling_iface_signal_marshal_single_arg_signal_g ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # g_cclosure_marshal_VOID__STRING (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # inline static void 1044s # org_project_signaling_iface_signal_marshal_single_arg_signal_h ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # g_cclosure_marshal_VOID__VARIANT (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # inline static void 1044s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # g_cclosure_marshal_VOID__STRING (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # inline static void 1044s # org_project_signaling_iface_signal_marshal_single_arg_signal_as ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # g_cclosure_marshal_VOID__BOXED (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # inline static void 1044s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # g_cclosure_marshal_VOID__BOXED (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # inline static void 1044s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # g_cclosure_marshal_VOID__BOXED (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # inline static void 1044s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # g_cclosure_marshal_VOID__VARIANT (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # 1044s # /** 1044s # * OrgProjectSignalingIface: 1044s # * 1044s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectSignalingIfaceIface: 1044s # * @parent_iface: The parent interface. 1044s # * @no_arg_signal: Handler for the #OrgProjectSignalingIface::no-arg-signal signal. 1044s # * @single_arg_signal_aay: Handler for the #OrgProjectSignalingIface::single-arg-signal-aay signal. 1044s # * @single_arg_signal_ao: Handler for the #OrgProjectSignalingIface::single-arg-signal-ao signal. 1044s # * @single_arg_signal_as: Handler for the #OrgProjectSignalingIface::single-arg-signal-as signal. 1044s # * @single_arg_signal_asv: Handler for the #OrgProjectSignalingIface::single-arg-signal-asv signal. 1044s # * @single_arg_signal_ay: Handler for the #OrgProjectSignalingIface::single-arg-signal-ay signal. 1044s # * @single_arg_signal_b: Handler for the #OrgProjectSignalingIface::single-arg-signal-b signal. 1044s # * @single_arg_signal_d: Handler for the #OrgProjectSignalingIface::single-arg-signal-d signal. 1044s # * @single_arg_signal_g: Handler for the #OrgProjectSignalingIface::single-arg-signal-g signal. 1044s # * @single_arg_signal_h: Handler for the #OrgProjectSignalingIface::single-arg-signal-h signal. 1044s # * @single_arg_signal_i: Handler for the #OrgProjectSignalingIface::single-arg-signal-i signal. 1044s # * @single_arg_signal_n: Handler for the #OrgProjectSignalingIface::single-arg-signal-n signal. 1044s # * @single_arg_signal_o: Handler for the #OrgProjectSignalingIface::single-arg-signal-o signal. 1044s # * @single_arg_signal_q: Handler for the #OrgProjectSignalingIface::single-arg-signal-q signal. 1044s # * @single_arg_signal_s: Handler for the #OrgProjectSignalingIface::single-arg-signal-s signal. 1044s # * @single_arg_signal_t: Handler for the #OrgProjectSignalingIface::single-arg-signal-t signal. 1044s # * @single_arg_signal_u: Handler for the #OrgProjectSignalingIface::single-arg-signal-u signal. 1044s # * @single_arg_signal_x: Handler for the #OrgProjectSignalingIface::single-arg-signal-x signal. 1044s # * @single_arg_signal_y: Handler for the #OrgProjectSignalingIface::single-arg-signal-y signal. 1044s # * 1044s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1044s # */ 1044s # 1044s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1044s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1044s # 1044s # static void 1044s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1044s # { 1044s # /* GObject signals for received D-Bus signals: */ 1044s # /** 1044s # * OrgProjectSignalingIface::no-arg-signal: 1044s # * @object: A #OrgProjectSignalingIface. 1044s # * 1044s # * On the client-side, this signal is emitted whenever the D-Bus signal "NoArgSignal" is received. 1044s # * 1044s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1044s # */ 1044s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL] = 1044s # g_signal_new ("no-arg-signal", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, no_arg_signal), 1044s # NULL, 1044s # NULL, 1044s # org_project_signaling_iface_signal_marshal_no_arg_signal, 1044s # G_TYPE_NONE, 1044s # 0); 1044s # 1044s # /** 1044s # * OrgProjectSignalingIface::single-arg-signal-b: 1044s # * @object: A #OrgProjectSignalingIface. 1044s # * @arg_an_b: Argument. 1044s # * 1044s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalB" is received. 1044s # * 1044s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1044s # */ 1044s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B] = 1044s # g_signal_new ("single-arg-signal-b", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_b), 1044s # NULL, 1044s # NULL, 1044s # org_project_signaling_iface_signal_marshal_single_arg_signal_b, 1044s # G_TYPE_NONE, 1044s # 1, G_TYPE_BOOLEAN); 1044s # 1044s # /** 1044s # * OrgProjectSignalingIface::single-arg-signal-y: 1044s # * @object: A #OrgProjectSignalingIface. 1044s # * @arg_an_y: Argument. 1044s # * 1044s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalY" is received. 1044s # * 1044s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1044s # */ 1044s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y] = 1044s # g_signal_new ("single-arg-signal-y", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_y), 1044s # NULL, 1044s # NULL, 1044s # org_project_signaling_iface_signal_marshal_single_arg_signal_y, 1044s # G_TYPE_NONE, 1044s # 1, G_TYPE_UCHAR); 1044s # 1044s # /** 1044s # * OrgProjectSignalingIface::single-arg-signal-n: 1044s # * @object: A #OrgProjectSignalingIface. 1044s # * @arg_an_n: Argument. 1044s # * 1044s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalN" is received. 1044s # * 1044s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1044s # */ 1044s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N] = 1044s # g_signal_new ("single-arg-signal-n", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_n), 1044s # NULL, 1044s # NULL, 1044s # org_project_signaling_iface_signal_marshal_single_arg_signal_n, 1044s # G_TYPE_NONE, 1044s # 1, G_TYPE_INT); 1044s # 1044s # /** 1044s # * OrgProjectSignalingIface::single-arg-signal-q: 1044s # * @object: A #OrgProjectSignalingIface. 1044s # * @arg_an_q: Argument. 1044s # * 1044s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalQ" is received. 1044s # * 1044s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1044s # */ 1044s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q] = 1044s # g_signal_new ("single-arg-signal-q", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_q), 1044s # NULL, 1044s # NULL, 1044s # org_project_signaling_iface_signal_marshal_single_arg_signal_q, 1044s # G_TYPE_NONE, 1044s # 1, G_TYPE_UINT); 1044s # 1044s # /** 1044s # * OrgProjectSignalingIface::single-arg-signal-i: 1044s # * @object: A #OrgProjectSignalingIface. 1044s # * @arg_an_i: Argument. 1044s # * 1044s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalI" is received. 1044s # * 1044s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1044s # */ 1044s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I] = 1044s # g_signal_new ("single-arg-signal-i", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_i), 1044s # NULL, 1044s # NULL, 1044s # org_project_signaling_iface_signal_marshal_single_arg_signal_i, 1044s # G_TYPE_NONE, 1044s # 1, G_TYPE_INT); 1044s # 1044s # /** 1044s # * OrgProjectSignalingIface::single-arg-signal-u: 1044s # * @object: A #OrgProjectSignalingIface. 1044s # * @arg_an_u: Argument. 1044s # * 1044s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalU" is received. 1044s # * 1044s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1044s # */ 1044s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U] = 1044s # g_signal_new ("single-arg-signal-u", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_u), 1044s # NULL, 1044s # NULL, 1044s # org_project_signaling_iface_signal_marshal_single_arg_signal_u, 1044s # G_TYPE_NONE, 1044s # 1, G_TYPE_UINT); 1044s # 1044s # /** 1044s # * OrgProjectSignalingIface::single-arg-signal-x: 1044s # * @object: A #OrgProjectSignalingIface. 1044s # * @arg_an_x: Argument. 1044s # * 1044s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalX" is received. 1044s # * 1044s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1044s # */ 1044s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X] = 1044s # g_signal_new ("single-arg-signal-x", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_x), 1044s # NULL, 1044s # NULL, 1044s # org_project_signaling_iface_signal_marshal_single_arg_signal_x, 1044s # G_TYPE_NONE, 1044s # 1, G_TYPE_INT64); 1044s # 1044s # /** 1044s # * OrgProjectSignalingIface::single-arg-signal-t: 1044s # * @object: A #OrgProjectSignalingIface. 1044s # * @arg_an_t: Argument. 1044s # * 1044s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalT" is received. 1044s # * 1044s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1044s # */ 1044s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T] = 1044s # g_signal_new ("single-arg-signal-t", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_t), 1044s # NULL, 1044s # NULL, 1044s # org_project_signaling_iface_signal_marshal_single_arg_signal_t, 1044s # G_TYPE_NONE, 1044s # 1, G_TYPE_UINT64); 1044s # 1044s # /** 1044s # * OrgProjectSignalingIface::single-arg-signal-d: 1044s # * @object: A #OrgProjectSignalingIface. 1044s # * @arg_an_d: Argument. 1044s # * 1044s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalD" is received. 1044s # * 1044s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1044s # */ 1044s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D] = 1044s # g_signal_new ("single-arg-signal-d", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_d), 1044s # NULL, 1044s # NULL, 1044s # org_project_signaling_iface_signal_marshal_single_arg_signal_d, 1044s # G_TYPE_NONE, 1044s # 1, G_TYPE_DOUBLE); 1044s # 1044s # /** 1044s # * OrgProjectSignalingIface::single-arg-signal-s: 1044s # * @object: A #OrgProjectSignalingIface. 1044s # * @arg_an_s: Argument. 1044s # * 1044s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalS" is received. 1044s # * 1044s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1044s # */ 1044s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S] = 1044s # g_signal_new ("single-arg-signal-s", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_s), 1044s # NULL, 1044s # NULL, 1044s # org_project_signaling_iface_signal_marshal_single_arg_signal_s, 1044s # G_TYPE_NONE, 1044s # 1, G_TYPE_STRING); 1044s # 1044s # /** 1044s # * OrgProjectSignalingIface::single-arg-signal-o: 1044s # * @object: A #OrgProjectSignalingIface. 1044s # * @arg_an_o: Argument. 1044s # * 1044s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalO" is received. 1044s # * 1044s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1044s # */ 1044s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O] = 1044s # g_signal_new ("single-arg-signal-o", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_o), 1044s # NULL, 1044s # NULL, 1044s # org_project_signaling_iface_signal_marshal_single_arg_signal_o, 1044s # G_TYPE_NONE, 1044s # 1, G_TYPE_STRING); 1044s # 1044s # /** 1044s # * OrgProjectSignalingIface::single-arg-signal-g: 1044s # * @object: A #OrgProjectSignalingIface. 1044s # * @arg_an_g: Argument. 1044s # * 1044s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalG" is received. 1044s # * 1044s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1044s # */ 1044s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G] = 1044s # g_signal_new ("single-arg-signal-g", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_g), 1044s # NULL, 1044s # NULL, 1044s # org_project_signaling_iface_signal_marshal_single_arg_signal_g, 1044s # G_TYPE_NONE, 1044s # 1, G_TYPE_STRING); 1044s # 1044s # /** 1044s # * OrgProjectSignalingIface::single-arg-signal-h: 1044s # * @object: A #OrgProjectSignalingIface. 1044s # * @arg_an_h: Argument. 1044s # * 1044s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalH" is received. 1044s # * 1044s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1044s # */ 1044s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H] = 1044s # g_signal_new ("single-arg-signal-h", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_h), 1044s # NULL, 1044s # NULL, 1044s # org_project_signaling_iface_signal_marshal_single_arg_signal_h, 1044s # G_TYPE_NONE, 1044s # 1, G_TYPE_VARIANT); 1044s # 1044s # /** 1044s # * OrgProjectSignalingIface::single-arg-signal-ay: 1044s # * @object: A #OrgProjectSignalingIface. 1044s # * @arg_an_ay: Argument. 1044s # * 1044s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAY" is received. 1044s # * 1044s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1044s # */ 1044s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY] = 1044s # g_signal_new ("single-arg-signal-ay", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ay), 1044s # NULL, 1044s # NULL, 1044s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay, 1044s # G_TYPE_NONE, 1044s # 1, G_TYPE_STRING); 1044s # 1044s # /** 1044s # * OrgProjectSignalingIface::single-arg-signal-as: 1044s # * @object: A #OrgProjectSignalingIface. 1044s # * @arg_an_as: Argument. 1044s # * 1044s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAS" is received. 1044s # * 1044s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1044s # */ 1044s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS] = 1044s # g_signal_new ("single-arg-signal-as", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_as), 1044s # NULL, 1044s # NULL, 1044s # org_project_signaling_iface_signal_marshal_single_arg_signal_as, 1044s # G_TYPE_NONE, 1044s # 1, G_TYPE_STRV); 1044s # 1044s # /** 1044s # * OrgProjectSignalingIface::single-arg-signal-ao: 1044s # * @object: A #OrgProjectSignalingIface. 1044s # * @arg_an_ao: Argument. 1044s # * 1044s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAO" is received. 1044s # * 1044s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1044s # */ 1044s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO] = 1044s # g_signal_new ("single-arg-signal-ao", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ao), 1044s # NULL, 1044s # NULL, 1044s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao, 1044s # G_TYPE_NONE, 1044s # 1, G_TYPE_STRV); 1044s # 1044s # /** 1044s # * OrgProjectSignalingIface::single-arg-signal-aay: 1044s # * @object: A #OrgProjectSignalingIface. 1044s # * @arg_an_aay: Argument. 1044s # * 1044s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAAY" is received. 1044s # * 1044s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1044s # */ 1044s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY] = 1044s # g_signal_new ("single-arg-signal-aay", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_aay), 1044s # NULL, 1044s # NULL, 1044s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay, 1044s # G_TYPE_NONE, 1044s # 1, G_TYPE_STRV); 1044s # 1044s # /** 1044s # * OrgProjectSignalingIface::single-arg-signal-asv: 1044s # * @object: A #OrgProjectSignalingIface. 1044s # * @arg_an_asv: Argument. 1044s # * 1044s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalASV" is received. 1044s # * 1044s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1044s # */ 1044s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV] = 1044s # g_signal_new ("single-arg-signal-asv", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_asv), 1044s # NULL, 1044s # NULL, 1044s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv, 1044s # G_TYPE_NONE, 1044s # 1, G_TYPE_VARIANT); 1044s # 1044s # } 1044s # 1044s # /** 1044s # * org_project_signaling_iface_emit_no_arg_signal: 1044s # * @object: A #OrgProjectSignalingIface. 1044s # * 1044s # * Emits the "NoArgSignal" D-Bus signal. 1044s # */ 1044s # void 1044s # org_project_signaling_iface_emit_no_arg_signal ( 1044s # OrgProjectSignalingIface *object) 1044s # { 1044s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL], 0); 1044s # } 1044s # 1044s # /** 1044s # * org_project_signaling_iface_emit_single_arg_signal_b: 1044s # * @object: A #OrgProjectSignalingIface. 1044s # * @arg_an_b: Argument to pass with the signal. 1044s # * 1044s # * Emits the "SingleArgSignalB" D-Bus signal. 1044s # */ 1044s # void 1044s # org_project_signaling_iface_emit_single_arg_signal_b ( 1044s # OrgProjectSignalingIface *object, 1044s # gboolean arg_an_b) 1044s # { 1044s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B], 0, arg_an_b); 1044s # } 1044s # 1044s # /** 1044s # * org_project_signaling_iface_emit_single_arg_signal_y: 1044s # * @object: A #OrgProjectSignalingIface. 1044s # * @arg_an_y: Argument to pass with the signal. 1044s # * 1044s # * Emits the "SingleArgSignalY" D-Bus signal. 1044s # */ 1044s # void 1044s # org_project_signaling_iface_emit_single_arg_signal_y ( 1044s # OrgProjectSignalingIface *object, 1044s # guchar arg_an_y) 1044s # { 1044s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y], 0, arg_an_y); 1044s # } 1044s # 1044s # /** 1044s # * org_project_signaling_iface_emit_single_arg_signal_n: 1044s # * @object: A #OrgProjectSignalingIface. 1044s # * @arg_an_n: Argument to pass with the signal. 1044s # * 1044s # * Emits the "SingleArgSignalN" D-Bus signal. 1044s # */ 1044s # void 1044s # org_project_signaling_iface_emit_single_arg_signal_n ( 1044s # OrgProjectSignalingIface *object, 1044s # gint16 arg_an_n) 1044s # { 1044s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N], 0, arg_an_n); 1044s # } 1044s # 1044s # /** 1044s # * org_project_signaling_iface_emit_single_arg_signal_q: 1044s # * @object: A #OrgProjectSignalingIface. 1044s # * @arg_an_q: Argument to pass with the signal. 1044s # * 1044s # * Emits the "SingleArgSignalQ" D-Bus signal. 1044s # */ 1044s # void 1044s # org_project_signaling_iface_emit_single_arg_signal_q ( 1044s # OrgProjectSignalingIface *object, 1044s # guint16 arg_an_q) 1044s # { 1044s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q], 0, arg_an_q); 1044s # } 1044s # 1044s # /** 1044s # * org_project_signaling_iface_emit_single_arg_signal_i: 1044s # * @object: A #OrgProjectSignalingIface. 1044s # * @arg_an_i: Argument to pass with the signal. 1044s # * 1044s # * Emits the "SingleArgSignalI" D-Bus signal. 1044s # */ 1044s # void 1044s # org_project_signaling_iface_emit_single_arg_signal_i ( 1044s # OrgProjectSignalingIface *object, 1044s # gint arg_an_i) 1044s # { 1044s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I], 0, arg_an_i); 1044s # } 1044s # 1044s # /** 1044s # * org_project_signaling_iface_emit_single_arg_signal_u: 1044s # * @object: A #OrgProjectSignalingIface. 1044s # * @arg_an_u: Argument to pass with the signal. 1044s # * 1044s # * Emits the "SingleArgSignalU" D-Bus signal. 1044s # */ 1044s # void 1044s # org_project_signaling_iface_emit_single_arg_signal_u ( 1044s # OrgProjectSignalingIface *object, 1044s # guint arg_an_u) 1044s # { 1044s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U], 0, arg_an_u); 1044s # } 1044s # 1044s # /** 1044s # * org_project_signaling_iface_emit_single_arg_signal_x: 1044s # * @object: A #OrgProjectSignalingIface. 1044s # * @arg_an_x: Argument to pass with the signal. 1044s # * 1044s # * Emits the "SingleArgSignalX" D-Bus signal. 1044s # */ 1044s # void 1044s # org_project_signaling_iface_emit_single_arg_signal_x ( 1044s # OrgProjectSignalingIface *object, 1044s # gint64 arg_an_x) 1044s # { 1044s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X], 0, arg_an_x); 1044s # } 1044s # 1044s # /** 1044s # * org_project_signaling_iface_emit_single_arg_signal_t: 1044s # * @object: A #OrgProjectSignalingIface. 1044s # * @arg_an_t: Argument to pass with the signal. 1044s # * 1044s # * Emits the "SingleArgSignalT" D-Bus signal. 1044s # */ 1044s # void 1044s # org_project_signaling_iface_emit_single_arg_signal_t ( 1044s # OrgProjectSignalingIface *object, 1044s # guint64 arg_an_t) 1044s # { 1044s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T], 0, arg_an_t); 1044s # } 1044s # 1044s # /** 1044s # * org_project_signaling_iface_emit_single_arg_signal_d: 1044s # * @object: A #OrgProjectSignalingIface. 1044s # * @arg_an_d: Argument to pass with the signal. 1044s # * 1044s # * Emits the "SingleArgSignalD" D-Bus signal. 1044s # */ 1044s # void 1044s # org_project_signaling_iface_emit_single_arg_signal_d ( 1044s # OrgProjectSignalingIface *object, 1044s # gdouble arg_an_d) 1044s # { 1044s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D], 0, arg_an_d); 1044s # } 1044s # 1044s # /** 1044s # * org_project_signaling_iface_emit_single_arg_signal_s: 1044s # * @object: A #OrgProjectSignalingIface. 1044s # * @arg_an_s: Argument to pass with the signal. 1044s # * 1044s # * Emits the "SingleArgSignalS" D-Bus signal. 1044s # */ 1044s # void 1044s # org_project_signaling_iface_emit_single_arg_signal_s ( 1044s # OrgProjectSignalingIface *object, 1044s # const gchar *arg_an_s) 1044s # { 1044s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S], 0, arg_an_s); 1044s # } 1044s # 1044s # /** 1044s # * org_project_signaling_iface_emit_single_arg_signal_o: 1044s # * @object: A #OrgProjectSignalingIface. 1044s # * @arg_an_o: Argument to pass with the signal. 1044s # * 1044s # * Emits the "SingleArgSignalO" D-Bus signal. 1044s # */ 1044s # void 1044s # org_project_signaling_iface_emit_single_arg_signal_o ( 1044s # OrgProjectSignalingIface *object, 1044s # const gchar *arg_an_o) 1044s # { 1044s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O], 0, arg_an_o); 1044s # } 1044s # 1044s # /** 1044s # * org_project_signaling_iface_emit_single_arg_signal_g: 1044s # * @object: A #OrgProjectSignalingIface. 1044s # * @arg_an_g: Argument to pass with the signal. 1044s # * 1044s # * Emits the "SingleArgSignalG" D-Bus signal. 1044s # */ 1044s # void 1044s # org_project_signaling_iface_emit_single_arg_signal_g ( 1044s # OrgProjectSignalingIface *object, 1044s # const gchar *arg_an_g) 1044s # { 1044s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G], 0, arg_an_g); 1044s # } 1044s # 1044s # /** 1044s # * org_project_signaling_iface_emit_single_arg_signal_h: 1044s # * @object: A #OrgProjectSignalingIface. 1044s # * @arg_an_h: Argument to pass with the signal. 1044s # * 1044s # * Emits the "SingleArgSignalH" D-Bus signal. 1044s # */ 1044s # void 1044s # org_project_signaling_iface_emit_single_arg_signal_h ( 1044s # OrgProjectSignalingIface *object, 1044s # GVariant *arg_an_h) 1044s # { 1044s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H], 0, arg_an_h); 1044s # } 1044s # 1044s # /** 1044s # * org_project_signaling_iface_emit_single_arg_signal_ay: 1044s # * @object: A #OrgProjectSignalingIface. 1044s # * @arg_an_ay: Argument to pass with the signal. 1044s # * 1044s # * Emits the "SingleArgSignalAY" D-Bus signal. 1044s # */ 1044s # void 1044s # org_project_signaling_iface_emit_single_arg_signal_ay ( 1044s # OrgProjectSignalingIface *object, 1044s # const gchar *arg_an_ay) 1044s # { 1044s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY], 0, arg_an_ay); 1044s # } 1044s # 1044s # /** 1044s # * org_project_signaling_iface_emit_single_arg_signal_as: 1044s # * @object: A #OrgProjectSignalingIface. 1044s # * @arg_an_as: Argument to pass with the signal. 1044s # * 1044s # * Emits the "SingleArgSignalAS" D-Bus signal. 1044s # */ 1044s # void 1044s # org_project_signaling_iface_emit_single_arg_signal_as ( 1044s # OrgProjectSignalingIface *object, 1044s # const gchar *const *arg_an_as) 1044s # { 1044s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS], 0, arg_an_as); 1044s # } 1044s # 1044s # /** 1044s # * org_project_signaling_iface_emit_single_arg_signal_ao: 1044s # * @object: A #OrgProjectSignalingIface. 1044s # * @arg_an_ao: Argument to pass with the signal. 1044s # * 1044s # * Emits the "SingleArgSignalAO" D-Bus signal. 1044s # */ 1044s # void 1044s # org_project_signaling_iface_emit_single_arg_signal_ao ( 1044s # OrgProjectSignalingIface *object, 1044s # const gchar *const *arg_an_ao) 1044s # { 1044s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO], 0, arg_an_ao); 1044s # } 1044s # 1044s # /** 1044s # * org_project_signaling_iface_emit_single_arg_signal_aay: 1044s # * @object: A #OrgProjectSignalingIface. 1044s # * @arg_an_aay: Argument to pass with the signal. 1044s # * 1044s # * Emits the "SingleArgSignalAAY" D-Bus signal. 1044s # */ 1044s # void 1044s # org_project_signaling_iface_emit_single_arg_signal_aay ( 1044s # OrgProjectSignalingIface *object, 1044s # const gchar *const *arg_an_aay) 1044s # { 1044s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY], 0, arg_an_aay); 1044s # } 1044s # 1044s # /** 1044s # * org_project_signaling_iface_emit_single_arg_signal_asv: 1044s # * @object: A #OrgProjectSignalingIface. 1044s # * @arg_an_asv: Argument to pass with the signal. 1044s # * 1044s # * Emits the "SingleArgSignalASV" D-Bus signal. 1044s # */ 1044s # void 1044s # org_project_signaling_iface_emit_single_arg_signal_asv ( 1044s # OrgProjectSignalingIface *object, 1044s # GVariant *arg_an_asv) 1044s # { 1044s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV], 0, arg_an_asv); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectSignalingIfaceProxy: 1044s # * 1044s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectSignalingIfaceProxyClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectSignalingIfaceProxy. 1044s # */ 1044s # 1044s # struct _OrgProjectSignalingIfaceProxyPrivate 1044s # { 1044s # GData *qdata; 1044s # }; 1044s # 1044s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_signaling_iface_proxy_finalize (GObject *object) 1044s # { 1044s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1044s # g_datalist_clear (&proxy->priv->qdata); 1044s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # const GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1044s # const gchar *sender_name G_GNUC_UNUSED, 1044s # const gchar *signal_name, 1044s # GVariant *parameters) 1044s # { 1044s # _ExtendedGDBusSignalInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # gsize n; 1044s # guint signal_id; 1044s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1044s # if (info == NULL) 1044s # return; 1044s # num_params = g_variant_n_children (parameters); 1044s # paramv = g_new0 (GValue, num_params + 1); 1044s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1044s # g_value_set_object (¶mv[0], proxy); 1044s # g_variant_iter_init (&iter, parameters); 1044s # n = 1; 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1044s # g_signal_emitv (paramv, signal_id, 0, NULL); 1044s # for (n = 0; n < num_params + 1; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static void 1044s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1044s # GVariant *changed_properties, 1044s # const gchar *const *invalidated_properties) 1044s # { 1044s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1044s # guint n; 1044s # const gchar *key; 1044s # GVariantIter *iter; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # g_variant_get (changed_properties, "a{sv}", &iter); 1044s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1044s # g_datalist_remove_data (&proxy->priv->qdata, key); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # g_variant_iter_free (iter); 1044s # for (n = 0; invalidated_properties[n] != NULL; n++) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1044s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # } 1044s # 1044s # static void 1044s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1044s # #else 1044s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1044s # #endif 1044s # 1044s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1044s # } 1044s # 1044s # static void 1044s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusProxyClass *proxy_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1044s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1044s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1044s # 1044s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1044s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1044s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_signaling_iface_proxy_new: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_signaling_iface_proxy_new ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # 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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_signaling_iface_proxy_new_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectSignalingIface * 1044s # org_project_signaling_iface_proxy_new_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_signaling_iface_proxy_new_sync: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectSignalingIface * 1044s # org_project_signaling_iface_proxy_new_sync ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /** 1044s # * org_project_signaling_iface_proxy_new_for_bus: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_signaling_iface_proxy_new_for_bus ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # 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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectSignalingIface * 1044s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectSignalingIface * 1044s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectSignalingIfaceSkeleton: 1044s # * 1044s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectSignalingIfaceSkeletonClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1044s # */ 1044s # 1044s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1044s # { 1044s # GValue *properties; 1044s # GList *changed_properties; 1044s # GSource *changed_properties_idle_source; 1044s # GMainContext *context; 1044s # GMutex lock; 1044s # }; 1044s # 1044s # static void 1044s # _org_project_signaling_iface_skeleton_handle_method_call ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name, 1044s # const gchar *method_name, 1044s # GVariant *parameters, 1044s # GDBusMethodInvocation *invocation, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1044s # _ExtendedGDBusMethodInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # guint num_extra; 1044s # gsize n; 1044s # guint signal_id; 1044s # GValue return_value = G_VALUE_INIT; 1044s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1044s # g_assert (info != NULL); 1044s # num_params = g_variant_n_children (parameters); 1044s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1044s # n = 0; 1044s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1044s # g_value_set_object (¶mv[n++], skeleton); 1044s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1044s # g_value_set_object (¶mv[n++], invocation); 1044s # if (info->pass_fdlist) 1044s # { 1044s # #ifdef G_OS_UNIX 1044s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1044s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1044s # #else 1044s # g_assert_not_reached (); 1044s # #endif 1044s # } 1044s # g_variant_iter_init (&iter, parameters); 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1044s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1044s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1044s # if (!g_value_get_boolean (&return_value)) 1044s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1044s # g_value_unset (&return_value); 1044s # for (n = 0; n < num_params + num_extra; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static GVariant * 1044s # _org_project_signaling_iface_skeleton_handle_get_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # GVariant *ret; 1044s # ret = NULL; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # g_value_init (&value, pspec->value_type); 1044s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1044s # g_value_unset (&value); 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _org_project_signaling_iface_skeleton_handle_set_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GVariant *variant, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # gboolean ret; 1044s # ret = FALSE; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # if (info->use_gvariant) 1044s # g_value_set_variant (&value, variant); 1044s # else 1044s # g_dbus_gvariant_to_gvalue (variant, &value); 1044s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # g_value_unset (&value); 1044s # ret = TRUE; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1044s # { 1044s # _org_project_signaling_iface_skeleton_handle_method_call, 1044s # _org_project_signaling_iface_skeleton_handle_get_property, 1044s # _org_project_signaling_iface_skeleton_handle_set_property, 1044s # {NULL} 1044s # }; 1044s # 1044s # static GDBusInterfaceInfo * 1044s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return org_project_signaling_iface_interface_info (); 1044s # } 1044s # 1044s # static GDBusInterfaceVTable * 1044s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1044s # } 1044s # 1044s # static GVariant * 1044s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1044s # { 1044s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1044s # 1044s # GVariantBuilder builder; 1044s # guint n; 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1044s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #else 1044s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #endif 1044s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1044s # goto out; 1044s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1044s # { 1044s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1044s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1044s # { 1044s # GVariant *value; 1044s # 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); 1044s # if (value != NULL) 1044s # { 1044s # g_variant_take_ref (value); 1044s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1044s # g_variant_unref (value); 1044s # } 1044s # } 1044s # } 1044s # out: 1044s # return g_variant_builder_end (&builder); 1044s # } 1044s # 1044s # static void 1044s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # _org_project_signaling_iface_on_signal_no_arg_signal ( 1044s # OrgProjectSignalingIface *object) 1044s # { 1044s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1044s # 1044s # GList *connections, *l; 1044s # GVariant *signal_variant; 1044s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1044s # 1044s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1044s # for (l = connections; l != NULL; l = l->next) 1044s # { 1044s # GDBusConnection *connection = l->data; 1044s # g_dbus_connection_emit_signal (connection, 1044s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "NoArgSignal", 1044s # signal_variant, NULL); 1044s # } 1044s # g_variant_unref (signal_variant); 1044s # g_list_free_full (connections, g_object_unref); 1044s # } 1044s # 1044s # static void 1044s # _org_project_signaling_iface_on_signal_single_arg_signal_b ( 1044s # OrgProjectSignalingIface *object, 1044s # gboolean arg_an_b) 1044s # { 1044s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1044s # 1044s # GList *connections, *l; 1044s # GVariant *signal_variant; 1044s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1044s # 1044s # signal_variant = g_variant_ref_sink (g_variant_new ("(b)", 1044s # arg_an_b)); 1044s # for (l = connections; l != NULL; l = l->next) 1044s # { 1044s # GDBusConnection *connection = l->data; 1044s # g_dbus_connection_emit_signal (connection, 1044s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalB", 1044s # signal_variant, NULL); 1044s # } 1044s # g_variant_unref (signal_variant); 1044s # g_list_free_full (connections, g_object_unref); 1044s # } 1044s # 1044s # static void 1044s # _org_project_signaling_iface_on_signal_single_arg_signal_y ( 1044s # OrgProjectSignalingIface *object, 1044s # guchar arg_an_y) 1044s # { 1044s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1044s # 1044s # GList *connections, *l; 1044s # GVariant *signal_variant; 1044s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1044s # 1044s # signal_variant = g_variant_ref_sink (g_variant_new ("(y)", 1044s # arg_an_y)); 1044s # for (l = connections; l != NULL; l = l->next) 1044s # { 1044s # GDBusConnection *connection = l->data; 1044s # g_dbus_connection_emit_signal (connection, 1044s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalY", 1044s # signal_variant, NULL); 1044s # } 1044s # g_variant_unref (signal_variant); 1044s # g_list_free_full (connections, g_object_unref); 1044s # } 1044s # 1044s # static void 1044s # _org_project_signaling_iface_on_signal_single_arg_signal_n ( 1044s # OrgProjectSignalingIface *object, 1044s # gint16 arg_an_n) 1044s # { 1044s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1044s # 1044s # GList *connections, *l; 1044s # GVariant *signal_variant; 1044s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1044s # 1044s # signal_variant = g_variant_ref_sink (g_variant_new ("(n)", 1044s # arg_an_n)); 1044s # for (l = connections; l != NULL; l = l->next) 1044s # { 1044s # GDBusConnection *connection = l->data; 1044s # g_dbus_connection_emit_signal (connection, 1044s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalN", 1044s # signal_variant, NULL); 1044s # } 1044s # g_variant_unref (signal_variant); 1044s # g_list_free_full (connections, g_object_unref); 1044s # } 1044s # 1044s # static void 1044s # _org_project_signaling_iface_on_signal_single_arg_signal_q ( 1044s # OrgProjectSignalingIface *object, 1044s # guint16 arg_an_q) 1044s # { 1044s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1044s # 1044s # GList *connections, *l; 1044s # GVariant *signal_variant; 1044s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1044s # 1044s # signal_variant = g_variant_ref_sink (g_variant_new ("(q)", 1044s # arg_an_q)); 1044s # for (l = connections; l != NULL; l = l->next) 1044s # { 1044s # GDBusConnection *connection = l->data; 1044s # g_dbus_connection_emit_signal (connection, 1044s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalQ", 1044s # signal_variant, NULL); 1044s # } 1044s # g_variant_unref (signal_variant); 1044s # g_list_free_full (connections, g_object_unref); 1044s # } 1044s # 1044s # static void 1044s # _org_project_signaling_iface_on_signal_single_arg_signal_i ( 1044s # OrgProjectSignalingIface *object, 1044s # gint arg_an_i) 1044s # { 1044s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1044s # 1044s # GList *connections, *l; 1044s # GVariant *signal_variant; 1044s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1044s # 1044s # signal_variant = g_variant_ref_sink (g_variant_new ("(i)", 1044s # arg_an_i)); 1044s # for (l = connections; l != NULL; l = l->next) 1044s # { 1044s # GDBusConnection *connection = l->data; 1044s # g_dbus_connection_emit_signal (connection, 1044s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalI", 1044s # signal_variant, NULL); 1044s # } 1044s # g_variant_unref (signal_variant); 1044s # g_list_free_full (connections, g_object_unref); 1044s # } 1044s # 1044s # static void 1044s # _org_project_signaling_iface_on_signal_single_arg_signal_u ( 1044s # OrgProjectSignalingIface *object, 1044s # guint arg_an_u) 1044s # { 1044s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1044s # 1044s # GList *connections, *l; 1044s # GVariant *signal_variant; 1044s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1044s # 1044s # signal_variant = g_variant_ref_sink (g_variant_new ("(u)", 1044s # arg_an_u)); 1044s # for (l = connections; l != NULL; l = l->next) 1044s # { 1044s # GDBusConnection *connection = l->data; 1044s # g_dbus_connection_emit_signal (connection, 1044s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalU", 1044s # signal_variant, NULL); 1044s # } 1044s # g_variant_unref (signal_variant); 1044s # g_list_free_full (connections, g_object_unref); 1044s # } 1044s # 1044s # static void 1044s # _org_project_signaling_iface_on_signal_single_arg_signal_x ( 1044s # OrgProjectSignalingIface *object, 1044s # gint64 arg_an_x) 1044s # { 1044s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1044s # 1044s # GList *connections, *l; 1044s # GVariant *signal_variant; 1044s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1044s # 1044s # signal_variant = g_variant_ref_sink (g_variant_new ("(x)", 1044s # arg_an_x)); 1044s # for (l = connections; l != NULL; l = l->next) 1044s # { 1044s # GDBusConnection *connection = l->data; 1044s # g_dbus_connection_emit_signal (connection, 1044s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalX", 1044s # signal_variant, NULL); 1044s # } 1044s # g_variant_unref (signal_variant); 1044s # g_list_free_full (connections, g_object_unref); 1044s # } 1044s # 1044s # static void 1044s # _org_project_signaling_iface_on_signal_single_arg_signal_t ( 1044s # OrgProjectSignalingIface *object, 1044s # guint64 arg_an_t) 1044s # { 1044s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1044s # 1044s # GList *connections, *l; 1044s # GVariant *signal_variant; 1044s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1044s # 1044s # signal_variant = g_variant_ref_sink (g_variant_new ("(t)", 1044s # arg_an_t)); 1044s # for (l = connections; l != NULL; l = l->next) 1044s # { 1044s # GDBusConnection *connection = l->data; 1044s # g_dbus_connection_emit_signal (connection, 1044s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalT", 1044s # signal_variant, NULL); 1044s # } 1044s # g_variant_unref (signal_variant); 1044s # g_list_free_full (connections, g_object_unref); 1044s # } 1044s # 1044s # static void 1044s # _org_project_signaling_iface_on_signal_single_arg_signal_d ( 1044s # OrgProjectSignalingIface *object, 1044s # gdouble arg_an_d) 1044s # { 1044s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1044s # 1044s # GList *connections, *l; 1044s # GVariant *signal_variant; 1044s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1044s # 1044s # signal_variant = g_variant_ref_sink (g_variant_new ("(d)", 1044s # arg_an_d)); 1044s # for (l = connections; l != NULL; l = l->next) 1044s # { 1044s # GDBusConnection *connection = l->data; 1044s # g_dbus_connection_emit_signal (connection, 1044s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalD", 1044s # signal_variant, NULL); 1044s # } 1044s # g_variant_unref (signal_variant); 1044s # g_list_free_full (connections, g_object_unref); 1044s # } 1044s # 1044s # static void 1044s # _org_project_signaling_iface_on_signal_single_arg_signal_s ( 1044s # OrgProjectSignalingIface *object, 1044s # const gchar *arg_an_s) 1044s # { 1044s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1044s # 1044s # GList *connections, *l; 1044s # GVariant *signal_variant; 1044s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1044s # 1044s # signal_variant = g_variant_ref_sink (g_variant_new ("(s)", 1044s # arg_an_s)); 1044s # for (l = connections; l != NULL; l = l->next) 1044s # { 1044s # GDBusConnection *connection = l->data; 1044s # g_dbus_connection_emit_signal (connection, 1044s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalS", 1044s # signal_variant, NULL); 1044s # } 1044s # g_variant_unref (signal_variant); 1044s # g_list_free_full (connections, g_object_unref); 1044s # } 1044s # 1044s # static void 1044s # _org_project_signaling_iface_on_signal_single_arg_signal_o ( 1044s # OrgProjectSignalingIface *object, 1044s # const gchar *arg_an_o) 1044s # { 1044s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1044s # 1044s # GList *connections, *l; 1044s # GVariant *signal_variant; 1044s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1044s # 1044s # signal_variant = g_variant_ref_sink (g_variant_new ("(o)", 1044s # arg_an_o)); 1044s # for (l = connections; l != NULL; l = l->next) 1044s # { 1044s # GDBusConnection *connection = l->data; 1044s # g_dbus_connection_emit_signal (connection, 1044s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalO", 1044s # signal_variant, NULL); 1044s # } 1044s # g_variant_unref (signal_variant); 1044s # g_list_free_full (connections, g_object_unref); 1044s # } 1044s # 1044s # static void 1044s # _org_project_signaling_iface_on_signal_single_arg_signal_g ( 1044s # OrgProjectSignalingIface *object, 1044s # const gchar *arg_an_g) 1044s # { 1044s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1044s # 1044s # GList *connections, *l; 1044s # GVariant *signal_variant; 1044s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1044s # 1044s # signal_variant = g_variant_ref_sink (g_variant_new ("(g)", 1044s # arg_an_g)); 1044s # for (l = connections; l != NULL; l = l->next) 1044s # { 1044s # GDBusConnection *connection = l->data; 1044s # g_dbus_connection_emit_signal (connection, 1044s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalG", 1044s # signal_variant, NULL); 1044s # } 1044s # g_variant_unref (signal_variant); 1044s # g_list_free_full (connections, g_object_unref); 1044s # } 1044s # 1044s # static void 1044s # _org_project_signaling_iface_on_signal_single_arg_signal_h ( 1044s # OrgProjectSignalingIface *object, 1044s # GVariant *arg_an_h) 1044s # { 1044s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1044s # 1044s # GList *connections, *l; 1044s # GVariant *signal_variant; 1044s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1044s # 1044s # signal_variant = g_variant_ref_sink (g_variant_new ("(@h)", 1044s # arg_an_h)); 1044s # for (l = connections; l != NULL; l = l->next) 1044s # { 1044s # GDBusConnection *connection = l->data; 1044s # g_dbus_connection_emit_signal (connection, 1044s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalH", 1044s # signal_variant, NULL); 1044s # } 1044s # g_variant_unref (signal_variant); 1044s # g_list_free_full (connections, g_object_unref); 1044s # } 1044s # 1044s # static void 1044s # _org_project_signaling_iface_on_signal_single_arg_signal_ay ( 1044s # OrgProjectSignalingIface *object, 1044s # const gchar *arg_an_ay) 1044s # { 1044s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1044s # 1044s # GList *connections, *l; 1044s # GVariant *signal_variant; 1044s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1044s # 1044s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ay)", 1044s # arg_an_ay)); 1044s # for (l = connections; l != NULL; l = l->next) 1044s # { 1044s # GDBusConnection *connection = l->data; 1044s # g_dbus_connection_emit_signal (connection, 1044s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAY", 1044s # signal_variant, NULL); 1044s # } 1044s # g_variant_unref (signal_variant); 1044s # g_list_free_full (connections, g_object_unref); 1044s # } 1044s # 1044s # static void 1044s # _org_project_signaling_iface_on_signal_single_arg_signal_as ( 1044s # OrgProjectSignalingIface *object, 1044s # const gchar *const *arg_an_as) 1044s # { 1044s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1044s # 1044s # GList *connections, *l; 1044s # GVariant *signal_variant; 1044s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1044s # 1044s # signal_variant = g_variant_ref_sink (g_variant_new ("(^as)", 1044s # arg_an_as)); 1044s # for (l = connections; l != NULL; l = l->next) 1044s # { 1044s # GDBusConnection *connection = l->data; 1044s # g_dbus_connection_emit_signal (connection, 1044s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAS", 1044s # signal_variant, NULL); 1044s # } 1044s # g_variant_unref (signal_variant); 1044s # g_list_free_full (connections, g_object_unref); 1044s # } 1044s # 1044s # static void 1044s # _org_project_signaling_iface_on_signal_single_arg_signal_ao ( 1044s # OrgProjectSignalingIface *object, 1044s # const gchar *const *arg_an_ao) 1044s # { 1044s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1044s # 1044s # GList *connections, *l; 1044s # GVariant *signal_variant; 1044s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1044s # 1044s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ao)", 1044s # arg_an_ao)); 1044s # for (l = connections; l != NULL; l = l->next) 1044s # { 1044s # GDBusConnection *connection = l->data; 1044s # g_dbus_connection_emit_signal (connection, 1044s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAO", 1044s # signal_variant, NULL); 1044s # } 1044s # g_variant_unref (signal_variant); 1044s # g_list_free_full (connections, g_object_unref); 1044s # } 1044s # 1044s # static void 1044s # _org_project_signaling_iface_on_signal_single_arg_signal_aay ( 1044s # OrgProjectSignalingIface *object, 1044s # const gchar *const *arg_an_aay) 1044s # { 1044s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1044s # 1044s # GList *connections, *l; 1044s # GVariant *signal_variant; 1044s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1044s # 1044s # signal_variant = g_variant_ref_sink (g_variant_new ("(^aay)", 1044s # arg_an_aay)); 1044s # for (l = connections; l != NULL; l = l->next) 1044s # { 1044s # GDBusConnection *connection = l->data; 1044s # g_dbus_connection_emit_signal (connection, 1044s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAAY", 1044s # signal_variant, NULL); 1044s # } 1044s # g_variant_unref (signal_variant); 1044s # g_list_free_full (connections, g_object_unref); 1044s # } 1044s # 1044s # static void 1044s # _org_project_signaling_iface_on_signal_single_arg_signal_asv ( 1044s # OrgProjectSignalingIface *object, 1044s # GVariant *arg_an_asv) 1044s # { 1044s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1044s # 1044s # GList *connections, *l; 1044s # GVariant *signal_variant; 1044s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1044s # 1044s # signal_variant = g_variant_ref_sink (g_variant_new ("(@a{sv})", 1044s # arg_an_asv)); 1044s # for (l = connections; l != NULL; l = l->next) 1044s # { 1044s # GDBusConnection *connection = l->data; 1044s # g_dbus_connection_emit_signal (connection, 1044s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalASV", 1044s # signal_variant, NULL); 1044s # } 1044s # g_variant_unref (signal_variant); 1044s # g_list_free_full (connections, g_object_unref); 1044s # } 1044s # 1044s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1044s # { 1044s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1044s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1044s # if (skeleton->priv->changed_properties_idle_source != NULL) 1044s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1044s # g_main_context_unref (skeleton->priv->context); 1044s # g_mutex_clear (&skeleton->priv->lock); 1044s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1044s # #else 1044s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1044s # #endif 1044s # 1044s # g_mutex_init (&skeleton->priv->lock); 1044s # skeleton->priv->context = g_main_context_ref_thread_default (); 1044s # } 1044s # 1044s # static void 1044s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusInterfaceSkeletonClass *skeleton_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1044s # 1044s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1044s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1044s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1044s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1044s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1044s # { 1044s # iface->no_arg_signal = _org_project_signaling_iface_on_signal_no_arg_signal; 1044s # iface->single_arg_signal_b = _org_project_signaling_iface_on_signal_single_arg_signal_b; 1044s # iface->single_arg_signal_y = _org_project_signaling_iface_on_signal_single_arg_signal_y; 1044s # iface->single_arg_signal_n = _org_project_signaling_iface_on_signal_single_arg_signal_n; 1044s # iface->single_arg_signal_q = _org_project_signaling_iface_on_signal_single_arg_signal_q; 1044s # iface->single_arg_signal_i = _org_project_signaling_iface_on_signal_single_arg_signal_i; 1044s # iface->single_arg_signal_u = _org_project_signaling_iface_on_signal_single_arg_signal_u; 1044s # iface->single_arg_signal_x = _org_project_signaling_iface_on_signal_single_arg_signal_x; 1044s # iface->single_arg_signal_t = _org_project_signaling_iface_on_signal_single_arg_signal_t; 1044s # iface->single_arg_signal_d = _org_project_signaling_iface_on_signal_single_arg_signal_d; 1044s # iface->single_arg_signal_s = _org_project_signaling_iface_on_signal_single_arg_signal_s; 1044s # iface->single_arg_signal_o = _org_project_signaling_iface_on_signal_single_arg_signal_o; 1044s # iface->single_arg_signal_g = _org_project_signaling_iface_on_signal_single_arg_signal_g; 1044s # iface->single_arg_signal_h = _org_project_signaling_iface_on_signal_single_arg_signal_h; 1044s # iface->single_arg_signal_ay = _org_project_signaling_iface_on_signal_single_arg_signal_ay; 1044s # iface->single_arg_signal_as = _org_project_signaling_iface_on_signal_single_arg_signal_as; 1044s # iface->single_arg_signal_ao = _org_project_signaling_iface_on_signal_single_arg_signal_ao; 1044s # iface->single_arg_signal_aay = _org_project_signaling_iface_on_signal_single_arg_signal_aay; 1044s # iface->single_arg_signal_asv = _org_project_signaling_iface_on_signal_single_arg_signal_asv; 1044s # } 1044s # 1044s # /** 1044s # * org_project_signaling_iface_skeleton_new: 1044s # * 1044s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1044s # */ 1044s # OrgProjectSignalingIface * 1044s # org_project_signaling_iface_skeleton_new (void) 1044s # { 1044s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1044s # } 1044s # Error: 1044s ok 21 __main__.TestCodegen.test_generate_signal_id_simple_signal 1044s # gdbus-codegen: /usr/bin/gdbus-codegen 1044s # tmpdir: /tmp/tmpdlqn87jg 1044s # /tmp/tmpdlqn87jg/tmprdrp0xnx.xml: 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpdlqn87jg/tmprdrp0xnx.xml', '--output', '-', '--body'] 1044s # Return code: 0 1044s # Output: 1044s # /* 1044s # * This file is generated by gdbus-codegen, do not modify it. 1044s # * 1044s # * The license of this code is the same as for the D-Bus interface description 1044s # * it was derived from. Note that it links to GLib, so must comply with the 1044s # * LGPL linking clauses. 1044s # */ 1044s # 1044s # #ifdef HAVE_CONFIG_H 1044s # # include "config.h" 1044s # #endif 1044s # 1044s # #include 1044s # #ifdef G_OS_UNIX 1044s # # include 1044s # #endif 1044s # 1044s # #ifdef G_ENABLE_DEBUG 1044s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1044s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1044s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1044s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1044s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1044s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1044s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1044s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1044s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1044s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1044s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1044s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1044s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1044s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1044s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1044s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1044s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1044s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1044s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1044s # #else /* !G_ENABLE_DEBUG */ 1044s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1044s # * Do not access GValues directly in your code. Instead, use the 1044s # * g_value_get_*() functions 1044s # */ 1044s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1044s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1044s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1044s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1044s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1044s # #endif /* !G_ENABLE_DEBUG */ 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusArgInfo parent_struct; 1044s # gboolean use_gvariant; 1044s # } _ExtendedGDBusArgInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusMethodInfo parent_struct; 1044s # const gchar *signal_name; 1044s # gboolean pass_fdlist; 1044s # } _ExtendedGDBusMethodInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusSignalInfo parent_struct; 1044s # const gchar *signal_name; 1044s # } _ExtendedGDBusSignalInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusPropertyInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # guint use_gvariant : 1; 1044s # guint emits_changed_signal : 1; 1044s # } _ExtendedGDBusPropertyInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusInterfaceInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # } _ExtendedGDBusInterfaceInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # const _ExtendedGDBusPropertyInfo *info; 1044s # guint prop_id; 1044s # GValue orig_value; /* the value before the change */ 1044s # } ChangedProperty; 1044s # 1044s # static void 1044s # _changed_property_free (ChangedProperty *data) 1044s # { 1044s # g_value_unset (&data->orig_value); 1044s # g_free (data); 1044s # } 1044s # 1044s # static gboolean 1044s # _g_strv_equal0 (gchar **a, gchar **b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # guint n; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # if (g_strv_length (a) != g_strv_length (b)) 1044s # goto out; 1044s # for (n = 0; a[n] != NULL; n++) 1044s # if (g_strcmp0 (a[n], b[n]) != 0) 1044s # goto out; 1044s # ret = TRUE; 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _g_variant_equal0 (GVariant *a, GVariant *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # ret = g_variant_equal (a, b); 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # G_GNUC_UNUSED static gboolean 1044s # _g_value_equal (const GValue *a, const GValue *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1044s # switch (G_VALUE_TYPE (a)) 1044s # { 1044s # case G_TYPE_BOOLEAN: 1044s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1044s # break; 1044s # case G_TYPE_UCHAR: 1044s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1044s # break; 1044s # case G_TYPE_INT: 1044s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1044s # break; 1044s # case G_TYPE_UINT: 1044s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1044s # break; 1044s # case G_TYPE_INT64: 1044s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1044s # break; 1044s # case G_TYPE_UINT64: 1044s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1044s # break; 1044s # case G_TYPE_DOUBLE: 1044s # { 1044s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1044s # gdouble da = g_value_get_double (a); 1044s # gdouble db = g_value_get_double (b); 1044s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1044s # } 1044s # break; 1044s # case G_TYPE_STRING: 1044s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1044s # break; 1044s # case G_TYPE_VARIANT: 1044s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1044s # break; 1044s # default: 1044s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1044s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1044s # else 1044s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1044s # break; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ 1044s # * Code for interface org.project.UsefulInterface 1044s # * ------------------------------------------------------------------------ 1044s # */ 1044s # 1044s # /** 1044s # * SECTION:OrgProjectUsefulInterface 1044s # * @title: OrgProjectUsefulInterface 1044s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1044s # * 1044s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1044s # */ 1044s # 1044s # enum 1044s # { 1044s # _ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL, 1044s # }; 1044s # 1044s # static unsigned _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[1] = { 0 }; 1044s # 1044s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1044s # 1044s # static const _ExtendedGDBusSignalInfo _org_project_useful_interface_signal_info_simple_signal = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "SimpleSignal", 1044s # NULL, 1044s # NULL 1044s # }, 1044s # "simple-signal" 1044s # }; 1044s # 1044s # static const GDBusSignalInfo * const _org_project_useful_interface_signal_info_pointers[] = 1044s # { 1044s # &_org_project_useful_interface_signal_info_simple_signal.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "org.project.UsefulInterface", 1044s # NULL, 1044s # (GDBusSignalInfo **) &_org_project_useful_interface_signal_info_pointers, 1044s # NULL, 1044s # NULL 1044s # }, 1044s # "org-project-useful-interface", 1044s # }; 1044s # 1044s # 1044s # /** 1044s # * org_project_useful_interface_interface_info: 1044s # * 1044s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1044s # * 1044s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1044s # */ 1044s # GDBusInterfaceInfo * 1044s # org_project_useful_interface_interface_info (void) 1044s # { 1044s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_override_properties: 1044s # * @klass: The class structure for a #GObject derived class. 1044s # * @property_id_begin: The property id to assign to the first overridden property. 1044s # * 1044s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1044s # * The properties are overridden in the order they are defined. 1044s # * 1044s # * Returns: The last property id. 1044s # */ 1044s # guint 1044s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1044s # { 1044s # return property_id_begin - 1; 1044s # } 1044s # 1044s # 1044s # inline static void 1044s # org_project_useful_interface_signal_marshal_simple_signal ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # g_cclosure_marshal_VOID__VOID (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterface: 1044s # * 1044s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceIface: 1044s # * @parent_iface: The parent interface. 1044s # * @simple_signal: Handler for the #OrgProjectUsefulInterface::simple-signal signal. 1044s # * 1044s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1044s # */ 1044s # 1044s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1044s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1044s # 1044s # static void 1044s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1044s # { 1044s # /* GObject signals for received D-Bus signals: */ 1044s # /** 1044s # * OrgProjectUsefulInterface::simple-signal: 1044s # * @object: A #OrgProjectUsefulInterface. 1044s # * 1044s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1044s # * 1044s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1044s # */ 1044s # _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[_ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL] = 1044s # g_signal_new ("simple-signal", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, simple_signal), 1044s # NULL, 1044s # NULL, 1044s # org_project_useful_interface_signal_marshal_simple_signal, 1044s # G_TYPE_NONE, 1044s # 0); 1044s # 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_emit_simple_signal: 1044s # * @object: A #OrgProjectUsefulInterface. 1044s # * 1044s # * Emits the "SimpleSignal" D-Bus signal. 1044s # */ 1044s # void 1044s # org_project_useful_interface_emit_simple_signal ( 1044s # OrgProjectUsefulInterface *object) 1044s # { 1044s # g_signal_emit (object, _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[_ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL], 0); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceProxy: 1044s # * 1044s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceProxyClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1044s # */ 1044s # 1044s # struct _OrgProjectUsefulInterfaceProxyPrivate 1044s # { 1044s # GData *qdata; 1044s # }; 1044s # 1044s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_useful_interface_proxy_finalize (GObject *object) 1044s # { 1044s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1044s # g_datalist_clear (&proxy->priv->qdata); 1044s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # const GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1044s # const gchar *sender_name G_GNUC_UNUSED, 1044s # const gchar *signal_name, 1044s # GVariant *parameters) 1044s # { 1044s # _ExtendedGDBusSignalInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # gsize n; 1044s # guint signal_id; 1044s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1044s # if (info == NULL) 1044s # return; 1044s # num_params = g_variant_n_children (parameters); 1044s # paramv = g_new0 (GValue, num_params + 1); 1044s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_set_object (¶mv[0], proxy); 1044s # g_variant_iter_init (&iter, parameters); 1044s # n = 1; 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_signal_emitv (paramv, signal_id, 0, NULL); 1044s # for (n = 0; n < num_params + 1; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1044s # GVariant *changed_properties, 1044s # const gchar *const *invalidated_properties) 1044s # { 1044s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1044s # guint n; 1044s # const gchar *key; 1044s # GVariantIter *iter; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # g_variant_get (changed_properties, "a{sv}", &iter); 1044s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1044s # g_datalist_remove_data (&proxy->priv->qdata, key); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # g_variant_iter_free (iter); 1044s # for (n = 0; invalidated_properties[n] != NULL; n++) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1044s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1044s # #else 1044s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1044s # #endif 1044s # 1044s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusProxyClass *proxy_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1044s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1044s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1044s # 1044s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1044s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1044s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_useful_interface_proxy_new ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_sync: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_sync ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_useful_interface_proxy_new_for_bus ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # g_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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_for_bus_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_proxy_new_for_bus_sync: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_proxy_new_for_bus_sync ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceSkeleton: 1044s # * 1044s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectUsefulInterfaceSkeletonClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1044s # */ 1044s # 1044s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1044s # { 1044s # GValue *properties; 1044s # GList *changed_properties; 1044s # GSource *changed_properties_idle_source; 1044s # GMainContext *context; 1044s # GMutex lock; 1044s # }; 1044s # 1044s # static void 1044s # _org_project_useful_interface_skeleton_handle_method_call ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name, 1044s # const gchar *method_name, 1044s # GVariant *parameters, 1044s # GDBusMethodInvocation *invocation, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # _ExtendedGDBusMethodInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # guint num_extra; 1044s # gsize n; 1044s # guint signal_id; 1044s # GValue return_value = G_VALUE_INIT; 1044s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1044s # g_assert (info != NULL); 1044s # num_params = g_variant_n_children (parameters); 1044s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1044s # n = 0; 1044s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_set_object (¶mv[n++], skeleton); 1044s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1044s # g_value_set_object (¶mv[n++], invocation); 1044s # if (info->pass_fdlist) 1044s # { 1044s # #ifdef G_OS_UNIX 1044s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1044s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1044s # #else 1044s # g_assert_not_reached (); 1044s # #endif 1044s # } 1044s # g_variant_iter_init (&iter, parameters); 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1044s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1044s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1044s # if (!g_value_get_boolean (&return_value)) 1044s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1044s # g_value_unset (&return_value); 1044s # for (n = 0; n < num_params + num_extra; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static GVariant * 1044s # _org_project_useful_interface_skeleton_handle_get_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # GVariant *ret; 1044s # ret = NULL; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # g_value_init (&value, pspec->value_type); 1044s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1044s # g_value_unset (&value); 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _org_project_useful_interface_skeleton_handle_set_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GVariant *variant, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # gboolean ret; 1044s # ret = FALSE; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # if (info->use_gvariant) 1044s # g_value_set_variant (&value, variant); 1044s # else 1044s # g_dbus_gvariant_to_gvalue (variant, &value); 1044s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # g_value_unset (&value); 1044s # ret = TRUE; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1044s # { 1044s # _org_project_useful_interface_skeleton_handle_method_call, 1044s # _org_project_useful_interface_skeleton_handle_get_property, 1044s # _org_project_useful_interface_skeleton_handle_set_property, 1044s # {NULL} 1044s # }; 1044s # 1044s # static GDBusInterfaceInfo * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return org_project_useful_interface_interface_info (); 1044s # } 1044s # 1044s # static GDBusInterfaceVTable * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1044s # } 1044s # 1044s # static GVariant * 1044s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1044s # 1044s # GVariantBuilder builder; 1044s # guint n; 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1044s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #else 1044s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #endif 1044s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1044s # goto out; 1044s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1044s # { 1044s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1044s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1044s # { 1044s # GVariant *value; 1044s # 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); 1044s # if (value != NULL) 1044s # { 1044s # g_variant_take_ref (value); 1044s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1044s # g_variant_unref (value); 1044s # } 1044s # } 1044s # } 1044s # out: 1044s # return g_variant_builder_end (&builder); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # _org_project_useful_interface_on_signal_simple_signal ( 1044s # OrgProjectUsefulInterface *object) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1044s # 1044s # GList *connections, *l; 1044s # GVariant *signal_variant; 1044s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1044s # 1044s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1044s # for (l = connections; l != NULL; l = l->next) 1044s # { 1044s # GDBusConnection *connection = l->data; 1044s # g_dbus_connection_emit_signal (connection, 1044s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", "SimpleSignal", 1044s # signal_variant, NULL); 1044s # } 1044s # g_variant_unref (signal_variant); 1044s # g_list_free_full (connections, g_object_unref); 1044s # } 1044s # 1044s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_useful_interface_skeleton_finalize (GObject *object) 1044s # { 1044s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1044s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1044s # if (skeleton->priv->changed_properties_idle_source != NULL) 1044s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1044s # g_main_context_unref (skeleton->priv->context); 1044s # g_mutex_clear (&skeleton->priv->lock); 1044s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1044s # #else 1044s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1044s # #endif 1044s # 1044s # g_mutex_init (&skeleton->priv->lock); 1044s # skeleton->priv->context = g_main_context_ref_thread_default (); 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusInterfaceSkeletonClass *skeleton_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1044s # 1044s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1044s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1044s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1044s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1044s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface) 1044s # { 1044s # iface->simple_signal = _org_project_useful_interface_on_signal_simple_signal; 1044s # } 1044s # 1044s # /** 1044s # * org_project_useful_interface_skeleton_new: 1044s # * 1044s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1044s # */ 1044s # OrgProjectUsefulInterface * 1044s # org_project_useful_interface_skeleton_new (void) 1044s # { 1044s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ 1044s # * Code for interface org.project.OtherIface 1044s # * ------------------------------------------------------------------------ 1044s # */ 1044s # 1044s # /** 1044s # * SECTION:OrgProjectOtherIface 1044s # * @title: OrgProjectOtherIface 1044s # * @short_description: Generated C code for the org.project.OtherIface D-Bus interface 1044s # * 1044s # * This section contains code for working with the org.project.OtherIface D-Bus interface in C. 1044s # */ 1044s # 1044s # enum 1044s # { 1044s # _ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL, 1044s # }; 1044s # 1044s # static unsigned _ORG_PROJECT_OTHER_IFACE_SIGNALS[1] = { 0 }; 1044s # 1044s # /* ---- Introspection data for org.project.OtherIface ---- */ 1044s # 1044s # static const _ExtendedGDBusSignalInfo _org_project_other_iface_signal_info_simple_signal = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "SimpleSignal", 1044s # NULL, 1044s # NULL 1044s # }, 1044s # "simple-signal" 1044s # }; 1044s # 1044s # static const GDBusSignalInfo * const _org_project_other_iface_signal_info_pointers[] = 1044s # { 1044s # &_org_project_other_iface_signal_info_simple_signal.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusInterfaceInfo _org_project_other_iface_interface_info = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "org.project.OtherIface", 1044s # NULL, 1044s # (GDBusSignalInfo **) &_org_project_other_iface_signal_info_pointers, 1044s # NULL, 1044s # NULL 1044s # }, 1044s # "org-project-other-iface", 1044s # }; 1044s # 1044s # 1044s # /** 1044s # * org_project_other_iface_interface_info: 1044s # * 1044s # * Gets a machine-readable description of the org.project.OtherIface D-Bus interface. 1044s # * 1044s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1044s # */ 1044s # GDBusInterfaceInfo * 1044s # org_project_other_iface_interface_info (void) 1044s # { 1044s # return (GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct; 1044s # } 1044s # 1044s # /** 1044s # * org_project_other_iface_override_properties: 1044s # * @klass: The class structure for a #GObject derived class. 1044s # * @property_id_begin: The property id to assign to the first overridden property. 1044s # * 1044s # * Overrides all #GObject properties in the #OrgProjectOtherIface interface for a concrete class. 1044s # * The properties are overridden in the order they are defined. 1044s # * 1044s # * Returns: The last property id. 1044s # */ 1044s # guint 1044s # org_project_other_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1044s # { 1044s # return property_id_begin - 1; 1044s # } 1044s # 1044s # 1044s # inline static void 1044s # org_project_other_iface_signal_marshal_simple_signal ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # g_cclosure_marshal_VOID__VOID (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # 1044s # /** 1044s # * OrgProjectOtherIface: 1044s # * 1044s # * Abstract interface type for the D-Bus interface org.project.OtherIface. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectOtherIfaceIface: 1044s # * @parent_iface: The parent interface. 1044s # * @simple_signal: Handler for the #OrgProjectOtherIface::simple-signal signal. 1044s # * 1044s # * Virtual table for the D-Bus interface org.project.OtherIface. 1044s # */ 1044s # 1044s # typedef OrgProjectOtherIfaceIface OrgProjectOtherIfaceInterface; 1044s # G_DEFINE_INTERFACE (OrgProjectOtherIface, org_project_other_iface, G_TYPE_OBJECT) 1044s # 1044s # static void 1044s # org_project_other_iface_default_init (OrgProjectOtherIfaceIface *iface) 1044s # { 1044s # /* GObject signals for received D-Bus signals: */ 1044s # /** 1044s # * OrgProjectOtherIface::simple-signal: 1044s # * @object: A #OrgProjectOtherIface. 1044s # * 1044s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1044s # * 1044s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1044s # */ 1044s # _ORG_PROJECT_OTHER_IFACE_SIGNALS[_ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL] = 1044s # g_signal_new ("simple-signal", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectOtherIfaceIface, simple_signal), 1044s # NULL, 1044s # NULL, 1044s # org_project_other_iface_signal_marshal_simple_signal, 1044s # G_TYPE_NONE, 1044s # 0); 1044s # 1044s # } 1044s # 1044s # /** 1044s # * org_project_other_iface_emit_simple_signal: 1044s # * @object: A #OrgProjectOtherIface. 1044s # * 1044s # * Emits the "SimpleSignal" D-Bus signal. 1044s # */ 1044s # void 1044s # org_project_other_iface_emit_simple_signal ( 1044s # OrgProjectOtherIface *object) 1044s # { 1044s # g_signal_emit (object, _ORG_PROJECT_OTHER_IFACE_SIGNALS[_ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL], 0); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectOtherIfaceProxy: 1044s # * 1044s # * The #OrgProjectOtherIfaceProxy structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectOtherIfaceProxyClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectOtherIfaceProxy. 1044s # */ 1044s # 1044s # struct _OrgProjectOtherIfaceProxyPrivate 1044s # { 1044s # GData *qdata; 1044s # }; 1044s # 1044s # static void org_project_other_iface_proxy_iface_init (OrgProjectOtherIfaceIface *iface); 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceProxy, org_project_other_iface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_ADD_PRIVATE (OrgProjectOtherIfaceProxy) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_proxy_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceProxy, org_project_other_iface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_proxy_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_other_iface_proxy_finalize (GObject *object) 1044s # { 1044s # OrgProjectOtherIfaceProxy *proxy = ORG_PROJECT_OTHER_IFACE_PROXY (object); 1044s # g_datalist_clear (&proxy->priv->qdata); 1044s # G_OBJECT_CLASS (org_project_other_iface_proxy_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_other_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_other_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # const GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_other_iface_proxy_g_signal (GDBusProxy *proxy, 1044s # const gchar *sender_name G_GNUC_UNUSED, 1044s # const gchar *signal_name, 1044s # GVariant *parameters) 1044s # { 1044s # _ExtendedGDBusSignalInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # gsize n; 1044s # guint signal_id; 1044s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, signal_name); 1044s # if (info == NULL) 1044s # return; 1044s # num_params = g_variant_n_children (parameters); 1044s # paramv = g_new0 (GValue, num_params + 1); 1044s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_IFACE); 1044s # g_value_set_object (¶mv[0], proxy); 1044s # g_variant_iter_init (&iter, parameters); 1044s # n = 1; 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_IFACE); 1044s # g_signal_emitv (paramv, signal_id, 0, NULL); 1044s # for (n = 0; n < num_params + 1; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static void 1044s # org_project_other_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1044s # GVariant *changed_properties, 1044s # const gchar *const *invalidated_properties) 1044s # { 1044s # OrgProjectOtherIfaceProxy *proxy = ORG_PROJECT_OTHER_IFACE_PROXY (_proxy); 1044s # guint n; 1044s # const gchar *key; 1044s # GVariantIter *iter; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # g_variant_get (changed_properties, "a{sv}", &iter); 1044s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, key); 1044s # g_datalist_remove_data (&proxy->priv->qdata, key); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # g_variant_iter_free (iter); 1044s # for (n = 0; invalidated_properties[n] != NULL; n++) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, invalidated_properties[n]); 1044s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # } 1044s # 1044s # static void 1044s # org_project_other_iface_proxy_init (OrgProjectOtherIfaceProxy *proxy) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # proxy->priv = org_project_other_iface_proxy_get_instance_private (proxy); 1044s # #else 1044s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_IFACE_PROXY, OrgProjectOtherIfaceProxyPrivate); 1044s # #endif 1044s # 1044s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_iface_interface_info ()); 1044s # } 1044s # 1044s # static void 1044s # org_project_other_iface_proxy_class_init (OrgProjectOtherIfaceProxyClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusProxyClass *proxy_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_other_iface_proxy_finalize; 1044s # gobject_class->get_property = org_project_other_iface_proxy_get_property; 1044s # gobject_class->set_property = org_project_other_iface_proxy_set_property; 1044s # 1044s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1044s # proxy_class->g_signal = org_project_other_iface_proxy_g_signal; 1044s # proxy_class->g_properties_changed = org_project_other_iface_proxy_g_properties_changed; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectOtherIfaceProxyPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_other_iface_proxy_iface_init (OrgProjectOtherIfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_other_iface_proxy_new: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherIface. See g_dbus_proxy_new() for more details. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_other_iface_proxy_new_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_other_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_other_iface_proxy_new ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # 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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_other_iface_proxy_new_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_iface_proxy_new(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_other_iface_proxy_new(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectOtherIface * 1044s # org_project_other_iface_proxy_new_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_OTHER_IFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_other_iface_proxy_new_sync: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherIface. See g_dbus_proxy_new_sync() for more details. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_other_iface_proxy_new() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectOtherIface * 1044s # org_project_other_iface_proxy_new_sync ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_OTHER_IFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /** 1044s # * org_project_other_iface_proxy_new_for_bus: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Like org_project_other_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_other_iface_proxy_new_for_bus_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_other_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_other_iface_proxy_new_for_bus ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # 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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_other_iface_proxy_new_for_bus_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_iface_proxy_new_for_bus(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_other_iface_proxy_new_for_bus(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectOtherIface * 1044s # org_project_other_iface_proxy_new_for_bus_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_OTHER_IFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_other_iface_proxy_new_for_bus_sync: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Like org_project_other_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_other_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectOtherIface * 1044s # org_project_other_iface_proxy_new_for_bus_sync ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_OTHER_IFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectOtherIfaceSkeleton: 1044s # * 1044s # * The #OrgProjectOtherIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectOtherIfaceSkeletonClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectOtherIfaceSkeleton. 1044s # */ 1044s # 1044s # struct _OrgProjectOtherIfaceSkeletonPrivate 1044s # { 1044s # GValue *properties; 1044s # GList *changed_properties; 1044s # GSource *changed_properties_idle_source; 1044s # GMainContext *context; 1044s # GMutex lock; 1044s # }; 1044s # 1044s # static void 1044s # _org_project_other_iface_skeleton_handle_method_call ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name, 1044s # const gchar *method_name, 1044s # GVariant *parameters, 1044s # GDBusMethodInvocation *invocation, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 1044s # _ExtendedGDBusMethodInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # guint num_extra; 1044s # gsize n; 1044s # guint signal_id; 1044s # GValue return_value = G_VALUE_INIT; 1044s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1044s # g_assert (info != NULL); 1044s # num_params = g_variant_n_children (parameters); 1044s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1044s # n = 0; 1044s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_IFACE); 1044s # g_value_set_object (¶mv[n++], skeleton); 1044s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1044s # g_value_set_object (¶mv[n++], invocation); 1044s # if (info->pass_fdlist) 1044s # { 1044s # #ifdef G_OS_UNIX 1044s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1044s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1044s # #else 1044s # g_assert_not_reached (); 1044s # #endif 1044s # } 1044s # g_variant_iter_init (&iter, parameters); 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_IFACE); 1044s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1044s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1044s # if (!g_value_get_boolean (&return_value)) 1044s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1044s # g_value_unset (&return_value); 1044s # for (n = 0; n < num_params + num_extra; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static GVariant * 1044s # _org_project_other_iface_skeleton_handle_get_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # GVariant *ret; 1044s # ret = NULL; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # g_value_init (&value, pspec->value_type); 1044s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1044s # g_value_unset (&value); 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _org_project_other_iface_skeleton_handle_set_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GVariant *variant, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # gboolean ret; 1044s # ret = FALSE; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # if (info->use_gvariant) 1044s # g_value_set_variant (&value, variant); 1044s # else 1044s # g_dbus_gvariant_to_gvalue (variant, &value); 1044s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # g_value_unset (&value); 1044s # ret = TRUE; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static const GDBusInterfaceVTable _org_project_other_iface_skeleton_vtable = 1044s # { 1044s # _org_project_other_iface_skeleton_handle_method_call, 1044s # _org_project_other_iface_skeleton_handle_get_property, 1044s # _org_project_other_iface_skeleton_handle_set_property, 1044s # {NULL} 1044s # }; 1044s # 1044s # static GDBusInterfaceInfo * 1044s # org_project_other_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return org_project_other_iface_interface_info (); 1044s # } 1044s # 1044s # static GDBusInterfaceVTable * 1044s # org_project_other_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return (GDBusInterfaceVTable *) &_org_project_other_iface_skeleton_vtable; 1044s # } 1044s # 1044s # static GVariant * 1044s # org_project_other_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1044s # { 1044s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (_skeleton); 1044s # 1044s # GVariantBuilder builder; 1044s # guint n; 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1044s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #else 1044s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #endif 1044s # if (_org_project_other_iface_interface_info.parent_struct.properties == NULL) 1044s # goto out; 1044s # for (n = 0; _org_project_other_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1044s # { 1044s # GDBusPropertyInfo *info = _org_project_other_iface_interface_info.parent_struct.properties[n]; 1044s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1044s # { 1044s # GVariant *value; 1044s # 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); 1044s # if (value != NULL) 1044s # { 1044s # g_variant_take_ref (value); 1044s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1044s # g_variant_unref (value); 1044s # } 1044s # } 1044s # } 1044s # out: 1044s # return g_variant_builder_end (&builder); 1044s # } 1044s # 1044s # static void 1044s # org_project_other_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # _org_project_other_iface_on_signal_simple_signal ( 1044s # OrgProjectOtherIface *object) 1044s # { 1044s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (object); 1044s # 1044s # GList *connections, *l; 1044s # GVariant *signal_variant; 1044s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1044s # 1044s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1044s # for (l = connections; l != NULL; l = l->next) 1044s # { 1044s # GDBusConnection *connection = l->data; 1044s # g_dbus_connection_emit_signal (connection, 1044s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.OtherIface", "SimpleSignal", 1044s # signal_variant, NULL); 1044s # } 1044s # g_variant_unref (signal_variant); 1044s # g_list_free_full (connections, g_object_unref); 1044s # } 1044s # 1044s # static void org_project_other_iface_skeleton_iface_init (OrgProjectOtherIfaceIface *iface); 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceSkeleton, org_project_other_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_ADD_PRIVATE (OrgProjectOtherIfaceSkeleton) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_skeleton_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceSkeleton, org_project_other_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_skeleton_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_other_iface_skeleton_finalize (GObject *object) 1044s # { 1044s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (object); 1044s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1044s # if (skeleton->priv->changed_properties_idle_source != NULL) 1044s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1044s # g_main_context_unref (skeleton->priv->context); 1044s # g_mutex_clear (&skeleton->priv->lock); 1044s # G_OBJECT_CLASS (org_project_other_iface_skeleton_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_other_iface_skeleton_init (OrgProjectOtherIfaceSkeleton *skeleton) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # skeleton->priv = org_project_other_iface_skeleton_get_instance_private (skeleton); 1044s # #else 1044s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_IFACE_SKELETON, OrgProjectOtherIfaceSkeletonPrivate); 1044s # #endif 1044s # 1044s # g_mutex_init (&skeleton->priv->lock); 1044s # skeleton->priv->context = g_main_context_ref_thread_default (); 1044s # } 1044s # 1044s # static void 1044s # org_project_other_iface_skeleton_class_init (OrgProjectOtherIfaceSkeletonClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusInterfaceSkeletonClass *skeleton_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_other_iface_skeleton_finalize; 1044s # 1044s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1044s # skeleton_class->get_info = org_project_other_iface_skeleton_dbus_interface_get_info; 1044s # skeleton_class->get_properties = org_project_other_iface_skeleton_dbus_interface_get_properties; 1044s # skeleton_class->flush = org_project_other_iface_skeleton_dbus_interface_flush; 1044s # skeleton_class->get_vtable = org_project_other_iface_skeleton_dbus_interface_get_vtable; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectOtherIfaceSkeletonPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_other_iface_skeleton_iface_init (OrgProjectOtherIfaceIface *iface) 1044s # { 1044s # iface->simple_signal = _org_project_other_iface_on_signal_simple_signal; 1044s # } 1044s # 1044s # /** 1044s # * org_project_other_iface_skeleton_new: 1044s # * 1044s # * Creates a skeleton object for the D-Bus interface org.project.OtherIface. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectOtherIfaceSkeleton): The skeleton object. 1044s # */ 1044s # OrgProjectOtherIface * 1044s # org_project_other_iface_skeleton_new (void) 1044s # { 1044s # return ORG_PROJECT_OTHER_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_IFACE_SKELETON, NULL)); 1044s # } 1044s # Error: 1044s ok 22 __main__.TestCodegen.test_generate_signals_marshaller_simple_signal 1044s # gdbus-codegen: /usr/bin/gdbus-codegen 1044s # tmpdir: /tmp/tmpziy2u9sp 1044s # /tmp/tmpziy2u9sp/tmpunuv7apn.xml: 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # 1044s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpziy2u9sp/tmpunuv7apn.xml', '--output', '-', '--body'] 1044s # Return code: 0 1044s # Output: 1044s # /* 1044s # * This file is generated by gdbus-codegen, do not modify it. 1044s # * 1044s # * The license of this code is the same as for the D-Bus interface description 1044s # * it was derived from. Note that it links to GLib, so must comply with the 1044s # * LGPL linking clauses. 1044s # */ 1044s # 1044s # #ifdef HAVE_CONFIG_H 1044s # # include "config.h" 1044s # #endif 1044s # 1044s # #include 1044s # #ifdef G_OS_UNIX 1044s # # include 1044s # #endif 1044s # 1044s # #ifdef G_ENABLE_DEBUG 1044s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1044s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1044s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1044s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1044s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1044s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1044s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1044s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1044s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1044s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1044s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1044s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1044s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1044s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1044s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1044s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1044s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1044s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1044s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1044s # #else /* !G_ENABLE_DEBUG */ 1044s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1044s # * Do not access GValues directly in your code. Instead, use the 1044s # * g_value_get_*() functions 1044s # */ 1044s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1044s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1044s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1044s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1044s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1044s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1044s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1044s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1044s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1044s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1044s # #endif /* !G_ENABLE_DEBUG */ 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusArgInfo parent_struct; 1044s # gboolean use_gvariant; 1044s # } _ExtendedGDBusArgInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusMethodInfo parent_struct; 1044s # const gchar *signal_name; 1044s # gboolean pass_fdlist; 1044s # } _ExtendedGDBusMethodInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusSignalInfo parent_struct; 1044s # const gchar *signal_name; 1044s # } _ExtendedGDBusSignalInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusPropertyInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # guint use_gvariant : 1; 1044s # guint emits_changed_signal : 1; 1044s # } _ExtendedGDBusPropertyInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # GDBusInterfaceInfo parent_struct; 1044s # const gchar *hyphen_name; 1044s # } _ExtendedGDBusInterfaceInfo; 1044s # 1044s # typedef struct 1044s # { 1044s # const _ExtendedGDBusPropertyInfo *info; 1044s # guint prop_id; 1044s # GValue orig_value; /* the value before the change */ 1044s # } ChangedProperty; 1044s # 1044s # static void 1044s # _changed_property_free (ChangedProperty *data) 1044s # { 1044s # g_value_unset (&data->orig_value); 1044s # g_free (data); 1044s # } 1044s # 1044s # static gboolean 1044s # _g_strv_equal0 (gchar **a, gchar **b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # guint n; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # if (g_strv_length (a) != g_strv_length (b)) 1044s # goto out; 1044s # for (n = 0; a[n] != NULL; n++) 1044s # if (g_strcmp0 (a[n], b[n]) != 0) 1044s # goto out; 1044s # ret = TRUE; 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _g_variant_equal0 (GVariant *a, GVariant *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # if (a == NULL && b == NULL) 1044s # { 1044s # ret = TRUE; 1044s # goto out; 1044s # } 1044s # if (a == NULL || b == NULL) 1044s # goto out; 1044s # ret = g_variant_equal (a, b); 1044s # out: 1044s # return ret; 1044s # } 1044s # 1044s # G_GNUC_UNUSED static gboolean 1044s # _g_value_equal (const GValue *a, const GValue *b) 1044s # { 1044s # gboolean ret = FALSE; 1044s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1044s # switch (G_VALUE_TYPE (a)) 1044s # { 1044s # case G_TYPE_BOOLEAN: 1044s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1044s # break; 1044s # case G_TYPE_UCHAR: 1044s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1044s # break; 1044s # case G_TYPE_INT: 1044s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1044s # break; 1044s # case G_TYPE_UINT: 1044s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1044s # break; 1044s # case G_TYPE_INT64: 1044s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1044s # break; 1044s # case G_TYPE_UINT64: 1044s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1044s # break; 1044s # case G_TYPE_DOUBLE: 1044s # { 1044s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1044s # gdouble da = g_value_get_double (a); 1044s # gdouble db = g_value_get_double (b); 1044s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1044s # } 1044s # break; 1044s # case G_TYPE_STRING: 1044s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1044s # break; 1044s # case G_TYPE_VARIANT: 1044s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1044s # break; 1044s # default: 1044s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1044s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1044s # else 1044s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1044s # break; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ 1044s # * Code for interface org.project.SignalingIface 1044s # * ------------------------------------------------------------------------ 1044s # */ 1044s # 1044s # /** 1044s # * SECTION:OrgProjectSignalingIface 1044s # * @title: OrgProjectSignalingIface 1044s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1044s # * 1044s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1044s # */ 1044s # 1044s # enum 1044s # { 1044s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1044s # }; 1044s # 1044s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 1044s # 1044s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1044s # 1044s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "SimpleSignal", 1044s # NULL, 1044s # NULL 1044s # }, 1044s # "simple-signal" 1044s # }; 1044s # 1044s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1044s # { 1044s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "org.project.SignalingIface", 1044s # NULL, 1044s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1044s # NULL, 1044s # NULL 1044s # }, 1044s # "org-project-signaling-iface", 1044s # }; 1044s # 1044s # 1044s # /** 1044s # * org_project_signaling_iface_interface_info: 1044s # * 1044s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1044s # * 1044s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1044s # */ 1044s # GDBusInterfaceInfo * 1044s # org_project_signaling_iface_interface_info (void) 1044s # { 1044s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1044s # } 1044s # 1044s # /** 1044s # * org_project_signaling_iface_override_properties: 1044s # * @klass: The class structure for a #GObject derived class. 1044s # * @property_id_begin: The property id to assign to the first overridden property. 1044s # * 1044s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1044s # * The properties are overridden in the order they are defined. 1044s # * 1044s # * Returns: The last property id. 1044s # */ 1044s # guint 1044s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1044s # { 1044s # return property_id_begin - 1; 1044s # } 1044s # 1044s # 1044s # inline static void 1044s # org_project_signaling_iface_signal_marshal_simple_signal ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # g_cclosure_marshal_VOID__VOID (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # 1044s # /** 1044s # * OrgProjectSignalingIface: 1044s # * 1044s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectSignalingIfaceIface: 1044s # * @parent_iface: The parent interface. 1044s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1044s # * 1044s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1044s # */ 1044s # 1044s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1044s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1044s # 1044s # static void 1044s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1044s # { 1044s # /* GObject signals for received D-Bus signals: */ 1044s # /** 1044s # * OrgProjectSignalingIface::simple-signal: 1044s # * @object: A #OrgProjectSignalingIface. 1044s # * 1044s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1044s # * 1044s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1044s # */ 1044s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1044s # g_signal_new ("simple-signal", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1044s # NULL, 1044s # NULL, 1044s # org_project_signaling_iface_signal_marshal_simple_signal, 1044s # G_TYPE_NONE, 1044s # 0); 1044s # 1044s # } 1044s # 1044s # /** 1044s # * org_project_signaling_iface_emit_simple_signal: 1044s # * @object: A #OrgProjectSignalingIface. 1044s # * 1044s # * Emits the "SimpleSignal" D-Bus signal. 1044s # */ 1044s # void 1044s # org_project_signaling_iface_emit_simple_signal ( 1044s # OrgProjectSignalingIface *object) 1044s # { 1044s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectSignalingIfaceProxy: 1044s # * 1044s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectSignalingIfaceProxyClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectSignalingIfaceProxy. 1044s # */ 1044s # 1044s # struct _OrgProjectSignalingIfaceProxyPrivate 1044s # { 1044s # GData *qdata; 1044s # }; 1044s # 1044s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_signaling_iface_proxy_finalize (GObject *object) 1044s # { 1044s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1044s # g_datalist_clear (&proxy->priv->qdata); 1044s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # const GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1044s # const gchar *sender_name G_GNUC_UNUSED, 1044s # const gchar *signal_name, 1044s # GVariant *parameters) 1044s # { 1044s # _ExtendedGDBusSignalInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # gsize n; 1044s # guint signal_id; 1044s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1044s # if (info == NULL) 1044s # return; 1044s # num_params = g_variant_n_children (parameters); 1044s # paramv = g_new0 (GValue, num_params + 1); 1044s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1044s # g_value_set_object (¶mv[0], proxy); 1044s # g_variant_iter_init (&iter, parameters); 1044s # n = 1; 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1044s # g_signal_emitv (paramv, signal_id, 0, NULL); 1044s # for (n = 0; n < num_params + 1; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static void 1044s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1044s # GVariant *changed_properties, 1044s # const gchar *const *invalidated_properties) 1044s # { 1044s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1044s # guint n; 1044s # const gchar *key; 1044s # GVariantIter *iter; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # g_variant_get (changed_properties, "a{sv}", &iter); 1044s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1044s # g_datalist_remove_data (&proxy->priv->qdata, key); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # g_variant_iter_free (iter); 1044s # for (n = 0; invalidated_properties[n] != NULL; n++) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1044s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # } 1044s # 1044s # static void 1044s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1044s # #else 1044s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1044s # #endif 1044s # 1044s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1044s # } 1044s # 1044s # static void 1044s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusProxyClass *proxy_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1044s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1044s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1044s # 1044s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1044s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1044s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_signaling_iface_proxy_new: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_signaling_iface_proxy_new ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # 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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_signaling_iface_proxy_new_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectSignalingIface * 1044s # org_project_signaling_iface_proxy_new_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_signaling_iface_proxy_new_sync: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectSignalingIface * 1044s # org_project_signaling_iface_proxy_new_sync ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /** 1044s # * org_project_signaling_iface_proxy_new_for_bus: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_signaling_iface_proxy_new_for_bus ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # 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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectSignalingIface * 1044s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectSignalingIface * 1044s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectSignalingIfaceSkeleton: 1044s # * 1044s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectSignalingIfaceSkeletonClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1044s # */ 1044s # 1044s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1044s # { 1044s # GValue *properties; 1044s # GList *changed_properties; 1044s # GSource *changed_properties_idle_source; 1044s # GMainContext *context; 1044s # GMutex lock; 1044s # }; 1044s # 1044s # static void 1044s # _org_project_signaling_iface_skeleton_handle_method_call ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name, 1044s # const gchar *method_name, 1044s # GVariant *parameters, 1044s # GDBusMethodInvocation *invocation, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1044s # _ExtendedGDBusMethodInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # guint num_extra; 1044s # gsize n; 1044s # guint signal_id; 1044s # GValue return_value = G_VALUE_INIT; 1044s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1044s # g_assert (info != NULL); 1044s # num_params = g_variant_n_children (parameters); 1044s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1044s # n = 0; 1044s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1044s # g_value_set_object (¶mv[n++], skeleton); 1044s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1044s # g_value_set_object (¶mv[n++], invocation); 1044s # if (info->pass_fdlist) 1044s # { 1044s # #ifdef G_OS_UNIX 1044s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1044s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1044s # #else 1044s # g_assert_not_reached (); 1044s # #endif 1044s # } 1044s # g_variant_iter_init (&iter, parameters); 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1044s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1044s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1044s # if (!g_value_get_boolean (&return_value)) 1044s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1044s # g_value_unset (&return_value); 1044s # for (n = 0; n < num_params + num_extra; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static GVariant * 1044s # _org_project_signaling_iface_skeleton_handle_get_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # GVariant *ret; 1044s # ret = NULL; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # g_value_init (&value, pspec->value_type); 1044s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1044s # g_value_unset (&value); 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _org_project_signaling_iface_skeleton_handle_set_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GVariant *variant, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # gboolean ret; 1044s # ret = FALSE; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # if (info->use_gvariant) 1044s # g_value_set_variant (&value, variant); 1044s # else 1044s # g_dbus_gvariant_to_gvalue (variant, &value); 1044s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # g_value_unset (&value); 1044s # ret = TRUE; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1044s # { 1044s # _org_project_signaling_iface_skeleton_handle_method_call, 1044s # _org_project_signaling_iface_skeleton_handle_get_property, 1044s # _org_project_signaling_iface_skeleton_handle_set_property, 1044s # {NULL} 1044s # }; 1044s # 1044s # static GDBusInterfaceInfo * 1044s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return org_project_signaling_iface_interface_info (); 1044s # } 1044s # 1044s # static GDBusInterfaceVTable * 1044s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1044s # } 1044s # 1044s # static GVariant * 1044s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1044s # { 1044s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1044s # 1044s # GVariantBuilder builder; 1044s # guint n; 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1044s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #else 1044s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #endif 1044s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1044s # goto out; 1044s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1044s # { 1044s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1044s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1044s # { 1044s # GVariant *value; 1044s # 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); 1044s # if (value != NULL) 1044s # { 1044s # g_variant_take_ref (value); 1044s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1044s # g_variant_unref (value); 1044s # } 1044s # } 1044s # } 1044s # out: 1044s # return g_variant_builder_end (&builder); 1044s # } 1044s # 1044s # static void 1044s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # _org_project_signaling_iface_on_signal_simple_signal ( 1044s # OrgProjectSignalingIface *object) 1044s # { 1044s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1044s # 1044s # GList *connections, *l; 1044s # GVariant *signal_variant; 1044s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1044s # 1044s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1044s # for (l = connections; l != NULL; l = l->next) 1044s # { 1044s # GDBusConnection *connection = l->data; 1044s # g_dbus_connection_emit_signal (connection, 1044s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1044s # signal_variant, NULL); 1044s # } 1044s # g_variant_unref (signal_variant); 1044s # g_list_free_full (connections, g_object_unref); 1044s # } 1044s # 1044s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1044s # { 1044s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1044s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1044s # if (skeleton->priv->changed_properties_idle_source != NULL) 1044s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1044s # g_main_context_unref (skeleton->priv->context); 1044s # g_mutex_clear (&skeleton->priv->lock); 1044s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1044s # #else 1044s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1044s # #endif 1044s # 1044s # g_mutex_init (&skeleton->priv->lock); 1044s # skeleton->priv->context = g_main_context_ref_thread_default (); 1044s # } 1044s # 1044s # static void 1044s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusInterfaceSkeletonClass *skeleton_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1044s # 1044s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1044s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1044s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1044s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1044s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1044s # { 1044s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1044s # } 1044s # 1044s # /** 1044s # * org_project_signaling_iface_skeleton_new: 1044s # * 1044s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1044s # */ 1044s # OrgProjectSignalingIface * 1044s # org_project_signaling_iface_skeleton_new (void) 1044s # { 1044s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ 1044s # * Code for interface org.project.OtherSignalingIface 1044s # * ------------------------------------------------------------------------ 1044s # */ 1044s # 1044s # /** 1044s # * SECTION:OrgProjectOtherSignalingIface 1044s # * @title: OrgProjectOtherSignalingIface 1044s # * @short_description: Generated C code for the org.project.OtherSignalingIface D-Bus interface 1044s # * 1044s # * This section contains code for working with the org.project.OtherSignalingIface D-Bus interface in C. 1044s # */ 1044s # 1044s # enum 1044s # { 1044s # _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL, 1044s # }; 1044s # 1044s # static unsigned _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 1044s # 1044s # /* ---- Introspection data for org.project.OtherSignalingIface ---- */ 1044s # 1044s # static const _ExtendedGDBusSignalInfo _org_project_other_signaling_iface_signal_info_simple_signal = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "SimpleSignal", 1044s # NULL, 1044s # NULL 1044s # }, 1044s # "simple-signal" 1044s # }; 1044s # 1044s # static const GDBusSignalInfo * const _org_project_other_signaling_iface_signal_info_pointers[] = 1044s # { 1044s # &_org_project_other_signaling_iface_signal_info_simple_signal.parent_struct, 1044s # NULL 1044s # }; 1044s # 1044s # static const _ExtendedGDBusInterfaceInfo _org_project_other_signaling_iface_interface_info = 1044s # { 1044s # { 1044s # -1, 1044s # (gchar *) "org.project.OtherSignalingIface", 1044s # NULL, 1044s # (GDBusSignalInfo **) &_org_project_other_signaling_iface_signal_info_pointers, 1044s # NULL, 1044s # NULL 1044s # }, 1044s # "org-project-other-signaling-iface", 1044s # }; 1044s # 1044s # 1044s # /** 1044s # * org_project_other_signaling_iface_interface_info: 1044s # * 1044s # * Gets a machine-readable description of the org.project.OtherSignalingIface D-Bus interface. 1044s # * 1044s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1044s # */ 1044s # GDBusInterfaceInfo * 1044s # org_project_other_signaling_iface_interface_info (void) 1044s # { 1044s # return (GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct; 1044s # } 1044s # 1044s # /** 1044s # * org_project_other_signaling_iface_override_properties: 1044s # * @klass: The class structure for a #GObject derived class. 1044s # * @property_id_begin: The property id to assign to the first overridden property. 1044s # * 1044s # * Overrides all #GObject properties in the #OrgProjectOtherSignalingIface interface for a concrete class. 1044s # * The properties are overridden in the order they are defined. 1044s # * 1044s # * Returns: The last property id. 1044s # */ 1044s # guint 1044s # org_project_other_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1044s # { 1044s # return property_id_begin - 1; 1044s # } 1044s # 1044s # 1044s # inline static void 1044s # org_project_other_signaling_iface_signal_marshal_simple_signal ( 1044s # GClosure *closure, 1044s # GValue *return_value, 1044s # unsigned int n_param_values, 1044s # const GValue *param_values, 1044s # void *invocation_hint, 1044s # void *marshal_data) 1044s # { 1044s # g_cclosure_marshal_VOID__VOID (closure, 1044s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1044s # } 1044s # 1044s # 1044s # /** 1044s # * OrgProjectOtherSignalingIface: 1044s # * 1044s # * Abstract interface type for the D-Bus interface org.project.OtherSignalingIface. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectOtherSignalingIfaceIface: 1044s # * @parent_iface: The parent interface. 1044s # * @simple_signal: Handler for the #OrgProjectOtherSignalingIface::simple-signal signal. 1044s # * 1044s # * Virtual table for the D-Bus interface org.project.OtherSignalingIface. 1044s # */ 1044s # 1044s # typedef OrgProjectOtherSignalingIfaceIface OrgProjectOtherSignalingIfaceInterface; 1044s # G_DEFINE_INTERFACE (OrgProjectOtherSignalingIface, org_project_other_signaling_iface, G_TYPE_OBJECT) 1044s # 1044s # static void 1044s # org_project_other_signaling_iface_default_init (OrgProjectOtherSignalingIfaceIface *iface) 1044s # { 1044s # /* GObject signals for received D-Bus signals: */ 1044s # /** 1044s # * OrgProjectOtherSignalingIface::simple-signal: 1044s # * @object: A #OrgProjectOtherSignalingIface. 1044s # * 1044s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1044s # * 1044s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1044s # */ 1044s # _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1044s # g_signal_new ("simple-signal", 1044s # G_TYPE_FROM_INTERFACE (iface), 1044s # G_SIGNAL_RUN_LAST, 1044s # G_STRUCT_OFFSET (OrgProjectOtherSignalingIfaceIface, simple_signal), 1044s # NULL, 1044s # NULL, 1044s # org_project_other_signaling_iface_signal_marshal_simple_signal, 1044s # G_TYPE_NONE, 1044s # 0); 1044s # 1044s # } 1044s # 1044s # /** 1044s # * org_project_other_signaling_iface_emit_simple_signal: 1044s # * @object: A #OrgProjectOtherSignalingIface. 1044s # * 1044s # * Emits the "SimpleSignal" D-Bus signal. 1044s # */ 1044s # void 1044s # org_project_other_signaling_iface_emit_simple_signal ( 1044s # OrgProjectOtherSignalingIface *object) 1044s # { 1044s # g_signal_emit (object, _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1044s # } 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectOtherSignalingIfaceProxy: 1044s # * 1044s # * The #OrgProjectOtherSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectOtherSignalingIfaceProxyClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectOtherSignalingIfaceProxy. 1044s # */ 1044s # 1044s # struct _OrgProjectOtherSignalingIfaceProxyPrivate 1044s # { 1044s # GData *qdata; 1044s # }; 1044s # 1044s # static void org_project_other_signaling_iface_proxy_iface_init (OrgProjectOtherSignalingIfaceIface *iface); 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceProxy, org_project_other_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_ADD_PRIVATE (OrgProjectOtherSignalingIfaceProxy) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_proxy_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceProxy, org_project_other_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_proxy_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_other_signaling_iface_proxy_finalize (GObject *object) 1044s # { 1044s # OrgProjectOtherSignalingIfaceProxy *proxy = ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY (object); 1044s # g_datalist_clear (&proxy->priv->qdata); 1044s # G_OBJECT_CLASS (org_project_other_signaling_iface_proxy_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_other_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_other_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1044s # guint prop_id G_GNUC_UNUSED, 1044s # const GValue *value G_GNUC_UNUSED, 1044s # GParamSpec *pspec G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # org_project_other_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1044s # const gchar *sender_name G_GNUC_UNUSED, 1044s # const gchar *signal_name, 1044s # GVariant *parameters) 1044s # { 1044s # _ExtendedGDBusSignalInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # gsize n; 1044s # guint signal_id; 1044s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, signal_name); 1044s # if (info == NULL) 1044s # return; 1044s # num_params = g_variant_n_children (parameters); 1044s # paramv = g_new0 (GValue, num_params + 1); 1044s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 1044s # g_value_set_object (¶mv[0], proxy); 1044s # g_variant_iter_init (&iter, parameters); 1044s # n = 1; 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 1044s # g_signal_emitv (paramv, signal_id, 0, NULL); 1044s # for (n = 0; n < num_params + 1; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static void 1044s # org_project_other_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1044s # GVariant *changed_properties, 1044s # const gchar *const *invalidated_properties) 1044s # { 1044s # OrgProjectOtherSignalingIfaceProxy *proxy = ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY (_proxy); 1044s # guint n; 1044s # const gchar *key; 1044s # GVariantIter *iter; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # g_variant_get (changed_properties, "a{sv}", &iter); 1044s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, key); 1044s # g_datalist_remove_data (&proxy->priv->qdata, key); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # g_variant_iter_free (iter); 1044s # for (n = 0; invalidated_properties[n] != NULL; n++) 1044s # { 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1044s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1044s # if (info != NULL) 1044s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1044s # } 1044s # } 1044s # 1044s # static void 1044s # org_project_other_signaling_iface_proxy_init (OrgProjectOtherSignalingIfaceProxy *proxy) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # proxy->priv = org_project_other_signaling_iface_proxy_get_instance_private (proxy); 1044s # #else 1044s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY, OrgProjectOtherSignalingIfaceProxyPrivate); 1044s # #endif 1044s # 1044s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_signaling_iface_interface_info ()); 1044s # } 1044s # 1044s # static void 1044s # org_project_other_signaling_iface_proxy_class_init (OrgProjectOtherSignalingIfaceProxyClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusProxyClass *proxy_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_other_signaling_iface_proxy_finalize; 1044s # gobject_class->get_property = org_project_other_signaling_iface_proxy_get_property; 1044s # gobject_class->set_property = org_project_other_signaling_iface_proxy_set_property; 1044s # 1044s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1044s # proxy_class->g_signal = org_project_other_signaling_iface_proxy_g_signal; 1044s # proxy_class->g_properties_changed = org_project_other_signaling_iface_proxy_g_properties_changed; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectOtherSignalingIfaceProxyPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_other_signaling_iface_proxy_iface_init (OrgProjectOtherSignalingIfaceIface *iface G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # /** 1044s # * org_project_other_signaling_iface_proxy_new: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherSignalingIface. See g_dbus_proxy_new() for more details. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_other_signaling_iface_proxy_new_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_other_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_other_signaling_iface_proxy_new ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # 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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_other_signaling_iface_proxy_new_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_signaling_iface_proxy_new(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_other_signaling_iface_proxy_new(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectOtherSignalingIface * 1044s # org_project_other_signaling_iface_proxy_new_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_other_signaling_iface_proxy_new_sync: 1044s # * @connection: A #GDBusConnection. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherSignalingIface. See g_dbus_proxy_new_sync() for more details. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_other_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectOtherSignalingIface * 1044s # org_project_other_signaling_iface_proxy_new_sync ( 1044s # GDBusConnection *connection, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /** 1044s # * org_project_other_signaling_iface_proxy_new_for_bus: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1044s # * @user_data: User data to pass to @callback. 1044s # * 1044s # * Like org_project_other_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1044s # * You can then call org_project_other_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1044s # * 1044s # * See org_project_other_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1044s # */ 1044s # void 1044s # org_project_other_signaling_iface_proxy_new_for_bus ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GAsyncReadyCallback callback, 1044s # gpointer user_data) 1044s # { 1044s # 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); 1044s # } 1044s # 1044s # /** 1044s # * org_project_other_signaling_iface_proxy_new_for_bus_finish: 1044s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_signaling_iface_proxy_new_for_bus(). 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Finishes an operation started with org_project_other_signaling_iface_proxy_new_for_bus(). 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectOtherSignalingIface * 1044s # org_project_other_signaling_iface_proxy_new_for_bus_finish ( 1044s # GAsyncResult *res, 1044s # GError **error) 1044s # { 1044s # GObject *ret; 1044s # GObject *source_object; 1044s # source_object = g_async_result_get_source_object (res); 1044s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1044s # g_object_unref (source_object); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # /** 1044s # * org_project_other_signaling_iface_proxy_new_for_bus_sync: 1044s # * @bus_type: A #GBusType. 1044s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1044s # * @name: A bus name (well-known or unique). 1044s # * @object_path: An object path. 1044s # * @cancellable: (nullable): A #GCancellable or %NULL. 1044s # * @error: Return location for error or %NULL 1044s # * 1044s # * Like org_project_other_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1044s # * 1044s # * The calling thread is blocked until a reply is received. 1044s # * 1044s # * See org_project_other_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1044s # */ 1044s # OrgProjectOtherSignalingIface * 1044s # org_project_other_signaling_iface_proxy_new_for_bus_sync ( 1044s # GBusType bus_type, 1044s # GDBusProxyFlags flags, 1044s # const gchar *name, 1044s # const gchar *object_path, 1044s # GCancellable *cancellable, 1044s # GError **error) 1044s # { 1044s # GInitable *ret; 1044s # 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); 1044s # if (ret != NULL) 1044s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 1044s # else 1044s # return NULL; 1044s # } 1044s # 1044s # 1044s # /* ------------------------------------------------------------------------ */ 1044s # 1044s # /** 1044s # * OrgProjectOtherSignalingIfaceSkeleton: 1044s # * 1044s # * The #OrgProjectOtherSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1044s # */ 1044s # 1044s # /** 1044s # * OrgProjectOtherSignalingIfaceSkeletonClass: 1044s # * @parent_class: The parent class. 1044s # * 1044s # * Class structure for #OrgProjectOtherSignalingIfaceSkeleton. 1044s # */ 1044s # 1044s # struct _OrgProjectOtherSignalingIfaceSkeletonPrivate 1044s # { 1044s # GValue *properties; 1044s # GList *changed_properties; 1044s # GSource *changed_properties_idle_source; 1044s # GMainContext *context; 1044s # GMutex lock; 1044s # }; 1044s # 1044s # static void 1044s # _org_project_other_signaling_iface_skeleton_handle_method_call ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name, 1044s # const gchar *method_name, 1044s # GVariant *parameters, 1044s # GDBusMethodInvocation *invocation, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 1044s # _ExtendedGDBusMethodInfo *info; 1044s # GVariantIter iter; 1044s # GVariant *child; 1044s # GValue *paramv; 1044s # gsize num_params; 1044s # guint num_extra; 1044s # gsize n; 1044s # guint signal_id; 1044s # GValue return_value = G_VALUE_INIT; 1044s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1044s # g_assert (info != NULL); 1044s # num_params = g_variant_n_children (parameters); 1044s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1044s # n = 0; 1044s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 1044s # g_value_set_object (¶mv[n++], skeleton); 1044s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1044s # g_value_set_object (¶mv[n++], invocation); 1044s # if (info->pass_fdlist) 1044s # { 1044s # #ifdef G_OS_UNIX 1044s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1044s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1044s # #else 1044s # g_assert_not_reached (); 1044s # #endif 1044s # } 1044s # g_variant_iter_init (&iter, parameters); 1044s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1044s # { 1044s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1044s # if (arg_info->use_gvariant) 1044s # { 1044s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1044s # g_value_set_variant (¶mv[n], child); 1044s # n++; 1044s # } 1044s # else 1044s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1044s # g_variant_unref (child); 1044s # } 1044s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 1044s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1044s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1044s # if (!g_value_get_boolean (&return_value)) 1044s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1044s # g_value_unset (&return_value); 1044s # for (n = 0; n < num_params + num_extra; n++) 1044s # g_value_unset (¶mv[n]); 1044s # g_free (paramv); 1044s # } 1044s # 1044s # static GVariant * 1044s # _org_project_other_signaling_iface_skeleton_handle_get_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # GVariant *ret; 1044s # ret = NULL; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # g_value_init (&value, pspec->value_type); 1044s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1044s # g_value_unset (&value); 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static gboolean 1044s # _org_project_other_signaling_iface_skeleton_handle_set_property ( 1044s # GDBusConnection *connection G_GNUC_UNUSED, 1044s # const gchar *sender G_GNUC_UNUSED, 1044s # const gchar *object_path G_GNUC_UNUSED, 1044s # const gchar *interface_name G_GNUC_UNUSED, 1044s # const gchar *property_name, 1044s # GVariant *variant, 1044s # GError **error, 1044s # gpointer user_data) 1044s # { 1044s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 1044s # GValue value = G_VALUE_INIT; 1044s # GParamSpec *pspec; 1044s # _ExtendedGDBusPropertyInfo *info; 1044s # gboolean ret; 1044s # ret = FALSE; 1044s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, property_name); 1044s # g_assert (info != NULL); 1044s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1044s # if (pspec == NULL) 1044s # { 1044s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1044s # } 1044s # else 1044s # { 1044s # if (info->use_gvariant) 1044s # g_value_set_variant (&value, variant); 1044s # else 1044s # g_dbus_gvariant_to_gvalue (variant, &value); 1044s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1044s # g_value_unset (&value); 1044s # ret = TRUE; 1044s # } 1044s # return ret; 1044s # } 1044s # 1044s # static const GDBusInterfaceVTable _org_project_other_signaling_iface_skeleton_vtable = 1044s # { 1044s # _org_project_other_signaling_iface_skeleton_handle_method_call, 1044s # _org_project_other_signaling_iface_skeleton_handle_get_property, 1044s # _org_project_other_signaling_iface_skeleton_handle_set_property, 1044s # {NULL} 1044s # }; 1044s # 1044s # static GDBusInterfaceInfo * 1044s # org_project_other_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return org_project_other_signaling_iface_interface_info (); 1044s # } 1044s # 1044s # static GDBusInterfaceVTable * 1044s # org_project_other_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1044s # { 1044s # return (GDBusInterfaceVTable *) &_org_project_other_signaling_iface_skeleton_vtable; 1044s # } 1044s # 1044s # static GVariant * 1044s # org_project_other_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1044s # { 1044s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (_skeleton); 1044s # 1044s # GVariantBuilder builder; 1044s # guint n; 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1044s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #else 1044s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1044s # #endif 1044s # if (_org_project_other_signaling_iface_interface_info.parent_struct.properties == NULL) 1044s # goto out; 1044s # for (n = 0; _org_project_other_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1044s # { 1044s # GDBusPropertyInfo *info = _org_project_other_signaling_iface_interface_info.parent_struct.properties[n]; 1044s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1044s # { 1044s # GVariant *value; 1044s # 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); 1044s # if (value != NULL) 1044s # { 1044s # g_variant_take_ref (value); 1044s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1044s # g_variant_unref (value); 1044s # } 1044s # } 1044s # } 1044s # out: 1044s # return g_variant_builder_end (&builder); 1044s # } 1044s # 1044s # static void 1044s # org_project_other_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1044s # { 1044s # } 1044s # 1044s # static void 1044s # _org_project_other_signaling_iface_on_signal_simple_signal ( 1044s # OrgProjectOtherSignalingIface *object) 1044s # { 1044s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (object); 1044s # 1044s # GList *connections, *l; 1044s # GVariant *signal_variant; 1044s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1044s # 1044s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1044s # for (l = connections; l != NULL; l = l->next) 1044s # { 1044s # GDBusConnection *connection = l->data; 1044s # g_dbus_connection_emit_signal (connection, 1044s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.OtherSignalingIface", "SimpleSignal", 1044s # signal_variant, NULL); 1044s # } 1044s # g_variant_unref (signal_variant); 1044s # g_list_free_full (connections, g_object_unref); 1044s # } 1044s # 1044s # static void org_project_other_signaling_iface_skeleton_iface_init (OrgProjectOtherSignalingIfaceIface *iface); 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceSkeleton, org_project_other_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_ADD_PRIVATE (OrgProjectOtherSignalingIfaceSkeleton) 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_skeleton_iface_init)) 1044s # 1044s # #else 1044s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceSkeleton, org_project_other_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1044s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_skeleton_iface_init)) 1044s # 1044s # #endif 1044s # static void 1044s # org_project_other_signaling_iface_skeleton_finalize (GObject *object) 1044s # { 1044s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (object); 1044s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1044s # if (skeleton->priv->changed_properties_idle_source != NULL) 1044s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1044s # g_main_context_unref (skeleton->priv->context); 1044s # g_mutex_clear (&skeleton->priv->lock); 1044s # G_OBJECT_CLASS (org_project_other_signaling_iface_skeleton_parent_class)->finalize (object); 1044s # } 1044s # 1044s # static void 1044s # org_project_other_signaling_iface_skeleton_init (OrgProjectOtherSignalingIfaceSkeleton *skeleton) 1044s # { 1044s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1044s # skeleton->priv = org_project_other_signaling_iface_skeleton_get_instance_private (skeleton); 1044s # #else 1044s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON, OrgProjectOtherSignalingIfaceSkeletonPrivate); 1044s # #endif 1044s # 1044s # g_mutex_init (&skeleton->priv->lock); 1044s # skeleton->priv->context = g_main_context_ref_thread_default (); 1044s # } 1044s # 1044s # static void 1044s # org_project_other_signaling_iface_skeleton_class_init (OrgProjectOtherSignalingIfaceSkeletonClass *klass) 1044s # { 1044s # GObjectClass *gobject_class; 1044s # GDBusInterfaceSkeletonClass *skeleton_class; 1044s # 1044s # gobject_class = G_OBJECT_CLASS (klass); 1044s # gobject_class->finalize = org_project_other_signaling_iface_skeleton_finalize; 1044s # 1044s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1044s # skeleton_class->get_info = org_project_other_signaling_iface_skeleton_dbus_interface_get_info; 1044s # skeleton_class->get_properties = org_project_other_signaling_iface_skeleton_dbus_interface_get_properties; 1044s # skeleton_class->flush = org_project_other_signaling_iface_skeleton_dbus_interface_flush; 1044s # skeleton_class->get_vtable = org_project_other_signaling_iface_skeleton_dbus_interface_get_vtable; 1044s # 1044s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1044s # g_type_class_add_private (klass, sizeof (OrgProjectOtherSignalingIfaceSkeletonPrivate)); 1044s # #endif 1044s # } 1044s # 1044s # static void 1044s # org_project_other_signaling_iface_skeleton_iface_init (OrgProjectOtherSignalingIfaceIface *iface) 1044s # { 1044s # iface->simple_signal = _org_project_other_signaling_iface_on_signal_simple_signal; 1044s # } 1044s # 1044s # /** 1044s # * org_project_other_signaling_iface_skeleton_new: 1044s # * 1044s # * Creates a skeleton object for the D-Bus interface org.project.OtherSignalingIface. 1044s # * 1044s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceSkeleton): The skeleton object. 1044s # */ 1044s # OrgProjectOtherSignalingIface * 1044s # org_project_other_signaling_iface_skeleton_new (void) 1044s # { 1044s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON, NULL)); 1044s # } 1044s # Error: 1046s ok 23 __main__.TestCodegen.test_generate_signals_marshaller_single_typed_args 1046s # gdbus-codegen: /usr/bin/gdbus-codegen 1046s # tmpdir: /tmp/tmppt74if37 1046s # /tmp/tmppt74if37/tmpe_34sjxt.xml: 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppt74if37/tmpe_34sjxt.xml', '--output', '-', '--body'] 1046s # Return code: 0 1046s # Output: 1046s # /* 1046s # * This file is generated by gdbus-codegen, do not modify it. 1046s # * 1046s # * The license of this code is the same as for the D-Bus interface description 1046s # * it was derived from. Note that it links to GLib, so must comply with the 1046s # * LGPL linking clauses. 1046s # */ 1046s # 1046s # #ifdef HAVE_CONFIG_H 1046s # # include "config.h" 1046s # #endif 1046s # 1046s # #include 1046s # #ifdef G_OS_UNIX 1046s # # include 1046s # #endif 1046s # 1046s # #ifdef G_ENABLE_DEBUG 1046s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1046s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1046s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1046s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1046s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1046s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1046s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1046s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1046s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1046s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1046s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1046s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1046s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1046s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1046s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1046s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1046s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1046s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1046s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1046s # #else /* !G_ENABLE_DEBUG */ 1046s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1046s # * Do not access GValues directly in your code. Instead, use the 1046s # * g_value_get_*() functions 1046s # */ 1046s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1046s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1046s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1046s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1046s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1046s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1046s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1046s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1046s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1046s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1046s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1046s # #endif /* !G_ENABLE_DEBUG */ 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusArgInfo parent_struct; 1046s # gboolean use_gvariant; 1046s # } _ExtendedGDBusArgInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusMethodInfo parent_struct; 1046s # const gchar *signal_name; 1046s # gboolean pass_fdlist; 1046s # } _ExtendedGDBusMethodInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusSignalInfo parent_struct; 1046s # const gchar *signal_name; 1046s # } _ExtendedGDBusSignalInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusPropertyInfo parent_struct; 1046s # const gchar *hyphen_name; 1046s # guint use_gvariant : 1; 1046s # guint emits_changed_signal : 1; 1046s # } _ExtendedGDBusPropertyInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusInterfaceInfo parent_struct; 1046s # const gchar *hyphen_name; 1046s # } _ExtendedGDBusInterfaceInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # const _ExtendedGDBusPropertyInfo *info; 1046s # guint prop_id; 1046s # GValue orig_value; /* the value before the change */ 1046s # } ChangedProperty; 1046s # 1046s # static void 1046s # _changed_property_free (ChangedProperty *data) 1046s # { 1046s # g_value_unset (&data->orig_value); 1046s # g_free (data); 1046s # } 1046s # 1046s # static gboolean 1046s # _g_strv_equal0 (gchar **a, gchar **b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # guint n; 1046s # if (a == NULL && b == NULL) 1046s # { 1046s # ret = TRUE; 1046s # goto out; 1046s # } 1046s # if (a == NULL || b == NULL) 1046s # goto out; 1046s # if (g_strv_length (a) != g_strv_length (b)) 1046s # goto out; 1046s # for (n = 0; a[n] != NULL; n++) 1046s # if (g_strcmp0 (a[n], b[n]) != 0) 1046s # goto out; 1046s # ret = TRUE; 1046s # out: 1046s # return ret; 1046s # } 1046s # 1046s # static gboolean 1046s # _g_variant_equal0 (GVariant *a, GVariant *b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # if (a == NULL && b == NULL) 1046s # { 1046s # ret = TRUE; 1046s # goto out; 1046s # } 1046s # if (a == NULL || b == NULL) 1046s # goto out; 1046s # ret = g_variant_equal (a, b); 1046s # out: 1046s # return ret; 1046s # } 1046s # 1046s # G_GNUC_UNUSED static gboolean 1046s # _g_value_equal (const GValue *a, const GValue *b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1046s # switch (G_VALUE_TYPE (a)) 1046s # { 1046s # case G_TYPE_BOOLEAN: 1046s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1046s # break; 1046s # case G_TYPE_UCHAR: 1046s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1046s # break; 1046s # case G_TYPE_INT: 1046s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1046s # break; 1046s # case G_TYPE_UINT: 1046s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1046s # break; 1046s # case G_TYPE_INT64: 1046s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1046s # break; 1046s # case G_TYPE_UINT64: 1046s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1046s # break; 1046s # case G_TYPE_DOUBLE: 1046s # { 1046s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1046s # gdouble da = g_value_get_double (a); 1046s # gdouble db = g_value_get_double (b); 1046s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1046s # } 1046s # break; 1046s # case G_TYPE_STRING: 1046s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1046s # break; 1046s # case G_TYPE_VARIANT: 1046s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1046s # break; 1046s # default: 1046s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1046s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1046s # else 1046s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1046s # break; 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # /* ------------------------------------------------------------------------ 1046s # * Code for interface org.project.SignalingIface 1046s # * ------------------------------------------------------------------------ 1046s # */ 1046s # 1046s # /** 1046s # * SECTION:OrgProjectSignalingIface 1046s # * @title: OrgProjectSignalingIface 1046s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1046s # * 1046s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1046s # */ 1046s # 1046s # enum 1046s # { 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1046s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B, 1046s # }; 1046s # 1046s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1046s # 1046s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1046s # 1046s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "SimpleSignal", 1046s # NULL, 1046s # NULL 1046s # }, 1046s # "simple-signal" 1046s # }; 1046s # 1046s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_arg_b = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "arg_b", 1046s # (gchar *) "b", 1046s # NULL 1046s # }, 1046s # FALSE 1046s # }; 1046s # 1046s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers[] = 1046s # { 1046s # &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_arg_b.parent_struct, 1046s # NULL 1046s # }; 1046s # 1046s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_b = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "SingleArgSignalB", 1046s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers, 1046s # NULL 1046s # }, 1046s # "single-arg-signal-b" 1046s # }; 1046s # 1046s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1046s # { 1046s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1046s # &_org_project_signaling_iface_signal_info_single_arg_signal_b.parent_struct, 1046s # NULL 1046s # }; 1046s # 1046s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "org.project.SignalingIface", 1046s # NULL, 1046s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1046s # NULL, 1046s # NULL 1046s # }, 1046s # "org-project-signaling-iface", 1046s # }; 1046s # 1046s # 1046s # /** 1046s # * org_project_signaling_iface_interface_info: 1046s # * 1046s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1046s # * 1046s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1046s # */ 1046s # GDBusInterfaceInfo * 1046s # org_project_signaling_iface_interface_info (void) 1046s # { 1046s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_override_properties: 1046s # * @klass: The class structure for a #GObject derived class. 1046s # * @property_id_begin: The property id to assign to the first overridden property. 1046s # * 1046s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1046s # * The properties are overridden in the order they are defined. 1046s # * 1046s # * Returns: The last property id. 1046s # */ 1046s # guint 1046s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1046s # { 1046s # return property_id_begin - 1; 1046s # } 1046s # 1046s # 1046s # inline static void 1046s # org_project_signaling_iface_signal_marshal_simple_signal ( 1046s # GClosure *closure, 1046s # GValue *return_value, 1046s # unsigned int n_param_values, 1046s # const GValue *param_values, 1046s # void *invocation_hint, 1046s # void *marshal_data) 1046s # { 1046s # g_cclosure_marshal_VOID__VOID (closure, 1046s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1046s # } 1046s # 1046s # inline static void 1046s # org_project_signaling_iface_signal_marshal_single_arg_signal_b ( 1046s # GClosure *closure, 1046s # GValue *return_value, 1046s # unsigned int n_param_values, 1046s # const GValue *param_values, 1046s # void *invocation_hint, 1046s # void *marshal_data) 1046s # { 1046s # g_cclosure_marshal_VOID__BOOLEAN (closure, 1046s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1046s # } 1046s # 1046s # 1046s # /** 1046s # * OrgProjectSignalingIface: 1046s # * 1046s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceIface: 1046s # * @parent_iface: The parent interface. 1046s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1046s # * @single_arg_signal_b: Handler for the #OrgProjectSignalingIface::single-arg-signal-b signal. 1046s # * 1046s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1046s # */ 1046s # 1046s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1046s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1046s # 1046s # static void 1046s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1046s # { 1046s # /* GObject signals for received D-Bus signals: */ 1046s # /** 1046s # * OrgProjectSignalingIface::simple-signal: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * 1046s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1046s # * 1046s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1046s # */ 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1046s # g_signal_new ("simple-signal", 1046s # G_TYPE_FROM_INTERFACE (iface), 1046s # G_SIGNAL_RUN_LAST, 1046s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1046s # NULL, 1046s # NULL, 1046s # org_project_signaling_iface_signal_marshal_simple_signal, 1046s # G_TYPE_NONE, 1046s # 0); 1046s # 1046s # /** 1046s # * OrgProjectSignalingIface::single-arg-signal-b: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * @arg_arg_b: Argument. 1046s # * 1046s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalB" is received. 1046s # * 1046s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1046s # */ 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B] = 1046s # g_signal_new ("single-arg-signal-b", 1046s # G_TYPE_FROM_INTERFACE (iface), 1046s # G_SIGNAL_RUN_LAST, 1046s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_b), 1046s # NULL, 1046s # NULL, 1046s # org_project_signaling_iface_signal_marshal_single_arg_signal_b, 1046s # G_TYPE_NONE, 1046s # 1, G_TYPE_BOOLEAN); 1046s # 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_emit_simple_signal: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * 1046s # * Emits the "SimpleSignal" D-Bus signal. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_emit_simple_signal ( 1046s # OrgProjectSignalingIface *object) 1046s # { 1046s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_emit_single_arg_signal_b: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * @arg_arg_b: Argument to pass with the signal. 1046s # * 1046s # * Emits the "SingleArgSignalB" D-Bus signal. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_emit_single_arg_signal_b ( 1046s # OrgProjectSignalingIface *object, 1046s # gboolean arg_arg_b) 1046s # { 1046s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B], 0, arg_arg_b); 1046s # } 1046s # 1046s # /* ------------------------------------------------------------------------ */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceProxy: 1046s # * 1046s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceProxyClass: 1046s # * @parent_class: The parent class. 1046s # * 1046s # * Class structure for #OrgProjectSignalingIfaceProxy. 1046s # */ 1046s # 1046s # struct _OrgProjectSignalingIfaceProxyPrivate 1046s # { 1046s # GData *qdata; 1046s # }; 1046s # 1046s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1046s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1046s # 1046s # #else 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1046s # 1046s # #endif 1046s # static void 1046s # org_project_signaling_iface_proxy_finalize (GObject *object) 1046s # { 1046s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1046s # g_datalist_clear (&proxy->priv->qdata); 1046s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1046s # guint prop_id G_GNUC_UNUSED, 1046s # GValue *value G_GNUC_UNUSED, 1046s # GParamSpec *pspec G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1046s # guint prop_id G_GNUC_UNUSED, 1046s # const GValue *value G_GNUC_UNUSED, 1046s # GParamSpec *pspec G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1046s # const gchar *sender_name G_GNUC_UNUSED, 1046s # const gchar *signal_name, 1046s # GVariant *parameters) 1046s # { 1046s # _ExtendedGDBusSignalInfo *info; 1046s # GVariantIter iter; 1046s # GVariant *child; 1046s # GValue *paramv; 1046s # gsize num_params; 1046s # gsize n; 1046s # guint signal_id; 1046s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1046s # if (info == NULL) 1046s # return; 1046s # num_params = g_variant_n_children (parameters); 1046s # paramv = g_new0 (GValue, num_params + 1); 1046s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_set_object (¶mv[0], proxy); 1046s # g_variant_iter_init (&iter, parameters); 1046s # n = 1; 1046s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1046s # { 1046s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1046s # if (arg_info->use_gvariant) 1046s # { 1046s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1046s # g_value_set_variant (¶mv[n], child); 1046s # n++; 1046s # } 1046s # else 1046s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1046s # g_variant_unref (child); 1046s # } 1046s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_signal_emitv (paramv, signal_id, 0, NULL); 1046s # for (n = 0; n < num_params + 1; n++) 1046s # g_value_unset (¶mv[n]); 1046s # g_free (paramv); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1046s # GVariant *changed_properties, 1046s # const gchar *const *invalidated_properties) 1046s # { 1046s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1046s # guint n; 1046s # const gchar *key; 1046s # GVariantIter *iter; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # g_variant_get (changed_properties, "a{sv}", &iter); 1046s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1046s # { 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1046s # g_datalist_remove_data (&proxy->priv->qdata, key); 1046s # if (info != NULL) 1046s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1046s # } 1046s # g_variant_iter_free (iter); 1046s # for (n = 0; invalidated_properties[n] != NULL; n++) 1046s # { 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1046s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1046s # if (info != NULL) 1046s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1046s # } 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1046s # { 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1046s # #else 1046s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1046s # #endif 1046s # 1046s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1046s # { 1046s # GObjectClass *gobject_class; 1046s # GDBusProxyClass *proxy_class; 1046s # 1046s # gobject_class = G_OBJECT_CLASS (klass); 1046s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1046s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1046s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1046s # 1046s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1046s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1046s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1046s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1046s # #endif 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new: 1046s # * @connection: A #GDBusConnection. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1046s # * @user_data: User data to pass to @callback. 1046s # * 1046s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1046s # * 1046s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1046s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_proxy_new ( 1046s # GDBusConnection *connection, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GAsyncReadyCallback callback, 1046s # gpointer user_data) 1046s # { 1046s # 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); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_finish: 1046s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_finish ( 1046s # GAsyncResult *res, 1046s # GError **error) 1046s # { 1046s # GObject *ret; 1046s # GObject *source_object; 1046s # source_object = g_async_result_get_source_object (res); 1046s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1046s # g_object_unref (source_object); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_sync: 1046s # * @connection: A #GDBusConnection. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1046s # * 1046s # * The calling thread is blocked until a reply is received. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_sync ( 1046s # GDBusConnection *connection, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GError **error) 1046s # { 1046s # GInitable *ret; 1046s # 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); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus: 1046s # * @bus_type: A #GBusType. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: A bus name (well-known or unique). 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1046s # * @user_data: User data to pass to @callback. 1046s # * 1046s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1046s # * 1046s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1046s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_proxy_new_for_bus ( 1046s # GBusType bus_type, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GAsyncReadyCallback callback, 1046s # gpointer user_data) 1046s # { 1046s # 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); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1046s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1046s # GAsyncResult *res, 1046s # GError **error) 1046s # { 1046s # GObject *ret; 1046s # GObject *source_object; 1046s # source_object = g_async_result_get_source_object (res); 1046s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1046s # g_object_unref (source_object); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1046s # * @bus_type: A #GBusType. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: A bus name (well-known or unique). 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1046s # * 1046s # * The calling thread is blocked until a reply is received. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1046s # GBusType bus_type, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GError **error) 1046s # { 1046s # GInitable *ret; 1046s # 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); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # 1046s # /* ------------------------------------------------------------------------ */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceSkeleton: 1046s # * 1046s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceSkeletonClass: 1046s # * @parent_class: The parent class. 1046s # * 1046s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1046s # */ 1046s # 1046s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1046s # { 1046s # GValue *properties; 1046s # GList *changed_properties; 1046s # GSource *changed_properties_idle_source; 1046s # GMainContext *context; 1046s # GMutex lock; 1046s # }; 1046s # 1046s # static void 1046s # _org_project_signaling_iface_skeleton_handle_method_call ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name, 1046s # const gchar *method_name, 1046s # GVariant *parameters, 1046s # GDBusMethodInvocation *invocation, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # _ExtendedGDBusMethodInfo *info; 1046s # GVariantIter iter; 1046s # GVariant *child; 1046s # GValue *paramv; 1046s # gsize num_params; 1046s # guint num_extra; 1046s # gsize n; 1046s # guint signal_id; 1046s # GValue return_value = G_VALUE_INIT; 1046s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1046s # g_assert (info != NULL); 1046s # num_params = g_variant_n_children (parameters); 1046s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1046s # n = 0; 1046s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_set_object (¶mv[n++], skeleton); 1046s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1046s # g_value_set_object (¶mv[n++], invocation); 1046s # if (info->pass_fdlist) 1046s # { 1046s # #ifdef G_OS_UNIX 1046s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1046s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1046s # #else 1046s # g_assert_not_reached (); 1046s # #endif 1046s # } 1046s # g_variant_iter_init (&iter, parameters); 1046s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1046s # { 1046s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1046s # if (arg_info->use_gvariant) 1046s # { 1046s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1046s # g_value_set_variant (¶mv[n], child); 1046s # n++; 1046s # } 1046s # else 1046s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1046s # g_variant_unref (child); 1046s # } 1046s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1046s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1046s # if (!g_value_get_boolean (&return_value)) 1046s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1046s # g_value_unset (&return_value); 1046s # for (n = 0; n < num_params + num_extra; n++) 1046s # g_value_unset (¶mv[n]); 1046s # g_free (paramv); 1046s # } 1046s # 1046s # static GVariant * 1046s # _org_project_signaling_iface_skeleton_handle_get_property ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name G_GNUC_UNUSED, 1046s # const gchar *property_name, 1046s # GError **error, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # GValue value = G_VALUE_INIT; 1046s # GParamSpec *pspec; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # GVariant *ret; 1046s # ret = NULL; 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1046s # g_assert (info != NULL); 1046s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1046s # if (pspec == NULL) 1046s # { 1046s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1046s # } 1046s # else 1046s # { 1046s # g_value_init (&value, pspec->value_type); 1046s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1046s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1046s # g_value_unset (&value); 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # static gboolean 1046s # _org_project_signaling_iface_skeleton_handle_set_property ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name G_GNUC_UNUSED, 1046s # const gchar *property_name, 1046s # GVariant *variant, 1046s # GError **error, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # GValue value = G_VALUE_INIT; 1046s # GParamSpec *pspec; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # gboolean ret; 1046s # ret = FALSE; 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1046s # g_assert (info != NULL); 1046s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1046s # if (pspec == NULL) 1046s # { 1046s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1046s # } 1046s # else 1046s # { 1046s # if (info->use_gvariant) 1046s # g_value_set_variant (&value, variant); 1046s # else 1046s # g_dbus_gvariant_to_gvalue (variant, &value); 1046s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1046s # g_value_unset (&value); 1046s # ret = TRUE; 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1046s # { 1046s # _org_project_signaling_iface_skeleton_handle_method_call, 1046s # _org_project_signaling_iface_skeleton_handle_get_property, 1046s # _org_project_signaling_iface_skeleton_handle_set_property, 1046s # {NULL} 1046s # }; 1046s # 1046s # static GDBusInterfaceInfo * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1046s # { 1046s # return org_project_signaling_iface_interface_info (); 1046s # } 1046s # 1046s # static GDBusInterfaceVTable * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1046s # { 1046s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1046s # } 1046s # 1046s # static GVariant * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1046s # 1046s # GVariantBuilder builder; 1046s # guint n; 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1046s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1046s # #else 1046s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1046s # #endif 1046s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1046s # goto out; 1046s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1046s # { 1046s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1046s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1046s # { 1046s # GVariant *value; 1046s # 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); 1046s # if (value != NULL) 1046s # { 1046s # g_variant_take_ref (value); 1046s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1046s # g_variant_unref (value); 1046s # } 1046s # } 1046s # } 1046s # out: 1046s # return g_variant_builder_end (&builder); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # _org_project_signaling_iface_on_signal_simple_signal ( 1046s # OrgProjectSignalingIface *object) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # 1046s # GList *connections, *l; 1046s # GVariant *signal_variant; 1046s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1046s # 1046s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1046s # for (l = connections; l != NULL; l = l->next) 1046s # { 1046s # GDBusConnection *connection = l->data; 1046s # g_dbus_connection_emit_signal (connection, 1046s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1046s # signal_variant, NULL); 1046s # } 1046s # g_variant_unref (signal_variant); 1046s # g_list_free_full (connections, g_object_unref); 1046s # } 1046s # 1046s # static void 1046s # _org_project_signaling_iface_on_signal_single_arg_signal_b ( 1046s # OrgProjectSignalingIface *object, 1046s # gboolean arg_arg_b) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # 1046s # GList *connections, *l; 1046s # GVariant *signal_variant; 1046s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1046s # 1046s # signal_variant = g_variant_ref_sink (g_variant_new ("(b)", 1046s # arg_arg_b)); 1046s # for (l = connections; l != NULL; l = l->next) 1046s # { 1046s # GDBusConnection *connection = l->data; 1046s # g_dbus_connection_emit_signal (connection, 1046s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalB", 1046s # signal_variant, NULL); 1046s # } 1046s # g_variant_unref (signal_variant); 1046s # g_list_free_full (connections, g_object_unref); 1046s # } 1046s # 1046s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1046s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1046s # 1046s # #else 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1046s # 1046s # #endif 1046s # static void 1046s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1046s # if (skeleton->priv->changed_properties_idle_source != NULL) 1046s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1046s # g_main_context_unref (skeleton->priv->context); 1046s # g_mutex_clear (&skeleton->priv->lock); 1046s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1046s # { 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1046s # #else 1046s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1046s # #endif 1046s # 1046s # g_mutex_init (&skeleton->priv->lock); 1046s # skeleton->priv->context = g_main_context_ref_thread_default (); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1046s # { 1046s # GObjectClass *gobject_class; 1046s # GDBusInterfaceSkeletonClass *skeleton_class; 1046s # 1046s # gobject_class = G_OBJECT_CLASS (klass); 1046s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1046s # 1046s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1046s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1046s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1046s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1046s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1046s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1046s # #endif 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1046s # { 1046s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1046s # iface->single_arg_signal_b = _org_project_signaling_iface_on_signal_single_arg_signal_b; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_skeleton_new: 1046s # * 1046s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_skeleton_new (void) 1046s # { 1046s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1046s # } 1046s # Error: 1046s # 1046s # /tmp/tmppt74if37/tmp3il6dm1e.xml: 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppt74if37/tmp3il6dm1e.xml', '--output', '-', '--body'] 1046s # Return code: 0 1046s # Output: 1046s # /* 1046s # * This file is generated by gdbus-codegen, do not modify it. 1046s # * 1046s # * The license of this code is the same as for the D-Bus interface description 1046s # * it was derived from. Note that it links to GLib, so must comply with the 1046s # * LGPL linking clauses. 1046s # */ 1046s # 1046s # #ifdef HAVE_CONFIG_H 1046s # # include "config.h" 1046s # #endif 1046s # 1046s # #include 1046s # #ifdef G_OS_UNIX 1046s # # include 1046s # #endif 1046s # 1046s # #ifdef G_ENABLE_DEBUG 1046s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1046s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1046s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1046s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1046s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1046s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1046s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1046s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1046s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1046s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1046s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1046s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1046s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1046s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1046s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1046s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1046s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1046s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1046s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1046s # #else /* !G_ENABLE_DEBUG */ 1046s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1046s # * Do not access GValues directly in your code. Instead, use the 1046s # * g_value_get_*() functions 1046s # */ 1046s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1046s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1046s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1046s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1046s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1046s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1046s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1046s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1046s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1046s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1046s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1046s # #endif /* !G_ENABLE_DEBUG */ 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusArgInfo parent_struct; 1046s # gboolean use_gvariant; 1046s # } _ExtendedGDBusArgInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusMethodInfo parent_struct; 1046s # const gchar *signal_name; 1046s # gboolean pass_fdlist; 1046s # } _ExtendedGDBusMethodInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusSignalInfo parent_struct; 1046s # const gchar *signal_name; 1046s # } _ExtendedGDBusSignalInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusPropertyInfo parent_struct; 1046s # const gchar *hyphen_name; 1046s # guint use_gvariant : 1; 1046s # guint emits_changed_signal : 1; 1046s # } _ExtendedGDBusPropertyInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusInterfaceInfo parent_struct; 1046s # const gchar *hyphen_name; 1046s # } _ExtendedGDBusInterfaceInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # const _ExtendedGDBusPropertyInfo *info; 1046s # guint prop_id; 1046s # GValue orig_value; /* the value before the change */ 1046s # } ChangedProperty; 1046s # 1046s # static void 1046s # _changed_property_free (ChangedProperty *data) 1046s # { 1046s # g_value_unset (&data->orig_value); 1046s # g_free (data); 1046s # } 1046s # 1046s # static gboolean 1046s # _g_strv_equal0 (gchar **a, gchar **b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # guint n; 1046s # if (a == NULL && b == NULL) 1046s # { 1046s # ret = TRUE; 1046s # goto out; 1046s # } 1046s # if (a == NULL || b == NULL) 1046s # goto out; 1046s # if (g_strv_length (a) != g_strv_length (b)) 1046s # goto out; 1046s # for (n = 0; a[n] != NULL; n++) 1046s # if (g_strcmp0 (a[n], b[n]) != 0) 1046s # goto out; 1046s # ret = TRUE; 1046s # out: 1046s # return ret; 1046s # } 1046s # 1046s # static gboolean 1046s # _g_variant_equal0 (GVariant *a, GVariant *b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # if (a == NULL && b == NULL) 1046s # { 1046s # ret = TRUE; 1046s # goto out; 1046s # } 1046s # if (a == NULL || b == NULL) 1046s # goto out; 1046s # ret = g_variant_equal (a, b); 1046s # out: 1046s # return ret; 1046s # } 1046s # 1046s # G_GNUC_UNUSED static gboolean 1046s # _g_value_equal (const GValue *a, const GValue *b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1046s # switch (G_VALUE_TYPE (a)) 1046s # { 1046s # case G_TYPE_BOOLEAN: 1046s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1046s # break; 1046s # case G_TYPE_UCHAR: 1046s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1046s # break; 1046s # case G_TYPE_INT: 1046s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1046s # break; 1046s # case G_TYPE_UINT: 1046s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1046s # break; 1046s # case G_TYPE_INT64: 1046s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1046s # break; 1046s # case G_TYPE_UINT64: 1046s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1046s # break; 1046s # case G_TYPE_DOUBLE: 1046s # { 1046s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1046s # gdouble da = g_value_get_double (a); 1046s # gdouble db = g_value_get_double (b); 1046s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1046s # } 1046s # break; 1046s # case G_TYPE_STRING: 1046s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1046s # break; 1046s # case G_TYPE_VARIANT: 1046s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1046s # break; 1046s # default: 1046s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1046s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1046s # else 1046s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1046s # break; 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # /* ------------------------------------------------------------------------ 1046s # * Code for interface org.project.SignalingIface 1046s # * ------------------------------------------------------------------------ 1046s # */ 1046s # 1046s # /** 1046s # * SECTION:OrgProjectSignalingIface 1046s # * @title: OrgProjectSignalingIface 1046s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1046s # * 1046s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1046s # */ 1046s # 1046s # enum 1046s # { 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1046s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y, 1046s # }; 1046s # 1046s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1046s # 1046s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1046s # 1046s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "SimpleSignal", 1046s # NULL, 1046s # NULL 1046s # }, 1046s # "simple-signal" 1046s # }; 1046s # 1046s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_arg_y = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "arg_y", 1046s # (gchar *) "y", 1046s # NULL 1046s # }, 1046s # FALSE 1046s # }; 1046s # 1046s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers[] = 1046s # { 1046s # &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_arg_y.parent_struct, 1046s # NULL 1046s # }; 1046s # 1046s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_y = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "SingleArgSignalY", 1046s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers, 1046s # NULL 1046s # }, 1046s # "single-arg-signal-y" 1046s # }; 1046s # 1046s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1046s # { 1046s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1046s # &_org_project_signaling_iface_signal_info_single_arg_signal_y.parent_struct, 1046s # NULL 1046s # }; 1046s # 1046s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "org.project.SignalingIface", 1046s # NULL, 1046s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1046s # NULL, 1046s # NULL 1046s # }, 1046s # "org-project-signaling-iface", 1046s # }; 1046s # 1046s # 1046s # /** 1046s # * org_project_signaling_iface_interface_info: 1046s # * 1046s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1046s # * 1046s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1046s # */ 1046s # GDBusInterfaceInfo * 1046s # org_project_signaling_iface_interface_info (void) 1046s # { 1046s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_override_properties: 1046s # * @klass: The class structure for a #GObject derived class. 1046s # * @property_id_begin: The property id to assign to the first overridden property. 1046s # * 1046s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1046s # * The properties are overridden in the order they are defined. 1046s # * 1046s # * Returns: The last property id. 1046s # */ 1046s # guint 1046s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1046s # { 1046s # return property_id_begin - 1; 1046s # } 1046s # 1046s # 1046s # inline static void 1046s # org_project_signaling_iface_signal_marshal_simple_signal ( 1046s # GClosure *closure, 1046s # GValue *return_value, 1046s # unsigned int n_param_values, 1046s # const GValue *param_values, 1046s # void *invocation_hint, 1046s # void *marshal_data) 1046s # { 1046s # g_cclosure_marshal_VOID__VOID (closure, 1046s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1046s # } 1046s # 1046s # inline static void 1046s # org_project_signaling_iface_signal_marshal_single_arg_signal_y ( 1046s # GClosure *closure, 1046s # GValue *return_value, 1046s # unsigned int n_param_values, 1046s # const GValue *param_values, 1046s # void *invocation_hint, 1046s # void *marshal_data) 1046s # { 1046s # g_cclosure_marshal_VOID__UCHAR (closure, 1046s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1046s # } 1046s # 1046s # 1046s # /** 1046s # * OrgProjectSignalingIface: 1046s # * 1046s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceIface: 1046s # * @parent_iface: The parent interface. 1046s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1046s # * @single_arg_signal_y: Handler for the #OrgProjectSignalingIface::single-arg-signal-y signal. 1046s # * 1046s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1046s # */ 1046s # 1046s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1046s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1046s # 1046s # static void 1046s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1046s # { 1046s # /* GObject signals for received D-Bus signals: */ 1046s # /** 1046s # * OrgProjectSignalingIface::simple-signal: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * 1046s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1046s # * 1046s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1046s # */ 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1046s # g_signal_new ("simple-signal", 1046s # G_TYPE_FROM_INTERFACE (iface), 1046s # G_SIGNAL_RUN_LAST, 1046s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1046s # NULL, 1046s # NULL, 1046s # org_project_signaling_iface_signal_marshal_simple_signal, 1046s # G_TYPE_NONE, 1046s # 0); 1046s # 1046s # /** 1046s # * OrgProjectSignalingIface::single-arg-signal-y: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * @arg_arg_y: Argument. 1046s # * 1046s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalY" is received. 1046s # * 1046s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1046s # */ 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y] = 1046s # g_signal_new ("single-arg-signal-y", 1046s # G_TYPE_FROM_INTERFACE (iface), 1046s # G_SIGNAL_RUN_LAST, 1046s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_y), 1046s # NULL, 1046s # NULL, 1046s # org_project_signaling_iface_signal_marshal_single_arg_signal_y, 1046s # G_TYPE_NONE, 1046s # 1, G_TYPE_UCHAR); 1046s # 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_emit_simple_signal: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * 1046s # * Emits the "SimpleSignal" D-Bus signal. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_emit_simple_signal ( 1046s # OrgProjectSignalingIface *object) 1046s # { 1046s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_emit_single_arg_signal_y: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * @arg_arg_y: Argument to pass with the signal. 1046s # * 1046s # * Emits the "SingleArgSignalY" D-Bus signal. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_emit_single_arg_signal_y ( 1046s # OrgProjectSignalingIface *object, 1046s # guchar arg_arg_y) 1046s # { 1046s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y], 0, arg_arg_y); 1046s # } 1046s # 1046s # /* ------------------------------------------------------------------------ */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceProxy: 1046s # * 1046s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceProxyClass: 1046s # * @parent_class: The parent class. 1046s # * 1046s # * Class structure for #OrgProjectSignalingIfaceProxy. 1046s # */ 1046s # 1046s # struct _OrgProjectSignalingIfaceProxyPrivate 1046s # { 1046s # GData *qdata; 1046s # }; 1046s # 1046s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1046s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1046s # 1046s # #else 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1046s # 1046s # #endif 1046s # static void 1046s # org_project_signaling_iface_proxy_finalize (GObject *object) 1046s # { 1046s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1046s # g_datalist_clear (&proxy->priv->qdata); 1046s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1046s # guint prop_id G_GNUC_UNUSED, 1046s # GValue *value G_GNUC_UNUSED, 1046s # GParamSpec *pspec G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1046s # guint prop_id G_GNUC_UNUSED, 1046s # const GValue *value G_GNUC_UNUSED, 1046s # GParamSpec *pspec G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1046s # const gchar *sender_name G_GNUC_UNUSED, 1046s # const gchar *signal_name, 1046s # GVariant *parameters) 1046s # { 1046s # _ExtendedGDBusSignalInfo *info; 1046s # GVariantIter iter; 1046s # GVariant *child; 1046s # GValue *paramv; 1046s # gsize num_params; 1046s # gsize n; 1046s # guint signal_id; 1046s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1046s # if (info == NULL) 1046s # return; 1046s # num_params = g_variant_n_children (parameters); 1046s # paramv = g_new0 (GValue, num_params + 1); 1046s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_set_object (¶mv[0], proxy); 1046s # g_variant_iter_init (&iter, parameters); 1046s # n = 1; 1046s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1046s # { 1046s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1046s # if (arg_info->use_gvariant) 1046s # { 1046s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1046s # g_value_set_variant (¶mv[n], child); 1046s # n++; 1046s # } 1046s # else 1046s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1046s # g_variant_unref (child); 1046s # } 1046s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_signal_emitv (paramv, signal_id, 0, NULL); 1046s # for (n = 0; n < num_params + 1; n++) 1046s # g_value_unset (¶mv[n]); 1046s # g_free (paramv); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1046s # GVariant *changed_properties, 1046s # const gchar *const *invalidated_properties) 1046s # { 1046s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1046s # guint n; 1046s # const gchar *key; 1046s # GVariantIter *iter; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # g_variant_get (changed_properties, "a{sv}", &iter); 1046s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1046s # { 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1046s # g_datalist_remove_data (&proxy->priv->qdata, key); 1046s # if (info != NULL) 1046s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1046s # } 1046s # g_variant_iter_free (iter); 1046s # for (n = 0; invalidated_properties[n] != NULL; n++) 1046s # { 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1046s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1046s # if (info != NULL) 1046s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1046s # } 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1046s # { 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1046s # #else 1046s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1046s # #endif 1046s # 1046s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1046s # { 1046s # GObjectClass *gobject_class; 1046s # GDBusProxyClass *proxy_class; 1046s # 1046s # gobject_class = G_OBJECT_CLASS (klass); 1046s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1046s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1046s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1046s # 1046s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1046s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1046s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1046s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1046s # #endif 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new: 1046s # * @connection: A #GDBusConnection. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1046s # * @user_data: User data to pass to @callback. 1046s # * 1046s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1046s # * 1046s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1046s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_proxy_new ( 1046s # GDBusConnection *connection, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GAsyncReadyCallback callback, 1046s # gpointer user_data) 1046s # { 1046s # 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); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_finish: 1046s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_finish ( 1046s # GAsyncResult *res, 1046s # GError **error) 1046s # { 1046s # GObject *ret; 1046s # GObject *source_object; 1046s # source_object = g_async_result_get_source_object (res); 1046s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1046s # g_object_unref (source_object); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_sync: 1046s # * @connection: A #GDBusConnection. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1046s # * 1046s # * The calling thread is blocked until a reply is received. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_sync ( 1046s # GDBusConnection *connection, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GError **error) 1046s # { 1046s # GInitable *ret; 1046s # 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); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus: 1046s # * @bus_type: A #GBusType. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: A bus name (well-known or unique). 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1046s # * @user_data: User data to pass to @callback. 1046s # * 1046s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1046s # * 1046s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1046s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_proxy_new_for_bus ( 1046s # GBusType bus_type, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GAsyncReadyCallback callback, 1046s # gpointer user_data) 1046s # { 1046s # 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); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1046s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1046s # GAsyncResult *res, 1046s # GError **error) 1046s # { 1046s # GObject *ret; 1046s # GObject *source_object; 1046s # source_object = g_async_result_get_source_object (res); 1046s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1046s # g_object_unref (source_object); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1046s # * @bus_type: A #GBusType. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: A bus name (well-known or unique). 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1046s # * 1046s # * The calling thread is blocked until a reply is received. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1046s # GBusType bus_type, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GError **error) 1046s # { 1046s # GInitable *ret; 1046s # 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); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # 1046s # /* ------------------------------------------------------------------------ */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceSkeleton: 1046s # * 1046s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceSkeletonClass: 1046s # * @parent_class: The parent class. 1046s # * 1046s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1046s # */ 1046s # 1046s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1046s # { 1046s # GValue *properties; 1046s # GList *changed_properties; 1046s # GSource *changed_properties_idle_source; 1046s # GMainContext *context; 1046s # GMutex lock; 1046s # }; 1046s # 1046s # static void 1046s # _org_project_signaling_iface_skeleton_handle_method_call ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name, 1046s # const gchar *method_name, 1046s # GVariant *parameters, 1046s # GDBusMethodInvocation *invocation, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # _ExtendedGDBusMethodInfo *info; 1046s # GVariantIter iter; 1046s # GVariant *child; 1046s # GValue *paramv; 1046s # gsize num_params; 1046s # guint num_extra; 1046s # gsize n; 1046s # guint signal_id; 1046s # GValue return_value = G_VALUE_INIT; 1046s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1046s # g_assert (info != NULL); 1046s # num_params = g_variant_n_children (parameters); 1046s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1046s # n = 0; 1046s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_set_object (¶mv[n++], skeleton); 1046s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1046s # g_value_set_object (¶mv[n++], invocation); 1046s # if (info->pass_fdlist) 1046s # { 1046s # #ifdef G_OS_UNIX 1046s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1046s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1046s # #else 1046s # g_assert_not_reached (); 1046s # #endif 1046s # } 1046s # g_variant_iter_init (&iter, parameters); 1046s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1046s # { 1046s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1046s # if (arg_info->use_gvariant) 1046s # { 1046s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1046s # g_value_set_variant (¶mv[n], child); 1046s # n++; 1046s # } 1046s # else 1046s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1046s # g_variant_unref (child); 1046s # } 1046s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1046s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1046s # if (!g_value_get_boolean (&return_value)) 1046s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1046s # g_value_unset (&return_value); 1046s # for (n = 0; n < num_params + num_extra; n++) 1046s # g_value_unset (¶mv[n]); 1046s # g_free (paramv); 1046s # } 1046s # 1046s # static GVariant * 1046s # _org_project_signaling_iface_skeleton_handle_get_property ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name G_GNUC_UNUSED, 1046s # const gchar *property_name, 1046s # GError **error, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # GValue value = G_VALUE_INIT; 1046s # GParamSpec *pspec; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # GVariant *ret; 1046s # ret = NULL; 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1046s # g_assert (info != NULL); 1046s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1046s # if (pspec == NULL) 1046s # { 1046s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1046s # } 1046s # else 1046s # { 1046s # g_value_init (&value, pspec->value_type); 1046s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1046s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1046s # g_value_unset (&value); 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # static gboolean 1046s # _org_project_signaling_iface_skeleton_handle_set_property ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name G_GNUC_UNUSED, 1046s # const gchar *property_name, 1046s # GVariant *variant, 1046s # GError **error, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # GValue value = G_VALUE_INIT; 1046s # GParamSpec *pspec; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # gboolean ret; 1046s # ret = FALSE; 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1046s # g_assert (info != NULL); 1046s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1046s # if (pspec == NULL) 1046s # { 1046s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1046s # } 1046s # else 1046s # { 1046s # if (info->use_gvariant) 1046s # g_value_set_variant (&value, variant); 1046s # else 1046s # g_dbus_gvariant_to_gvalue (variant, &value); 1046s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1046s # g_value_unset (&value); 1046s # ret = TRUE; 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1046s # { 1046s # _org_project_signaling_iface_skeleton_handle_method_call, 1046s # _org_project_signaling_iface_skeleton_handle_get_property, 1046s # _org_project_signaling_iface_skeleton_handle_set_property, 1046s # {NULL} 1046s # }; 1046s # 1046s # static GDBusInterfaceInfo * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1046s # { 1046s # return org_project_signaling_iface_interface_info (); 1046s # } 1046s # 1046s # static GDBusInterfaceVTable * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1046s # { 1046s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1046s # } 1046s # 1046s # static GVariant * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1046s # 1046s # GVariantBuilder builder; 1046s # guint n; 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1046s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1046s # #else 1046s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1046s # #endif 1046s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1046s # goto out; 1046s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1046s # { 1046s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1046s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1046s # { 1046s # GVariant *value; 1046s # 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); 1046s # if (value != NULL) 1046s # { 1046s # g_variant_take_ref (value); 1046s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1046s # g_variant_unref (value); 1046s # } 1046s # } 1046s # } 1046s # out: 1046s # return g_variant_builder_end (&builder); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # _org_project_signaling_iface_on_signal_simple_signal ( 1046s # OrgProjectSignalingIface *object) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # 1046s # GList *connections, *l; 1046s # GVariant *signal_variant; 1046s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1046s # 1046s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1046s # for (l = connections; l != NULL; l = l->next) 1046s # { 1046s # GDBusConnection *connection = l->data; 1046s # g_dbus_connection_emit_signal (connection, 1046s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1046s # signal_variant, NULL); 1046s # } 1046s # g_variant_unref (signal_variant); 1046s # g_list_free_full (connections, g_object_unref); 1046s # } 1046s # 1046s # static void 1046s # _org_project_signaling_iface_on_signal_single_arg_signal_y ( 1046s # OrgProjectSignalingIface *object, 1046s # guchar arg_arg_y) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # 1046s # GList *connections, *l; 1046s # GVariant *signal_variant; 1046s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1046s # 1046s # signal_variant = g_variant_ref_sink (g_variant_new ("(y)", 1046s # arg_arg_y)); 1046s # for (l = connections; l != NULL; l = l->next) 1046s # { 1046s # GDBusConnection *connection = l->data; 1046s # g_dbus_connection_emit_signal (connection, 1046s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalY", 1046s # signal_variant, NULL); 1046s # } 1046s # g_variant_unref (signal_variant); 1046s # g_list_free_full (connections, g_object_unref); 1046s # } 1046s # 1046s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1046s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1046s # 1046s # #else 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1046s # 1046s # #endif 1046s # static void 1046s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1046s # if (skeleton->priv->changed_properties_idle_source != NULL) 1046s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1046s # g_main_context_unref (skeleton->priv->context); 1046s # g_mutex_clear (&skeleton->priv->lock); 1046s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1046s # { 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1046s # #else 1046s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1046s # #endif 1046s # 1046s # g_mutex_init (&skeleton->priv->lock); 1046s # skeleton->priv->context = g_main_context_ref_thread_default (); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1046s # { 1046s # GObjectClass *gobject_class; 1046s # GDBusInterfaceSkeletonClass *skeleton_class; 1046s # 1046s # gobject_class = G_OBJECT_CLASS (klass); 1046s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1046s # 1046s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1046s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1046s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1046s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1046s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1046s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1046s # #endif 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1046s # { 1046s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1046s # iface->single_arg_signal_y = _org_project_signaling_iface_on_signal_single_arg_signal_y; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_skeleton_new: 1046s # * 1046s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_skeleton_new (void) 1046s # { 1046s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1046s # } 1046s # Error: 1046s # 1046s # /tmp/tmppt74if37/tmpvvfmegs8.xml: 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppt74if37/tmpvvfmegs8.xml', '--output', '-', '--body'] 1046s # Return code: 0 1046s # Output: 1046s # /* 1046s # * This file is generated by gdbus-codegen, do not modify it. 1046s # * 1046s # * The license of this code is the same as for the D-Bus interface description 1046s # * it was derived from. Note that it links to GLib, so must comply with the 1046s # * LGPL linking clauses. 1046s # */ 1046s # 1046s # #ifdef HAVE_CONFIG_H 1046s # # include "config.h" 1046s # #endif 1046s # 1046s # #include 1046s # #ifdef G_OS_UNIX 1046s # # include 1046s # #endif 1046s # 1046s # #ifdef G_ENABLE_DEBUG 1046s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1046s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1046s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1046s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1046s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1046s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1046s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1046s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1046s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1046s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1046s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1046s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1046s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1046s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1046s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1046s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1046s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1046s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1046s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1046s # #else /* !G_ENABLE_DEBUG */ 1046s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1046s # * Do not access GValues directly in your code. Instead, use the 1046s # * g_value_get_*() functions 1046s # */ 1046s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1046s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1046s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1046s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1046s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1046s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1046s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1046s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1046s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1046s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1046s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1046s # #endif /* !G_ENABLE_DEBUG */ 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusArgInfo parent_struct; 1046s # gboolean use_gvariant; 1046s # } _ExtendedGDBusArgInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusMethodInfo parent_struct; 1046s # const gchar *signal_name; 1046s # gboolean pass_fdlist; 1046s # } _ExtendedGDBusMethodInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusSignalInfo parent_struct; 1046s # const gchar *signal_name; 1046s # } _ExtendedGDBusSignalInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusPropertyInfo parent_struct; 1046s # const gchar *hyphen_name; 1046s # guint use_gvariant : 1; 1046s # guint emits_changed_signal : 1; 1046s # } _ExtendedGDBusPropertyInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusInterfaceInfo parent_struct; 1046s # const gchar *hyphen_name; 1046s # } _ExtendedGDBusInterfaceInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # const _ExtendedGDBusPropertyInfo *info; 1046s # guint prop_id; 1046s # GValue orig_value; /* the value before the change */ 1046s # } ChangedProperty; 1046s # 1046s # static void 1046s # _changed_property_free (ChangedProperty *data) 1046s # { 1046s # g_value_unset (&data->orig_value); 1046s # g_free (data); 1046s # } 1046s # 1046s # static gboolean 1046s # _g_strv_equal0 (gchar **a, gchar **b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # guint n; 1046s # if (a == NULL && b == NULL) 1046s # { 1046s # ret = TRUE; 1046s # goto out; 1046s # } 1046s # if (a == NULL || b == NULL) 1046s # goto out; 1046s # if (g_strv_length (a) != g_strv_length (b)) 1046s # goto out; 1046s # for (n = 0; a[n] != NULL; n++) 1046s # if (g_strcmp0 (a[n], b[n]) != 0) 1046s # goto out; 1046s # ret = TRUE; 1046s # out: 1046s # return ret; 1046s # } 1046s # 1046s # static gboolean 1046s # _g_variant_equal0 (GVariant *a, GVariant *b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # if (a == NULL && b == NULL) 1046s # { 1046s # ret = TRUE; 1046s # goto out; 1046s # } 1046s # if (a == NULL || b == NULL) 1046s # goto out; 1046s # ret = g_variant_equal (a, b); 1046s # out: 1046s # return ret; 1046s # } 1046s # 1046s # G_GNUC_UNUSED static gboolean 1046s # _g_value_equal (const GValue *a, const GValue *b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1046s # switch (G_VALUE_TYPE (a)) 1046s # { 1046s # case G_TYPE_BOOLEAN: 1046s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1046s # break; 1046s # case G_TYPE_UCHAR: 1046s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1046s # break; 1046s # case G_TYPE_INT: 1046s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1046s # break; 1046s # case G_TYPE_UINT: 1046s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1046s # break; 1046s # case G_TYPE_INT64: 1046s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1046s # break; 1046s # case G_TYPE_UINT64: 1046s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1046s # break; 1046s # case G_TYPE_DOUBLE: 1046s # { 1046s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1046s # gdouble da = g_value_get_double (a); 1046s # gdouble db = g_value_get_double (b); 1046s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1046s # } 1046s # break; 1046s # case G_TYPE_STRING: 1046s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1046s # break; 1046s # case G_TYPE_VARIANT: 1046s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1046s # break; 1046s # default: 1046s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1046s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1046s # else 1046s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1046s # break; 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # /* ------------------------------------------------------------------------ 1046s # * Code for interface org.project.SignalingIface 1046s # * ------------------------------------------------------------------------ 1046s # */ 1046s # 1046s # /** 1046s # * SECTION:OrgProjectSignalingIface 1046s # * @title: OrgProjectSignalingIface 1046s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1046s # * 1046s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1046s # */ 1046s # 1046s # enum 1046s # { 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1046s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N, 1046s # }; 1046s # 1046s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1046s # 1046s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1046s # 1046s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "SimpleSignal", 1046s # NULL, 1046s # NULL 1046s # }, 1046s # "simple-signal" 1046s # }; 1046s # 1046s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_arg_n = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "arg_n", 1046s # (gchar *) "n", 1046s # NULL 1046s # }, 1046s # FALSE 1046s # }; 1046s # 1046s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers[] = 1046s # { 1046s # &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_arg_n.parent_struct, 1046s # NULL 1046s # }; 1046s # 1046s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_n = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "SingleArgSignalN", 1046s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers, 1046s # NULL 1046s # }, 1046s # "single-arg-signal-n" 1046s # }; 1046s # 1046s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1046s # { 1046s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1046s # &_org_project_signaling_iface_signal_info_single_arg_signal_n.parent_struct, 1046s # NULL 1046s # }; 1046s # 1046s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "org.project.SignalingIface", 1046s # NULL, 1046s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1046s # NULL, 1046s # NULL 1046s # }, 1046s # "org-project-signaling-iface", 1046s # }; 1046s # 1046s # 1046s # /** 1046s # * org_project_signaling_iface_interface_info: 1046s # * 1046s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1046s # * 1046s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1046s # */ 1046s # GDBusInterfaceInfo * 1046s # org_project_signaling_iface_interface_info (void) 1046s # { 1046s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_override_properties: 1046s # * @klass: The class structure for a #GObject derived class. 1046s # * @property_id_begin: The property id to assign to the first overridden property. 1046s # * 1046s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1046s # * The properties are overridden in the order they are defined. 1046s # * 1046s # * Returns: The last property id. 1046s # */ 1046s # guint 1046s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1046s # { 1046s # return property_id_begin - 1; 1046s # } 1046s # 1046s # 1046s # inline static void 1046s # org_project_signaling_iface_signal_marshal_simple_signal ( 1046s # GClosure *closure, 1046s # GValue *return_value, 1046s # unsigned int n_param_values, 1046s # const GValue *param_values, 1046s # void *invocation_hint, 1046s # void *marshal_data) 1046s # { 1046s # g_cclosure_marshal_VOID__VOID (closure, 1046s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1046s # } 1046s # 1046s # inline static void 1046s # org_project_signaling_iface_signal_marshal_single_arg_signal_n ( 1046s # GClosure *closure, 1046s # GValue *return_value, 1046s # unsigned int n_param_values, 1046s # const GValue *param_values, 1046s # void *invocation_hint, 1046s # void *marshal_data) 1046s # { 1046s # g_cclosure_marshal_VOID__INT (closure, 1046s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1046s # } 1046s # 1046s # 1046s # /** 1046s # * OrgProjectSignalingIface: 1046s # * 1046s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceIface: 1046s # * @parent_iface: The parent interface. 1046s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1046s # * @single_arg_signal_n: Handler for the #OrgProjectSignalingIface::single-arg-signal-n signal. 1046s # * 1046s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1046s # */ 1046s # 1046s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1046s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1046s # 1046s # static void 1046s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1046s # { 1046s # /* GObject signals for received D-Bus signals: */ 1046s # /** 1046s # * OrgProjectSignalingIface::simple-signal: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * 1046s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1046s # * 1046s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1046s # */ 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1046s # g_signal_new ("simple-signal", 1046s # G_TYPE_FROM_INTERFACE (iface), 1046s # G_SIGNAL_RUN_LAST, 1046s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1046s # NULL, 1046s # NULL, 1046s # org_project_signaling_iface_signal_marshal_simple_signal, 1046s # G_TYPE_NONE, 1046s # 0); 1046s # 1046s # /** 1046s # * OrgProjectSignalingIface::single-arg-signal-n: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * @arg_arg_n: Argument. 1046s # * 1046s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalN" is received. 1046s # * 1046s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1046s # */ 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N] = 1046s # g_signal_new ("single-arg-signal-n", 1046s # G_TYPE_FROM_INTERFACE (iface), 1046s # G_SIGNAL_RUN_LAST, 1046s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_n), 1046s # NULL, 1046s # NULL, 1046s # org_project_signaling_iface_signal_marshal_single_arg_signal_n, 1046s # G_TYPE_NONE, 1046s # 1, G_TYPE_INT); 1046s # 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_emit_simple_signal: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * 1046s # * Emits the "SimpleSignal" D-Bus signal. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_emit_simple_signal ( 1046s # OrgProjectSignalingIface *object) 1046s # { 1046s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_emit_single_arg_signal_n: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * @arg_arg_n: Argument to pass with the signal. 1046s # * 1046s # * Emits the "SingleArgSignalN" D-Bus signal. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_emit_single_arg_signal_n ( 1046s # OrgProjectSignalingIface *object, 1046s # gint16 arg_arg_n) 1046s # { 1046s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N], 0, arg_arg_n); 1046s # } 1046s # 1046s # /* ------------------------------------------------------------------------ */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceProxy: 1046s # * 1046s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceProxyClass: 1046s # * @parent_class: The parent class. 1046s # * 1046s # * Class structure for #OrgProjectSignalingIfaceProxy. 1046s # */ 1046s # 1046s # struct _OrgProjectSignalingIfaceProxyPrivate 1046s # { 1046s # GData *qdata; 1046s # }; 1046s # 1046s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1046s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1046s # 1046s # #else 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1046s # 1046s # #endif 1046s # static void 1046s # org_project_signaling_iface_proxy_finalize (GObject *object) 1046s # { 1046s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1046s # g_datalist_clear (&proxy->priv->qdata); 1046s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1046s # guint prop_id G_GNUC_UNUSED, 1046s # GValue *value G_GNUC_UNUSED, 1046s # GParamSpec *pspec G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1046s # guint prop_id G_GNUC_UNUSED, 1046s # const GValue *value G_GNUC_UNUSED, 1046s # GParamSpec *pspec G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1046s # const gchar *sender_name G_GNUC_UNUSED, 1046s # const gchar *signal_name, 1046s # GVariant *parameters) 1046s # { 1046s # _ExtendedGDBusSignalInfo *info; 1046s # GVariantIter iter; 1046s # GVariant *child; 1046s # GValue *paramv; 1046s # gsize num_params; 1046s # gsize n; 1046s # guint signal_id; 1046s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1046s # if (info == NULL) 1046s # return; 1046s # num_params = g_variant_n_children (parameters); 1046s # paramv = g_new0 (GValue, num_params + 1); 1046s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_set_object (¶mv[0], proxy); 1046s # g_variant_iter_init (&iter, parameters); 1046s # n = 1; 1046s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1046s # { 1046s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1046s # if (arg_info->use_gvariant) 1046s # { 1046s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1046s # g_value_set_variant (¶mv[n], child); 1046s # n++; 1046s # } 1046s # else 1046s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1046s # g_variant_unref (child); 1046s # } 1046s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_signal_emitv (paramv, signal_id, 0, NULL); 1046s # for (n = 0; n < num_params + 1; n++) 1046s # g_value_unset (¶mv[n]); 1046s # g_free (paramv); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1046s # GVariant *changed_properties, 1046s # const gchar *const *invalidated_properties) 1046s # { 1046s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1046s # guint n; 1046s # const gchar *key; 1046s # GVariantIter *iter; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # g_variant_get (changed_properties, "a{sv}", &iter); 1046s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1046s # { 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1046s # g_datalist_remove_data (&proxy->priv->qdata, key); 1046s # if (info != NULL) 1046s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1046s # } 1046s # g_variant_iter_free (iter); 1046s # for (n = 0; invalidated_properties[n] != NULL; n++) 1046s # { 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1046s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1046s # if (info != NULL) 1046s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1046s # } 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1046s # { 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1046s # #else 1046s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1046s # #endif 1046s # 1046s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1046s # { 1046s # GObjectClass *gobject_class; 1046s # GDBusProxyClass *proxy_class; 1046s # 1046s # gobject_class = G_OBJECT_CLASS (klass); 1046s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1046s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1046s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1046s # 1046s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1046s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1046s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1046s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1046s # #endif 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new: 1046s # * @connection: A #GDBusConnection. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1046s # * @user_data: User data to pass to @callback. 1046s # * 1046s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1046s # * 1046s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1046s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_proxy_new ( 1046s # GDBusConnection *connection, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GAsyncReadyCallback callback, 1046s # gpointer user_data) 1046s # { 1046s # 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); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_finish: 1046s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_finish ( 1046s # GAsyncResult *res, 1046s # GError **error) 1046s # { 1046s # GObject *ret; 1046s # GObject *source_object; 1046s # source_object = g_async_result_get_source_object (res); 1046s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1046s # g_object_unref (source_object); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_sync: 1046s # * @connection: A #GDBusConnection. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1046s # * 1046s # * The calling thread is blocked until a reply is received. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_sync ( 1046s # GDBusConnection *connection, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GError **error) 1046s # { 1046s # GInitable *ret; 1046s # 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); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus: 1046s # * @bus_type: A #GBusType. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: A bus name (well-known or unique). 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1046s # * @user_data: User data to pass to @callback. 1046s # * 1046s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1046s # * 1046s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1046s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_proxy_new_for_bus ( 1046s # GBusType bus_type, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GAsyncReadyCallback callback, 1046s # gpointer user_data) 1046s # { 1046s # 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); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1046s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1046s # GAsyncResult *res, 1046s # GError **error) 1046s # { 1046s # GObject *ret; 1046s # GObject *source_object; 1046s # source_object = g_async_result_get_source_object (res); 1046s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1046s # g_object_unref (source_object); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1046s # * @bus_type: A #GBusType. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: A bus name (well-known or unique). 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1046s # * 1046s # * The calling thread is blocked until a reply is received. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1046s # GBusType bus_type, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GError **error) 1046s # { 1046s # GInitable *ret; 1046s # 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); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # 1046s # /* ------------------------------------------------------------------------ */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceSkeleton: 1046s # * 1046s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceSkeletonClass: 1046s # * @parent_class: The parent class. 1046s # * 1046s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1046s # */ 1046s # 1046s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1046s # { 1046s # GValue *properties; 1046s # GList *changed_properties; 1046s # GSource *changed_properties_idle_source; 1046s # GMainContext *context; 1046s # GMutex lock; 1046s # }; 1046s # 1046s # static void 1046s # _org_project_signaling_iface_skeleton_handle_method_call ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name, 1046s # const gchar *method_name, 1046s # GVariant *parameters, 1046s # GDBusMethodInvocation *invocation, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # _ExtendedGDBusMethodInfo *info; 1046s # GVariantIter iter; 1046s # GVariant *child; 1046s # GValue *paramv; 1046s # gsize num_params; 1046s # guint num_extra; 1046s # gsize n; 1046s # guint signal_id; 1046s # GValue return_value = G_VALUE_INIT; 1046s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1046s # g_assert (info != NULL); 1046s # num_params = g_variant_n_children (parameters); 1046s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1046s # n = 0; 1046s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_set_object (¶mv[n++], skeleton); 1046s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1046s # g_value_set_object (¶mv[n++], invocation); 1046s # if (info->pass_fdlist) 1046s # { 1046s # #ifdef G_OS_UNIX 1046s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1046s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1046s # #else 1046s # g_assert_not_reached (); 1046s # #endif 1046s # } 1046s # g_variant_iter_init (&iter, parameters); 1046s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1046s # { 1046s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1046s # if (arg_info->use_gvariant) 1046s # { 1046s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1046s # g_value_set_variant (¶mv[n], child); 1046s # n++; 1046s # } 1046s # else 1046s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1046s # g_variant_unref (child); 1046s # } 1046s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1046s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1046s # if (!g_value_get_boolean (&return_value)) 1046s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1046s # g_value_unset (&return_value); 1046s # for (n = 0; n < num_params + num_extra; n++) 1046s # g_value_unset (¶mv[n]); 1046s # g_free (paramv); 1046s # } 1046s # 1046s # static GVariant * 1046s # _org_project_signaling_iface_skeleton_handle_get_property ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name G_GNUC_UNUSED, 1046s # const gchar *property_name, 1046s # GError **error, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # GValue value = G_VALUE_INIT; 1046s # GParamSpec *pspec; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # GVariant *ret; 1046s # ret = NULL; 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1046s # g_assert (info != NULL); 1046s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1046s # if (pspec == NULL) 1046s # { 1046s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1046s # } 1046s # else 1046s # { 1046s # g_value_init (&value, pspec->value_type); 1046s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1046s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1046s # g_value_unset (&value); 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # static gboolean 1046s # _org_project_signaling_iface_skeleton_handle_set_property ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name G_GNUC_UNUSED, 1046s # const gchar *property_name, 1046s # GVariant *variant, 1046s # GError **error, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # GValue value = G_VALUE_INIT; 1046s # GParamSpec *pspec; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # gboolean ret; 1046s # ret = FALSE; 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1046s # g_assert (info != NULL); 1046s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1046s # if (pspec == NULL) 1046s # { 1046s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1046s # } 1046s # else 1046s # { 1046s # if (info->use_gvariant) 1046s # g_value_set_variant (&value, variant); 1046s # else 1046s # g_dbus_gvariant_to_gvalue (variant, &value); 1046s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1046s # g_value_unset (&value); 1046s # ret = TRUE; 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1046s # { 1046s # _org_project_signaling_iface_skeleton_handle_method_call, 1046s # _org_project_signaling_iface_skeleton_handle_get_property, 1046s # _org_project_signaling_iface_skeleton_handle_set_property, 1046s # {NULL} 1046s # }; 1046s # 1046s # static GDBusInterfaceInfo * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1046s # { 1046s # return org_project_signaling_iface_interface_info (); 1046s # } 1046s # 1046s # static GDBusInterfaceVTable * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1046s # { 1046s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1046s # } 1046s # 1046s # static GVariant * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1046s # 1046s # GVariantBuilder builder; 1046s # guint n; 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1046s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1046s # #else 1046s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1046s # #endif 1046s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1046s # goto out; 1046s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1046s # { 1046s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1046s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1046s # { 1046s # GVariant *value; 1046s # 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); 1046s # if (value != NULL) 1046s # { 1046s # g_variant_take_ref (value); 1046s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1046s # g_variant_unref (value); 1046s # } 1046s # } 1046s # } 1046s # out: 1046s # return g_variant_builder_end (&builder); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # _org_project_signaling_iface_on_signal_simple_signal ( 1046s # OrgProjectSignalingIface *object) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # 1046s # GList *connections, *l; 1046s # GVariant *signal_variant; 1046s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1046s # 1046s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1046s # for (l = connections; l != NULL; l = l->next) 1046s # { 1046s # GDBusConnection *connection = l->data; 1046s # g_dbus_connection_emit_signal (connection, 1046s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1046s # signal_variant, NULL); 1046s # } 1046s # g_variant_unref (signal_variant); 1046s # g_list_free_full (connections, g_object_unref); 1046s # } 1046s # 1046s # static void 1046s # _org_project_signaling_iface_on_signal_single_arg_signal_n ( 1046s # OrgProjectSignalingIface *object, 1046s # gint16 arg_arg_n) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # 1046s # GList *connections, *l; 1046s # GVariant *signal_variant; 1046s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1046s # 1046s # signal_variant = g_variant_ref_sink (g_variant_new ("(n)", 1046s # arg_arg_n)); 1046s # for (l = connections; l != NULL; l = l->next) 1046s # { 1046s # GDBusConnection *connection = l->data; 1046s # g_dbus_connection_emit_signal (connection, 1046s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalN", 1046s # signal_variant, NULL); 1046s # } 1046s # g_variant_unref (signal_variant); 1046s # g_list_free_full (connections, g_object_unref); 1046s # } 1046s # 1046s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1046s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1046s # 1046s # #else 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1046s # 1046s # #endif 1046s # static void 1046s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1046s # if (skeleton->priv->changed_properties_idle_source != NULL) 1046s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1046s # g_main_context_unref (skeleton->priv->context); 1046s # g_mutex_clear (&skeleton->priv->lock); 1046s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1046s # { 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1046s # #else 1046s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1046s # #endif 1046s # 1046s # g_mutex_init (&skeleton->priv->lock); 1046s # skeleton->priv->context = g_main_context_ref_thread_default (); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1046s # { 1046s # GObjectClass *gobject_class; 1046s # GDBusInterfaceSkeletonClass *skeleton_class; 1046s # 1046s # gobject_class = G_OBJECT_CLASS (klass); 1046s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1046s # 1046s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1046s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1046s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1046s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1046s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1046s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1046s # #endif 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1046s # { 1046s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1046s # iface->single_arg_signal_n = _org_project_signaling_iface_on_signal_single_arg_signal_n; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_skeleton_new: 1046s # * 1046s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_skeleton_new (void) 1046s # { 1046s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1046s # } 1046s # Error: 1046s # 1046s # /tmp/tmppt74if37/tmpqpxhrzn5.xml: 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppt74if37/tmpqpxhrzn5.xml', '--output', '-', '--body'] 1046s # Return code: 0 1046s # Output: 1046s # /* 1046s # * This file is generated by gdbus-codegen, do not modify it. 1046s # * 1046s # * The license of this code is the same as for the D-Bus interface description 1046s # * it was derived from. Note that it links to GLib, so must comply with the 1046s # * LGPL linking clauses. 1046s # */ 1046s # 1046s # #ifdef HAVE_CONFIG_H 1046s # # include "config.h" 1046s # #endif 1046s # 1046s # #include 1046s # #ifdef G_OS_UNIX 1046s # # include 1046s # #endif 1046s # 1046s # #ifdef G_ENABLE_DEBUG 1046s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1046s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1046s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1046s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1046s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1046s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1046s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1046s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1046s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1046s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1046s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1046s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1046s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1046s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1046s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1046s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1046s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1046s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1046s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1046s # #else /* !G_ENABLE_DEBUG */ 1046s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1046s # * Do not access GValues directly in your code. Instead, use the 1046s # * g_value_get_*() functions 1046s # */ 1046s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1046s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1046s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1046s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1046s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1046s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1046s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1046s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1046s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1046s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1046s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1046s # #endif /* !G_ENABLE_DEBUG */ 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusArgInfo parent_struct; 1046s # gboolean use_gvariant; 1046s # } _ExtendedGDBusArgInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusMethodInfo parent_struct; 1046s # const gchar *signal_name; 1046s # gboolean pass_fdlist; 1046s # } _ExtendedGDBusMethodInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusSignalInfo parent_struct; 1046s # const gchar *signal_name; 1046s # } _ExtendedGDBusSignalInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusPropertyInfo parent_struct; 1046s # const gchar *hyphen_name; 1046s # guint use_gvariant : 1; 1046s # guint emits_changed_signal : 1; 1046s # } _ExtendedGDBusPropertyInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusInterfaceInfo parent_struct; 1046s # const gchar *hyphen_name; 1046s # } _ExtendedGDBusInterfaceInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # const _ExtendedGDBusPropertyInfo *info; 1046s # guint prop_id; 1046s # GValue orig_value; /* the value before the change */ 1046s # } ChangedProperty; 1046s # 1046s # static void 1046s # _changed_property_free (ChangedProperty *data) 1046s # { 1046s # g_value_unset (&data->orig_value); 1046s # g_free (data); 1046s # } 1046s # 1046s # static gboolean 1046s # _g_strv_equal0 (gchar **a, gchar **b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # guint n; 1046s # if (a == NULL && b == NULL) 1046s # { 1046s # ret = TRUE; 1046s # goto out; 1046s # } 1046s # if (a == NULL || b == NULL) 1046s # goto out; 1046s # if (g_strv_length (a) != g_strv_length (b)) 1046s # goto out; 1046s # for (n = 0; a[n] != NULL; n++) 1046s # if (g_strcmp0 (a[n], b[n]) != 0) 1046s # goto out; 1046s # ret = TRUE; 1046s # out: 1046s # return ret; 1046s # } 1046s # 1046s # static gboolean 1046s # _g_variant_equal0 (GVariant *a, GVariant *b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # if (a == NULL && b == NULL) 1046s # { 1046s # ret = TRUE; 1046s # goto out; 1046s # } 1046s # if (a == NULL || b == NULL) 1046s # goto out; 1046s # ret = g_variant_equal (a, b); 1046s # out: 1046s # return ret; 1046s # } 1046s # 1046s # G_GNUC_UNUSED static gboolean 1046s # _g_value_equal (const GValue *a, const GValue *b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1046s # switch (G_VALUE_TYPE (a)) 1046s # { 1046s # case G_TYPE_BOOLEAN: 1046s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1046s # break; 1046s # case G_TYPE_UCHAR: 1046s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1046s # break; 1046s # case G_TYPE_INT: 1046s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1046s # break; 1046s # case G_TYPE_UINT: 1046s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1046s # break; 1046s # case G_TYPE_INT64: 1046s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1046s # break; 1046s # case G_TYPE_UINT64: 1046s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1046s # break; 1046s # case G_TYPE_DOUBLE: 1046s # { 1046s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1046s # gdouble da = g_value_get_double (a); 1046s # gdouble db = g_value_get_double (b); 1046s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1046s # } 1046s # break; 1046s # case G_TYPE_STRING: 1046s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1046s # break; 1046s # case G_TYPE_VARIANT: 1046s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1046s # break; 1046s # default: 1046s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1046s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1046s # else 1046s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1046s # break; 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # /* ------------------------------------------------------------------------ 1046s # * Code for interface org.project.SignalingIface 1046s # * ------------------------------------------------------------------------ 1046s # */ 1046s # 1046s # /** 1046s # * SECTION:OrgProjectSignalingIface 1046s # * @title: OrgProjectSignalingIface 1046s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1046s # * 1046s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1046s # */ 1046s # 1046s # enum 1046s # { 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1046s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q, 1046s # }; 1046s # 1046s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1046s # 1046s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1046s # 1046s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "SimpleSignal", 1046s # NULL, 1046s # NULL 1046s # }, 1046s # "simple-signal" 1046s # }; 1046s # 1046s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_arg_q = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "arg_q", 1046s # (gchar *) "q", 1046s # NULL 1046s # }, 1046s # FALSE 1046s # }; 1046s # 1046s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers[] = 1046s # { 1046s # &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_arg_q.parent_struct, 1046s # NULL 1046s # }; 1046s # 1046s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_q = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "SingleArgSignalQ", 1046s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers, 1046s # NULL 1046s # }, 1046s # "single-arg-signal-q" 1046s # }; 1046s # 1046s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1046s # { 1046s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1046s # &_org_project_signaling_iface_signal_info_single_arg_signal_q.parent_struct, 1046s # NULL 1046s # }; 1046s # 1046s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "org.project.SignalingIface", 1046s # NULL, 1046s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1046s # NULL, 1046s # NULL 1046s # }, 1046s # "org-project-signaling-iface", 1046s # }; 1046s # 1046s # 1046s # /** 1046s # * org_project_signaling_iface_interface_info: 1046s # * 1046s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1046s # * 1046s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1046s # */ 1046s # GDBusInterfaceInfo * 1046s # org_project_signaling_iface_interface_info (void) 1046s # { 1046s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_override_properties: 1046s # * @klass: The class structure for a #GObject derived class. 1046s # * @property_id_begin: The property id to assign to the first overridden property. 1046s # * 1046s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1046s # * The properties are overridden in the order they are defined. 1046s # * 1046s # * Returns: The last property id. 1046s # */ 1046s # guint 1046s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1046s # { 1046s # return property_id_begin - 1; 1046s # } 1046s # 1046s # 1046s # inline static void 1046s # org_project_signaling_iface_signal_marshal_simple_signal ( 1046s # GClosure *closure, 1046s # GValue *return_value, 1046s # unsigned int n_param_values, 1046s # const GValue *param_values, 1046s # void *invocation_hint, 1046s # void *marshal_data) 1046s # { 1046s # g_cclosure_marshal_VOID__VOID (closure, 1046s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1046s # } 1046s # 1046s # inline static void 1046s # org_project_signaling_iface_signal_marshal_single_arg_signal_q ( 1046s # GClosure *closure, 1046s # GValue *return_value, 1046s # unsigned int n_param_values, 1046s # const GValue *param_values, 1046s # void *invocation_hint, 1046s # void *marshal_data) 1046s # { 1046s # g_cclosure_marshal_VOID__UINT (closure, 1046s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1046s # } 1046s # 1046s # 1046s # /** 1046s # * OrgProjectSignalingIface: 1046s # * 1046s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceIface: 1046s # * @parent_iface: The parent interface. 1046s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1046s # * @single_arg_signal_q: Handler for the #OrgProjectSignalingIface::single-arg-signal-q signal. 1046s # * 1046s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1046s # */ 1046s # 1046s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1046s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1046s # 1046s # static void 1046s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1046s # { 1046s # /* GObject signals for received D-Bus signals: */ 1046s # /** 1046s # * OrgProjectSignalingIface::simple-signal: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * 1046s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1046s # * 1046s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1046s # */ 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1046s # g_signal_new ("simple-signal", 1046s # G_TYPE_FROM_INTERFACE (iface), 1046s # G_SIGNAL_RUN_LAST, 1046s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1046s # NULL, 1046s # NULL, 1046s # org_project_signaling_iface_signal_marshal_simple_signal, 1046s # G_TYPE_NONE, 1046s # 0); 1046s # 1046s # /** 1046s # * OrgProjectSignalingIface::single-arg-signal-q: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * @arg_arg_q: Argument. 1046s # * 1046s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalQ" is received. 1046s # * 1046s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1046s # */ 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q] = 1046s # g_signal_new ("single-arg-signal-q", 1046s # G_TYPE_FROM_INTERFACE (iface), 1046s # G_SIGNAL_RUN_LAST, 1046s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_q), 1046s # NULL, 1046s # NULL, 1046s # org_project_signaling_iface_signal_marshal_single_arg_signal_q, 1046s # G_TYPE_NONE, 1046s # 1, G_TYPE_UINT); 1046s # 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_emit_simple_signal: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * 1046s # * Emits the "SimpleSignal" D-Bus signal. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_emit_simple_signal ( 1046s # OrgProjectSignalingIface *object) 1046s # { 1046s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_emit_single_arg_signal_q: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * @arg_arg_q: Argument to pass with the signal. 1046s # * 1046s # * Emits the "SingleArgSignalQ" D-Bus signal. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_emit_single_arg_signal_q ( 1046s # OrgProjectSignalingIface *object, 1046s # guint16 arg_arg_q) 1046s # { 1046s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q], 0, arg_arg_q); 1046s # } 1046s # 1046s # /* ------------------------------------------------------------------------ */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceProxy: 1046s # * 1046s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceProxyClass: 1046s # * @parent_class: The parent class. 1046s # * 1046s # * Class structure for #OrgProjectSignalingIfaceProxy. 1046s # */ 1046s # 1046s # struct _OrgProjectSignalingIfaceProxyPrivate 1046s # { 1046s # GData *qdata; 1046s # }; 1046s # 1046s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1046s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1046s # 1046s # #else 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1046s # 1046s # #endif 1046s # static void 1046s # org_project_signaling_iface_proxy_finalize (GObject *object) 1046s # { 1046s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1046s # g_datalist_clear (&proxy->priv->qdata); 1046s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1046s # guint prop_id G_GNUC_UNUSED, 1046s # GValue *value G_GNUC_UNUSED, 1046s # GParamSpec *pspec G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1046s # guint prop_id G_GNUC_UNUSED, 1046s # const GValue *value G_GNUC_UNUSED, 1046s # GParamSpec *pspec G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1046s # const gchar *sender_name G_GNUC_UNUSED, 1046s # const gchar *signal_name, 1046s # GVariant *parameters) 1046s # { 1046s # _ExtendedGDBusSignalInfo *info; 1046s # GVariantIter iter; 1046s # GVariant *child; 1046s # GValue *paramv; 1046s # gsize num_params; 1046s # gsize n; 1046s # guint signal_id; 1046s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1046s # if (info == NULL) 1046s # return; 1046s # num_params = g_variant_n_children (parameters); 1046s # paramv = g_new0 (GValue, num_params + 1); 1046s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_set_object (¶mv[0], proxy); 1046s # g_variant_iter_init (&iter, parameters); 1046s # n = 1; 1046s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1046s # { 1046s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1046s # if (arg_info->use_gvariant) 1046s # { 1046s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1046s # g_value_set_variant (¶mv[n], child); 1046s # n++; 1046s # } 1046s # else 1046s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1046s # g_variant_unref (child); 1046s # } 1046s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_signal_emitv (paramv, signal_id, 0, NULL); 1046s # for (n = 0; n < num_params + 1; n++) 1046s # g_value_unset (¶mv[n]); 1046s # g_free (paramv); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1046s # GVariant *changed_properties, 1046s # const gchar *const *invalidated_properties) 1046s # { 1046s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1046s # guint n; 1046s # const gchar *key; 1046s # GVariantIter *iter; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # g_variant_get (changed_properties, "a{sv}", &iter); 1046s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1046s # { 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1046s # g_datalist_remove_data (&proxy->priv->qdata, key); 1046s # if (info != NULL) 1046s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1046s # } 1046s # g_variant_iter_free (iter); 1046s # for (n = 0; invalidated_properties[n] != NULL; n++) 1046s # { 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1046s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1046s # if (info != NULL) 1046s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1046s # } 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1046s # { 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1046s # #else 1046s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1046s # #endif 1046s # 1046s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1046s # { 1046s # GObjectClass *gobject_class; 1046s # GDBusProxyClass *proxy_class; 1046s # 1046s # gobject_class = G_OBJECT_CLASS (klass); 1046s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1046s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1046s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1046s # 1046s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1046s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1046s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1046s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1046s # #endif 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new: 1046s # * @connection: A #GDBusConnection. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1046s # * @user_data: User data to pass to @callback. 1046s # * 1046s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1046s # * 1046s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1046s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_proxy_new ( 1046s # GDBusConnection *connection, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GAsyncReadyCallback callback, 1046s # gpointer user_data) 1046s # { 1046s # 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); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_finish: 1046s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_finish ( 1046s # GAsyncResult *res, 1046s # GError **error) 1046s # { 1046s # GObject *ret; 1046s # GObject *source_object; 1046s # source_object = g_async_result_get_source_object (res); 1046s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1046s # g_object_unref (source_object); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_sync: 1046s # * @connection: A #GDBusConnection. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1046s # * 1046s # * The calling thread is blocked until a reply is received. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_sync ( 1046s # GDBusConnection *connection, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GError **error) 1046s # { 1046s # GInitable *ret; 1046s # 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); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus: 1046s # * @bus_type: A #GBusType. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: A bus name (well-known or unique). 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1046s # * @user_data: User data to pass to @callback. 1046s # * 1046s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1046s # * 1046s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1046s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_proxy_new_for_bus ( 1046s # GBusType bus_type, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GAsyncReadyCallback callback, 1046s # gpointer user_data) 1046s # { 1046s # 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); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1046s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1046s # GAsyncResult *res, 1046s # GError **error) 1046s # { 1046s # GObject *ret; 1046s # GObject *source_object; 1046s # source_object = g_async_result_get_source_object (res); 1046s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1046s # g_object_unref (source_object); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1046s # * @bus_type: A #GBusType. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: A bus name (well-known or unique). 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1046s # * 1046s # * The calling thread is blocked until a reply is received. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1046s # GBusType bus_type, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GError **error) 1046s # { 1046s # GInitable *ret; 1046s # 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); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # 1046s # /* ------------------------------------------------------------------------ */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceSkeleton: 1046s # * 1046s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceSkeletonClass: 1046s # * @parent_class: The parent class. 1046s # * 1046s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1046s # */ 1046s # 1046s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1046s # { 1046s # GValue *properties; 1046s # GList *changed_properties; 1046s # GSource *changed_properties_idle_source; 1046s # GMainContext *context; 1046s # GMutex lock; 1046s # }; 1046s # 1046s # static void 1046s # _org_project_signaling_iface_skeleton_handle_method_call ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name, 1046s # const gchar *method_name, 1046s # GVariant *parameters, 1046s # GDBusMethodInvocation *invocation, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # _ExtendedGDBusMethodInfo *info; 1046s # GVariantIter iter; 1046s # GVariant *child; 1046s # GValue *paramv; 1046s # gsize num_params; 1046s # guint num_extra; 1046s # gsize n; 1046s # guint signal_id; 1046s # GValue return_value = G_VALUE_INIT; 1046s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1046s # g_assert (info != NULL); 1046s # num_params = g_variant_n_children (parameters); 1046s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1046s # n = 0; 1046s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_set_object (¶mv[n++], skeleton); 1046s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1046s # g_value_set_object (¶mv[n++], invocation); 1046s # if (info->pass_fdlist) 1046s # { 1046s # #ifdef G_OS_UNIX 1046s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1046s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1046s # #else 1046s # g_assert_not_reached (); 1046s # #endif 1046s # } 1046s # g_variant_iter_init (&iter, parameters); 1046s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1046s # { 1046s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1046s # if (arg_info->use_gvariant) 1046s # { 1046s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1046s # g_value_set_variant (¶mv[n], child); 1046s # n++; 1046s # } 1046s # else 1046s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1046s # g_variant_unref (child); 1046s # } 1046s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1046s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1046s # if (!g_value_get_boolean (&return_value)) 1046s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1046s # g_value_unset (&return_value); 1046s # for (n = 0; n < num_params + num_extra; n++) 1046s # g_value_unset (¶mv[n]); 1046s # g_free (paramv); 1046s # } 1046s # 1046s # static GVariant * 1046s # _org_project_signaling_iface_skeleton_handle_get_property ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name G_GNUC_UNUSED, 1046s # const gchar *property_name, 1046s # GError **error, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # GValue value = G_VALUE_INIT; 1046s # GParamSpec *pspec; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # GVariant *ret; 1046s # ret = NULL; 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1046s # g_assert (info != NULL); 1046s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1046s # if (pspec == NULL) 1046s # { 1046s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1046s # } 1046s # else 1046s # { 1046s # g_value_init (&value, pspec->value_type); 1046s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1046s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1046s # g_value_unset (&value); 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # static gboolean 1046s # _org_project_signaling_iface_skeleton_handle_set_property ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name G_GNUC_UNUSED, 1046s # const gchar *property_name, 1046s # GVariant *variant, 1046s # GError **error, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # GValue value = G_VALUE_INIT; 1046s # GParamSpec *pspec; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # gboolean ret; 1046s # ret = FALSE; 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1046s # g_assert (info != NULL); 1046s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1046s # if (pspec == NULL) 1046s # { 1046s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1046s # } 1046s # else 1046s # { 1046s # if (info->use_gvariant) 1046s # g_value_set_variant (&value, variant); 1046s # else 1046s # g_dbus_gvariant_to_gvalue (variant, &value); 1046s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1046s # g_value_unset (&value); 1046s # ret = TRUE; 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1046s # { 1046s # _org_project_signaling_iface_skeleton_handle_method_call, 1046s # _org_project_signaling_iface_skeleton_handle_get_property, 1046s # _org_project_signaling_iface_skeleton_handle_set_property, 1046s # {NULL} 1046s # }; 1046s # 1046s # static GDBusInterfaceInfo * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1046s # { 1046s # return org_project_signaling_iface_interface_info (); 1046s # } 1046s # 1046s # static GDBusInterfaceVTable * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1046s # { 1046s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1046s # } 1046s # 1046s # static GVariant * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1046s # 1046s # GVariantBuilder builder; 1046s # guint n; 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1046s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1046s # #else 1046s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1046s # #endif 1046s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1046s # goto out; 1046s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1046s # { 1046s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1046s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1046s # { 1046s # GVariant *value; 1046s # 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); 1046s # if (value != NULL) 1046s # { 1046s # g_variant_take_ref (value); 1046s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1046s # g_variant_unref (value); 1046s # } 1046s # } 1046s # } 1046s # out: 1046s # return g_variant_builder_end (&builder); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # _org_project_signaling_iface_on_signal_simple_signal ( 1046s # OrgProjectSignalingIface *object) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # 1046s # GList *connections, *l; 1046s # GVariant *signal_variant; 1046s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1046s # 1046s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1046s # for (l = connections; l != NULL; l = l->next) 1046s # { 1046s # GDBusConnection *connection = l->data; 1046s # g_dbus_connection_emit_signal (connection, 1046s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1046s # signal_variant, NULL); 1046s # } 1046s # g_variant_unref (signal_variant); 1046s # g_list_free_full (connections, g_object_unref); 1046s # } 1046s # 1046s # static void 1046s # _org_project_signaling_iface_on_signal_single_arg_signal_q ( 1046s # OrgProjectSignalingIface *object, 1046s # guint16 arg_arg_q) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # 1046s # GList *connections, *l; 1046s # GVariant *signal_variant; 1046s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1046s # 1046s # signal_variant = g_variant_ref_sink (g_variant_new ("(q)", 1046s # arg_arg_q)); 1046s # for (l = connections; l != NULL; l = l->next) 1046s # { 1046s # GDBusConnection *connection = l->data; 1046s # g_dbus_connection_emit_signal (connection, 1046s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalQ", 1046s # signal_variant, NULL); 1046s # } 1046s # g_variant_unref (signal_variant); 1046s # g_list_free_full (connections, g_object_unref); 1046s # } 1046s # 1046s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1046s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1046s # 1046s # #else 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1046s # 1046s # #endif 1046s # static void 1046s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1046s # if (skeleton->priv->changed_properties_idle_source != NULL) 1046s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1046s # g_main_context_unref (skeleton->priv->context); 1046s # g_mutex_clear (&skeleton->priv->lock); 1046s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1046s # { 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1046s # #else 1046s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1046s # #endif 1046s # 1046s # g_mutex_init (&skeleton->priv->lock); 1046s # skeleton->priv->context = g_main_context_ref_thread_default (); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1046s # { 1046s # GObjectClass *gobject_class; 1046s # GDBusInterfaceSkeletonClass *skeleton_class; 1046s # 1046s # gobject_class = G_OBJECT_CLASS (klass); 1046s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1046s # 1046s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1046s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1046s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1046s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1046s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1046s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1046s # #endif 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1046s # { 1046s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1046s # iface->single_arg_signal_q = _org_project_signaling_iface_on_signal_single_arg_signal_q; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_skeleton_new: 1046s # * 1046s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_skeleton_new (void) 1046s # { 1046s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1046s # } 1046s # Error: 1046s # 1046s # /tmp/tmppt74if37/tmpar9mub2v.xml: 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppt74if37/tmpar9mub2v.xml', '--output', '-', '--body'] 1046s # Return code: 0 1046s # Output: 1046s # /* 1046s # * This file is generated by gdbus-codegen, do not modify it. 1046s # * 1046s # * The license of this code is the same as for the D-Bus interface description 1046s # * it was derived from. Note that it links to GLib, so must comply with the 1046s # * LGPL linking clauses. 1046s # */ 1046s # 1046s # #ifdef HAVE_CONFIG_H 1046s # # include "config.h" 1046s # #endif 1046s # 1046s # #include 1046s # #ifdef G_OS_UNIX 1046s # # include 1046s # #endif 1046s # 1046s # #ifdef G_ENABLE_DEBUG 1046s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1046s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1046s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1046s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1046s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1046s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1046s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1046s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1046s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1046s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1046s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1046s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1046s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1046s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1046s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1046s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1046s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1046s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1046s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1046s # #else /* !G_ENABLE_DEBUG */ 1046s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1046s # * Do not access GValues directly in your code. Instead, use the 1046s # * g_value_get_*() functions 1046s # */ 1046s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1046s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1046s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1046s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1046s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1046s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1046s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1046s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1046s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1046s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1046s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1046s # #endif /* !G_ENABLE_DEBUG */ 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusArgInfo parent_struct; 1046s # gboolean use_gvariant; 1046s # } _ExtendedGDBusArgInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusMethodInfo parent_struct; 1046s # const gchar *signal_name; 1046s # gboolean pass_fdlist; 1046s # } _ExtendedGDBusMethodInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusSignalInfo parent_struct; 1046s # const gchar *signal_name; 1046s # } _ExtendedGDBusSignalInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusPropertyInfo parent_struct; 1046s # const gchar *hyphen_name; 1046s # guint use_gvariant : 1; 1046s # guint emits_changed_signal : 1; 1046s # } _ExtendedGDBusPropertyInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusInterfaceInfo parent_struct; 1046s # const gchar *hyphen_name; 1046s # } _ExtendedGDBusInterfaceInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # const _ExtendedGDBusPropertyInfo *info; 1046s # guint prop_id; 1046s # GValue orig_value; /* the value before the change */ 1046s # } ChangedProperty; 1046s # 1046s # static void 1046s # _changed_property_free (ChangedProperty *data) 1046s # { 1046s # g_value_unset (&data->orig_value); 1046s # g_free (data); 1046s # } 1046s # 1046s # static gboolean 1046s # _g_strv_equal0 (gchar **a, gchar **b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # guint n; 1046s # if (a == NULL && b == NULL) 1046s # { 1046s # ret = TRUE; 1046s # goto out; 1046s # } 1046s # if (a == NULL || b == NULL) 1046s # goto out; 1046s # if (g_strv_length (a) != g_strv_length (b)) 1046s # goto out; 1046s # for (n = 0; a[n] != NULL; n++) 1046s # if (g_strcmp0 (a[n], b[n]) != 0) 1046s # goto out; 1046s # ret = TRUE; 1046s # out: 1046s # return ret; 1046s # } 1046s # 1046s # static gboolean 1046s # _g_variant_equal0 (GVariant *a, GVariant *b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # if (a == NULL && b == NULL) 1046s # { 1046s # ret = TRUE; 1046s # goto out; 1046s # } 1046s # if (a == NULL || b == NULL) 1046s # goto out; 1046s # ret = g_variant_equal (a, b); 1046s # out: 1046s # return ret; 1046s # } 1046s # 1046s # G_GNUC_UNUSED static gboolean 1046s # _g_value_equal (const GValue *a, const GValue *b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1046s # switch (G_VALUE_TYPE (a)) 1046s # { 1046s # case G_TYPE_BOOLEAN: 1046s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1046s # break; 1046s # case G_TYPE_UCHAR: 1046s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1046s # break; 1046s # case G_TYPE_INT: 1046s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1046s # break; 1046s # case G_TYPE_UINT: 1046s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1046s # break; 1046s # case G_TYPE_INT64: 1046s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1046s # break; 1046s # case G_TYPE_UINT64: 1046s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1046s # break; 1046s # case G_TYPE_DOUBLE: 1046s # { 1046s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1046s # gdouble da = g_value_get_double (a); 1046s # gdouble db = g_value_get_double (b); 1046s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1046s # } 1046s # break; 1046s # case G_TYPE_STRING: 1046s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1046s # break; 1046s # case G_TYPE_VARIANT: 1046s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1046s # break; 1046s # default: 1046s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1046s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1046s # else 1046s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1046s # break; 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # /* ------------------------------------------------------------------------ 1046s # * Code for interface org.project.SignalingIface 1046s # * ------------------------------------------------------------------------ 1046s # */ 1046s # 1046s # /** 1046s # * SECTION:OrgProjectSignalingIface 1046s # * @title: OrgProjectSignalingIface 1046s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1046s # * 1046s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1046s # */ 1046s # 1046s # enum 1046s # { 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1046s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I, 1046s # }; 1046s # 1046s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1046s # 1046s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1046s # 1046s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "SimpleSignal", 1046s # NULL, 1046s # NULL 1046s # }, 1046s # "simple-signal" 1046s # }; 1046s # 1046s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_arg_i = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "arg_i", 1046s # (gchar *) "i", 1046s # NULL 1046s # }, 1046s # FALSE 1046s # }; 1046s # 1046s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers[] = 1046s # { 1046s # &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_arg_i.parent_struct, 1046s # NULL 1046s # }; 1046s # 1046s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_i = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "SingleArgSignalI", 1046s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers, 1046s # NULL 1046s # }, 1046s # "single-arg-signal-i" 1046s # }; 1046s # 1046s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1046s # { 1046s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1046s # &_org_project_signaling_iface_signal_info_single_arg_signal_i.parent_struct, 1046s # NULL 1046s # }; 1046s # 1046s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "org.project.SignalingIface", 1046s # NULL, 1046s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1046s # NULL, 1046s # NULL 1046s # }, 1046s # "org-project-signaling-iface", 1046s # }; 1046s # 1046s # 1046s # /** 1046s # * org_project_signaling_iface_interface_info: 1046s # * 1046s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1046s # * 1046s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1046s # */ 1046s # GDBusInterfaceInfo * 1046s # org_project_signaling_iface_interface_info (void) 1046s # { 1046s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_override_properties: 1046s # * @klass: The class structure for a #GObject derived class. 1046s # * @property_id_begin: The property id to assign to the first overridden property. 1046s # * 1046s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1046s # * The properties are overridden in the order they are defined. 1046s # * 1046s # * Returns: The last property id. 1046s # */ 1046s # guint 1046s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1046s # { 1046s # return property_id_begin - 1; 1046s # } 1046s # 1046s # 1046s # inline static void 1046s # org_project_signaling_iface_signal_marshal_simple_signal ( 1046s # GClosure *closure, 1046s # GValue *return_value, 1046s # unsigned int n_param_values, 1046s # const GValue *param_values, 1046s # void *invocation_hint, 1046s # void *marshal_data) 1046s # { 1046s # g_cclosure_marshal_VOID__VOID (closure, 1046s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1046s # } 1046s # 1046s # inline static void 1046s # org_project_signaling_iface_signal_marshal_single_arg_signal_i ( 1046s # GClosure *closure, 1046s # GValue *return_value, 1046s # unsigned int n_param_values, 1046s # const GValue *param_values, 1046s # void *invocation_hint, 1046s # void *marshal_data) 1046s # { 1046s # g_cclosure_marshal_VOID__INT (closure, 1046s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1046s # } 1046s # 1046s # 1046s # /** 1046s # * OrgProjectSignalingIface: 1046s # * 1046s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceIface: 1046s # * @parent_iface: The parent interface. 1046s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1046s # * @single_arg_signal_i: Handler for the #OrgProjectSignalingIface::single-arg-signal-i signal. 1046s # * 1046s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1046s # */ 1046s # 1046s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1046s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1046s # 1046s # static void 1046s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1046s # { 1046s # /* GObject signals for received D-Bus signals: */ 1046s # /** 1046s # * OrgProjectSignalingIface::simple-signal: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * 1046s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1046s # * 1046s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1046s # */ 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1046s # g_signal_new ("simple-signal", 1046s # G_TYPE_FROM_INTERFACE (iface), 1046s # G_SIGNAL_RUN_LAST, 1046s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1046s # NULL, 1046s # NULL, 1046s # org_project_signaling_iface_signal_marshal_simple_signal, 1046s # G_TYPE_NONE, 1046s # 0); 1046s # 1046s # /** 1046s # * OrgProjectSignalingIface::single-arg-signal-i: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * @arg_arg_i: Argument. 1046s # * 1046s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalI" is received. 1046s # * 1046s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1046s # */ 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I] = 1046s # g_signal_new ("single-arg-signal-i", 1046s # G_TYPE_FROM_INTERFACE (iface), 1046s # G_SIGNAL_RUN_LAST, 1046s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_i), 1046s # NULL, 1046s # NULL, 1046s # org_project_signaling_iface_signal_marshal_single_arg_signal_i, 1046s # G_TYPE_NONE, 1046s # 1, G_TYPE_INT); 1046s # 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_emit_simple_signal: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * 1046s # * Emits the "SimpleSignal" D-Bus signal. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_emit_simple_signal ( 1046s # OrgProjectSignalingIface *object) 1046s # { 1046s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_emit_single_arg_signal_i: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * @arg_arg_i: Argument to pass with the signal. 1046s # * 1046s # * Emits the "SingleArgSignalI" D-Bus signal. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_emit_single_arg_signal_i ( 1046s # OrgProjectSignalingIface *object, 1046s # gint arg_arg_i) 1046s # { 1046s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I], 0, arg_arg_i); 1046s # } 1046s # 1046s # /* ------------------------------------------------------------------------ */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceProxy: 1046s # * 1046s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceProxyClass: 1046s # * @parent_class: The parent class. 1046s # * 1046s # * Class structure for #OrgProjectSignalingIfaceProxy. 1046s # */ 1046s # 1046s # struct _OrgProjectSignalingIfaceProxyPrivate 1046s # { 1046s # GData *qdata; 1046s # }; 1046s # 1046s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1046s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1046s # 1046s # #else 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1046s # 1046s # #endif 1046s # static void 1046s # org_project_signaling_iface_proxy_finalize (GObject *object) 1046s # { 1046s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1046s # g_datalist_clear (&proxy->priv->qdata); 1046s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1046s # guint prop_id G_GNUC_UNUSED, 1046s # GValue *value G_GNUC_UNUSED, 1046s # GParamSpec *pspec G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1046s # guint prop_id G_GNUC_UNUSED, 1046s # const GValue *value G_GNUC_UNUSED, 1046s # GParamSpec *pspec G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1046s # const gchar *sender_name G_GNUC_UNUSED, 1046s # const gchar *signal_name, 1046s # GVariant *parameters) 1046s # { 1046s # _ExtendedGDBusSignalInfo *info; 1046s # GVariantIter iter; 1046s # GVariant *child; 1046s # GValue *paramv; 1046s # gsize num_params; 1046s # gsize n; 1046s # guint signal_id; 1046s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1046s # if (info == NULL) 1046s # return; 1046s # num_params = g_variant_n_children (parameters); 1046s # paramv = g_new0 (GValue, num_params + 1); 1046s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_set_object (¶mv[0], proxy); 1046s # g_variant_iter_init (&iter, parameters); 1046s # n = 1; 1046s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1046s # { 1046s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1046s # if (arg_info->use_gvariant) 1046s # { 1046s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1046s # g_value_set_variant (¶mv[n], child); 1046s # n++; 1046s # } 1046s # else 1046s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1046s # g_variant_unref (child); 1046s # } 1046s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_signal_emitv (paramv, signal_id, 0, NULL); 1046s # for (n = 0; n < num_params + 1; n++) 1046s # g_value_unset (¶mv[n]); 1046s # g_free (paramv); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1046s # GVariant *changed_properties, 1046s # const gchar *const *invalidated_properties) 1046s # { 1046s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1046s # guint n; 1046s # const gchar *key; 1046s # GVariantIter *iter; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # g_variant_get (changed_properties, "a{sv}", &iter); 1046s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1046s # { 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1046s # g_datalist_remove_data (&proxy->priv->qdata, key); 1046s # if (info != NULL) 1046s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1046s # } 1046s # g_variant_iter_free (iter); 1046s # for (n = 0; invalidated_properties[n] != NULL; n++) 1046s # { 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1046s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1046s # if (info != NULL) 1046s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1046s # } 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1046s # { 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1046s # #else 1046s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1046s # #endif 1046s # 1046s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1046s # { 1046s # GObjectClass *gobject_class; 1046s # GDBusProxyClass *proxy_class; 1046s # 1046s # gobject_class = G_OBJECT_CLASS (klass); 1046s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1046s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1046s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1046s # 1046s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1046s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1046s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1046s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1046s # #endif 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new: 1046s # * @connection: A #GDBusConnection. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1046s # * @user_data: User data to pass to @callback. 1046s # * 1046s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1046s # * 1046s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1046s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_proxy_new ( 1046s # GDBusConnection *connection, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GAsyncReadyCallback callback, 1046s # gpointer user_data) 1046s # { 1046s # 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); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_finish: 1046s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_finish ( 1046s # GAsyncResult *res, 1046s # GError **error) 1046s # { 1046s # GObject *ret; 1046s # GObject *source_object; 1046s # source_object = g_async_result_get_source_object (res); 1046s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1046s # g_object_unref (source_object); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_sync: 1046s # * @connection: A #GDBusConnection. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1046s # * 1046s # * The calling thread is blocked until a reply is received. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_sync ( 1046s # GDBusConnection *connection, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GError **error) 1046s # { 1046s # GInitable *ret; 1046s # 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); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus: 1046s # * @bus_type: A #GBusType. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: A bus name (well-known or unique). 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1046s # * @user_data: User data to pass to @callback. 1046s # * 1046s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1046s # * 1046s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1046s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_proxy_new_for_bus ( 1046s # GBusType bus_type, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GAsyncReadyCallback callback, 1046s # gpointer user_data) 1046s # { 1046s # 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); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1046s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1046s # GAsyncResult *res, 1046s # GError **error) 1046s # { 1046s # GObject *ret; 1046s # GObject *source_object; 1046s # source_object = g_async_result_get_source_object (res); 1046s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1046s # g_object_unref (source_object); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1046s # * @bus_type: A #GBusType. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: A bus name (well-known or unique). 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1046s # * 1046s # * The calling thread is blocked until a reply is received. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1046s # GBusType bus_type, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GError **error) 1046s # { 1046s # GInitable *ret; 1046s # 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); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # 1046s # /* ------------------------------------------------------------------------ */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceSkeleton: 1046s # * 1046s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceSkeletonClass: 1046s # * @parent_class: The parent class. 1046s # * 1046s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1046s # */ 1046s # 1046s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1046s # { 1046s # GValue *properties; 1046s # GList *changed_properties; 1046s # GSource *changed_properties_idle_source; 1046s # GMainContext *context; 1046s # GMutex lock; 1046s # }; 1046s # 1046s # static void 1046s # _org_project_signaling_iface_skeleton_handle_method_call ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name, 1046s # const gchar *method_name, 1046s # GVariant *parameters, 1046s # GDBusMethodInvocation *invocation, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # _ExtendedGDBusMethodInfo *info; 1046s # GVariantIter iter; 1046s # GVariant *child; 1046s # GValue *paramv; 1046s # gsize num_params; 1046s # guint num_extra; 1046s # gsize n; 1046s # guint signal_id; 1046s # GValue return_value = G_VALUE_INIT; 1046s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1046s # g_assert (info != NULL); 1046s # num_params = g_variant_n_children (parameters); 1046s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1046s # n = 0; 1046s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_set_object (¶mv[n++], skeleton); 1046s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1046s # g_value_set_object (¶mv[n++], invocation); 1046s # if (info->pass_fdlist) 1046s # { 1046s # #ifdef G_OS_UNIX 1046s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1046s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1046s # #else 1046s # g_assert_not_reached (); 1046s # #endif 1046s # } 1046s # g_variant_iter_init (&iter, parameters); 1046s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1046s # { 1046s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1046s # if (arg_info->use_gvariant) 1046s # { 1046s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1046s # g_value_set_variant (¶mv[n], child); 1046s # n++; 1046s # } 1046s # else 1046s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1046s # g_variant_unref (child); 1046s # } 1046s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1046s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1046s # if (!g_value_get_boolean (&return_value)) 1046s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1046s # g_value_unset (&return_value); 1046s # for (n = 0; n < num_params + num_extra; n++) 1046s # g_value_unset (¶mv[n]); 1046s # g_free (paramv); 1046s # } 1046s # 1046s # static GVariant * 1046s # _org_project_signaling_iface_skeleton_handle_get_property ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name G_GNUC_UNUSED, 1046s # const gchar *property_name, 1046s # GError **error, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # GValue value = G_VALUE_INIT; 1046s # GParamSpec *pspec; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # GVariant *ret; 1046s # ret = NULL; 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1046s # g_assert (info != NULL); 1046s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1046s # if (pspec == NULL) 1046s # { 1046s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1046s # } 1046s # else 1046s # { 1046s # g_value_init (&value, pspec->value_type); 1046s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1046s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1046s # g_value_unset (&value); 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # static gboolean 1046s # _org_project_signaling_iface_skeleton_handle_set_property ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name G_GNUC_UNUSED, 1046s # const gchar *property_name, 1046s # GVariant *variant, 1046s # GError **error, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # GValue value = G_VALUE_INIT; 1046s # GParamSpec *pspec; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # gboolean ret; 1046s # ret = FALSE; 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1046s # g_assert (info != NULL); 1046s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1046s # if (pspec == NULL) 1046s # { 1046s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1046s # } 1046s # else 1046s # { 1046s # if (info->use_gvariant) 1046s # g_value_set_variant (&value, variant); 1046s # else 1046s # g_dbus_gvariant_to_gvalue (variant, &value); 1046s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1046s # g_value_unset (&value); 1046s # ret = TRUE; 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1046s # { 1046s # _org_project_signaling_iface_skeleton_handle_method_call, 1046s # _org_project_signaling_iface_skeleton_handle_get_property, 1046s # _org_project_signaling_iface_skeleton_handle_set_property, 1046s # {NULL} 1046s # }; 1046s # 1046s # static GDBusInterfaceInfo * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1046s # { 1046s # return org_project_signaling_iface_interface_info (); 1046s # } 1046s # 1046s # static GDBusInterfaceVTable * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1046s # { 1046s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1046s # } 1046s # 1046s # static GVariant * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1046s # 1046s # GVariantBuilder builder; 1046s # guint n; 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1046s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1046s # #else 1046s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1046s # #endif 1046s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1046s # goto out; 1046s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1046s # { 1046s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1046s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1046s # { 1046s # GVariant *value; 1046s # 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); 1046s # if (value != NULL) 1046s # { 1046s # g_variant_take_ref (value); 1046s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1046s # g_variant_unref (value); 1046s # } 1046s # } 1046s # } 1046s # out: 1046s # return g_variant_builder_end (&builder); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # _org_project_signaling_iface_on_signal_simple_signal ( 1046s # OrgProjectSignalingIface *object) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # 1046s # GList *connections, *l; 1046s # GVariant *signal_variant; 1046s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1046s # 1046s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1046s # for (l = connections; l != NULL; l = l->next) 1046s # { 1046s # GDBusConnection *connection = l->data; 1046s # g_dbus_connection_emit_signal (connection, 1046s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1046s # signal_variant, NULL); 1046s # } 1046s # g_variant_unref (signal_variant); 1046s # g_list_free_full (connections, g_object_unref); 1046s # } 1046s # 1046s # static void 1046s # _org_project_signaling_iface_on_signal_single_arg_signal_i ( 1046s # OrgProjectSignalingIface *object, 1046s # gint arg_arg_i) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # 1046s # GList *connections, *l; 1046s # GVariant *signal_variant; 1046s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1046s # 1046s # signal_variant = g_variant_ref_sink (g_variant_new ("(i)", 1046s # arg_arg_i)); 1046s # for (l = connections; l != NULL; l = l->next) 1046s # { 1046s # GDBusConnection *connection = l->data; 1046s # g_dbus_connection_emit_signal (connection, 1046s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalI", 1046s # signal_variant, NULL); 1046s # } 1046s # g_variant_unref (signal_variant); 1046s # g_list_free_full (connections, g_object_unref); 1046s # } 1046s # 1046s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1046s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1046s # 1046s # #else 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1046s # 1046s # #endif 1046s # static void 1046s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1046s # if (skeleton->priv->changed_properties_idle_source != NULL) 1046s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1046s # g_main_context_unref (skeleton->priv->context); 1046s # g_mutex_clear (&skeleton->priv->lock); 1046s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1046s # { 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1046s # #else 1046s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1046s # #endif 1046s # 1046s # g_mutex_init (&skeleton->priv->lock); 1046s # skeleton->priv->context = g_main_context_ref_thread_default (); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1046s # { 1046s # GObjectClass *gobject_class; 1046s # GDBusInterfaceSkeletonClass *skeleton_class; 1046s # 1046s # gobject_class = G_OBJECT_CLASS (klass); 1046s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1046s # 1046s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1046s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1046s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1046s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1046s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1046s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1046s # #endif 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1046s # { 1046s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1046s # iface->single_arg_signal_i = _org_project_signaling_iface_on_signal_single_arg_signal_i; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_skeleton_new: 1046s # * 1046s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_skeleton_new (void) 1046s # { 1046s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1046s # } 1046s # Error: 1046s # 1046s # /tmp/tmppt74if37/tmpk5ev4pli.xml: 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppt74if37/tmpk5ev4pli.xml', '--output', '-', '--body'] 1046s # Return code: 0 1046s # Output: 1046s # /* 1046s # * This file is generated by gdbus-codegen, do not modify it. 1046s # * 1046s # * The license of this code is the same as for the D-Bus interface description 1046s # * it was derived from. Note that it links to GLib, so must comply with the 1046s # * LGPL linking clauses. 1046s # */ 1046s # 1046s # #ifdef HAVE_CONFIG_H 1046s # # include "config.h" 1046s # #endif 1046s # 1046s # #include 1046s # #ifdef G_OS_UNIX 1046s # # include 1046s # #endif 1046s # 1046s # #ifdef G_ENABLE_DEBUG 1046s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1046s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1046s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1046s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1046s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1046s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1046s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1046s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1046s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1046s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1046s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1046s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1046s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1046s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1046s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1046s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1046s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1046s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1046s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1046s # #else /* !G_ENABLE_DEBUG */ 1046s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1046s # * Do not access GValues directly in your code. Instead, use the 1046s # * g_value_get_*() functions 1046s # */ 1046s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1046s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1046s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1046s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1046s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1046s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1046s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1046s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1046s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1046s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1046s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1046s # #endif /* !G_ENABLE_DEBUG */ 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusArgInfo parent_struct; 1046s # gboolean use_gvariant; 1046s # } _ExtendedGDBusArgInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusMethodInfo parent_struct; 1046s # const gchar *signal_name; 1046s # gboolean pass_fdlist; 1046s # } _ExtendedGDBusMethodInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusSignalInfo parent_struct; 1046s # const gchar *signal_name; 1046s # } _ExtendedGDBusSignalInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusPropertyInfo parent_struct; 1046s # const gchar *hyphen_name; 1046s # guint use_gvariant : 1; 1046s # guint emits_changed_signal : 1; 1046s # } _ExtendedGDBusPropertyInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusInterfaceInfo parent_struct; 1046s # const gchar *hyphen_name; 1046s # } _ExtendedGDBusInterfaceInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # const _ExtendedGDBusPropertyInfo *info; 1046s # guint prop_id; 1046s # GValue orig_value; /* the value before the change */ 1046s # } ChangedProperty; 1046s # 1046s # static void 1046s # _changed_property_free (ChangedProperty *data) 1046s # { 1046s # g_value_unset (&data->orig_value); 1046s # g_free (data); 1046s # } 1046s # 1046s # static gboolean 1046s # _g_strv_equal0 (gchar **a, gchar **b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # guint n; 1046s # if (a == NULL && b == NULL) 1046s # { 1046s # ret = TRUE; 1046s # goto out; 1046s # } 1046s # if (a == NULL || b == NULL) 1046s # goto out; 1046s # if (g_strv_length (a) != g_strv_length (b)) 1046s # goto out; 1046s # for (n = 0; a[n] != NULL; n++) 1046s # if (g_strcmp0 (a[n], b[n]) != 0) 1046s # goto out; 1046s # ret = TRUE; 1046s # out: 1046s # return ret; 1046s # } 1046s # 1046s # static gboolean 1046s # _g_variant_equal0 (GVariant *a, GVariant *b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # if (a == NULL && b == NULL) 1046s # { 1046s # ret = TRUE; 1046s # goto out; 1046s # } 1046s # if (a == NULL || b == NULL) 1046s # goto out; 1046s # ret = g_variant_equal (a, b); 1046s # out: 1046s # return ret; 1046s # } 1046s # 1046s # G_GNUC_UNUSED static gboolean 1046s # _g_value_equal (const GValue *a, const GValue *b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1046s # switch (G_VALUE_TYPE (a)) 1046s # { 1046s # case G_TYPE_BOOLEAN: 1046s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1046s # break; 1046s # case G_TYPE_UCHAR: 1046s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1046s # break; 1046s # case G_TYPE_INT: 1046s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1046s # break; 1046s # case G_TYPE_UINT: 1046s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1046s # break; 1046s # case G_TYPE_INT64: 1046s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1046s # break; 1046s # case G_TYPE_UINT64: 1046s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1046s # break; 1046s # case G_TYPE_DOUBLE: 1046s # { 1046s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1046s # gdouble da = g_value_get_double (a); 1046s # gdouble db = g_value_get_double (b); 1046s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1046s # } 1046s # break; 1046s # case G_TYPE_STRING: 1046s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1046s # break; 1046s # case G_TYPE_VARIANT: 1046s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1046s # break; 1046s # default: 1046s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1046s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1046s # else 1046s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1046s # break; 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # /* ------------------------------------------------------------------------ 1046s # * Code for interface org.project.SignalingIface 1046s # * ------------------------------------------------------------------------ 1046s # */ 1046s # 1046s # /** 1046s # * SECTION:OrgProjectSignalingIface 1046s # * @title: OrgProjectSignalingIface 1046s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1046s # * 1046s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1046s # */ 1046s # 1046s # enum 1046s # { 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1046s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U, 1046s # }; 1046s # 1046s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1046s # 1046s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1046s # 1046s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "SimpleSignal", 1046s # NULL, 1046s # NULL 1046s # }, 1046s # "simple-signal" 1046s # }; 1046s # 1046s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_arg_u = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "arg_u", 1046s # (gchar *) "u", 1046s # NULL 1046s # }, 1046s # FALSE 1046s # }; 1046s # 1046s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers[] = 1046s # { 1046s # &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_arg_u.parent_struct, 1046s # NULL 1046s # }; 1046s # 1046s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_u = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "SingleArgSignalU", 1046s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers, 1046s # NULL 1046s # }, 1046s # "single-arg-signal-u" 1046s # }; 1046s # 1046s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1046s # { 1046s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1046s # &_org_project_signaling_iface_signal_info_single_arg_signal_u.parent_struct, 1046s # NULL 1046s # }; 1046s # 1046s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "org.project.SignalingIface", 1046s # NULL, 1046s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1046s # NULL, 1046s # NULL 1046s # }, 1046s # "org-project-signaling-iface", 1046s # }; 1046s # 1046s # 1046s # /** 1046s # * org_project_signaling_iface_interface_info: 1046s # * 1046s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1046s # * 1046s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1046s # */ 1046s # GDBusInterfaceInfo * 1046s # org_project_signaling_iface_interface_info (void) 1046s # { 1046s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_override_properties: 1046s # * @klass: The class structure for a #GObject derived class. 1046s # * @property_id_begin: The property id to assign to the first overridden property. 1046s # * 1046s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1046s # * The properties are overridden in the order they are defined. 1046s # * 1046s # * Returns: The last property id. 1046s # */ 1046s # guint 1046s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1046s # { 1046s # return property_id_begin - 1; 1046s # } 1046s # 1046s # 1046s # inline static void 1046s # org_project_signaling_iface_signal_marshal_simple_signal ( 1046s # GClosure *closure, 1046s # GValue *return_value, 1046s # unsigned int n_param_values, 1046s # const GValue *param_values, 1046s # void *invocation_hint, 1046s # void *marshal_data) 1046s # { 1046s # g_cclosure_marshal_VOID__VOID (closure, 1046s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1046s # } 1046s # 1046s # inline static void 1046s # org_project_signaling_iface_signal_marshal_single_arg_signal_u ( 1046s # GClosure *closure, 1046s # GValue *return_value, 1046s # unsigned int n_param_values, 1046s # const GValue *param_values, 1046s # void *invocation_hint, 1046s # void *marshal_data) 1046s # { 1046s # g_cclosure_marshal_VOID__UINT (closure, 1046s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1046s # } 1046s # 1046s # 1046s # /** 1046s # * OrgProjectSignalingIface: 1046s # * 1046s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceIface: 1046s # * @parent_iface: The parent interface. 1046s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1046s # * @single_arg_signal_u: Handler for the #OrgProjectSignalingIface::single-arg-signal-u signal. 1046s # * 1046s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1046s # */ 1046s # 1046s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1046s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1046s # 1046s # static void 1046s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1046s # { 1046s # /* GObject signals for received D-Bus signals: */ 1046s # /** 1046s # * OrgProjectSignalingIface::simple-signal: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * 1046s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1046s # * 1046s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1046s # */ 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1046s # g_signal_new ("simple-signal", 1046s # G_TYPE_FROM_INTERFACE (iface), 1046s # G_SIGNAL_RUN_LAST, 1046s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1046s # NULL, 1046s # NULL, 1046s # org_project_signaling_iface_signal_marshal_simple_signal, 1046s # G_TYPE_NONE, 1046s # 0); 1046s # 1046s # /** 1046s # * OrgProjectSignalingIface::single-arg-signal-u: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * @arg_arg_u: Argument. 1046s # * 1046s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalU" is received. 1046s # * 1046s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1046s # */ 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U] = 1046s # g_signal_new ("single-arg-signal-u", 1046s # G_TYPE_FROM_INTERFACE (iface), 1046s # G_SIGNAL_RUN_LAST, 1046s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_u), 1046s # NULL, 1046s # NULL, 1046s # org_project_signaling_iface_signal_marshal_single_arg_signal_u, 1046s # G_TYPE_NONE, 1046s # 1, G_TYPE_UINT); 1046s # 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_emit_simple_signal: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * 1046s # * Emits the "SimpleSignal" D-Bus signal. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_emit_simple_signal ( 1046s # OrgProjectSignalingIface *object) 1046s # { 1046s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_emit_single_arg_signal_u: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * @arg_arg_u: Argument to pass with the signal. 1046s # * 1046s # * Emits the "SingleArgSignalU" D-Bus signal. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_emit_single_arg_signal_u ( 1046s # OrgProjectSignalingIface *object, 1046s # guint arg_arg_u) 1046s # { 1046s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U], 0, arg_arg_u); 1046s # } 1046s # 1046s # /* ------------------------------------------------------------------------ */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceProxy: 1046s # * 1046s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceProxyClass: 1046s # * @parent_class: The parent class. 1046s # * 1046s # * Class structure for #OrgProjectSignalingIfaceProxy. 1046s # */ 1046s # 1046s # struct _OrgProjectSignalingIfaceProxyPrivate 1046s # { 1046s # GData *qdata; 1046s # }; 1046s # 1046s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1046s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1046s # 1046s # #else 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1046s # 1046s # #endif 1046s # static void 1046s # org_project_signaling_iface_proxy_finalize (GObject *object) 1046s # { 1046s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1046s # g_datalist_clear (&proxy->priv->qdata); 1046s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1046s # guint prop_id G_GNUC_UNUSED, 1046s # GValue *value G_GNUC_UNUSED, 1046s # GParamSpec *pspec G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1046s # guint prop_id G_GNUC_UNUSED, 1046s # const GValue *value G_GNUC_UNUSED, 1046s # GParamSpec *pspec G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1046s # const gchar *sender_name G_GNUC_UNUSED, 1046s # const gchar *signal_name, 1046s # GVariant *parameters) 1046s # { 1046s # _ExtendedGDBusSignalInfo *info; 1046s # GVariantIter iter; 1046s # GVariant *child; 1046s # GValue *paramv; 1046s # gsize num_params; 1046s # gsize n; 1046s # guint signal_id; 1046s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1046s # if (info == NULL) 1046s # return; 1046s # num_params = g_variant_n_children (parameters); 1046s # paramv = g_new0 (GValue, num_params + 1); 1046s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_set_object (¶mv[0], proxy); 1046s # g_variant_iter_init (&iter, parameters); 1046s # n = 1; 1046s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1046s # { 1046s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1046s # if (arg_info->use_gvariant) 1046s # { 1046s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1046s # g_value_set_variant (¶mv[n], child); 1046s # n++; 1046s # } 1046s # else 1046s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1046s # g_variant_unref (child); 1046s # } 1046s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_signal_emitv (paramv, signal_id, 0, NULL); 1046s # for (n = 0; n < num_params + 1; n++) 1046s # g_value_unset (¶mv[n]); 1046s # g_free (paramv); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1046s # GVariant *changed_properties, 1046s # const gchar *const *invalidated_properties) 1046s # { 1046s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1046s # guint n; 1046s # const gchar *key; 1046s # GVariantIter *iter; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # g_variant_get (changed_properties, "a{sv}", &iter); 1046s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1046s # { 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1046s # g_datalist_remove_data (&proxy->priv->qdata, key); 1046s # if (info != NULL) 1046s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1046s # } 1046s # g_variant_iter_free (iter); 1046s # for (n = 0; invalidated_properties[n] != NULL; n++) 1046s # { 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1046s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1046s # if (info != NULL) 1046s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1046s # } 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1046s # { 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1046s # #else 1046s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1046s # #endif 1046s # 1046s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1046s # { 1046s # GObjectClass *gobject_class; 1046s # GDBusProxyClass *proxy_class; 1046s # 1046s # gobject_class = G_OBJECT_CLASS (klass); 1046s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1046s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1046s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1046s # 1046s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1046s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1046s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1046s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1046s # #endif 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new: 1046s # * @connection: A #GDBusConnection. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1046s # * @user_data: User data to pass to @callback. 1046s # * 1046s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1046s # * 1046s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1046s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_proxy_new ( 1046s # GDBusConnection *connection, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GAsyncReadyCallback callback, 1046s # gpointer user_data) 1046s # { 1046s # 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); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_finish: 1046s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_finish ( 1046s # GAsyncResult *res, 1046s # GError **error) 1046s # { 1046s # GObject *ret; 1046s # GObject *source_object; 1046s # source_object = g_async_result_get_source_object (res); 1046s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1046s # g_object_unref (source_object); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_sync: 1046s # * @connection: A #GDBusConnection. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1046s # * 1046s # * The calling thread is blocked until a reply is received. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_sync ( 1046s # GDBusConnection *connection, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GError **error) 1046s # { 1046s # GInitable *ret; 1046s # 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); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus: 1046s # * @bus_type: A #GBusType. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: A bus name (well-known or unique). 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1046s # * @user_data: User data to pass to @callback. 1046s # * 1046s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1046s # * 1046s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1046s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_proxy_new_for_bus ( 1046s # GBusType bus_type, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GAsyncReadyCallback callback, 1046s # gpointer user_data) 1046s # { 1046s # 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); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1046s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1046s # GAsyncResult *res, 1046s # GError **error) 1046s # { 1046s # GObject *ret; 1046s # GObject *source_object; 1046s # source_object = g_async_result_get_source_object (res); 1046s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1046s # g_object_unref (source_object); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1046s # * @bus_type: A #GBusType. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: A bus name (well-known or unique). 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1046s # * 1046s # * The calling thread is blocked until a reply is received. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1046s # GBusType bus_type, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GError **error) 1046s # { 1046s # GInitable *ret; 1046s # 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); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # 1046s # /* ------------------------------------------------------------------------ */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceSkeleton: 1046s # * 1046s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceSkeletonClass: 1046s # * @parent_class: The parent class. 1046s # * 1046s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1046s # */ 1046s # 1046s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1046s # { 1046s # GValue *properties; 1046s # GList *changed_properties; 1046s # GSource *changed_properties_idle_source; 1046s # GMainContext *context; 1046s # GMutex lock; 1046s # }; 1046s # 1046s # static void 1046s # _org_project_signaling_iface_skeleton_handle_method_call ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name, 1046s # const gchar *method_name, 1046s # GVariant *parameters, 1046s # GDBusMethodInvocation *invocation, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # _ExtendedGDBusMethodInfo *info; 1046s # GVariantIter iter; 1046s # GVariant *child; 1046s # GValue *paramv; 1046s # gsize num_params; 1046s # guint num_extra; 1046s # gsize n; 1046s # guint signal_id; 1046s # GValue return_value = G_VALUE_INIT; 1046s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1046s # g_assert (info != NULL); 1046s # num_params = g_variant_n_children (parameters); 1046s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1046s # n = 0; 1046s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_set_object (¶mv[n++], skeleton); 1046s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1046s # g_value_set_object (¶mv[n++], invocation); 1046s # if (info->pass_fdlist) 1046s # { 1046s # #ifdef G_OS_UNIX 1046s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1046s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1046s # #else 1046s # g_assert_not_reached (); 1046s # #endif 1046s # } 1046s # g_variant_iter_init (&iter, parameters); 1046s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1046s # { 1046s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1046s # if (arg_info->use_gvariant) 1046s # { 1046s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1046s # g_value_set_variant (¶mv[n], child); 1046s # n++; 1046s # } 1046s # else 1046s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1046s # g_variant_unref (child); 1046s # } 1046s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1046s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1046s # if (!g_value_get_boolean (&return_value)) 1046s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1046s # g_value_unset (&return_value); 1046s # for (n = 0; n < num_params + num_extra; n++) 1046s # g_value_unset (¶mv[n]); 1046s # g_free (paramv); 1046s # } 1046s # 1046s # static GVariant * 1046s # _org_project_signaling_iface_skeleton_handle_get_property ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name G_GNUC_UNUSED, 1046s # const gchar *property_name, 1046s # GError **error, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # GValue value = G_VALUE_INIT; 1046s # GParamSpec *pspec; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # GVariant *ret; 1046s # ret = NULL; 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1046s # g_assert (info != NULL); 1046s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1046s # if (pspec == NULL) 1046s # { 1046s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1046s # } 1046s # else 1046s # { 1046s # g_value_init (&value, pspec->value_type); 1046s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1046s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1046s # g_value_unset (&value); 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # static gboolean 1046s # _org_project_signaling_iface_skeleton_handle_set_property ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name G_GNUC_UNUSED, 1046s # const gchar *property_name, 1046s # GVariant *variant, 1046s # GError **error, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # GValue value = G_VALUE_INIT; 1046s # GParamSpec *pspec; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # gboolean ret; 1046s # ret = FALSE; 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1046s # g_assert (info != NULL); 1046s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1046s # if (pspec == NULL) 1046s # { 1046s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1046s # } 1046s # else 1046s # { 1046s # if (info->use_gvariant) 1046s # g_value_set_variant (&value, variant); 1046s # else 1046s # g_dbus_gvariant_to_gvalue (variant, &value); 1046s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1046s # g_value_unset (&value); 1046s # ret = TRUE; 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1046s # { 1046s # _org_project_signaling_iface_skeleton_handle_method_call, 1046s # _org_project_signaling_iface_skeleton_handle_get_property, 1046s # _org_project_signaling_iface_skeleton_handle_set_property, 1046s # {NULL} 1046s # }; 1046s # 1046s # static GDBusInterfaceInfo * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1046s # { 1046s # return org_project_signaling_iface_interface_info (); 1046s # } 1046s # 1046s # static GDBusInterfaceVTable * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1046s # { 1046s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1046s # } 1046s # 1046s # static GVariant * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1046s # 1046s # GVariantBuilder builder; 1046s # guint n; 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1046s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1046s # #else 1046s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1046s # #endif 1046s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1046s # goto out; 1046s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1046s # { 1046s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1046s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1046s # { 1046s # GVariant *value; 1046s # 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); 1046s # if (value != NULL) 1046s # { 1046s # g_variant_take_ref (value); 1046s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1046s # g_variant_unref (value); 1046s # } 1046s # } 1046s # } 1046s # out: 1046s # return g_variant_builder_end (&builder); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # _org_project_signaling_iface_on_signal_simple_signal ( 1046s # OrgProjectSignalingIface *object) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # 1046s # GList *connections, *l; 1046s # GVariant *signal_variant; 1046s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1046s # 1046s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1046s # for (l = connections; l != NULL; l = l->next) 1046s # { 1046s # GDBusConnection *connection = l->data; 1046s # g_dbus_connection_emit_signal (connection, 1046s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1046s # signal_variant, NULL); 1046s # } 1046s # g_variant_unref (signal_variant); 1046s # g_list_free_full (connections, g_object_unref); 1046s # } 1046s # 1046s # static void 1046s # _org_project_signaling_iface_on_signal_single_arg_signal_u ( 1046s # OrgProjectSignalingIface *object, 1046s # guint arg_arg_u) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # 1046s # GList *connections, *l; 1046s # GVariant *signal_variant; 1046s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1046s # 1046s # signal_variant = g_variant_ref_sink (g_variant_new ("(u)", 1046s # arg_arg_u)); 1046s # for (l = connections; l != NULL; l = l->next) 1046s # { 1046s # GDBusConnection *connection = l->data; 1046s # g_dbus_connection_emit_signal (connection, 1046s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalU", 1046s # signal_variant, NULL); 1046s # } 1046s # g_variant_unref (signal_variant); 1046s # g_list_free_full (connections, g_object_unref); 1046s # } 1046s # 1046s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1046s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1046s # 1046s # #else 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1046s # 1046s # #endif 1046s # static void 1046s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1046s # if (skeleton->priv->changed_properties_idle_source != NULL) 1046s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1046s # g_main_context_unref (skeleton->priv->context); 1046s # g_mutex_clear (&skeleton->priv->lock); 1046s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1046s # { 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1046s # #else 1046s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1046s # #endif 1046s # 1046s # g_mutex_init (&skeleton->priv->lock); 1046s # skeleton->priv->context = g_main_context_ref_thread_default (); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1046s # { 1046s # GObjectClass *gobject_class; 1046s # GDBusInterfaceSkeletonClass *skeleton_class; 1046s # 1046s # gobject_class = G_OBJECT_CLASS (klass); 1046s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1046s # 1046s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1046s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1046s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1046s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1046s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1046s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1046s # #endif 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1046s # { 1046s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1046s # iface->single_arg_signal_u = _org_project_signaling_iface_on_signal_single_arg_signal_u; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_skeleton_new: 1046s # * 1046s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_skeleton_new (void) 1046s # { 1046s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1046s # } 1046s # Error: 1046s # 1046s # /tmp/tmppt74if37/tmp8u68vhok.xml: 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppt74if37/tmp8u68vhok.xml', '--output', '-', '--body'] 1046s # Return code: 0 1046s # Output: 1046s # /* 1046s # * This file is generated by gdbus-codegen, do not modify it. 1046s # * 1046s # * The license of this code is the same as for the D-Bus interface description 1046s # * it was derived from. Note that it links to GLib, so must comply with the 1046s # * LGPL linking clauses. 1046s # */ 1046s # 1046s # #ifdef HAVE_CONFIG_H 1046s # # include "config.h" 1046s # #endif 1046s # 1046s # #include 1046s # #ifdef G_OS_UNIX 1046s # # include 1046s # #endif 1046s # 1046s # #ifdef G_ENABLE_DEBUG 1046s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1046s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1046s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1046s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1046s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1046s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1046s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1046s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1046s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1046s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1046s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1046s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1046s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1046s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1046s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1046s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1046s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1046s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1046s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1046s # #else /* !G_ENABLE_DEBUG */ 1046s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1046s # * Do not access GValues directly in your code. Instead, use the 1046s # * g_value_get_*() functions 1046s # */ 1046s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1046s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1046s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1046s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1046s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1046s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1046s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1046s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1046s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1046s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1046s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1046s # #endif /* !G_ENABLE_DEBUG */ 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusArgInfo parent_struct; 1046s # gboolean use_gvariant; 1046s # } _ExtendedGDBusArgInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusMethodInfo parent_struct; 1046s # const gchar *signal_name; 1046s # gboolean pass_fdlist; 1046s # } _ExtendedGDBusMethodInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusSignalInfo parent_struct; 1046s # const gchar *signal_name; 1046s # } _ExtendedGDBusSignalInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusPropertyInfo parent_struct; 1046s # const gchar *hyphen_name; 1046s # guint use_gvariant : 1; 1046s # guint emits_changed_signal : 1; 1046s # } _ExtendedGDBusPropertyInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusInterfaceInfo parent_struct; 1046s # const gchar *hyphen_name; 1046s # } _ExtendedGDBusInterfaceInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # const _ExtendedGDBusPropertyInfo *info; 1046s # guint prop_id; 1046s # GValue orig_value; /* the value before the change */ 1046s # } ChangedProperty; 1046s # 1046s # static void 1046s # _changed_property_free (ChangedProperty *data) 1046s # { 1046s # g_value_unset (&data->orig_value); 1046s # g_free (data); 1046s # } 1046s # 1046s # static gboolean 1046s # _g_strv_equal0 (gchar **a, gchar **b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # guint n; 1046s # if (a == NULL && b == NULL) 1046s # { 1046s # ret = TRUE; 1046s # goto out; 1046s # } 1046s # if (a == NULL || b == NULL) 1046s # goto out; 1046s # if (g_strv_length (a) != g_strv_length (b)) 1046s # goto out; 1046s # for (n = 0; a[n] != NULL; n++) 1046s # if (g_strcmp0 (a[n], b[n]) != 0) 1046s # goto out; 1046s # ret = TRUE; 1046s # out: 1046s # return ret; 1046s # } 1046s # 1046s # static gboolean 1046s # _g_variant_equal0 (GVariant *a, GVariant *b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # if (a == NULL && b == NULL) 1046s # { 1046s # ret = TRUE; 1046s # goto out; 1046s # } 1046s # if (a == NULL || b == NULL) 1046s # goto out; 1046s # ret = g_variant_equal (a, b); 1046s # out: 1046s # return ret; 1046s # } 1046s # 1046s # G_GNUC_UNUSED static gboolean 1046s # _g_value_equal (const GValue *a, const GValue *b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1046s # switch (G_VALUE_TYPE (a)) 1046s # { 1046s # case G_TYPE_BOOLEAN: 1046s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1046s # break; 1046s # case G_TYPE_UCHAR: 1046s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1046s # break; 1046s # case G_TYPE_INT: 1046s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1046s # break; 1046s # case G_TYPE_UINT: 1046s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1046s # break; 1046s # case G_TYPE_INT64: 1046s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1046s # break; 1046s # case G_TYPE_UINT64: 1046s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1046s # break; 1046s # case G_TYPE_DOUBLE: 1046s # { 1046s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1046s # gdouble da = g_value_get_double (a); 1046s # gdouble db = g_value_get_double (b); 1046s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1046s # } 1046s # break; 1046s # case G_TYPE_STRING: 1046s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1046s # break; 1046s # case G_TYPE_VARIANT: 1046s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1046s # break; 1046s # default: 1046s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1046s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1046s # else 1046s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1046s # break; 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # static void 1046s # _g_dbus_codegen_marshal_VOID__INT64 ( 1046s # GClosure *closure, 1046s # GValue *return_value G_GNUC_UNUSED, 1046s # unsigned int n_param_values, 1046s # const GValue *param_values, 1046s # void *invocation_hint G_GNUC_UNUSED, 1046s # void *marshal_data) 1046s # { 1046s # typedef void (*_GDbusCodegenMarshalVoid_Int64Func) 1046s # (void *data1, 1046s # gint64 arg_arg_x, 1046s # void *data2); 1046s # _GDbusCodegenMarshalVoid_Int64Func callback; 1046s # GCClosure *cc = (GCClosure*) closure; 1046s # void *data1, *data2; 1046s # 1046s # g_return_if_fail (n_param_values == 2); 1046s # 1046s # if (G_CCLOSURE_SWAP_DATA (closure)) 1046s # { 1046s # data1 = closure->data; 1046s # data2 = g_value_peek_pointer (param_values + 0); 1046s # } 1046s # else 1046s # { 1046s # data1 = g_value_peek_pointer (param_values + 0); 1046s # data2 = closure->data; 1046s # } 1046s # 1046s # callback = (_GDbusCodegenMarshalVoid_Int64Func) 1046s # (marshal_data ? marshal_data : cc->callback); 1046s # 1046s # callback (data1, 1046s # g_marshal_value_peek_int64 (param_values + 1), 1046s # data2); 1046s # } 1046s # 1046s # /* ------------------------------------------------------------------------ 1046s # * Code for interface org.project.SignalingIface 1046s # * ------------------------------------------------------------------------ 1046s # */ 1046s # 1046s # /** 1046s # * SECTION:OrgProjectSignalingIface 1046s # * @title: OrgProjectSignalingIface 1046s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1046s # * 1046s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1046s # */ 1046s # 1046s # enum 1046s # { 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1046s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X, 1046s # }; 1046s # 1046s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1046s # 1046s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1046s # 1046s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "SimpleSignal", 1046s # NULL, 1046s # NULL 1046s # }, 1046s # "simple-signal" 1046s # }; 1046s # 1046s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_arg_x = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "arg_x", 1046s # (gchar *) "x", 1046s # NULL 1046s # }, 1046s # FALSE 1046s # }; 1046s # 1046s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers[] = 1046s # { 1046s # &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_arg_x.parent_struct, 1046s # NULL 1046s # }; 1046s # 1046s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_x = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "SingleArgSignalX", 1046s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers, 1046s # NULL 1046s # }, 1046s # "single-arg-signal-x" 1046s # }; 1046s # 1046s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1046s # { 1046s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1046s # &_org_project_signaling_iface_signal_info_single_arg_signal_x.parent_struct, 1046s # NULL 1046s # }; 1046s # 1046s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "org.project.SignalingIface", 1046s # NULL, 1046s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1046s # NULL, 1046s # NULL 1046s # }, 1046s # "org-project-signaling-iface", 1046s # }; 1046s # 1046s # 1046s # /** 1046s # * org_project_signaling_iface_interface_info: 1046s # * 1046s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1046s # * 1046s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1046s # */ 1046s # GDBusInterfaceInfo * 1046s # org_project_signaling_iface_interface_info (void) 1046s # { 1046s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_override_properties: 1046s # * @klass: The class structure for a #GObject derived class. 1046s # * @property_id_begin: The property id to assign to the first overridden property. 1046s # * 1046s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1046s # * The properties are overridden in the order they are defined. 1046s # * 1046s # * Returns: The last property id. 1046s # */ 1046s # guint 1046s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1046s # { 1046s # return property_id_begin - 1; 1046s # } 1046s # 1046s # 1046s # inline static void 1046s # org_project_signaling_iface_signal_marshal_simple_signal ( 1046s # GClosure *closure, 1046s # GValue *return_value, 1046s # unsigned int n_param_values, 1046s # const GValue *param_values, 1046s # void *invocation_hint, 1046s # void *marshal_data) 1046s # { 1046s # g_cclosure_marshal_VOID__VOID (closure, 1046s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1046s # } 1046s # 1046s # inline static void 1046s # org_project_signaling_iface_signal_marshal_single_arg_signal_x ( 1046s # GClosure *closure, 1046s # GValue *return_value, 1046s # unsigned int n_param_values, 1046s # const GValue *param_values, 1046s # void *invocation_hint, 1046s # void *marshal_data) 1046s # { 1046s # _g_dbus_codegen_marshal_VOID__INT64 (closure, 1046s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1046s # } 1046s # 1046s # 1046s # /** 1046s # * OrgProjectSignalingIface: 1046s # * 1046s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceIface: 1046s # * @parent_iface: The parent interface. 1046s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1046s # * @single_arg_signal_x: Handler for the #OrgProjectSignalingIface::single-arg-signal-x signal. 1046s # * 1046s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1046s # */ 1046s # 1046s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1046s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1046s # 1046s # static void 1046s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1046s # { 1046s # /* GObject signals for received D-Bus signals: */ 1046s # /** 1046s # * OrgProjectSignalingIface::simple-signal: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * 1046s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1046s # * 1046s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1046s # */ 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1046s # g_signal_new ("simple-signal", 1046s # G_TYPE_FROM_INTERFACE (iface), 1046s # G_SIGNAL_RUN_LAST, 1046s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1046s # NULL, 1046s # NULL, 1046s # org_project_signaling_iface_signal_marshal_simple_signal, 1046s # G_TYPE_NONE, 1046s # 0); 1046s # 1046s # /** 1046s # * OrgProjectSignalingIface::single-arg-signal-x: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * @arg_arg_x: Argument. 1046s # * 1046s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalX" is received. 1046s # * 1046s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1046s # */ 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X] = 1046s # g_signal_new ("single-arg-signal-x", 1046s # G_TYPE_FROM_INTERFACE (iface), 1046s # G_SIGNAL_RUN_LAST, 1046s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_x), 1046s # NULL, 1046s # NULL, 1046s # org_project_signaling_iface_signal_marshal_single_arg_signal_x, 1046s # G_TYPE_NONE, 1046s # 1, G_TYPE_INT64); 1046s # 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_emit_simple_signal: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * 1046s # * Emits the "SimpleSignal" D-Bus signal. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_emit_simple_signal ( 1046s # OrgProjectSignalingIface *object) 1046s # { 1046s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_emit_single_arg_signal_x: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * @arg_arg_x: Argument to pass with the signal. 1046s # * 1046s # * Emits the "SingleArgSignalX" D-Bus signal. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_emit_single_arg_signal_x ( 1046s # OrgProjectSignalingIface *object, 1046s # gint64 arg_arg_x) 1046s # { 1046s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X], 0, arg_arg_x); 1046s # } 1046s # 1046s # /* ------------------------------------------------------------------------ */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceProxy: 1046s # * 1046s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceProxyClass: 1046s # * @parent_class: The parent class. 1046s # * 1046s # * Class structure for #OrgProjectSignalingIfaceProxy. 1046s # */ 1046s # 1046s # struct _OrgProjectSignalingIfaceProxyPrivate 1046s # { 1046s # GData *qdata; 1046s # }; 1046s # 1046s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1046s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1046s # 1046s # #else 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1046s # 1046s # #endif 1046s # static void 1046s # org_project_signaling_iface_proxy_finalize (GObject *object) 1046s # { 1046s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1046s # g_datalist_clear (&proxy->priv->qdata); 1046s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1046s # guint prop_id G_GNUC_UNUSED, 1046s # GValue *value G_GNUC_UNUSED, 1046s # GParamSpec *pspec G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1046s # guint prop_id G_GNUC_UNUSED, 1046s # const GValue *value G_GNUC_UNUSED, 1046s # GParamSpec *pspec G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1046s # const gchar *sender_name G_GNUC_UNUSED, 1046s # const gchar *signal_name, 1046s # GVariant *parameters) 1046s # { 1046s # _ExtendedGDBusSignalInfo *info; 1046s # GVariantIter iter; 1046s # GVariant *child; 1046s # GValue *paramv; 1046s # gsize num_params; 1046s # gsize n; 1046s # guint signal_id; 1046s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1046s # if (info == NULL) 1046s # return; 1046s # num_params = g_variant_n_children (parameters); 1046s # paramv = g_new0 (GValue, num_params + 1); 1046s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_set_object (¶mv[0], proxy); 1046s # g_variant_iter_init (&iter, parameters); 1046s # n = 1; 1046s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1046s # { 1046s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1046s # if (arg_info->use_gvariant) 1046s # { 1046s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1046s # g_value_set_variant (¶mv[n], child); 1046s # n++; 1046s # } 1046s # else 1046s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1046s # g_variant_unref (child); 1046s # } 1046s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_signal_emitv (paramv, signal_id, 0, NULL); 1046s # for (n = 0; n < num_params + 1; n++) 1046s # g_value_unset (¶mv[n]); 1046s # g_free (paramv); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1046s # GVariant *changed_properties, 1046s # const gchar *const *invalidated_properties) 1046s # { 1046s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1046s # guint n; 1046s # const gchar *key; 1046s # GVariantIter *iter; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # g_variant_get (changed_properties, "a{sv}", &iter); 1046s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1046s # { 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1046s # g_datalist_remove_data (&proxy->priv->qdata, key); 1046s # if (info != NULL) 1046s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1046s # } 1046s # g_variant_iter_free (iter); 1046s # for (n = 0; invalidated_properties[n] != NULL; n++) 1046s # { 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1046s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1046s # if (info != NULL) 1046s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1046s # } 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1046s # { 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1046s # #else 1046s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1046s # #endif 1046s # 1046s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1046s # { 1046s # GObjectClass *gobject_class; 1046s # GDBusProxyClass *proxy_class; 1046s # 1046s # gobject_class = G_OBJECT_CLASS (klass); 1046s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1046s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1046s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1046s # 1046s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1046s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1046s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1046s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1046s # #endif 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new: 1046s # * @connection: A #GDBusConnection. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1046s # * @user_data: User data to pass to @callback. 1046s # * 1046s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1046s # * 1046s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1046s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_proxy_new ( 1046s # GDBusConnection *connection, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GAsyncReadyCallback callback, 1046s # gpointer user_data) 1046s # { 1046s # 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); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_finish: 1046s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_finish ( 1046s # GAsyncResult *res, 1046s # GError **error) 1046s # { 1046s # GObject *ret; 1046s # GObject *source_object; 1046s # source_object = g_async_result_get_source_object (res); 1046s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1046s # g_object_unref (source_object); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_sync: 1046s # * @connection: A #GDBusConnection. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1046s # * 1046s # * The calling thread is blocked until a reply is received. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_sync ( 1046s # GDBusConnection *connection, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GError **error) 1046s # { 1046s # GInitable *ret; 1046s # 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); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus: 1046s # * @bus_type: A #GBusType. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: A bus name (well-known or unique). 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1046s # * @user_data: User data to pass to @callback. 1046s # * 1046s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1046s # * 1046s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1046s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_proxy_new_for_bus ( 1046s # GBusType bus_type, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GAsyncReadyCallback callback, 1046s # gpointer user_data) 1046s # { 1046s # 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); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1046s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1046s # GAsyncResult *res, 1046s # GError **error) 1046s # { 1046s # GObject *ret; 1046s # GObject *source_object; 1046s # source_object = g_async_result_get_source_object (res); 1046s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1046s # g_object_unref (source_object); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1046s # * @bus_type: A #GBusType. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: A bus name (well-known or unique). 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1046s # * 1046s # * The calling thread is blocked until a reply is received. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1046s # GBusType bus_type, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GError **error) 1046s # { 1046s # GInitable *ret; 1046s # 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); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # 1046s # /* ------------------------------------------------------------------------ */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceSkeleton: 1046s # * 1046s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceSkeletonClass: 1046s # * @parent_class: The parent class. 1046s # * 1046s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1046s # */ 1046s # 1046s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1046s # { 1046s # GValue *properties; 1046s # GList *changed_properties; 1046s # GSource *changed_properties_idle_source; 1046s # GMainContext *context; 1046s # GMutex lock; 1046s # }; 1046s # 1046s # static void 1046s # _org_project_signaling_iface_skeleton_handle_method_call ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name, 1046s # const gchar *method_name, 1046s # GVariant *parameters, 1046s # GDBusMethodInvocation *invocation, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # _ExtendedGDBusMethodInfo *info; 1046s # GVariantIter iter; 1046s # GVariant *child; 1046s # GValue *paramv; 1046s # gsize num_params; 1046s # guint num_extra; 1046s # gsize n; 1046s # guint signal_id; 1046s # GValue return_value = G_VALUE_INIT; 1046s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1046s # g_assert (info != NULL); 1046s # num_params = g_variant_n_children (parameters); 1046s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1046s # n = 0; 1046s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_set_object (¶mv[n++], skeleton); 1046s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1046s # g_value_set_object (¶mv[n++], invocation); 1046s # if (info->pass_fdlist) 1046s # { 1046s # #ifdef G_OS_UNIX 1046s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1046s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1046s # #else 1046s # g_assert_not_reached (); 1046s # #endif 1046s # } 1046s # g_variant_iter_init (&iter, parameters); 1046s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1046s # { 1046s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1046s # if (arg_info->use_gvariant) 1046s # { 1046s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1046s # g_value_set_variant (¶mv[n], child); 1046s # n++; 1046s # } 1046s # else 1046s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1046s # g_variant_unref (child); 1046s # } 1046s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1046s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1046s # if (!g_value_get_boolean (&return_value)) 1046s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1046s # g_value_unset (&return_value); 1046s # for (n = 0; n < num_params + num_extra; n++) 1046s # g_value_unset (¶mv[n]); 1046s # g_free (paramv); 1046s # } 1046s # 1046s # static GVariant * 1046s # _org_project_signaling_iface_skeleton_handle_get_property ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name G_GNUC_UNUSED, 1046s # const gchar *property_name, 1046s # GError **error, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # GValue value = G_VALUE_INIT; 1046s # GParamSpec *pspec; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # GVariant *ret; 1046s # ret = NULL; 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1046s # g_assert (info != NULL); 1046s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1046s # if (pspec == NULL) 1046s # { 1046s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1046s # } 1046s # else 1046s # { 1046s # g_value_init (&value, pspec->value_type); 1046s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1046s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1046s # g_value_unset (&value); 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # static gboolean 1046s # _org_project_signaling_iface_skeleton_handle_set_property ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name G_GNUC_UNUSED, 1046s # const gchar *property_name, 1046s # GVariant *variant, 1046s # GError **error, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # GValue value = G_VALUE_INIT; 1046s # GParamSpec *pspec; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # gboolean ret; 1046s # ret = FALSE; 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1046s # g_assert (info != NULL); 1046s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1046s # if (pspec == NULL) 1046s # { 1046s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1046s # } 1046s # else 1046s # { 1046s # if (info->use_gvariant) 1046s # g_value_set_variant (&value, variant); 1046s # else 1046s # g_dbus_gvariant_to_gvalue (variant, &value); 1046s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1046s # g_value_unset (&value); 1046s # ret = TRUE; 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1046s # { 1046s # _org_project_signaling_iface_skeleton_handle_method_call, 1046s # _org_project_signaling_iface_skeleton_handle_get_property, 1046s # _org_project_signaling_iface_skeleton_handle_set_property, 1046s # {NULL} 1046s # }; 1046s # 1046s # static GDBusInterfaceInfo * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1046s # { 1046s # return org_project_signaling_iface_interface_info (); 1046s # } 1046s # 1046s # static GDBusInterfaceVTable * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1046s # { 1046s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1046s # } 1046s # 1046s # static GVariant * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1046s # 1046s # GVariantBuilder builder; 1046s # guint n; 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1046s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1046s # #else 1046s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1046s # #endif 1046s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1046s # goto out; 1046s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1046s # { 1046s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1046s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1046s # { 1046s # GVariant *value; 1046s # 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); 1046s # if (value != NULL) 1046s # { 1046s # g_variant_take_ref (value); 1046s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1046s # g_variant_unref (value); 1046s # } 1046s # } 1046s # } 1046s # out: 1046s # return g_variant_builder_end (&builder); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # _org_project_signaling_iface_on_signal_simple_signal ( 1046s # OrgProjectSignalingIface *object) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # 1046s # GList *connections, *l; 1046s # GVariant *signal_variant; 1046s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1046s # 1046s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1046s # for (l = connections; l != NULL; l = l->next) 1046s # { 1046s # GDBusConnection *connection = l->data; 1046s # g_dbus_connection_emit_signal (connection, 1046s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1046s # signal_variant, NULL); 1046s # } 1046s # g_variant_unref (signal_variant); 1046s # g_list_free_full (connections, g_object_unref); 1046s # } 1046s # 1046s # static void 1046s # _org_project_signaling_iface_on_signal_single_arg_signal_x ( 1046s # OrgProjectSignalingIface *object, 1046s # gint64 arg_arg_x) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # 1046s # GList *connections, *l; 1046s # GVariant *signal_variant; 1046s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1046s # 1046s # signal_variant = g_variant_ref_sink (g_variant_new ("(x)", 1046s # arg_arg_x)); 1046s # for (l = connections; l != NULL; l = l->next) 1046s # { 1046s # GDBusConnection *connection = l->data; 1046s # g_dbus_connection_emit_signal (connection, 1046s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalX", 1046s # signal_variant, NULL); 1046s # } 1046s # g_variant_unref (signal_variant); 1046s # g_list_free_full (connections, g_object_unref); 1046s # } 1046s # 1046s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1046s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1046s # 1046s # #else 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1046s # 1046s # #endif 1046s # static void 1046s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1046s # if (skeleton->priv->changed_properties_idle_source != NULL) 1046s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1046s # g_main_context_unref (skeleton->priv->context); 1046s # g_mutex_clear (&skeleton->priv->lock); 1046s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1046s # { 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1046s # #else 1046s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1046s # #endif 1046s # 1046s # g_mutex_init (&skeleton->priv->lock); 1046s # skeleton->priv->context = g_main_context_ref_thread_default (); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1046s # { 1046s # GObjectClass *gobject_class; 1046s # GDBusInterfaceSkeletonClass *skeleton_class; 1046s # 1046s # gobject_class = G_OBJECT_CLASS (klass); 1046s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1046s # 1046s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1046s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1046s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1046s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1046s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1046s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1046s # #endif 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1046s # { 1046s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1046s # iface->single_arg_signal_x = _org_project_signaling_iface_on_signal_single_arg_signal_x; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_skeleton_new: 1046s # * 1046s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_skeleton_new (void) 1046s # { 1046s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1046s # } 1046s # Error: 1046s # 1046s # /tmp/tmppt74if37/tmpgizzhige.xml: 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppt74if37/tmpgizzhige.xml', '--output', '-', '--body'] 1046s # Return code: 0 1046s # Output: 1046s # /* 1046s # * This file is generated by gdbus-codegen, do not modify it. 1046s # * 1046s # * The license of this code is the same as for the D-Bus interface description 1046s # * it was derived from. Note that it links to GLib, so must comply with the 1046s # * LGPL linking clauses. 1046s # */ 1046s # 1046s # #ifdef HAVE_CONFIG_H 1046s # # include "config.h" 1046s # #endif 1046s # 1046s # #include 1046s # #ifdef G_OS_UNIX 1046s # # include 1046s # #endif 1046s # 1046s # #ifdef G_ENABLE_DEBUG 1046s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1046s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1046s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1046s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1046s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1046s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1046s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1046s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1046s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1046s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1046s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1046s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1046s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1046s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1046s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1046s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1046s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1046s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1046s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1046s # #else /* !G_ENABLE_DEBUG */ 1046s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1046s # * Do not access GValues directly in your code. Instead, use the 1046s # * g_value_get_*() functions 1046s # */ 1046s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1046s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1046s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1046s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1046s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1046s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1046s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1046s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1046s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1046s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1046s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1046s # #endif /* !G_ENABLE_DEBUG */ 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusArgInfo parent_struct; 1046s # gboolean use_gvariant; 1046s # } _ExtendedGDBusArgInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusMethodInfo parent_struct; 1046s # const gchar *signal_name; 1046s # gboolean pass_fdlist; 1046s # } _ExtendedGDBusMethodInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusSignalInfo parent_struct; 1046s # const gchar *signal_name; 1046s # } _ExtendedGDBusSignalInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusPropertyInfo parent_struct; 1046s # const gchar *hyphen_name; 1046s # guint use_gvariant : 1; 1046s # guint emits_changed_signal : 1; 1046s # } _ExtendedGDBusPropertyInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusInterfaceInfo parent_struct; 1046s # const gchar *hyphen_name; 1046s # } _ExtendedGDBusInterfaceInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # const _ExtendedGDBusPropertyInfo *info; 1046s # guint prop_id; 1046s # GValue orig_value; /* the value before the change */ 1046s # } ChangedProperty; 1046s # 1046s # static void 1046s # _changed_property_free (ChangedProperty *data) 1046s # { 1046s # g_value_unset (&data->orig_value); 1046s # g_free (data); 1046s # } 1046s # 1046s # static gboolean 1046s # _g_strv_equal0 (gchar **a, gchar **b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # guint n; 1046s # if (a == NULL && b == NULL) 1046s # { 1046s # ret = TRUE; 1046s # goto out; 1046s # } 1046s # if (a == NULL || b == NULL) 1046s # goto out; 1046s # if (g_strv_length (a) != g_strv_length (b)) 1046s # goto out; 1046s # for (n = 0; a[n] != NULL; n++) 1046s # if (g_strcmp0 (a[n], b[n]) != 0) 1046s # goto out; 1046s # ret = TRUE; 1046s # out: 1046s # return ret; 1046s # } 1046s # 1046s # static gboolean 1046s # _g_variant_equal0 (GVariant *a, GVariant *b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # if (a == NULL && b == NULL) 1046s # { 1046s # ret = TRUE; 1046s # goto out; 1046s # } 1046s # if (a == NULL || b == NULL) 1046s # goto out; 1046s # ret = g_variant_equal (a, b); 1046s # out: 1046s # return ret; 1046s # } 1046s # 1046s # G_GNUC_UNUSED static gboolean 1046s # _g_value_equal (const GValue *a, const GValue *b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1046s # switch (G_VALUE_TYPE (a)) 1046s # { 1046s # case G_TYPE_BOOLEAN: 1046s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1046s # break; 1046s # case G_TYPE_UCHAR: 1046s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1046s # break; 1046s # case G_TYPE_INT: 1046s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1046s # break; 1046s # case G_TYPE_UINT: 1046s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1046s # break; 1046s # case G_TYPE_INT64: 1046s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1046s # break; 1046s # case G_TYPE_UINT64: 1046s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1046s # break; 1046s # case G_TYPE_DOUBLE: 1046s # { 1046s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1046s # gdouble da = g_value_get_double (a); 1046s # gdouble db = g_value_get_double (b); 1046s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1046s # } 1046s # break; 1046s # case G_TYPE_STRING: 1046s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1046s # break; 1046s # case G_TYPE_VARIANT: 1046s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1046s # break; 1046s # default: 1046s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1046s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1046s # else 1046s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1046s # break; 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # static void 1046s # _g_dbus_codegen_marshal_VOID__UINT64 ( 1046s # GClosure *closure, 1046s # GValue *return_value G_GNUC_UNUSED, 1046s # unsigned int n_param_values, 1046s # const GValue *param_values, 1046s # void *invocation_hint G_GNUC_UNUSED, 1046s # void *marshal_data) 1046s # { 1046s # typedef void (*_GDbusCodegenMarshalVoid_Uint64Func) 1046s # (void *data1, 1046s # guint64 arg_arg_t, 1046s # void *data2); 1046s # _GDbusCodegenMarshalVoid_Uint64Func callback; 1046s # GCClosure *cc = (GCClosure*) closure; 1046s # void *data1, *data2; 1046s # 1046s # g_return_if_fail (n_param_values == 2); 1046s # 1046s # if (G_CCLOSURE_SWAP_DATA (closure)) 1046s # { 1046s # data1 = closure->data; 1046s # data2 = g_value_peek_pointer (param_values + 0); 1046s # } 1046s # else 1046s # { 1046s # data1 = g_value_peek_pointer (param_values + 0); 1046s # data2 = closure->data; 1046s # } 1046s # 1046s # callback = (_GDbusCodegenMarshalVoid_Uint64Func) 1046s # (marshal_data ? marshal_data : cc->callback); 1046s # 1046s # callback (data1, 1046s # g_marshal_value_peek_uint64 (param_values + 1), 1046s # data2); 1046s # } 1046s # 1046s # /* ------------------------------------------------------------------------ 1046s # * Code for interface org.project.SignalingIface 1046s # * ------------------------------------------------------------------------ 1046s # */ 1046s # 1046s # /** 1046s # * SECTION:OrgProjectSignalingIface 1046s # * @title: OrgProjectSignalingIface 1046s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1046s # * 1046s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1046s # */ 1046s # 1046s # enum 1046s # { 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1046s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T, 1046s # }; 1046s # 1046s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1046s # 1046s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1046s # 1046s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "SimpleSignal", 1046s # NULL, 1046s # NULL 1046s # }, 1046s # "simple-signal" 1046s # }; 1046s # 1046s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_arg_t = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "arg_t", 1046s # (gchar *) "t", 1046s # NULL 1046s # }, 1046s # FALSE 1046s # }; 1046s # 1046s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers[] = 1046s # { 1046s # &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_arg_t.parent_struct, 1046s # NULL 1046s # }; 1046s # 1046s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_t = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "SingleArgSignalT", 1046s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers, 1046s # NULL 1046s # }, 1046s # "single-arg-signal-t" 1046s # }; 1046s # 1046s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1046s # { 1046s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1046s # &_org_project_signaling_iface_signal_info_single_arg_signal_t.parent_struct, 1046s # NULL 1046s # }; 1046s # 1046s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "org.project.SignalingIface", 1046s # NULL, 1046s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1046s # NULL, 1046s # NULL 1046s # }, 1046s # "org-project-signaling-iface", 1046s # }; 1046s # 1046s # 1046s # /** 1046s # * org_project_signaling_iface_interface_info: 1046s # * 1046s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1046s # * 1046s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1046s # */ 1046s # GDBusInterfaceInfo * 1046s # org_project_signaling_iface_interface_info (void) 1046s # { 1046s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_override_properties: 1046s # * @klass: The class structure for a #GObject derived class. 1046s # * @property_id_begin: The property id to assign to the first overridden property. 1046s # * 1046s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1046s # * The properties are overridden in the order they are defined. 1046s # * 1046s # * Returns: The last property id. 1046s # */ 1046s # guint 1046s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1046s # { 1046s # return property_id_begin - 1; 1046s # } 1046s # 1046s # 1046s # inline static void 1046s # org_project_signaling_iface_signal_marshal_simple_signal ( 1046s # GClosure *closure, 1046s # GValue *return_value, 1046s # unsigned int n_param_values, 1046s # const GValue *param_values, 1046s # void *invocation_hint, 1046s # void *marshal_data) 1046s # { 1046s # g_cclosure_marshal_VOID__VOID (closure, 1046s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1046s # } 1046s # 1046s # inline static void 1046s # org_project_signaling_iface_signal_marshal_single_arg_signal_t ( 1046s # GClosure *closure, 1046s # GValue *return_value, 1046s # unsigned int n_param_values, 1046s # const GValue *param_values, 1046s # void *invocation_hint, 1046s # void *marshal_data) 1046s # { 1046s # _g_dbus_codegen_marshal_VOID__UINT64 (closure, 1046s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1046s # } 1046s # 1046s # 1046s # /** 1046s # * OrgProjectSignalingIface: 1046s # * 1046s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceIface: 1046s # * @parent_iface: The parent interface. 1046s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1046s # * @single_arg_signal_t: Handler for the #OrgProjectSignalingIface::single-arg-signal-t signal. 1046s # * 1046s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1046s # */ 1046s # 1046s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1046s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1046s # 1046s # static void 1046s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1046s # { 1046s # /* GObject signals for received D-Bus signals: */ 1046s # /** 1046s # * OrgProjectSignalingIface::simple-signal: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * 1046s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1046s # * 1046s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1046s # */ 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1046s # g_signal_new ("simple-signal", 1046s # G_TYPE_FROM_INTERFACE (iface), 1046s # G_SIGNAL_RUN_LAST, 1046s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1046s # NULL, 1046s # NULL, 1046s # org_project_signaling_iface_signal_marshal_simple_signal, 1046s # G_TYPE_NONE, 1046s # 0); 1046s # 1046s # /** 1046s # * OrgProjectSignalingIface::single-arg-signal-t: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * @arg_arg_t: Argument. 1046s # * 1046s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalT" is received. 1046s # * 1046s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1046s # */ 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T] = 1046s # g_signal_new ("single-arg-signal-t", 1046s # G_TYPE_FROM_INTERFACE (iface), 1046s # G_SIGNAL_RUN_LAST, 1046s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_t), 1046s # NULL, 1046s # NULL, 1046s # org_project_signaling_iface_signal_marshal_single_arg_signal_t, 1046s # G_TYPE_NONE, 1046s # 1, G_TYPE_UINT64); 1046s # 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_emit_simple_signal: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * 1046s # * Emits the "SimpleSignal" D-Bus signal. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_emit_simple_signal ( 1046s # OrgProjectSignalingIface *object) 1046s # { 1046s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_emit_single_arg_signal_t: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * @arg_arg_t: Argument to pass with the signal. 1046s # * 1046s # * Emits the "SingleArgSignalT" D-Bus signal. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_emit_single_arg_signal_t ( 1046s # OrgProjectSignalingIface *object, 1046s # guint64 arg_arg_t) 1046s # { 1046s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T], 0, arg_arg_t); 1046s # } 1046s # 1046s # /* ------------------------------------------------------------------------ */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceProxy: 1046s # * 1046s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceProxyClass: 1046s # * @parent_class: The parent class. 1046s # * 1046s # * Class structure for #OrgProjectSignalingIfaceProxy. 1046s # */ 1046s # 1046s # struct _OrgProjectSignalingIfaceProxyPrivate 1046s # { 1046s # GData *qdata; 1046s # }; 1046s # 1046s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1046s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1046s # 1046s # #else 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1046s # 1046s # #endif 1046s # static void 1046s # org_project_signaling_iface_proxy_finalize (GObject *object) 1046s # { 1046s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1046s # g_datalist_clear (&proxy->priv->qdata); 1046s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1046s # guint prop_id G_GNUC_UNUSED, 1046s # GValue *value G_GNUC_UNUSED, 1046s # GParamSpec *pspec G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1046s # guint prop_id G_GNUC_UNUSED, 1046s # const GValue *value G_GNUC_UNUSED, 1046s # GParamSpec *pspec G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1046s # const gchar *sender_name G_GNUC_UNUSED, 1046s # const gchar *signal_name, 1046s # GVariant *parameters) 1046s # { 1046s # _ExtendedGDBusSignalInfo *info; 1046s # GVariantIter iter; 1046s # GVariant *child; 1046s # GValue *paramv; 1046s # gsize num_params; 1046s # gsize n; 1046s # guint signal_id; 1046s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1046s # if (info == NULL) 1046s # return; 1046s # num_params = g_variant_n_children (parameters); 1046s # paramv = g_new0 (GValue, num_params + 1); 1046s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_set_object (¶mv[0], proxy); 1046s # g_variant_iter_init (&iter, parameters); 1046s # n = 1; 1046s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1046s # { 1046s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1046s # if (arg_info->use_gvariant) 1046s # { 1046s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1046s # g_value_set_variant (¶mv[n], child); 1046s # n++; 1046s # } 1046s # else 1046s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1046s # g_variant_unref (child); 1046s # } 1046s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_signal_emitv (paramv, signal_id, 0, NULL); 1046s # for (n = 0; n < num_params + 1; n++) 1046s # g_value_unset (¶mv[n]); 1046s # g_free (paramv); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1046s # GVariant *changed_properties, 1046s # const gchar *const *invalidated_properties) 1046s # { 1046s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1046s # guint n; 1046s # const gchar *key; 1046s # GVariantIter *iter; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # g_variant_get (changed_properties, "a{sv}", &iter); 1046s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1046s # { 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1046s # g_datalist_remove_data (&proxy->priv->qdata, key); 1046s # if (info != NULL) 1046s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1046s # } 1046s # g_variant_iter_free (iter); 1046s # for (n = 0; invalidated_properties[n] != NULL; n++) 1046s # { 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1046s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1046s # if (info != NULL) 1046s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1046s # } 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1046s # { 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1046s # #else 1046s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1046s # #endif 1046s # 1046s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1046s # { 1046s # GObjectClass *gobject_class; 1046s # GDBusProxyClass *proxy_class; 1046s # 1046s # gobject_class = G_OBJECT_CLASS (klass); 1046s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1046s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1046s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1046s # 1046s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1046s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1046s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1046s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1046s # #endif 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new: 1046s # * @connection: A #GDBusConnection. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1046s # * @user_data: User data to pass to @callback. 1046s # * 1046s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1046s # * 1046s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1046s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_proxy_new ( 1046s # GDBusConnection *connection, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GAsyncReadyCallback callback, 1046s # gpointer user_data) 1046s # { 1046s # 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); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_finish: 1046s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_finish ( 1046s # GAsyncResult *res, 1046s # GError **error) 1046s # { 1046s # GObject *ret; 1046s # GObject *source_object; 1046s # source_object = g_async_result_get_source_object (res); 1046s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1046s # g_object_unref (source_object); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_sync: 1046s # * @connection: A #GDBusConnection. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1046s # * 1046s # * The calling thread is blocked until a reply is received. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_sync ( 1046s # GDBusConnection *connection, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GError **error) 1046s # { 1046s # GInitable *ret; 1046s # 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); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus: 1046s # * @bus_type: A #GBusType. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: A bus name (well-known or unique). 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1046s # * @user_data: User data to pass to @callback. 1046s # * 1046s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1046s # * 1046s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1046s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_proxy_new_for_bus ( 1046s # GBusType bus_type, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GAsyncReadyCallback callback, 1046s # gpointer user_data) 1046s # { 1046s # 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); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1046s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1046s # GAsyncResult *res, 1046s # GError **error) 1046s # { 1046s # GObject *ret; 1046s # GObject *source_object; 1046s # source_object = g_async_result_get_source_object (res); 1046s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1046s # g_object_unref (source_object); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1046s # * @bus_type: A #GBusType. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: A bus name (well-known or unique). 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1046s # * 1046s # * The calling thread is blocked until a reply is received. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1046s # GBusType bus_type, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GError **error) 1046s # { 1046s # GInitable *ret; 1046s # 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); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # 1046s # /* ------------------------------------------------------------------------ */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceSkeleton: 1046s # * 1046s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceSkeletonClass: 1046s # * @parent_class: The parent class. 1046s # * 1046s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1046s # */ 1046s # 1046s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1046s # { 1046s # GValue *properties; 1046s # GList *changed_properties; 1046s # GSource *changed_properties_idle_source; 1046s # GMainContext *context; 1046s # GMutex lock; 1046s # }; 1046s # 1046s # static void 1046s # _org_project_signaling_iface_skeleton_handle_method_call ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name, 1046s # const gchar *method_name, 1046s # GVariant *parameters, 1046s # GDBusMethodInvocation *invocation, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # _ExtendedGDBusMethodInfo *info; 1046s # GVariantIter iter; 1046s # GVariant *child; 1046s # GValue *paramv; 1046s # gsize num_params; 1046s # guint num_extra; 1046s # gsize n; 1046s # guint signal_id; 1046s # GValue return_value = G_VALUE_INIT; 1046s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1046s # g_assert (info != NULL); 1046s # num_params = g_variant_n_children (parameters); 1046s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1046s # n = 0; 1046s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_set_object (¶mv[n++], skeleton); 1046s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1046s # g_value_set_object (¶mv[n++], invocation); 1046s # if (info->pass_fdlist) 1046s # { 1046s # #ifdef G_OS_UNIX 1046s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1046s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1046s # #else 1046s # g_assert_not_reached (); 1046s # #endif 1046s # } 1046s # g_variant_iter_init (&iter, parameters); 1046s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1046s # { 1046s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1046s # if (arg_info->use_gvariant) 1046s # { 1046s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1046s # g_value_set_variant (¶mv[n], child); 1046s # n++; 1046s # } 1046s # else 1046s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1046s # g_variant_unref (child); 1046s # } 1046s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1046s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1046s # if (!g_value_get_boolean (&return_value)) 1046s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1046s # g_value_unset (&return_value); 1046s # for (n = 0; n < num_params + num_extra; n++) 1046s # g_value_unset (¶mv[n]); 1046s # g_free (paramv); 1046s # } 1046s # 1046s # static GVariant * 1046s # _org_project_signaling_iface_skeleton_handle_get_property ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name G_GNUC_UNUSED, 1046s # const gchar *property_name, 1046s # GError **error, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # GValue value = G_VALUE_INIT; 1046s # GParamSpec *pspec; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # GVariant *ret; 1046s # ret = NULL; 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1046s # g_assert (info != NULL); 1046s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1046s # if (pspec == NULL) 1046s # { 1046s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1046s # } 1046s # else 1046s # { 1046s # g_value_init (&value, pspec->value_type); 1046s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1046s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1046s # g_value_unset (&value); 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # static gboolean 1046s # _org_project_signaling_iface_skeleton_handle_set_property ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name G_GNUC_UNUSED, 1046s # const gchar *property_name, 1046s # GVariant *variant, 1046s # GError **error, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # GValue value = G_VALUE_INIT; 1046s # GParamSpec *pspec; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # gboolean ret; 1046s # ret = FALSE; 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1046s # g_assert (info != NULL); 1046s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1046s # if (pspec == NULL) 1046s # { 1046s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1046s # } 1046s # else 1046s # { 1046s # if (info->use_gvariant) 1046s # g_value_set_variant (&value, variant); 1046s # else 1046s # g_dbus_gvariant_to_gvalue (variant, &value); 1046s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1046s # g_value_unset (&value); 1046s # ret = TRUE; 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1046s # { 1046s # _org_project_signaling_iface_skeleton_handle_method_call, 1046s # _org_project_signaling_iface_skeleton_handle_get_property, 1046s # _org_project_signaling_iface_skeleton_handle_set_property, 1046s # {NULL} 1046s # }; 1046s # 1046s # static GDBusInterfaceInfo * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1046s # { 1046s # return org_project_signaling_iface_interface_info (); 1046s # } 1046s # 1046s # static GDBusInterfaceVTable * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1046s # { 1046s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1046s # } 1046s # 1046s # static GVariant * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1046s # 1046s # GVariantBuilder builder; 1046s # guint n; 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1046s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1046s # #else 1046s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1046s # #endif 1046s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1046s # goto out; 1046s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1046s # { 1046s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1046s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1046s # { 1046s # GVariant *value; 1046s # 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); 1046s # if (value != NULL) 1046s # { 1046s # g_variant_take_ref (value); 1046s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1046s # g_variant_unref (value); 1046s # } 1046s # } 1046s # } 1046s # out: 1046s # return g_variant_builder_end (&builder); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # _org_project_signaling_iface_on_signal_simple_signal ( 1046s # OrgProjectSignalingIface *object) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # 1046s # GList *connections, *l; 1046s # GVariant *signal_variant; 1046s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1046s # 1046s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1046s # for (l = connections; l != NULL; l = l->next) 1046s # { 1046s # GDBusConnection *connection = l->data; 1046s # g_dbus_connection_emit_signal (connection, 1046s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1046s # signal_variant, NULL); 1046s # } 1046s # g_variant_unref (signal_variant); 1046s # g_list_free_full (connections, g_object_unref); 1046s # } 1046s # 1046s # static void 1046s # _org_project_signaling_iface_on_signal_single_arg_signal_t ( 1046s # OrgProjectSignalingIface *object, 1046s # guint64 arg_arg_t) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # 1046s # GList *connections, *l; 1046s # GVariant *signal_variant; 1046s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1046s # 1046s # signal_variant = g_variant_ref_sink (g_variant_new ("(t)", 1046s # arg_arg_t)); 1046s # for (l = connections; l != NULL; l = l->next) 1046s # { 1046s # GDBusConnection *connection = l->data; 1046s # g_dbus_connection_emit_signal (connection, 1046s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalT", 1046s # signal_variant, NULL); 1046s # } 1046s # g_variant_unref (signal_variant); 1046s # g_list_free_full (connections, g_object_unref); 1046s # } 1046s # 1046s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1046s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1046s # 1046s # #else 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1046s # 1046s # #endif 1046s # static void 1046s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1046s # if (skeleton->priv->changed_properties_idle_source != NULL) 1046s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1046s # g_main_context_unref (skeleton->priv->context); 1046s # g_mutex_clear (&skeleton->priv->lock); 1046s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1046s # { 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1046s # #else 1046s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1046s # #endif 1046s # 1046s # g_mutex_init (&skeleton->priv->lock); 1046s # skeleton->priv->context = g_main_context_ref_thread_default (); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1046s # { 1046s # GObjectClass *gobject_class; 1046s # GDBusInterfaceSkeletonClass *skeleton_class; 1046s # 1046s # gobject_class = G_OBJECT_CLASS (klass); 1046s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1046s # 1046s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1046s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1046s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1046s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1046s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1046s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1046s # #endif 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1046s # { 1046s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1046s # iface->single_arg_signal_t = _org_project_signaling_iface_on_signal_single_arg_signal_t; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_skeleton_new: 1046s # * 1046s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_skeleton_new (void) 1046s # { 1046s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1046s # } 1046s # Error: 1046s # 1046s # /tmp/tmppt74if37/tmpd5885wun.xml: 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppt74if37/tmpd5885wun.xml', '--output', '-', '--body'] 1046s # Return code: 0 1046s # Output: 1046s # /* 1046s # * This file is generated by gdbus-codegen, do not modify it. 1046s # * 1046s # * The license of this code is the same as for the D-Bus interface description 1046s # * it was derived from. Note that it links to GLib, so must comply with the 1046s # * LGPL linking clauses. 1046s # */ 1046s # 1046s # #ifdef HAVE_CONFIG_H 1046s # # include "config.h" 1046s # #endif 1046s # 1046s # #include 1046s # #ifdef G_OS_UNIX 1046s # # include 1046s # #endif 1046s # 1046s # #ifdef G_ENABLE_DEBUG 1046s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1046s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1046s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1046s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1046s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1046s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1046s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1046s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1046s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1046s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1046s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1046s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1046s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1046s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1046s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1046s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1046s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1046s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1046s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1046s # #else /* !G_ENABLE_DEBUG */ 1046s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1046s # * Do not access GValues directly in your code. Instead, use the 1046s # * g_value_get_*() functions 1046s # */ 1046s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1046s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1046s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1046s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1046s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1046s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1046s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1046s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1046s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1046s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1046s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1046s # #endif /* !G_ENABLE_DEBUG */ 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusArgInfo parent_struct; 1046s # gboolean use_gvariant; 1046s # } _ExtendedGDBusArgInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusMethodInfo parent_struct; 1046s # const gchar *signal_name; 1046s # gboolean pass_fdlist; 1046s # } _ExtendedGDBusMethodInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusSignalInfo parent_struct; 1046s # const gchar *signal_name; 1046s # } _ExtendedGDBusSignalInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusPropertyInfo parent_struct; 1046s # const gchar *hyphen_name; 1046s # guint use_gvariant : 1; 1046s # guint emits_changed_signal : 1; 1046s # } _ExtendedGDBusPropertyInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusInterfaceInfo parent_struct; 1046s # const gchar *hyphen_name; 1046s # } _ExtendedGDBusInterfaceInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # const _ExtendedGDBusPropertyInfo *info; 1046s # guint prop_id; 1046s # GValue orig_value; /* the value before the change */ 1046s # } ChangedProperty; 1046s # 1046s # static void 1046s # _changed_property_free (ChangedProperty *data) 1046s # { 1046s # g_value_unset (&data->orig_value); 1046s # g_free (data); 1046s # } 1046s # 1046s # static gboolean 1046s # _g_strv_equal0 (gchar **a, gchar **b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # guint n; 1046s # if (a == NULL && b == NULL) 1046s # { 1046s # ret = TRUE; 1046s # goto out; 1046s # } 1046s # if (a == NULL || b == NULL) 1046s # goto out; 1046s # if (g_strv_length (a) != g_strv_length (b)) 1046s # goto out; 1046s # for (n = 0; a[n] != NULL; n++) 1046s # if (g_strcmp0 (a[n], b[n]) != 0) 1046s # goto out; 1046s # ret = TRUE; 1046s # out: 1046s # return ret; 1046s # } 1046s # 1046s # static gboolean 1046s # _g_variant_equal0 (GVariant *a, GVariant *b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # if (a == NULL && b == NULL) 1046s # { 1046s # ret = TRUE; 1046s # goto out; 1046s # } 1046s # if (a == NULL || b == NULL) 1046s # goto out; 1046s # ret = g_variant_equal (a, b); 1046s # out: 1046s # return ret; 1046s # } 1046s # 1046s # G_GNUC_UNUSED static gboolean 1046s # _g_value_equal (const GValue *a, const GValue *b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1046s # switch (G_VALUE_TYPE (a)) 1046s # { 1046s # case G_TYPE_BOOLEAN: 1046s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1046s # break; 1046s # case G_TYPE_UCHAR: 1046s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1046s # break; 1046s # case G_TYPE_INT: 1046s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1046s # break; 1046s # case G_TYPE_UINT: 1046s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1046s # break; 1046s # case G_TYPE_INT64: 1046s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1046s # break; 1046s # case G_TYPE_UINT64: 1046s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1046s # break; 1046s # case G_TYPE_DOUBLE: 1046s # { 1046s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1046s # gdouble da = g_value_get_double (a); 1046s # gdouble db = g_value_get_double (b); 1046s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1046s # } 1046s # break; 1046s # case G_TYPE_STRING: 1046s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1046s # break; 1046s # case G_TYPE_VARIANT: 1046s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1046s # break; 1046s # default: 1046s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1046s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1046s # else 1046s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1046s # break; 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # /* ------------------------------------------------------------------------ 1046s # * Code for interface org.project.SignalingIface 1046s # * ------------------------------------------------------------------------ 1046s # */ 1046s # 1046s # /** 1046s # * SECTION:OrgProjectSignalingIface 1046s # * @title: OrgProjectSignalingIface 1046s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1046s # * 1046s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1046s # */ 1046s # 1046s # enum 1046s # { 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1046s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D, 1046s # }; 1046s # 1046s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1046s # 1046s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1046s # 1046s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "SimpleSignal", 1046s # NULL, 1046s # NULL 1046s # }, 1046s # "simple-signal" 1046s # }; 1046s # 1046s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_arg_d = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "arg_d", 1046s # (gchar *) "d", 1046s # NULL 1046s # }, 1046s # FALSE 1046s # }; 1046s # 1046s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers[] = 1046s # { 1046s # &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_arg_d.parent_struct, 1046s # NULL 1046s # }; 1046s # 1046s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_d = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "SingleArgSignalD", 1046s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers, 1046s # NULL 1046s # }, 1046s # "single-arg-signal-d" 1046s # }; 1046s # 1046s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1046s # { 1046s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1046s # &_org_project_signaling_iface_signal_info_single_arg_signal_d.parent_struct, 1046s # NULL 1046s # }; 1046s # 1046s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "org.project.SignalingIface", 1046s # NULL, 1046s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1046s # NULL, 1046s # NULL 1046s # }, 1046s # "org-project-signaling-iface", 1046s # }; 1046s # 1046s # 1046s # /** 1046s # * org_project_signaling_iface_interface_info: 1046s # * 1046s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1046s # * 1046s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1046s # */ 1046s # GDBusInterfaceInfo * 1046s # org_project_signaling_iface_interface_info (void) 1046s # { 1046s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_override_properties: 1046s # * @klass: The class structure for a #GObject derived class. 1046s # * @property_id_begin: The property id to assign to the first overridden property. 1046s # * 1046s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1046s # * The properties are overridden in the order they are defined. 1046s # * 1046s # * Returns: The last property id. 1046s # */ 1046s # guint 1046s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1046s # { 1046s # return property_id_begin - 1; 1046s # } 1046s # 1046s # 1046s # inline static void 1046s # org_project_signaling_iface_signal_marshal_simple_signal ( 1046s # GClosure *closure, 1046s # GValue *return_value, 1046s # unsigned int n_param_values, 1046s # const GValue *param_values, 1046s # void *invocation_hint, 1046s # void *marshal_data) 1046s # { 1046s # g_cclosure_marshal_VOID__VOID (closure, 1046s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1046s # } 1046s # 1046s # inline static void 1046s # org_project_signaling_iface_signal_marshal_single_arg_signal_d ( 1046s # GClosure *closure, 1046s # GValue *return_value, 1046s # unsigned int n_param_values, 1046s # const GValue *param_values, 1046s # void *invocation_hint, 1046s # void *marshal_data) 1046s # { 1046s # g_cclosure_marshal_VOID__DOUBLE (closure, 1046s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1046s # } 1046s # 1046s # 1046s # /** 1046s # * OrgProjectSignalingIface: 1046s # * 1046s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceIface: 1046s # * @parent_iface: The parent interface. 1046s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1046s # * @single_arg_signal_d: Handler for the #OrgProjectSignalingIface::single-arg-signal-d signal. 1046s # * 1046s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1046s # */ 1046s # 1046s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1046s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1046s # 1046s # static void 1046s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1046s # { 1046s # /* GObject signals for received D-Bus signals: */ 1046s # /** 1046s # * OrgProjectSignalingIface::simple-signal: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * 1046s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1046s # * 1046s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1046s # */ 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1046s # g_signal_new ("simple-signal", 1046s # G_TYPE_FROM_INTERFACE (iface), 1046s # G_SIGNAL_RUN_LAST, 1046s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1046s # NULL, 1046s # NULL, 1046s # org_project_signaling_iface_signal_marshal_simple_signal, 1046s # G_TYPE_NONE, 1046s # 0); 1046s # 1046s # /** 1046s # * OrgProjectSignalingIface::single-arg-signal-d: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * @arg_arg_d: Argument. 1046s # * 1046s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalD" is received. 1046s # * 1046s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1046s # */ 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D] = 1046s # g_signal_new ("single-arg-signal-d", 1046s # G_TYPE_FROM_INTERFACE (iface), 1046s # G_SIGNAL_RUN_LAST, 1046s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_d), 1046s # NULL, 1046s # NULL, 1046s # org_project_signaling_iface_signal_marshal_single_arg_signal_d, 1046s # G_TYPE_NONE, 1046s # 1, G_TYPE_DOUBLE); 1046s # 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_emit_simple_signal: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * 1046s # * Emits the "SimpleSignal" D-Bus signal. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_emit_simple_signal ( 1046s # OrgProjectSignalingIface *object) 1046s # { 1046s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_emit_single_arg_signal_d: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * @arg_arg_d: Argument to pass with the signal. 1046s # * 1046s # * Emits the "SingleArgSignalD" D-Bus signal. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_emit_single_arg_signal_d ( 1046s # OrgProjectSignalingIface *object, 1046s # gdouble arg_arg_d) 1046s # { 1046s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D], 0, arg_arg_d); 1046s # } 1046s # 1046s # /* ------------------------------------------------------------------------ */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceProxy: 1046s # * 1046s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceProxyClass: 1046s # * @parent_class: The parent class. 1046s # * 1046s # * Class structure for #OrgProjectSignalingIfaceProxy. 1046s # */ 1046s # 1046s # struct _OrgProjectSignalingIfaceProxyPrivate 1046s # { 1046s # GData *qdata; 1046s # }; 1046s # 1046s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1046s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1046s # 1046s # #else 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1046s # 1046s # #endif 1046s # static void 1046s # org_project_signaling_iface_proxy_finalize (GObject *object) 1046s # { 1046s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1046s # g_datalist_clear (&proxy->priv->qdata); 1046s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1046s # guint prop_id G_GNUC_UNUSED, 1046s # GValue *value G_GNUC_UNUSED, 1046s # GParamSpec *pspec G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1046s # guint prop_id G_GNUC_UNUSED, 1046s # const GValue *value G_GNUC_UNUSED, 1046s # GParamSpec *pspec G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1046s # const gchar *sender_name G_GNUC_UNUSED, 1046s # const gchar *signal_name, 1046s # GVariant *parameters) 1046s # { 1046s # _ExtendedGDBusSignalInfo *info; 1046s # GVariantIter iter; 1046s # GVariant *child; 1046s # GValue *paramv; 1046s # gsize num_params; 1046s # gsize n; 1046s # guint signal_id; 1046s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1046s # if (info == NULL) 1046s # return; 1046s # num_params = g_variant_n_children (parameters); 1046s # paramv = g_new0 (GValue, num_params + 1); 1046s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_set_object (¶mv[0], proxy); 1046s # g_variant_iter_init (&iter, parameters); 1046s # n = 1; 1046s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1046s # { 1046s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1046s # if (arg_info->use_gvariant) 1046s # { 1046s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1046s # g_value_set_variant (¶mv[n], child); 1046s # n++; 1046s # } 1046s # else 1046s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1046s # g_variant_unref (child); 1046s # } 1046s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_signal_emitv (paramv, signal_id, 0, NULL); 1046s # for (n = 0; n < num_params + 1; n++) 1046s # g_value_unset (¶mv[n]); 1046s # g_free (paramv); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1046s # GVariant *changed_properties, 1046s # const gchar *const *invalidated_properties) 1046s # { 1046s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1046s # guint n; 1046s # const gchar *key; 1046s # GVariantIter *iter; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # g_variant_get (changed_properties, "a{sv}", &iter); 1046s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1046s # { 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1046s # g_datalist_remove_data (&proxy->priv->qdata, key); 1046s # if (info != NULL) 1046s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1046s # } 1046s # g_variant_iter_free (iter); 1046s # for (n = 0; invalidated_properties[n] != NULL; n++) 1046s # { 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1046s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1046s # if (info != NULL) 1046s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1046s # } 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1046s # { 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1046s # #else 1046s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1046s # #endif 1046s # 1046s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1046s # { 1046s # GObjectClass *gobject_class; 1046s # GDBusProxyClass *proxy_class; 1046s # 1046s # gobject_class = G_OBJECT_CLASS (klass); 1046s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1046s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1046s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1046s # 1046s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1046s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1046s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1046s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1046s # #endif 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new: 1046s # * @connection: A #GDBusConnection. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1046s # * @user_data: User data to pass to @callback. 1046s # * 1046s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1046s # * 1046s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1046s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_proxy_new ( 1046s # GDBusConnection *connection, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GAsyncReadyCallback callback, 1046s # gpointer user_data) 1046s # { 1046s # 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); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_finish: 1046s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_finish ( 1046s # GAsyncResult *res, 1046s # GError **error) 1046s # { 1046s # GObject *ret; 1046s # GObject *source_object; 1046s # source_object = g_async_result_get_source_object (res); 1046s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1046s # g_object_unref (source_object); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_sync: 1046s # * @connection: A #GDBusConnection. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1046s # * 1046s # * The calling thread is blocked until a reply is received. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_sync ( 1046s # GDBusConnection *connection, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GError **error) 1046s # { 1046s # GInitable *ret; 1046s # 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); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus: 1046s # * @bus_type: A #GBusType. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: A bus name (well-known or unique). 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1046s # * @user_data: User data to pass to @callback. 1046s # * 1046s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1046s # * 1046s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1046s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_proxy_new_for_bus ( 1046s # GBusType bus_type, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GAsyncReadyCallback callback, 1046s # gpointer user_data) 1046s # { 1046s # 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); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1046s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1046s # GAsyncResult *res, 1046s # GError **error) 1046s # { 1046s # GObject *ret; 1046s # GObject *source_object; 1046s # source_object = g_async_result_get_source_object (res); 1046s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1046s # g_object_unref (source_object); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1046s # * @bus_type: A #GBusType. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: A bus name (well-known or unique). 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1046s # * 1046s # * The calling thread is blocked until a reply is received. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1046s # GBusType bus_type, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GError **error) 1046s # { 1046s # GInitable *ret; 1046s # 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); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # 1046s # /* ------------------------------------------------------------------------ */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceSkeleton: 1046s # * 1046s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceSkeletonClass: 1046s # * @parent_class: The parent class. 1046s # * 1046s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1046s # */ 1046s # 1046s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1046s # { 1046s # GValue *properties; 1046s # GList *changed_properties; 1046s # GSource *changed_properties_idle_source; 1046s # GMainContext *context; 1046s # GMutex lock; 1046s # }; 1046s # 1046s # static void 1046s # _org_project_signaling_iface_skeleton_handle_method_call ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name, 1046s # const gchar *method_name, 1046s # GVariant *parameters, 1046s # GDBusMethodInvocation *invocation, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # _ExtendedGDBusMethodInfo *info; 1046s # GVariantIter iter; 1046s # GVariant *child; 1046s # GValue *paramv; 1046s # gsize num_params; 1046s # guint num_extra; 1046s # gsize n; 1046s # guint signal_id; 1046s # GValue return_value = G_VALUE_INIT; 1046s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1046s # g_assert (info != NULL); 1046s # num_params = g_variant_n_children (parameters); 1046s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1046s # n = 0; 1046s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_set_object (¶mv[n++], skeleton); 1046s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1046s # g_value_set_object (¶mv[n++], invocation); 1046s # if (info->pass_fdlist) 1046s # { 1046s # #ifdef G_OS_UNIX 1046s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1046s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1046s # #else 1046s # g_assert_not_reached (); 1046s # #endif 1046s # } 1046s # g_variant_iter_init (&iter, parameters); 1046s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1046s # { 1046s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1046s # if (arg_info->use_gvariant) 1046s # { 1046s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1046s # g_value_set_variant (¶mv[n], child); 1046s # n++; 1046s # } 1046s # else 1046s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1046s # g_variant_unref (child); 1046s # } 1046s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1046s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1046s # if (!g_value_get_boolean (&return_value)) 1046s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1046s # g_value_unset (&return_value); 1046s # for (n = 0; n < num_params + num_extra; n++) 1046s # g_value_unset (¶mv[n]); 1046s # g_free (paramv); 1046s # } 1046s # 1046s # static GVariant * 1046s # _org_project_signaling_iface_skeleton_handle_get_property ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name G_GNUC_UNUSED, 1046s # const gchar *property_name, 1046s # GError **error, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # GValue value = G_VALUE_INIT; 1046s # GParamSpec *pspec; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # GVariant *ret; 1046s # ret = NULL; 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1046s # g_assert (info != NULL); 1046s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1046s # if (pspec == NULL) 1046s # { 1046s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1046s # } 1046s # else 1046s # { 1046s # g_value_init (&value, pspec->value_type); 1046s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1046s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1046s # g_value_unset (&value); 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # static gboolean 1046s # _org_project_signaling_iface_skeleton_handle_set_property ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name G_GNUC_UNUSED, 1046s # const gchar *property_name, 1046s # GVariant *variant, 1046s # GError **error, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # GValue value = G_VALUE_INIT; 1046s # GParamSpec *pspec; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # gboolean ret; 1046s # ret = FALSE; 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1046s # g_assert (info != NULL); 1046s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1046s # if (pspec == NULL) 1046s # { 1046s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1046s # } 1046s # else 1046s # { 1046s # if (info->use_gvariant) 1046s # g_value_set_variant (&value, variant); 1046s # else 1046s # g_dbus_gvariant_to_gvalue (variant, &value); 1046s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1046s # g_value_unset (&value); 1046s # ret = TRUE; 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1046s # { 1046s # _org_project_signaling_iface_skeleton_handle_method_call, 1046s # _org_project_signaling_iface_skeleton_handle_get_property, 1046s # _org_project_signaling_iface_skeleton_handle_set_property, 1046s # {NULL} 1046s # }; 1046s # 1046s # static GDBusInterfaceInfo * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1046s # { 1046s # return org_project_signaling_iface_interface_info (); 1046s # } 1046s # 1046s # static GDBusInterfaceVTable * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1046s # { 1046s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1046s # } 1046s # 1046s # static GVariant * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1046s # 1046s # GVariantBuilder builder; 1046s # guint n; 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1046s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1046s # #else 1046s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1046s # #endif 1046s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1046s # goto out; 1046s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1046s # { 1046s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1046s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1046s # { 1046s # GVariant *value; 1046s # 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); 1046s # if (value != NULL) 1046s # { 1046s # g_variant_take_ref (value); 1046s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1046s # g_variant_unref (value); 1046s # } 1046s # } 1046s # } 1046s # out: 1046s # return g_variant_builder_end (&builder); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # _org_project_signaling_iface_on_signal_simple_signal ( 1046s # OrgProjectSignalingIface *object) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # 1046s # GList *connections, *l; 1046s # GVariant *signal_variant; 1046s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1046s # 1046s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1046s # for (l = connections; l != NULL; l = l->next) 1046s # { 1046s # GDBusConnection *connection = l->data; 1046s # g_dbus_connection_emit_signal (connection, 1046s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1046s # signal_variant, NULL); 1046s # } 1046s # g_variant_unref (signal_variant); 1046s # g_list_free_full (connections, g_object_unref); 1046s # } 1046s # 1046s # static void 1046s # _org_project_signaling_iface_on_signal_single_arg_signal_d ( 1046s # OrgProjectSignalingIface *object, 1046s # gdouble arg_arg_d) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # 1046s # GList *connections, *l; 1046s # GVariant *signal_variant; 1046s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1046s # 1046s # signal_variant = g_variant_ref_sink (g_variant_new ("(d)", 1046s # arg_arg_d)); 1046s # for (l = connections; l != NULL; l = l->next) 1046s # { 1046s # GDBusConnection *connection = l->data; 1046s # g_dbus_connection_emit_signal (connection, 1046s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalD", 1046s # signal_variant, NULL); 1046s # } 1046s # g_variant_unref (signal_variant); 1046s # g_list_free_full (connections, g_object_unref); 1046s # } 1046s # 1046s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1046s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1046s # 1046s # #else 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1046s # 1046s # #endif 1046s # static void 1046s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1046s # if (skeleton->priv->changed_properties_idle_source != NULL) 1046s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1046s # g_main_context_unref (skeleton->priv->context); 1046s # g_mutex_clear (&skeleton->priv->lock); 1046s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1046s # { 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1046s # #else 1046s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1046s # #endif 1046s # 1046s # g_mutex_init (&skeleton->priv->lock); 1046s # skeleton->priv->context = g_main_context_ref_thread_default (); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1046s # { 1046s # GObjectClass *gobject_class; 1046s # GDBusInterfaceSkeletonClass *skeleton_class; 1046s # 1046s # gobject_class = G_OBJECT_CLASS (klass); 1046s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1046s # 1046s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1046s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1046s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1046s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1046s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1046s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1046s # #endif 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1046s # { 1046s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1046s # iface->single_arg_signal_d = _org_project_signaling_iface_on_signal_single_arg_signal_d; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_skeleton_new: 1046s # * 1046s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_skeleton_new (void) 1046s # { 1046s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1046s # } 1046s # Error: 1046s # 1046s # /tmp/tmppt74if37/tmppqwu2y4i.xml: 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppt74if37/tmppqwu2y4i.xml', '--output', '-', '--body'] 1046s # Return code: 0 1046s # Output: 1046s # /* 1046s # * This file is generated by gdbus-codegen, do not modify it. 1046s # * 1046s # * The license of this code is the same as for the D-Bus interface description 1046s # * it was derived from. Note that it links to GLib, so must comply with the 1046s # * LGPL linking clauses. 1046s # */ 1046s # 1046s # #ifdef HAVE_CONFIG_H 1046s # # include "config.h" 1046s # #endif 1046s # 1046s # #include 1046s # #ifdef G_OS_UNIX 1046s # # include 1046s # #endif 1046s # 1046s # #ifdef G_ENABLE_DEBUG 1046s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1046s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1046s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1046s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1046s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1046s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1046s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1046s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1046s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1046s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1046s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1046s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1046s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1046s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1046s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1046s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1046s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1046s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1046s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1046s # #else /* !G_ENABLE_DEBUG */ 1046s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1046s # * Do not access GValues directly in your code. Instead, use the 1046s # * g_value_get_*() functions 1046s # */ 1046s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1046s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1046s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1046s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1046s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1046s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1046s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1046s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1046s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1046s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1046s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1046s # #endif /* !G_ENABLE_DEBUG */ 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusArgInfo parent_struct; 1046s # gboolean use_gvariant; 1046s # } _ExtendedGDBusArgInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusMethodInfo parent_struct; 1046s # const gchar *signal_name; 1046s # gboolean pass_fdlist; 1046s # } _ExtendedGDBusMethodInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusSignalInfo parent_struct; 1046s # const gchar *signal_name; 1046s # } _ExtendedGDBusSignalInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusPropertyInfo parent_struct; 1046s # const gchar *hyphen_name; 1046s # guint use_gvariant : 1; 1046s # guint emits_changed_signal : 1; 1046s # } _ExtendedGDBusPropertyInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusInterfaceInfo parent_struct; 1046s # const gchar *hyphen_name; 1046s # } _ExtendedGDBusInterfaceInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # const _ExtendedGDBusPropertyInfo *info; 1046s # guint prop_id; 1046s # GValue orig_value; /* the value before the change */ 1046s # } ChangedProperty; 1046s # 1046s # static void 1046s # _changed_property_free (ChangedProperty *data) 1046s # { 1046s # g_value_unset (&data->orig_value); 1046s # g_free (data); 1046s # } 1046s # 1046s # static gboolean 1046s # _g_strv_equal0 (gchar **a, gchar **b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # guint n; 1046s # if (a == NULL && b == NULL) 1046s # { 1046s # ret = TRUE; 1046s # goto out; 1046s # } 1046s # if (a == NULL || b == NULL) 1046s # goto out; 1046s # if (g_strv_length (a) != g_strv_length (b)) 1046s # goto out; 1046s # for (n = 0; a[n] != NULL; n++) 1046s # if (g_strcmp0 (a[n], b[n]) != 0) 1046s # goto out; 1046s # ret = TRUE; 1046s # out: 1046s # return ret; 1046s # } 1046s # 1046s # static gboolean 1046s # _g_variant_equal0 (GVariant *a, GVariant *b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # if (a == NULL && b == NULL) 1046s # { 1046s # ret = TRUE; 1046s # goto out; 1046s # } 1046s # if (a == NULL || b == NULL) 1046s # goto out; 1046s # ret = g_variant_equal (a, b); 1046s # out: 1046s # return ret; 1046s # } 1046s # 1046s # G_GNUC_UNUSED static gboolean 1046s # _g_value_equal (const GValue *a, const GValue *b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1046s # switch (G_VALUE_TYPE (a)) 1046s # { 1046s # case G_TYPE_BOOLEAN: 1046s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1046s # break; 1046s # case G_TYPE_UCHAR: 1046s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1046s # break; 1046s # case G_TYPE_INT: 1046s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1046s # break; 1046s # case G_TYPE_UINT: 1046s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1046s # break; 1046s # case G_TYPE_INT64: 1046s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1046s # break; 1046s # case G_TYPE_UINT64: 1046s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1046s # break; 1046s # case G_TYPE_DOUBLE: 1046s # { 1046s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1046s # gdouble da = g_value_get_double (a); 1046s # gdouble db = g_value_get_double (b); 1046s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1046s # } 1046s # break; 1046s # case G_TYPE_STRING: 1046s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1046s # break; 1046s # case G_TYPE_VARIANT: 1046s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1046s # break; 1046s # default: 1046s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1046s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1046s # else 1046s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1046s # break; 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # /* ------------------------------------------------------------------------ 1046s # * Code for interface org.project.SignalingIface 1046s # * ------------------------------------------------------------------------ 1046s # */ 1046s # 1046s # /** 1046s # * SECTION:OrgProjectSignalingIface 1046s # * @title: OrgProjectSignalingIface 1046s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1046s # * 1046s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1046s # */ 1046s # 1046s # enum 1046s # { 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1046s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S, 1046s # }; 1046s # 1046s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1046s # 1046s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1046s # 1046s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "SimpleSignal", 1046s # NULL, 1046s # NULL 1046s # }, 1046s # "simple-signal" 1046s # }; 1046s # 1046s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_arg_s = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "arg_s", 1046s # (gchar *) "s", 1046s # NULL 1046s # }, 1046s # FALSE 1046s # }; 1046s # 1046s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers[] = 1046s # { 1046s # &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_arg_s.parent_struct, 1046s # NULL 1046s # }; 1046s # 1046s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_s = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "SingleArgSignalS", 1046s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers, 1046s # NULL 1046s # }, 1046s # "single-arg-signal-s" 1046s # }; 1046s # 1046s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1046s # { 1046s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1046s # &_org_project_signaling_iface_signal_info_single_arg_signal_s.parent_struct, 1046s # NULL 1046s # }; 1046s # 1046s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "org.project.SignalingIface", 1046s # NULL, 1046s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1046s # NULL, 1046s # NULL 1046s # }, 1046s # "org-project-signaling-iface", 1046s # }; 1046s # 1046s # 1046s # /** 1046s # * org_project_signaling_iface_interface_info: 1046s # * 1046s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1046s # * 1046s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1046s # */ 1046s # GDBusInterfaceInfo * 1046s # org_project_signaling_iface_interface_info (void) 1046s # { 1046s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_override_properties: 1046s # * @klass: The class structure for a #GObject derived class. 1046s # * @property_id_begin: The property id to assign to the first overridden property. 1046s # * 1046s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1046s # * The properties are overridden in the order they are defined. 1046s # * 1046s # * Returns: The last property id. 1046s # */ 1046s # guint 1046s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1046s # { 1046s # return property_id_begin - 1; 1046s # } 1046s # 1046s # 1046s # inline static void 1046s # org_project_signaling_iface_signal_marshal_simple_signal ( 1046s # GClosure *closure, 1046s # GValue *return_value, 1046s # unsigned int n_param_values, 1046s # const GValue *param_values, 1046s # void *invocation_hint, 1046s # void *marshal_data) 1046s # { 1046s # g_cclosure_marshal_VOID__VOID (closure, 1046s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1046s # } 1046s # 1046s # inline static void 1046s # org_project_signaling_iface_signal_marshal_single_arg_signal_s ( 1046s # GClosure *closure, 1046s # GValue *return_value, 1046s # unsigned int n_param_values, 1046s # const GValue *param_values, 1046s # void *invocation_hint, 1046s # void *marshal_data) 1046s # { 1046s # g_cclosure_marshal_VOID__STRING (closure, 1046s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1046s # } 1046s # 1046s # 1046s # /** 1046s # * OrgProjectSignalingIface: 1046s # * 1046s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceIface: 1046s # * @parent_iface: The parent interface. 1046s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1046s # * @single_arg_signal_s: Handler for the #OrgProjectSignalingIface::single-arg-signal-s signal. 1046s # * 1046s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1046s # */ 1046s # 1046s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1046s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1046s # 1046s # static void 1046s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1046s # { 1046s # /* GObject signals for received D-Bus signals: */ 1046s # /** 1046s # * OrgProjectSignalingIface::simple-signal: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * 1046s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1046s # * 1046s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1046s # */ 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1046s # g_signal_new ("simple-signal", 1046s # G_TYPE_FROM_INTERFACE (iface), 1046s # G_SIGNAL_RUN_LAST, 1046s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1046s # NULL, 1046s # NULL, 1046s # org_project_signaling_iface_signal_marshal_simple_signal, 1046s # G_TYPE_NONE, 1046s # 0); 1046s # 1046s # /** 1046s # * OrgProjectSignalingIface::single-arg-signal-s: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * @arg_arg_s: Argument. 1046s # * 1046s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalS" is received. 1046s # * 1046s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1046s # */ 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S] = 1046s # g_signal_new ("single-arg-signal-s", 1046s # G_TYPE_FROM_INTERFACE (iface), 1046s # G_SIGNAL_RUN_LAST, 1046s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_s), 1046s # NULL, 1046s # NULL, 1046s # org_project_signaling_iface_signal_marshal_single_arg_signal_s, 1046s # G_TYPE_NONE, 1046s # 1, G_TYPE_STRING); 1046s # 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_emit_simple_signal: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * 1046s # * Emits the "SimpleSignal" D-Bus signal. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_emit_simple_signal ( 1046s # OrgProjectSignalingIface *object) 1046s # { 1046s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_emit_single_arg_signal_s: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * @arg_arg_s: Argument to pass with the signal. 1046s # * 1046s # * Emits the "SingleArgSignalS" D-Bus signal. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_emit_single_arg_signal_s ( 1046s # OrgProjectSignalingIface *object, 1046s # const gchar *arg_arg_s) 1046s # { 1046s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S], 0, arg_arg_s); 1046s # } 1046s # 1046s # /* ------------------------------------------------------------------------ */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceProxy: 1046s # * 1046s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceProxyClass: 1046s # * @parent_class: The parent class. 1046s # * 1046s # * Class structure for #OrgProjectSignalingIfaceProxy. 1046s # */ 1046s # 1046s # struct _OrgProjectSignalingIfaceProxyPrivate 1046s # { 1046s # GData *qdata; 1046s # }; 1046s # 1046s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1046s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1046s # 1046s # #else 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1046s # 1046s # #endif 1046s # static void 1046s # org_project_signaling_iface_proxy_finalize (GObject *object) 1046s # { 1046s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1046s # g_datalist_clear (&proxy->priv->qdata); 1046s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1046s # guint prop_id G_GNUC_UNUSED, 1046s # GValue *value G_GNUC_UNUSED, 1046s # GParamSpec *pspec G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1046s # guint prop_id G_GNUC_UNUSED, 1046s # const GValue *value G_GNUC_UNUSED, 1046s # GParamSpec *pspec G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1046s # const gchar *sender_name G_GNUC_UNUSED, 1046s # const gchar *signal_name, 1046s # GVariant *parameters) 1046s # { 1046s # _ExtendedGDBusSignalInfo *info; 1046s # GVariantIter iter; 1046s # GVariant *child; 1046s # GValue *paramv; 1046s # gsize num_params; 1046s # gsize n; 1046s # guint signal_id; 1046s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1046s # if (info == NULL) 1046s # return; 1046s # num_params = g_variant_n_children (parameters); 1046s # paramv = g_new0 (GValue, num_params + 1); 1046s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_set_object (¶mv[0], proxy); 1046s # g_variant_iter_init (&iter, parameters); 1046s # n = 1; 1046s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1046s # { 1046s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1046s # if (arg_info->use_gvariant) 1046s # { 1046s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1046s # g_value_set_variant (¶mv[n], child); 1046s # n++; 1046s # } 1046s # else 1046s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1046s # g_variant_unref (child); 1046s # } 1046s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_signal_emitv (paramv, signal_id, 0, NULL); 1046s # for (n = 0; n < num_params + 1; n++) 1046s # g_value_unset (¶mv[n]); 1046s # g_free (paramv); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1046s # GVariant *changed_properties, 1046s # const gchar *const *invalidated_properties) 1046s # { 1046s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1046s # guint n; 1046s # const gchar *key; 1046s # GVariantIter *iter; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # g_variant_get (changed_properties, "a{sv}", &iter); 1046s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1046s # { 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1046s # g_datalist_remove_data (&proxy->priv->qdata, key); 1046s # if (info != NULL) 1046s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1046s # } 1046s # g_variant_iter_free (iter); 1046s # for (n = 0; invalidated_properties[n] != NULL; n++) 1046s # { 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1046s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1046s # if (info != NULL) 1046s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1046s # } 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1046s # { 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1046s # #else 1046s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1046s # #endif 1046s # 1046s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1046s # { 1046s # GObjectClass *gobject_class; 1046s # GDBusProxyClass *proxy_class; 1046s # 1046s # gobject_class = G_OBJECT_CLASS (klass); 1046s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1046s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1046s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1046s # 1046s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1046s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1046s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1046s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1046s # #endif 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new: 1046s # * @connection: A #GDBusConnection. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1046s # * @user_data: User data to pass to @callback. 1046s # * 1046s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1046s # * 1046s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1046s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_proxy_new ( 1046s # GDBusConnection *connection, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GAsyncReadyCallback callback, 1046s # gpointer user_data) 1046s # { 1046s # 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); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_finish: 1046s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_finish ( 1046s # GAsyncResult *res, 1046s # GError **error) 1046s # { 1046s # GObject *ret; 1046s # GObject *source_object; 1046s # source_object = g_async_result_get_source_object (res); 1046s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1046s # g_object_unref (source_object); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_sync: 1046s # * @connection: A #GDBusConnection. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1046s # * 1046s # * The calling thread is blocked until a reply is received. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_sync ( 1046s # GDBusConnection *connection, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GError **error) 1046s # { 1046s # GInitable *ret; 1046s # 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); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus: 1046s # * @bus_type: A #GBusType. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: A bus name (well-known or unique). 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1046s # * @user_data: User data to pass to @callback. 1046s # * 1046s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1046s # * 1046s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1046s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_proxy_new_for_bus ( 1046s # GBusType bus_type, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GAsyncReadyCallback callback, 1046s # gpointer user_data) 1046s # { 1046s # 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); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1046s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1046s # GAsyncResult *res, 1046s # GError **error) 1046s # { 1046s # GObject *ret; 1046s # GObject *source_object; 1046s # source_object = g_async_result_get_source_object (res); 1046s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1046s # g_object_unref (source_object); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1046s # * @bus_type: A #GBusType. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: A bus name (well-known or unique). 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1046s # * 1046s # * The calling thread is blocked until a reply is received. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1046s # GBusType bus_type, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GError **error) 1046s # { 1046s # GInitable *ret; 1046s # 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); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # 1046s # /* ------------------------------------------------------------------------ */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceSkeleton: 1046s # * 1046s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceSkeletonClass: 1046s # * @parent_class: The parent class. 1046s # * 1046s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1046s # */ 1046s # 1046s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1046s # { 1046s # GValue *properties; 1046s # GList *changed_properties; 1046s # GSource *changed_properties_idle_source; 1046s # GMainContext *context; 1046s # GMutex lock; 1046s # }; 1046s # 1046s # static void 1046s # _org_project_signaling_iface_skeleton_handle_method_call ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name, 1046s # const gchar *method_name, 1046s # GVariant *parameters, 1046s # GDBusMethodInvocation *invocation, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # _ExtendedGDBusMethodInfo *info; 1046s # GVariantIter iter; 1046s # GVariant *child; 1046s # GValue *paramv; 1046s # gsize num_params; 1046s # guint num_extra; 1046s # gsize n; 1046s # guint signal_id; 1046s # GValue return_value = G_VALUE_INIT; 1046s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1046s # g_assert (info != NULL); 1046s # num_params = g_variant_n_children (parameters); 1046s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1046s # n = 0; 1046s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_set_object (¶mv[n++], skeleton); 1046s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1046s # g_value_set_object (¶mv[n++], invocation); 1046s # if (info->pass_fdlist) 1046s # { 1046s # #ifdef G_OS_UNIX 1046s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1046s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1046s # #else 1046s # g_assert_not_reached (); 1046s # #endif 1046s # } 1046s # g_variant_iter_init (&iter, parameters); 1046s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1046s # { 1046s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1046s # if (arg_info->use_gvariant) 1046s # { 1046s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1046s # g_value_set_variant (¶mv[n], child); 1046s # n++; 1046s # } 1046s # else 1046s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1046s # g_variant_unref (child); 1046s # } 1046s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1046s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1046s # if (!g_value_get_boolean (&return_value)) 1046s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1046s # g_value_unset (&return_value); 1046s # for (n = 0; n < num_params + num_extra; n++) 1046s # g_value_unset (¶mv[n]); 1046s # g_free (paramv); 1046s # } 1046s # 1046s # static GVariant * 1046s # _org_project_signaling_iface_skeleton_handle_get_property ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name G_GNUC_UNUSED, 1046s # const gchar *property_name, 1046s # GError **error, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # GValue value = G_VALUE_INIT; 1046s # GParamSpec *pspec; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # GVariant *ret; 1046s # ret = NULL; 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1046s # g_assert (info != NULL); 1046s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1046s # if (pspec == NULL) 1046s # { 1046s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1046s # } 1046s # else 1046s # { 1046s # g_value_init (&value, pspec->value_type); 1046s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1046s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1046s # g_value_unset (&value); 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # static gboolean 1046s # _org_project_signaling_iface_skeleton_handle_set_property ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name G_GNUC_UNUSED, 1046s # const gchar *property_name, 1046s # GVariant *variant, 1046s # GError **error, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # GValue value = G_VALUE_INIT; 1046s # GParamSpec *pspec; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # gboolean ret; 1046s # ret = FALSE; 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1046s # g_assert (info != NULL); 1046s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1046s # if (pspec == NULL) 1046s # { 1046s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1046s # } 1046s # else 1046s # { 1046s # if (info->use_gvariant) 1046s # g_value_set_variant (&value, variant); 1046s # else 1046s # g_dbus_gvariant_to_gvalue (variant, &value); 1046s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1046s # g_value_unset (&value); 1046s # ret = TRUE; 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1046s # { 1046s # _org_project_signaling_iface_skeleton_handle_method_call, 1046s # _org_project_signaling_iface_skeleton_handle_get_property, 1046s # _org_project_signaling_iface_skeleton_handle_set_property, 1046s # {NULL} 1046s # }; 1046s # 1046s # static GDBusInterfaceInfo * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1046s # { 1046s # return org_project_signaling_iface_interface_info (); 1046s # } 1046s # 1046s # static GDBusInterfaceVTable * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1046s # { 1046s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1046s # } 1046s # 1046s # static GVariant * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1046s # 1046s # GVariantBuilder builder; 1046s # guint n; 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1046s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1046s # #else 1046s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1046s # #endif 1046s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1046s # goto out; 1046s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1046s # { 1046s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1046s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1046s # { 1046s # GVariant *value; 1046s # 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); 1046s # if (value != NULL) 1046s # { 1046s # g_variant_take_ref (value); 1046s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1046s # g_variant_unref (value); 1046s # } 1046s # } 1046s # } 1046s # out: 1046s # return g_variant_builder_end (&builder); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # _org_project_signaling_iface_on_signal_simple_signal ( 1046s # OrgProjectSignalingIface *object) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # 1046s # GList *connections, *l; 1046s # GVariant *signal_variant; 1046s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1046s # 1046s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1046s # for (l = connections; l != NULL; l = l->next) 1046s # { 1046s # GDBusConnection *connection = l->data; 1046s # g_dbus_connection_emit_signal (connection, 1046s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1046s # signal_variant, NULL); 1046s # } 1046s # g_variant_unref (signal_variant); 1046s # g_list_free_full (connections, g_object_unref); 1046s # } 1046s # 1046s # static void 1046s # _org_project_signaling_iface_on_signal_single_arg_signal_s ( 1046s # OrgProjectSignalingIface *object, 1046s # const gchar *arg_arg_s) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # 1046s # GList *connections, *l; 1046s # GVariant *signal_variant; 1046s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1046s # 1046s # signal_variant = g_variant_ref_sink (g_variant_new ("(s)", 1046s # arg_arg_s)); 1046s # for (l = connections; l != NULL; l = l->next) 1046s # { 1046s # GDBusConnection *connection = l->data; 1046s # g_dbus_connection_emit_signal (connection, 1046s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalS", 1046s # signal_variant, NULL); 1046s # } 1046s # g_variant_unref (signal_variant); 1046s # g_list_free_full (connections, g_object_unref); 1046s # } 1046s # 1046s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1046s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1046s # 1046s # #else 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1046s # 1046s # #endif 1046s # static void 1046s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1046s # if (skeleton->priv->changed_properties_idle_source != NULL) 1046s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1046s # g_main_context_unref (skeleton->priv->context); 1046s # g_mutex_clear (&skeleton->priv->lock); 1046s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1046s # { 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1046s # #else 1046s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1046s # #endif 1046s # 1046s # g_mutex_init (&skeleton->priv->lock); 1046s # skeleton->priv->context = g_main_context_ref_thread_default (); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1046s # { 1046s # GObjectClass *gobject_class; 1046s # GDBusInterfaceSkeletonClass *skeleton_class; 1046s # 1046s # gobject_class = G_OBJECT_CLASS (klass); 1046s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1046s # 1046s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1046s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1046s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1046s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1046s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1046s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1046s # #endif 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1046s # { 1046s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1046s # iface->single_arg_signal_s = _org_project_signaling_iface_on_signal_single_arg_signal_s; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_skeleton_new: 1046s # * 1046s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_skeleton_new (void) 1046s # { 1046s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1046s # } 1046s # Error: 1046s # 1046s # /tmp/tmppt74if37/tmpituugzd6.xml: 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppt74if37/tmpituugzd6.xml', '--output', '-', '--body'] 1046s # Return code: 0 1046s # Output: 1046s # /* 1046s # * This file is generated by gdbus-codegen, do not modify it. 1046s # * 1046s # * The license of this code is the same as for the D-Bus interface description 1046s # * it was derived from. Note that it links to GLib, so must comply with the 1046s # * LGPL linking clauses. 1046s # */ 1046s # 1046s # #ifdef HAVE_CONFIG_H 1046s # # include "config.h" 1046s # #endif 1046s # 1046s # #include 1046s # #ifdef G_OS_UNIX 1046s # # include 1046s # #endif 1046s # 1046s # #ifdef G_ENABLE_DEBUG 1046s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1046s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1046s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1046s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1046s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1046s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1046s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1046s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1046s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1046s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1046s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1046s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1046s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1046s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1046s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1046s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1046s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1046s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1046s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1046s # #else /* !G_ENABLE_DEBUG */ 1046s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1046s # * Do not access GValues directly in your code. Instead, use the 1046s # * g_value_get_*() functions 1046s # */ 1046s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1046s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1046s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1046s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1046s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1046s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1046s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1046s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1046s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1046s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1046s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1046s # #endif /* !G_ENABLE_DEBUG */ 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusArgInfo parent_struct; 1046s # gboolean use_gvariant; 1046s # } _ExtendedGDBusArgInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusMethodInfo parent_struct; 1046s # const gchar *signal_name; 1046s # gboolean pass_fdlist; 1046s # } _ExtendedGDBusMethodInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusSignalInfo parent_struct; 1046s # const gchar *signal_name; 1046s # } _ExtendedGDBusSignalInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusPropertyInfo parent_struct; 1046s # const gchar *hyphen_name; 1046s # guint use_gvariant : 1; 1046s # guint emits_changed_signal : 1; 1046s # } _ExtendedGDBusPropertyInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusInterfaceInfo parent_struct; 1046s # const gchar *hyphen_name; 1046s # } _ExtendedGDBusInterfaceInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # const _ExtendedGDBusPropertyInfo *info; 1046s # guint prop_id; 1046s # GValue orig_value; /* the value before the change */ 1046s # } ChangedProperty; 1046s # 1046s # static void 1046s # _changed_property_free (ChangedProperty *data) 1046s # { 1046s # g_value_unset (&data->orig_value); 1046s # g_free (data); 1046s # } 1046s # 1046s # static gboolean 1046s # _g_strv_equal0 (gchar **a, gchar **b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # guint n; 1046s # if (a == NULL && b == NULL) 1046s # { 1046s # ret = TRUE; 1046s # goto out; 1046s # } 1046s # if (a == NULL || b == NULL) 1046s # goto out; 1046s # if (g_strv_length (a) != g_strv_length (b)) 1046s # goto out; 1046s # for (n = 0; a[n] != NULL; n++) 1046s # if (g_strcmp0 (a[n], b[n]) != 0) 1046s # goto out; 1046s # ret = TRUE; 1046s # out: 1046s # return ret; 1046s # } 1046s # 1046s # static gboolean 1046s # _g_variant_equal0 (GVariant *a, GVariant *b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # if (a == NULL && b == NULL) 1046s # { 1046s # ret = TRUE; 1046s # goto out; 1046s # } 1046s # if (a == NULL || b == NULL) 1046s # goto out; 1046s # ret = g_variant_equal (a, b); 1046s # out: 1046s # return ret; 1046s # } 1046s # 1046s # G_GNUC_UNUSED static gboolean 1046s # _g_value_equal (const GValue *a, const GValue *b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1046s # switch (G_VALUE_TYPE (a)) 1046s # { 1046s # case G_TYPE_BOOLEAN: 1046s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1046s # break; 1046s # case G_TYPE_UCHAR: 1046s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1046s # break; 1046s # case G_TYPE_INT: 1046s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1046s # break; 1046s # case G_TYPE_UINT: 1046s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1046s # break; 1046s # case G_TYPE_INT64: 1046s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1046s # break; 1046s # case G_TYPE_UINT64: 1046s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1046s # break; 1046s # case G_TYPE_DOUBLE: 1046s # { 1046s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1046s # gdouble da = g_value_get_double (a); 1046s # gdouble db = g_value_get_double (b); 1046s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1046s # } 1046s # break; 1046s # case G_TYPE_STRING: 1046s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1046s # break; 1046s # case G_TYPE_VARIANT: 1046s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1046s # break; 1046s # default: 1046s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1046s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1046s # else 1046s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1046s # break; 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # /* ------------------------------------------------------------------------ 1046s # * Code for interface org.project.SignalingIface 1046s # * ------------------------------------------------------------------------ 1046s # */ 1046s # 1046s # /** 1046s # * SECTION:OrgProjectSignalingIface 1046s # * @title: OrgProjectSignalingIface 1046s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1046s # * 1046s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1046s # */ 1046s # 1046s # enum 1046s # { 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1046s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O, 1046s # }; 1046s # 1046s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1046s # 1046s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1046s # 1046s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "SimpleSignal", 1046s # NULL, 1046s # NULL 1046s # }, 1046s # "simple-signal" 1046s # }; 1046s # 1046s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_arg_o = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "arg_o", 1046s # (gchar *) "o", 1046s # NULL 1046s # }, 1046s # FALSE 1046s # }; 1046s # 1046s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers[] = 1046s # { 1046s # &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_arg_o.parent_struct, 1046s # NULL 1046s # }; 1046s # 1046s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_o = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "SingleArgSignalO", 1046s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers, 1046s # NULL 1046s # }, 1046s # "single-arg-signal-o" 1046s # }; 1046s # 1046s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1046s # { 1046s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1046s # &_org_project_signaling_iface_signal_info_single_arg_signal_o.parent_struct, 1046s # NULL 1046s # }; 1046s # 1046s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "org.project.SignalingIface", 1046s # NULL, 1046s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1046s # NULL, 1046s # NULL 1046s # }, 1046s # "org-project-signaling-iface", 1046s # }; 1046s # 1046s # 1046s # /** 1046s # * org_project_signaling_iface_interface_info: 1046s # * 1046s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1046s # * 1046s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1046s # */ 1046s # GDBusInterfaceInfo * 1046s # org_project_signaling_iface_interface_info (void) 1046s # { 1046s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_override_properties: 1046s # * @klass: The class structure for a #GObject derived class. 1046s # * @property_id_begin: The property id to assign to the first overridden property. 1046s # * 1046s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1046s # * The properties are overridden in the order they are defined. 1046s # * 1046s # * Returns: The last property id. 1046s # */ 1046s # guint 1046s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1046s # { 1046s # return property_id_begin - 1; 1046s # } 1046s # 1046s # 1046s # inline static void 1046s # org_project_signaling_iface_signal_marshal_simple_signal ( 1046s # GClosure *closure, 1046s # GValue *return_value, 1046s # unsigned int n_param_values, 1046s # const GValue *param_values, 1046s # void *invocation_hint, 1046s # void *marshal_data) 1046s # { 1046s # g_cclosure_marshal_VOID__VOID (closure, 1046s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1046s # } 1046s # 1046s # inline static void 1046s # org_project_signaling_iface_signal_marshal_single_arg_signal_o ( 1046s # GClosure *closure, 1046s # GValue *return_value, 1046s # unsigned int n_param_values, 1046s # const GValue *param_values, 1046s # void *invocation_hint, 1046s # void *marshal_data) 1046s # { 1046s # g_cclosure_marshal_VOID__STRING (closure, 1046s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1046s # } 1046s # 1046s # 1046s # /** 1046s # * OrgProjectSignalingIface: 1046s # * 1046s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceIface: 1046s # * @parent_iface: The parent interface. 1046s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1046s # * @single_arg_signal_o: Handler for the #OrgProjectSignalingIface::single-arg-signal-o signal. 1046s # * 1046s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1046s # */ 1046s # 1046s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1046s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1046s # 1046s # static void 1046s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1046s # { 1046s # /* GObject signals for received D-Bus signals: */ 1046s # /** 1046s # * OrgProjectSignalingIface::simple-signal: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * 1046s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1046s # * 1046s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1046s # */ 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1046s # g_signal_new ("simple-signal", 1046s # G_TYPE_FROM_INTERFACE (iface), 1046s # G_SIGNAL_RUN_LAST, 1046s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1046s # NULL, 1046s # NULL, 1046s # org_project_signaling_iface_signal_marshal_simple_signal, 1046s # G_TYPE_NONE, 1046s # 0); 1046s # 1046s # /** 1046s # * OrgProjectSignalingIface::single-arg-signal-o: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * @arg_arg_o: Argument. 1046s # * 1046s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalO" is received. 1046s # * 1046s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1046s # */ 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O] = 1046s # g_signal_new ("single-arg-signal-o", 1046s # G_TYPE_FROM_INTERFACE (iface), 1046s # G_SIGNAL_RUN_LAST, 1046s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_o), 1046s # NULL, 1046s # NULL, 1046s # org_project_signaling_iface_signal_marshal_single_arg_signal_o, 1046s # G_TYPE_NONE, 1046s # 1, G_TYPE_STRING); 1046s # 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_emit_simple_signal: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * 1046s # * Emits the "SimpleSignal" D-Bus signal. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_emit_simple_signal ( 1046s # OrgProjectSignalingIface *object) 1046s # { 1046s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_emit_single_arg_signal_o: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * @arg_arg_o: Argument to pass with the signal. 1046s # * 1046s # * Emits the "SingleArgSignalO" D-Bus signal. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_emit_single_arg_signal_o ( 1046s # OrgProjectSignalingIface *object, 1046s # const gchar *arg_arg_o) 1046s # { 1046s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O], 0, arg_arg_o); 1046s # } 1046s # 1046s # /* ------------------------------------------------------------------------ */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceProxy: 1046s # * 1046s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceProxyClass: 1046s # * @parent_class: The parent class. 1046s # * 1046s # * Class structure for #OrgProjectSignalingIfaceProxy. 1046s # */ 1046s # 1046s # struct _OrgProjectSignalingIfaceProxyPrivate 1046s # { 1046s # GData *qdata; 1046s # }; 1046s # 1046s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1046s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1046s # 1046s # #else 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1046s # 1046s # #endif 1046s # static void 1046s # org_project_signaling_iface_proxy_finalize (GObject *object) 1046s # { 1046s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1046s # g_datalist_clear (&proxy->priv->qdata); 1046s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1046s # guint prop_id G_GNUC_UNUSED, 1046s # GValue *value G_GNUC_UNUSED, 1046s # GParamSpec *pspec G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1046s # guint prop_id G_GNUC_UNUSED, 1046s # const GValue *value G_GNUC_UNUSED, 1046s # GParamSpec *pspec G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1046s # const gchar *sender_name G_GNUC_UNUSED, 1046s # const gchar *signal_name, 1046s # GVariant *parameters) 1046s # { 1046s # _ExtendedGDBusSignalInfo *info; 1046s # GVariantIter iter; 1046s # GVariant *child; 1046s # GValue *paramv; 1046s # gsize num_params; 1046s # gsize n; 1046s # guint signal_id; 1046s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1046s # if (info == NULL) 1046s # return; 1046s # num_params = g_variant_n_children (parameters); 1046s # paramv = g_new0 (GValue, num_params + 1); 1046s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_set_object (¶mv[0], proxy); 1046s # g_variant_iter_init (&iter, parameters); 1046s # n = 1; 1046s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1046s # { 1046s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1046s # if (arg_info->use_gvariant) 1046s # { 1046s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1046s # g_value_set_variant (¶mv[n], child); 1046s # n++; 1046s # } 1046s # else 1046s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1046s # g_variant_unref (child); 1046s # } 1046s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_signal_emitv (paramv, signal_id, 0, NULL); 1046s # for (n = 0; n < num_params + 1; n++) 1046s # g_value_unset (¶mv[n]); 1046s # g_free (paramv); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1046s # GVariant *changed_properties, 1046s # const gchar *const *invalidated_properties) 1046s # { 1046s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1046s # guint n; 1046s # const gchar *key; 1046s # GVariantIter *iter; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # g_variant_get (changed_properties, "a{sv}", &iter); 1046s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1046s # { 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1046s # g_datalist_remove_data (&proxy->priv->qdata, key); 1046s # if (info != NULL) 1046s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1046s # } 1046s # g_variant_iter_free (iter); 1046s # for (n = 0; invalidated_properties[n] != NULL; n++) 1046s # { 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1046s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1046s # if (info != NULL) 1046s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1046s # } 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1046s # { 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1046s # #else 1046s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1046s # #endif 1046s # 1046s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1046s # { 1046s # GObjectClass *gobject_class; 1046s # GDBusProxyClass *proxy_class; 1046s # 1046s # gobject_class = G_OBJECT_CLASS (klass); 1046s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1046s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1046s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1046s # 1046s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1046s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1046s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1046s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1046s # #endif 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new: 1046s # * @connection: A #GDBusConnection. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1046s # * @user_data: User data to pass to @callback. 1046s # * 1046s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1046s # * 1046s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1046s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_proxy_new ( 1046s # GDBusConnection *connection, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GAsyncReadyCallback callback, 1046s # gpointer user_data) 1046s # { 1046s # 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); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_finish: 1046s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_finish ( 1046s # GAsyncResult *res, 1046s # GError **error) 1046s # { 1046s # GObject *ret; 1046s # GObject *source_object; 1046s # source_object = g_async_result_get_source_object (res); 1046s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1046s # g_object_unref (source_object); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_sync: 1046s # * @connection: A #GDBusConnection. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1046s # * 1046s # * The calling thread is blocked until a reply is received. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_sync ( 1046s # GDBusConnection *connection, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GError **error) 1046s # { 1046s # GInitable *ret; 1046s # 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); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus: 1046s # * @bus_type: A #GBusType. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: A bus name (well-known or unique). 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1046s # * @user_data: User data to pass to @callback. 1046s # * 1046s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1046s # * 1046s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1046s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_proxy_new_for_bus ( 1046s # GBusType bus_type, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GAsyncReadyCallback callback, 1046s # gpointer user_data) 1046s # { 1046s # 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); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1046s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1046s # GAsyncResult *res, 1046s # GError **error) 1046s # { 1046s # GObject *ret; 1046s # GObject *source_object; 1046s # source_object = g_async_result_get_source_object (res); 1046s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1046s # g_object_unref (source_object); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1046s # * @bus_type: A #GBusType. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: A bus name (well-known or unique). 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1046s # * 1046s # * The calling thread is blocked until a reply is received. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1046s # GBusType bus_type, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GError **error) 1046s # { 1046s # GInitable *ret; 1046s # 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); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # 1046s # /* ------------------------------------------------------------------------ */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceSkeleton: 1046s # * 1046s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceSkeletonClass: 1046s # * @parent_class: The parent class. 1046s # * 1046s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1046s # */ 1046s # 1046s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1046s # { 1046s # GValue *properties; 1046s # GList *changed_properties; 1046s # GSource *changed_properties_idle_source; 1046s # GMainContext *context; 1046s # GMutex lock; 1046s # }; 1046s # 1046s # static void 1046s # _org_project_signaling_iface_skeleton_handle_method_call ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name, 1046s # const gchar *method_name, 1046s # GVariant *parameters, 1046s # GDBusMethodInvocation *invocation, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # _ExtendedGDBusMethodInfo *info; 1046s # GVariantIter iter; 1046s # GVariant *child; 1046s # GValue *paramv; 1046s # gsize num_params; 1046s # guint num_extra; 1046s # gsize n; 1046s # guint signal_id; 1046s # GValue return_value = G_VALUE_INIT; 1046s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1046s # g_assert (info != NULL); 1046s # num_params = g_variant_n_children (parameters); 1046s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1046s # n = 0; 1046s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_set_object (¶mv[n++], skeleton); 1046s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1046s # g_value_set_object (¶mv[n++], invocation); 1046s # if (info->pass_fdlist) 1046s # { 1046s # #ifdef G_OS_UNIX 1046s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1046s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1046s # #else 1046s # g_assert_not_reached (); 1046s # #endif 1046s # } 1046s # g_variant_iter_init (&iter, parameters); 1046s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1046s # { 1046s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1046s # if (arg_info->use_gvariant) 1046s # { 1046s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1046s # g_value_set_variant (¶mv[n], child); 1046s # n++; 1046s # } 1046s # else 1046s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1046s # g_variant_unref (child); 1046s # } 1046s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1046s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1046s # if (!g_value_get_boolean (&return_value)) 1046s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1046s # g_value_unset (&return_value); 1046s # for (n = 0; n < num_params + num_extra; n++) 1046s # g_value_unset (¶mv[n]); 1046s # g_free (paramv); 1046s # } 1046s # 1046s # static GVariant * 1046s # _org_project_signaling_iface_skeleton_handle_get_property ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name G_GNUC_UNUSED, 1046s # const gchar *property_name, 1046s # GError **error, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # GValue value = G_VALUE_INIT; 1046s # GParamSpec *pspec; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # GVariant *ret; 1046s # ret = NULL; 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1046s # g_assert (info != NULL); 1046s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1046s # if (pspec == NULL) 1046s # { 1046s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1046s # } 1046s # else 1046s # { 1046s # g_value_init (&value, pspec->value_type); 1046s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1046s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1046s # g_value_unset (&value); 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # static gboolean 1046s # _org_project_signaling_iface_skeleton_handle_set_property ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name G_GNUC_UNUSED, 1046s # const gchar *property_name, 1046s # GVariant *variant, 1046s # GError **error, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # GValue value = G_VALUE_INIT; 1046s # GParamSpec *pspec; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # gboolean ret; 1046s # ret = FALSE; 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1046s # g_assert (info != NULL); 1046s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1046s # if (pspec == NULL) 1046s # { 1046s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1046s # } 1046s # else 1046s # { 1046s # if (info->use_gvariant) 1046s # g_value_set_variant (&value, variant); 1046s # else 1046s # g_dbus_gvariant_to_gvalue (variant, &value); 1046s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1046s # g_value_unset (&value); 1046s # ret = TRUE; 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1046s # { 1046s # _org_project_signaling_iface_skeleton_handle_method_call, 1046s # _org_project_signaling_iface_skeleton_handle_get_property, 1046s # _org_project_signaling_iface_skeleton_handle_set_property, 1046s # {NULL} 1046s # }; 1046s # 1046s # static GDBusInterfaceInfo * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1046s # { 1046s # return org_project_signaling_iface_interface_info (); 1046s # } 1046s # 1046s # static GDBusInterfaceVTable * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1046s # { 1046s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1046s # } 1046s # 1046s # static GVariant * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1046s # 1046s # GVariantBuilder builder; 1046s # guint n; 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1046s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1046s # #else 1046s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1046s # #endif 1046s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1046s # goto out; 1046s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1046s # { 1046s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1046s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1046s # { 1046s # GVariant *value; 1046s # 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); 1046s # if (value != NULL) 1046s # { 1046s # g_variant_take_ref (value); 1046s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1046s # g_variant_unref (value); 1046s # } 1046s # } 1046s # } 1046s # out: 1046s # return g_variant_builder_end (&builder); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # _org_project_signaling_iface_on_signal_simple_signal ( 1046s # OrgProjectSignalingIface *object) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # 1046s # GList *connections, *l; 1046s # GVariant *signal_variant; 1046s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1046s # 1046s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1046s # for (l = connections; l != NULL; l = l->next) 1046s # { 1046s # GDBusConnection *connection = l->data; 1046s # g_dbus_connection_emit_signal (connection, 1046s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1046s # signal_variant, NULL); 1046s # } 1046s # g_variant_unref (signal_variant); 1046s # g_list_free_full (connections, g_object_unref); 1046s # } 1046s # 1046s # static void 1046s # _org_project_signaling_iface_on_signal_single_arg_signal_o ( 1046s # OrgProjectSignalingIface *object, 1046s # const gchar *arg_arg_o) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # 1046s # GList *connections, *l; 1046s # GVariant *signal_variant; 1046s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1046s # 1046s # signal_variant = g_variant_ref_sink (g_variant_new ("(o)", 1046s # arg_arg_o)); 1046s # for (l = connections; l != NULL; l = l->next) 1046s # { 1046s # GDBusConnection *connection = l->data; 1046s # g_dbus_connection_emit_signal (connection, 1046s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalO", 1046s # signal_variant, NULL); 1046s # } 1046s # g_variant_unref (signal_variant); 1046s # g_list_free_full (connections, g_object_unref); 1046s # } 1046s # 1046s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1046s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1046s # 1046s # #else 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1046s # 1046s # #endif 1046s # static void 1046s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1046s # if (skeleton->priv->changed_properties_idle_source != NULL) 1046s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1046s # g_main_context_unref (skeleton->priv->context); 1046s # g_mutex_clear (&skeleton->priv->lock); 1046s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1046s # { 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1046s # #else 1046s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1046s # #endif 1046s # 1046s # g_mutex_init (&skeleton->priv->lock); 1046s # skeleton->priv->context = g_main_context_ref_thread_default (); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1046s # { 1046s # GObjectClass *gobject_class; 1046s # GDBusInterfaceSkeletonClass *skeleton_class; 1046s # 1046s # gobject_class = G_OBJECT_CLASS (klass); 1046s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1046s # 1046s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1046s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1046s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1046s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1046s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1046s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1046s # #endif 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1046s # { 1046s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1046s # iface->single_arg_signal_o = _org_project_signaling_iface_on_signal_single_arg_signal_o; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_skeleton_new: 1046s # * 1046s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_skeleton_new (void) 1046s # { 1046s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1046s # } 1046s # Error: 1046s # 1046s # /tmp/tmppt74if37/tmpz5e8k90_.xml: 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppt74if37/tmpz5e8k90_.xml', '--output', '-', '--body'] 1046s # Return code: 0 1046s # Output: 1046s # /* 1046s # * This file is generated by gdbus-codegen, do not modify it. 1046s # * 1046s # * The license of this code is the same as for the D-Bus interface description 1046s # * it was derived from. Note that it links to GLib, so must comply with the 1046s # * LGPL linking clauses. 1046s # */ 1046s # 1046s # #ifdef HAVE_CONFIG_H 1046s # # include "config.h" 1046s # #endif 1046s # 1046s # #include 1046s # #ifdef G_OS_UNIX 1046s # # include 1046s # #endif 1046s # 1046s # #ifdef G_ENABLE_DEBUG 1046s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1046s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1046s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1046s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1046s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1046s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1046s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1046s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1046s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1046s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1046s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1046s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1046s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1046s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1046s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1046s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1046s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1046s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1046s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1046s # #else /* !G_ENABLE_DEBUG */ 1046s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1046s # * Do not access GValues directly in your code. Instead, use the 1046s # * g_value_get_*() functions 1046s # */ 1046s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1046s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1046s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1046s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1046s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1046s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1046s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1046s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1046s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1046s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1046s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1046s # #endif /* !G_ENABLE_DEBUG */ 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusArgInfo parent_struct; 1046s # gboolean use_gvariant; 1046s # } _ExtendedGDBusArgInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusMethodInfo parent_struct; 1046s # const gchar *signal_name; 1046s # gboolean pass_fdlist; 1046s # } _ExtendedGDBusMethodInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusSignalInfo parent_struct; 1046s # const gchar *signal_name; 1046s # } _ExtendedGDBusSignalInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusPropertyInfo parent_struct; 1046s # const gchar *hyphen_name; 1046s # guint use_gvariant : 1; 1046s # guint emits_changed_signal : 1; 1046s # } _ExtendedGDBusPropertyInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusInterfaceInfo parent_struct; 1046s # const gchar *hyphen_name; 1046s # } _ExtendedGDBusInterfaceInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # const _ExtendedGDBusPropertyInfo *info; 1046s # guint prop_id; 1046s # GValue orig_value; /* the value before the change */ 1046s # } ChangedProperty; 1046s # 1046s # static void 1046s # _changed_property_free (ChangedProperty *data) 1046s # { 1046s # g_value_unset (&data->orig_value); 1046s # g_free (data); 1046s # } 1046s # 1046s # static gboolean 1046s # _g_strv_equal0 (gchar **a, gchar **b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # guint n; 1046s # if (a == NULL && b == NULL) 1046s # { 1046s # ret = TRUE; 1046s # goto out; 1046s # } 1046s # if (a == NULL || b == NULL) 1046s # goto out; 1046s # if (g_strv_length (a) != g_strv_length (b)) 1046s # goto out; 1046s # for (n = 0; a[n] != NULL; n++) 1046s # if (g_strcmp0 (a[n], b[n]) != 0) 1046s # goto out; 1046s # ret = TRUE; 1046s # out: 1046s # return ret; 1046s # } 1046s # 1046s # static gboolean 1046s # _g_variant_equal0 (GVariant *a, GVariant *b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # if (a == NULL && b == NULL) 1046s # { 1046s # ret = TRUE; 1046s # goto out; 1046s # } 1046s # if (a == NULL || b == NULL) 1046s # goto out; 1046s # ret = g_variant_equal (a, b); 1046s # out: 1046s # return ret; 1046s # } 1046s # 1046s # G_GNUC_UNUSED static gboolean 1046s # _g_value_equal (const GValue *a, const GValue *b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1046s # switch (G_VALUE_TYPE (a)) 1046s # { 1046s # case G_TYPE_BOOLEAN: 1046s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1046s # break; 1046s # case G_TYPE_UCHAR: 1046s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1046s # break; 1046s # case G_TYPE_INT: 1046s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1046s # break; 1046s # case G_TYPE_UINT: 1046s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1046s # break; 1046s # case G_TYPE_INT64: 1046s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1046s # break; 1046s # case G_TYPE_UINT64: 1046s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1046s # break; 1046s # case G_TYPE_DOUBLE: 1046s # { 1046s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1046s # gdouble da = g_value_get_double (a); 1046s # gdouble db = g_value_get_double (b); 1046s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1046s # } 1046s # break; 1046s # case G_TYPE_STRING: 1046s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1046s # break; 1046s # case G_TYPE_VARIANT: 1046s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1046s # break; 1046s # default: 1046s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1046s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1046s # else 1046s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1046s # break; 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # /* ------------------------------------------------------------------------ 1046s # * Code for interface org.project.SignalingIface 1046s # * ------------------------------------------------------------------------ 1046s # */ 1046s # 1046s # /** 1046s # * SECTION:OrgProjectSignalingIface 1046s # * @title: OrgProjectSignalingIface 1046s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1046s # * 1046s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1046s # */ 1046s # 1046s # enum 1046s # { 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1046s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G, 1046s # }; 1046s # 1046s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1046s # 1046s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1046s # 1046s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "SimpleSignal", 1046s # NULL, 1046s # NULL 1046s # }, 1046s # "simple-signal" 1046s # }; 1046s # 1046s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_arg_g = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "arg_g", 1046s # (gchar *) "g", 1046s # NULL 1046s # }, 1046s # FALSE 1046s # }; 1046s # 1046s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers[] = 1046s # { 1046s # &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_arg_g.parent_struct, 1046s # NULL 1046s # }; 1046s # 1046s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_g = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "SingleArgSignalG", 1046s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers, 1046s # NULL 1046s # }, 1046s # "single-arg-signal-g" 1046s # }; 1046s # 1046s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1046s # { 1046s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1046s # &_org_project_signaling_iface_signal_info_single_arg_signal_g.parent_struct, 1046s # NULL 1046s # }; 1046s # 1046s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "org.project.SignalingIface", 1046s # NULL, 1046s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1046s # NULL, 1046s # NULL 1046s # }, 1046s # "org-project-signaling-iface", 1046s # }; 1046s # 1046s # 1046s # /** 1046s # * org_project_signaling_iface_interface_info: 1046s # * 1046s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1046s # * 1046s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1046s # */ 1046s # GDBusInterfaceInfo * 1046s # org_project_signaling_iface_interface_info (void) 1046s # { 1046s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_override_properties: 1046s # * @klass: The class structure for a #GObject derived class. 1046s # * @property_id_begin: The property id to assign to the first overridden property. 1046s # * 1046s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1046s # * The properties are overridden in the order they are defined. 1046s # * 1046s # * Returns: The last property id. 1046s # */ 1046s # guint 1046s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1046s # { 1046s # return property_id_begin - 1; 1046s # } 1046s # 1046s # 1046s # inline static void 1046s # org_project_signaling_iface_signal_marshal_simple_signal ( 1046s # GClosure *closure, 1046s # GValue *return_value, 1046s # unsigned int n_param_values, 1046s # const GValue *param_values, 1046s # void *invocation_hint, 1046s # void *marshal_data) 1046s # { 1046s # g_cclosure_marshal_VOID__VOID (closure, 1046s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1046s # } 1046s # 1046s # inline static void 1046s # org_project_signaling_iface_signal_marshal_single_arg_signal_g ( 1046s # GClosure *closure, 1046s # GValue *return_value, 1046s # unsigned int n_param_values, 1046s # const GValue *param_values, 1046s # void *invocation_hint, 1046s # void *marshal_data) 1046s # { 1046s # g_cclosure_marshal_VOID__STRING (closure, 1046s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1046s # } 1046s # 1046s # 1046s # /** 1046s # * OrgProjectSignalingIface: 1046s # * 1046s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceIface: 1046s # * @parent_iface: The parent interface. 1046s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1046s # * @single_arg_signal_g: Handler for the #OrgProjectSignalingIface::single-arg-signal-g signal. 1046s # * 1046s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1046s # */ 1046s # 1046s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1046s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1046s # 1046s # static void 1046s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1046s # { 1046s # /* GObject signals for received D-Bus signals: */ 1046s # /** 1046s # * OrgProjectSignalingIface::simple-signal: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * 1046s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1046s # * 1046s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1046s # */ 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1046s # g_signal_new ("simple-signal", 1046s # G_TYPE_FROM_INTERFACE (iface), 1046s # G_SIGNAL_RUN_LAST, 1046s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1046s # NULL, 1046s # NULL, 1046s # org_project_signaling_iface_signal_marshal_simple_signal, 1046s # G_TYPE_NONE, 1046s # 0); 1046s # 1046s # /** 1046s # * OrgProjectSignalingIface::single-arg-signal-g: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * @arg_arg_g: Argument. 1046s # * 1046s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalG" is received. 1046s # * 1046s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1046s # */ 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G] = 1046s # g_signal_new ("single-arg-signal-g", 1046s # G_TYPE_FROM_INTERFACE (iface), 1046s # G_SIGNAL_RUN_LAST, 1046s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_g), 1046s # NULL, 1046s # NULL, 1046s # org_project_signaling_iface_signal_marshal_single_arg_signal_g, 1046s # G_TYPE_NONE, 1046s # 1, G_TYPE_STRING); 1046s # 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_emit_simple_signal: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * 1046s # * Emits the "SimpleSignal" D-Bus signal. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_emit_simple_signal ( 1046s # OrgProjectSignalingIface *object) 1046s # { 1046s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_emit_single_arg_signal_g: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * @arg_arg_g: Argument to pass with the signal. 1046s # * 1046s # * Emits the "SingleArgSignalG" D-Bus signal. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_emit_single_arg_signal_g ( 1046s # OrgProjectSignalingIface *object, 1046s # const gchar *arg_arg_g) 1046s # { 1046s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G], 0, arg_arg_g); 1046s # } 1046s # 1046s # /* ------------------------------------------------------------------------ */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceProxy: 1046s # * 1046s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceProxyClass: 1046s # * @parent_class: The parent class. 1046s # * 1046s # * Class structure for #OrgProjectSignalingIfaceProxy. 1046s # */ 1046s # 1046s # struct _OrgProjectSignalingIfaceProxyPrivate 1046s # { 1046s # GData *qdata; 1046s # }; 1046s # 1046s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1046s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1046s # 1046s # #else 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1046s # 1046s # #endif 1046s # static void 1046s # org_project_signaling_iface_proxy_finalize (GObject *object) 1046s # { 1046s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1046s # g_datalist_clear (&proxy->priv->qdata); 1046s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1046s # guint prop_id G_GNUC_UNUSED, 1046s # GValue *value G_GNUC_UNUSED, 1046s # GParamSpec *pspec G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1046s # guint prop_id G_GNUC_UNUSED, 1046s # const GValue *value G_GNUC_UNUSED, 1046s # GParamSpec *pspec G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1046s # const gchar *sender_name G_GNUC_UNUSED, 1046s # const gchar *signal_name, 1046s # GVariant *parameters) 1046s # { 1046s # _ExtendedGDBusSignalInfo *info; 1046s # GVariantIter iter; 1046s # GVariant *child; 1046s # GValue *paramv; 1046s # gsize num_params; 1046s # gsize n; 1046s # guint signal_id; 1046s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1046s # if (info == NULL) 1046s # return; 1046s # num_params = g_variant_n_children (parameters); 1046s # paramv = g_new0 (GValue, num_params + 1); 1046s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_set_object (¶mv[0], proxy); 1046s # g_variant_iter_init (&iter, parameters); 1046s # n = 1; 1046s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1046s # { 1046s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1046s # if (arg_info->use_gvariant) 1046s # { 1046s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1046s # g_value_set_variant (¶mv[n], child); 1046s # n++; 1046s # } 1046s # else 1046s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1046s # g_variant_unref (child); 1046s # } 1046s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_signal_emitv (paramv, signal_id, 0, NULL); 1046s # for (n = 0; n < num_params + 1; n++) 1046s # g_value_unset (¶mv[n]); 1046s # g_free (paramv); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1046s # GVariant *changed_properties, 1046s # const gchar *const *invalidated_properties) 1046s # { 1046s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1046s # guint n; 1046s # const gchar *key; 1046s # GVariantIter *iter; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # g_variant_get (changed_properties, "a{sv}", &iter); 1046s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1046s # { 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1046s # g_datalist_remove_data (&proxy->priv->qdata, key); 1046s # if (info != NULL) 1046s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1046s # } 1046s # g_variant_iter_free (iter); 1046s # for (n = 0; invalidated_properties[n] != NULL; n++) 1046s # { 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1046s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1046s # if (info != NULL) 1046s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1046s # } 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1046s # { 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1046s # #else 1046s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1046s # #endif 1046s # 1046s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1046s # { 1046s # GObjectClass *gobject_class; 1046s # GDBusProxyClass *proxy_class; 1046s # 1046s # gobject_class = G_OBJECT_CLASS (klass); 1046s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1046s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1046s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1046s # 1046s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1046s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1046s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1046s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1046s # #endif 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new: 1046s # * @connection: A #GDBusConnection. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1046s # * @user_data: User data to pass to @callback. 1046s # * 1046s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1046s # * 1046s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1046s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_proxy_new ( 1046s # GDBusConnection *connection, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GAsyncReadyCallback callback, 1046s # gpointer user_data) 1046s # { 1046s # 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); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_finish: 1046s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_finish ( 1046s # GAsyncResult *res, 1046s # GError **error) 1046s # { 1046s # GObject *ret; 1046s # GObject *source_object; 1046s # source_object = g_async_result_get_source_object (res); 1046s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1046s # g_object_unref (source_object); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_sync: 1046s # * @connection: A #GDBusConnection. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1046s # * 1046s # * The calling thread is blocked until a reply is received. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_sync ( 1046s # GDBusConnection *connection, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GError **error) 1046s # { 1046s # GInitable *ret; 1046s # 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); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus: 1046s # * @bus_type: A #GBusType. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: A bus name (well-known or unique). 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1046s # * @user_data: User data to pass to @callback. 1046s # * 1046s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1046s # * 1046s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1046s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_proxy_new_for_bus ( 1046s # GBusType bus_type, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GAsyncReadyCallback callback, 1046s # gpointer user_data) 1046s # { 1046s # 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); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1046s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1046s # GAsyncResult *res, 1046s # GError **error) 1046s # { 1046s # GObject *ret; 1046s # GObject *source_object; 1046s # source_object = g_async_result_get_source_object (res); 1046s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1046s # g_object_unref (source_object); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1046s # * @bus_type: A #GBusType. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: A bus name (well-known or unique). 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1046s # * 1046s # * The calling thread is blocked until a reply is received. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1046s # GBusType bus_type, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GError **error) 1046s # { 1046s # GInitable *ret; 1046s # 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); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # 1046s # /* ------------------------------------------------------------------------ */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceSkeleton: 1046s # * 1046s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceSkeletonClass: 1046s # * @parent_class: The parent class. 1046s # * 1046s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1046s # */ 1046s # 1046s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1046s # { 1046s # GValue *properties; 1046s # GList *changed_properties; 1046s # GSource *changed_properties_idle_source; 1046s # GMainContext *context; 1046s # GMutex lock; 1046s # }; 1046s # 1046s # static void 1046s # _org_project_signaling_iface_skeleton_handle_method_call ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name, 1046s # const gchar *method_name, 1046s # GVariant *parameters, 1046s # GDBusMethodInvocation *invocation, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # _ExtendedGDBusMethodInfo *info; 1046s # GVariantIter iter; 1046s # GVariant *child; 1046s # GValue *paramv; 1046s # gsize num_params; 1046s # guint num_extra; 1046s # gsize n; 1046s # guint signal_id; 1046s # GValue return_value = G_VALUE_INIT; 1046s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1046s # g_assert (info != NULL); 1046s # num_params = g_variant_n_children (parameters); 1046s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1046s # n = 0; 1046s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_set_object (¶mv[n++], skeleton); 1046s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1046s # g_value_set_object (¶mv[n++], invocation); 1046s # if (info->pass_fdlist) 1046s # { 1046s # #ifdef G_OS_UNIX 1046s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1046s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1046s # #else 1046s # g_assert_not_reached (); 1046s # #endif 1046s # } 1046s # g_variant_iter_init (&iter, parameters); 1046s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1046s # { 1046s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1046s # if (arg_info->use_gvariant) 1046s # { 1046s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1046s # g_value_set_variant (¶mv[n], child); 1046s # n++; 1046s # } 1046s # else 1046s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1046s # g_variant_unref (child); 1046s # } 1046s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1046s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1046s # if (!g_value_get_boolean (&return_value)) 1046s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1046s # g_value_unset (&return_value); 1046s # for (n = 0; n < num_params + num_extra; n++) 1046s # g_value_unset (¶mv[n]); 1046s # g_free (paramv); 1046s # } 1046s # 1046s # static GVariant * 1046s # _org_project_signaling_iface_skeleton_handle_get_property ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name G_GNUC_UNUSED, 1046s # const gchar *property_name, 1046s # GError **error, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # GValue value = G_VALUE_INIT; 1046s # GParamSpec *pspec; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # GVariant *ret; 1046s # ret = NULL; 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1046s # g_assert (info != NULL); 1046s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1046s # if (pspec == NULL) 1046s # { 1046s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1046s # } 1046s # else 1046s # { 1046s # g_value_init (&value, pspec->value_type); 1046s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1046s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1046s # g_value_unset (&value); 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # static gboolean 1046s # _org_project_signaling_iface_skeleton_handle_set_property ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name G_GNUC_UNUSED, 1046s # const gchar *property_name, 1046s # GVariant *variant, 1046s # GError **error, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # GValue value = G_VALUE_INIT; 1046s # GParamSpec *pspec; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # gboolean ret; 1046s # ret = FALSE; 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1046s # g_assert (info != NULL); 1046s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1046s # if (pspec == NULL) 1046s # { 1046s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1046s # } 1046s # else 1046s # { 1046s # if (info->use_gvariant) 1046s # g_value_set_variant (&value, variant); 1046s # else 1046s # g_dbus_gvariant_to_gvalue (variant, &value); 1046s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1046s # g_value_unset (&value); 1046s # ret = TRUE; 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1046s # { 1046s # _org_project_signaling_iface_skeleton_handle_method_call, 1046s # _org_project_signaling_iface_skeleton_handle_get_property, 1046s # _org_project_signaling_iface_skeleton_handle_set_property, 1046s # {NULL} 1046s # }; 1046s # 1046s # static GDBusInterfaceInfo * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1046s # { 1046s # return org_project_signaling_iface_interface_info (); 1046s # } 1046s # 1046s # static GDBusInterfaceVTable * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1046s # { 1046s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1046s # } 1046s # 1046s # static GVariant * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1046s # 1046s # GVariantBuilder builder; 1046s # guint n; 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1046s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1046s # #else 1046s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1046s # #endif 1046s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1046s # goto out; 1046s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1046s # { 1046s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1046s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1046s # { 1046s # GVariant *value; 1046s # 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); 1046s # if (value != NULL) 1046s # { 1046s # g_variant_take_ref (value); 1046s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1046s # g_variant_unref (value); 1046s # } 1046s # } 1046s # } 1046s # out: 1046s # return g_variant_builder_end (&builder); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # _org_project_signaling_iface_on_signal_simple_signal ( 1046s # OrgProjectSignalingIface *object) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # 1046s # GList *connections, *l; 1046s # GVariant *signal_variant; 1046s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1046s # 1046s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1046s # for (l = connections; l != NULL; l = l->next) 1046s # { 1046s # GDBusConnection *connection = l->data; 1046s # g_dbus_connection_emit_signal (connection, 1046s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1046s # signal_variant, NULL); 1046s # } 1046s # g_variant_unref (signal_variant); 1046s # g_list_free_full (connections, g_object_unref); 1046s # } 1046s # 1046s # static void 1046s # _org_project_signaling_iface_on_signal_single_arg_signal_g ( 1046s # OrgProjectSignalingIface *object, 1046s # const gchar *arg_arg_g) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # 1046s # GList *connections, *l; 1046s # GVariant *signal_variant; 1046s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1046s # 1046s # signal_variant = g_variant_ref_sink (g_variant_new ("(g)", 1046s # arg_arg_g)); 1046s # for (l = connections; l != NULL; l = l->next) 1046s # { 1046s # GDBusConnection *connection = l->data; 1046s # g_dbus_connection_emit_signal (connection, 1046s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalG", 1046s # signal_variant, NULL); 1046s # } 1046s # g_variant_unref (signal_variant); 1046s # g_list_free_full (connections, g_object_unref); 1046s # } 1046s # 1046s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1046s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1046s # 1046s # #else 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1046s # 1046s # #endif 1046s # static void 1046s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1046s # if (skeleton->priv->changed_properties_idle_source != NULL) 1046s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1046s # g_main_context_unref (skeleton->priv->context); 1046s # g_mutex_clear (&skeleton->priv->lock); 1046s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1046s # { 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1046s # #else 1046s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1046s # #endif 1046s # 1046s # g_mutex_init (&skeleton->priv->lock); 1046s # skeleton->priv->context = g_main_context_ref_thread_default (); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1046s # { 1046s # GObjectClass *gobject_class; 1046s # GDBusInterfaceSkeletonClass *skeleton_class; 1046s # 1046s # gobject_class = G_OBJECT_CLASS (klass); 1046s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1046s # 1046s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1046s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1046s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1046s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1046s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1046s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1046s # #endif 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1046s # { 1046s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1046s # iface->single_arg_signal_g = _org_project_signaling_iface_on_signal_single_arg_signal_g; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_skeleton_new: 1046s # * 1046s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_skeleton_new (void) 1046s # { 1046s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1046s # } 1046s # Error: 1046s # 1046s # /tmp/tmppt74if37/tmpolkx_kp1.xml: 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppt74if37/tmpolkx_kp1.xml', '--output', '-', '--body'] 1046s # Return code: 0 1046s # Output: 1046s # /* 1046s # * This file is generated by gdbus-codegen, do not modify it. 1046s # * 1046s # * The license of this code is the same as for the D-Bus interface description 1046s # * it was derived from. Note that it links to GLib, so must comply with the 1046s # * LGPL linking clauses. 1046s # */ 1046s # 1046s # #ifdef HAVE_CONFIG_H 1046s # # include "config.h" 1046s # #endif 1046s # 1046s # #include 1046s # #ifdef G_OS_UNIX 1046s # # include 1046s # #endif 1046s # 1046s # #ifdef G_ENABLE_DEBUG 1046s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1046s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1046s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1046s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1046s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1046s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1046s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1046s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1046s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1046s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1046s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1046s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1046s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1046s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1046s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1046s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1046s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1046s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1046s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1046s # #else /* !G_ENABLE_DEBUG */ 1046s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1046s # * Do not access GValues directly in your code. Instead, use the 1046s # * g_value_get_*() functions 1046s # */ 1046s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1046s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1046s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1046s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1046s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1046s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1046s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1046s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1046s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1046s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1046s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1046s # #endif /* !G_ENABLE_DEBUG */ 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusArgInfo parent_struct; 1046s # gboolean use_gvariant; 1046s # } _ExtendedGDBusArgInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusMethodInfo parent_struct; 1046s # const gchar *signal_name; 1046s # gboolean pass_fdlist; 1046s # } _ExtendedGDBusMethodInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusSignalInfo parent_struct; 1046s # const gchar *signal_name; 1046s # } _ExtendedGDBusSignalInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusPropertyInfo parent_struct; 1046s # const gchar *hyphen_name; 1046s # guint use_gvariant : 1; 1046s # guint emits_changed_signal : 1; 1046s # } _ExtendedGDBusPropertyInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusInterfaceInfo parent_struct; 1046s # const gchar *hyphen_name; 1046s # } _ExtendedGDBusInterfaceInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # const _ExtendedGDBusPropertyInfo *info; 1046s # guint prop_id; 1046s # GValue orig_value; /* the value before the change */ 1046s # } ChangedProperty; 1046s # 1046s # static void 1046s # _changed_property_free (ChangedProperty *data) 1046s # { 1046s # g_value_unset (&data->orig_value); 1046s # g_free (data); 1046s # } 1046s # 1046s # static gboolean 1046s # _g_strv_equal0 (gchar **a, gchar **b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # guint n; 1046s # if (a == NULL && b == NULL) 1046s # { 1046s # ret = TRUE; 1046s # goto out; 1046s # } 1046s # if (a == NULL || b == NULL) 1046s # goto out; 1046s # if (g_strv_length (a) != g_strv_length (b)) 1046s # goto out; 1046s # for (n = 0; a[n] != NULL; n++) 1046s # if (g_strcmp0 (a[n], b[n]) != 0) 1046s # goto out; 1046s # ret = TRUE; 1046s # out: 1046s # return ret; 1046s # } 1046s # 1046s # static gboolean 1046s # _g_variant_equal0 (GVariant *a, GVariant *b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # if (a == NULL && b == NULL) 1046s # { 1046s # ret = TRUE; 1046s # goto out; 1046s # } 1046s # if (a == NULL || b == NULL) 1046s # goto out; 1046s # ret = g_variant_equal (a, b); 1046s # out: 1046s # return ret; 1046s # } 1046s # 1046s # G_GNUC_UNUSED static gboolean 1046s # _g_value_equal (const GValue *a, const GValue *b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1046s # switch (G_VALUE_TYPE (a)) 1046s # { 1046s # case G_TYPE_BOOLEAN: 1046s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1046s # break; 1046s # case G_TYPE_UCHAR: 1046s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1046s # break; 1046s # case G_TYPE_INT: 1046s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1046s # break; 1046s # case G_TYPE_UINT: 1046s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1046s # break; 1046s # case G_TYPE_INT64: 1046s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1046s # break; 1046s # case G_TYPE_UINT64: 1046s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1046s # break; 1046s # case G_TYPE_DOUBLE: 1046s # { 1046s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1046s # gdouble da = g_value_get_double (a); 1046s # gdouble db = g_value_get_double (b); 1046s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1046s # } 1046s # break; 1046s # case G_TYPE_STRING: 1046s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1046s # break; 1046s # case G_TYPE_VARIANT: 1046s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1046s # break; 1046s # default: 1046s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1046s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1046s # else 1046s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1046s # break; 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # /* ------------------------------------------------------------------------ 1046s # * Code for interface org.project.SignalingIface 1046s # * ------------------------------------------------------------------------ 1046s # */ 1046s # 1046s # /** 1046s # * SECTION:OrgProjectSignalingIface 1046s # * @title: OrgProjectSignalingIface 1046s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1046s # * 1046s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1046s # */ 1046s # 1046s # enum 1046s # { 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1046s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H, 1046s # }; 1046s # 1046s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1046s # 1046s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1046s # 1046s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "SimpleSignal", 1046s # NULL, 1046s # NULL 1046s # }, 1046s # "simple-signal" 1046s # }; 1046s # 1046s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_arg_h = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "arg_h", 1046s # (gchar *) "h", 1046s # NULL 1046s # }, 1046s # FALSE 1046s # }; 1046s # 1046s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers[] = 1046s # { 1046s # &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_arg_h.parent_struct, 1046s # NULL 1046s # }; 1046s # 1046s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_h = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "SingleArgSignalH", 1046s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers, 1046s # NULL 1046s # }, 1046s # "single-arg-signal-h" 1046s # }; 1046s # 1046s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1046s # { 1046s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1046s # &_org_project_signaling_iface_signal_info_single_arg_signal_h.parent_struct, 1046s # NULL 1046s # }; 1046s # 1046s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "org.project.SignalingIface", 1046s # NULL, 1046s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1046s # NULL, 1046s # NULL 1046s # }, 1046s # "org-project-signaling-iface", 1046s # }; 1046s # 1046s # 1046s # /** 1046s # * org_project_signaling_iface_interface_info: 1046s # * 1046s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1046s # * 1046s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1046s # */ 1046s # GDBusInterfaceInfo * 1046s # org_project_signaling_iface_interface_info (void) 1046s # { 1046s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_override_properties: 1046s # * @klass: The class structure for a #GObject derived class. 1046s # * @property_id_begin: The property id to assign to the first overridden property. 1046s # * 1046s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1046s # * The properties are overridden in the order they are defined. 1046s # * 1046s # * Returns: The last property id. 1046s # */ 1046s # guint 1046s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1046s # { 1046s # return property_id_begin - 1; 1046s # } 1046s # 1046s # 1046s # inline static void 1046s # org_project_signaling_iface_signal_marshal_simple_signal ( 1046s # GClosure *closure, 1046s # GValue *return_value, 1046s # unsigned int n_param_values, 1046s # const GValue *param_values, 1046s # void *invocation_hint, 1046s # void *marshal_data) 1046s # { 1046s # g_cclosure_marshal_VOID__VOID (closure, 1046s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1046s # } 1046s # 1046s # inline static void 1046s # org_project_signaling_iface_signal_marshal_single_arg_signal_h ( 1046s # GClosure *closure, 1046s # GValue *return_value, 1046s # unsigned int n_param_values, 1046s # const GValue *param_values, 1046s # void *invocation_hint, 1046s # void *marshal_data) 1046s # { 1046s # g_cclosure_marshal_VOID__VARIANT (closure, 1046s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1046s # } 1046s # 1046s # 1046s # /** 1046s # * OrgProjectSignalingIface: 1046s # * 1046s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceIface: 1046s # * @parent_iface: The parent interface. 1046s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1046s # * @single_arg_signal_h: Handler for the #OrgProjectSignalingIface::single-arg-signal-h signal. 1046s # * 1046s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1046s # */ 1046s # 1046s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1046s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1046s # 1046s # static void 1046s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1046s # { 1046s # /* GObject signals for received D-Bus signals: */ 1046s # /** 1046s # * OrgProjectSignalingIface::simple-signal: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * 1046s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1046s # * 1046s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1046s # */ 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1046s # g_signal_new ("simple-signal", 1046s # G_TYPE_FROM_INTERFACE (iface), 1046s # G_SIGNAL_RUN_LAST, 1046s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1046s # NULL, 1046s # NULL, 1046s # org_project_signaling_iface_signal_marshal_simple_signal, 1046s # G_TYPE_NONE, 1046s # 0); 1046s # 1046s # /** 1046s # * OrgProjectSignalingIface::single-arg-signal-h: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * @arg_arg_h: Argument. 1046s # * 1046s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalH" is received. 1046s # * 1046s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1046s # */ 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H] = 1046s # g_signal_new ("single-arg-signal-h", 1046s # G_TYPE_FROM_INTERFACE (iface), 1046s # G_SIGNAL_RUN_LAST, 1046s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_h), 1046s # NULL, 1046s # NULL, 1046s # org_project_signaling_iface_signal_marshal_single_arg_signal_h, 1046s # G_TYPE_NONE, 1046s # 1, G_TYPE_VARIANT); 1046s # 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_emit_simple_signal: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * 1046s # * Emits the "SimpleSignal" D-Bus signal. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_emit_simple_signal ( 1046s # OrgProjectSignalingIface *object) 1046s # { 1046s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_emit_single_arg_signal_h: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * @arg_arg_h: Argument to pass with the signal. 1046s # * 1046s # * Emits the "SingleArgSignalH" D-Bus signal. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_emit_single_arg_signal_h ( 1046s # OrgProjectSignalingIface *object, 1046s # GVariant *arg_arg_h) 1046s # { 1046s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H], 0, arg_arg_h); 1046s # } 1046s # 1046s # /* ------------------------------------------------------------------------ */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceProxy: 1046s # * 1046s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceProxyClass: 1046s # * @parent_class: The parent class. 1046s # * 1046s # * Class structure for #OrgProjectSignalingIfaceProxy. 1046s # */ 1046s # 1046s # struct _OrgProjectSignalingIfaceProxyPrivate 1046s # { 1046s # GData *qdata; 1046s # }; 1046s # 1046s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1046s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1046s # 1046s # #else 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1046s # 1046s # #endif 1046s # static void 1046s # org_project_signaling_iface_proxy_finalize (GObject *object) 1046s # { 1046s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1046s # g_datalist_clear (&proxy->priv->qdata); 1046s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1046s # guint prop_id G_GNUC_UNUSED, 1046s # GValue *value G_GNUC_UNUSED, 1046s # GParamSpec *pspec G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1046s # guint prop_id G_GNUC_UNUSED, 1046s # const GValue *value G_GNUC_UNUSED, 1046s # GParamSpec *pspec G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1046s # const gchar *sender_name G_GNUC_UNUSED, 1046s # const gchar *signal_name, 1046s # GVariant *parameters) 1046s # { 1046s # _ExtendedGDBusSignalInfo *info; 1046s # GVariantIter iter; 1046s # GVariant *child; 1046s # GValue *paramv; 1046s # gsize num_params; 1046s # gsize n; 1046s # guint signal_id; 1046s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1046s # if (info == NULL) 1046s # return; 1046s # num_params = g_variant_n_children (parameters); 1046s # paramv = g_new0 (GValue, num_params + 1); 1046s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_set_object (¶mv[0], proxy); 1046s # g_variant_iter_init (&iter, parameters); 1046s # n = 1; 1046s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1046s # { 1046s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1046s # if (arg_info->use_gvariant) 1046s # { 1046s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1046s # g_value_set_variant (¶mv[n], child); 1046s # n++; 1046s # } 1046s # else 1046s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1046s # g_variant_unref (child); 1046s # } 1046s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_signal_emitv (paramv, signal_id, 0, NULL); 1046s # for (n = 0; n < num_params + 1; n++) 1046s # g_value_unset (¶mv[n]); 1046s # g_free (paramv); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1046s # GVariant *changed_properties, 1046s # const gchar *const *invalidated_properties) 1046s # { 1046s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1046s # guint n; 1046s # const gchar *key; 1046s # GVariantIter *iter; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # g_variant_get (changed_properties, "a{sv}", &iter); 1046s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1046s # { 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1046s # g_datalist_remove_data (&proxy->priv->qdata, key); 1046s # if (info != NULL) 1046s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1046s # } 1046s # g_variant_iter_free (iter); 1046s # for (n = 0; invalidated_properties[n] != NULL; n++) 1046s # { 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1046s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1046s # if (info != NULL) 1046s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1046s # } 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1046s # { 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1046s # #else 1046s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1046s # #endif 1046s # 1046s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1046s # { 1046s # GObjectClass *gobject_class; 1046s # GDBusProxyClass *proxy_class; 1046s # 1046s # gobject_class = G_OBJECT_CLASS (klass); 1046s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1046s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1046s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1046s # 1046s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1046s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1046s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1046s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1046s # #endif 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new: 1046s # * @connection: A #GDBusConnection. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1046s # * @user_data: User data to pass to @callback. 1046s # * 1046s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1046s # * 1046s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1046s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_proxy_new ( 1046s # GDBusConnection *connection, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GAsyncReadyCallback callback, 1046s # gpointer user_data) 1046s # { 1046s # 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); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_finish: 1046s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_finish ( 1046s # GAsyncResult *res, 1046s # GError **error) 1046s # { 1046s # GObject *ret; 1046s # GObject *source_object; 1046s # source_object = g_async_result_get_source_object (res); 1046s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1046s # g_object_unref (source_object); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_sync: 1046s # * @connection: A #GDBusConnection. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1046s # * 1046s # * The calling thread is blocked until a reply is received. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_sync ( 1046s # GDBusConnection *connection, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GError **error) 1046s # { 1046s # GInitable *ret; 1046s # 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); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus: 1046s # * @bus_type: A #GBusType. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: A bus name (well-known or unique). 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1046s # * @user_data: User data to pass to @callback. 1046s # * 1046s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1046s # * 1046s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1046s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_proxy_new_for_bus ( 1046s # GBusType bus_type, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GAsyncReadyCallback callback, 1046s # gpointer user_data) 1046s # { 1046s # 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); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1046s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1046s # GAsyncResult *res, 1046s # GError **error) 1046s # { 1046s # GObject *ret; 1046s # GObject *source_object; 1046s # source_object = g_async_result_get_source_object (res); 1046s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1046s # g_object_unref (source_object); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1046s # * @bus_type: A #GBusType. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: A bus name (well-known or unique). 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1046s # * 1046s # * The calling thread is blocked until a reply is received. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1046s # GBusType bus_type, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GError **error) 1046s # { 1046s # GInitable *ret; 1046s # 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); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # 1046s # /* ------------------------------------------------------------------------ */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceSkeleton: 1046s # * 1046s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceSkeletonClass: 1046s # * @parent_class: The parent class. 1046s # * 1046s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1046s # */ 1046s # 1046s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1046s # { 1046s # GValue *properties; 1046s # GList *changed_properties; 1046s # GSource *changed_properties_idle_source; 1046s # GMainContext *context; 1046s # GMutex lock; 1046s # }; 1046s # 1046s # static void 1046s # _org_project_signaling_iface_skeleton_handle_method_call ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name, 1046s # const gchar *method_name, 1046s # GVariant *parameters, 1046s # GDBusMethodInvocation *invocation, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # _ExtendedGDBusMethodInfo *info; 1046s # GVariantIter iter; 1046s # GVariant *child; 1046s # GValue *paramv; 1046s # gsize num_params; 1046s # guint num_extra; 1046s # gsize n; 1046s # guint signal_id; 1046s # GValue return_value = G_VALUE_INIT; 1046s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1046s # g_assert (info != NULL); 1046s # num_params = g_variant_n_children (parameters); 1046s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1046s # n = 0; 1046s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_set_object (¶mv[n++], skeleton); 1046s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1046s # g_value_set_object (¶mv[n++], invocation); 1046s # if (info->pass_fdlist) 1046s # { 1046s # #ifdef G_OS_UNIX 1046s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1046s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1046s # #else 1046s # g_assert_not_reached (); 1046s # #endif 1046s # } 1046s # g_variant_iter_init (&iter, parameters); 1046s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1046s # { 1046s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1046s # if (arg_info->use_gvariant) 1046s # { 1046s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1046s # g_value_set_variant (¶mv[n], child); 1046s # n++; 1046s # } 1046s # else 1046s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1046s # g_variant_unref (child); 1046s # } 1046s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1046s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1046s # if (!g_value_get_boolean (&return_value)) 1046s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1046s # g_value_unset (&return_value); 1046s # for (n = 0; n < num_params + num_extra; n++) 1046s # g_value_unset (¶mv[n]); 1046s # g_free (paramv); 1046s # } 1046s # 1046s # static GVariant * 1046s # _org_project_signaling_iface_skeleton_handle_get_property ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name G_GNUC_UNUSED, 1046s # const gchar *property_name, 1046s # GError **error, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # GValue value = G_VALUE_INIT; 1046s # GParamSpec *pspec; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # GVariant *ret; 1046s # ret = NULL; 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1046s # g_assert (info != NULL); 1046s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1046s # if (pspec == NULL) 1046s # { 1046s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1046s # } 1046s # else 1046s # { 1046s # g_value_init (&value, pspec->value_type); 1046s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1046s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1046s # g_value_unset (&value); 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # static gboolean 1046s # _org_project_signaling_iface_skeleton_handle_set_property ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name G_GNUC_UNUSED, 1046s # const gchar *property_name, 1046s # GVariant *variant, 1046s # GError **error, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # GValue value = G_VALUE_INIT; 1046s # GParamSpec *pspec; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # gboolean ret; 1046s # ret = FALSE; 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1046s # g_assert (info != NULL); 1046s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1046s # if (pspec == NULL) 1046s # { 1046s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1046s # } 1046s # else 1046s # { 1046s # if (info->use_gvariant) 1046s # g_value_set_variant (&value, variant); 1046s # else 1046s # g_dbus_gvariant_to_gvalue (variant, &value); 1046s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1046s # g_value_unset (&value); 1046s # ret = TRUE; 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1046s # { 1046s # _org_project_signaling_iface_skeleton_handle_method_call, 1046s # _org_project_signaling_iface_skeleton_handle_get_property, 1046s # _org_project_signaling_iface_skeleton_handle_set_property, 1046s # {NULL} 1046s # }; 1046s # 1046s # static GDBusInterfaceInfo * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1046s # { 1046s # return org_project_signaling_iface_interface_info (); 1046s # } 1046s # 1046s # static GDBusInterfaceVTable * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1046s # { 1046s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1046s # } 1046s # 1046s # static GVariant * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1046s # 1046s # GVariantBuilder builder; 1046s # guint n; 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1046s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1046s # #else 1046s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1046s # #endif 1046s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1046s # goto out; 1046s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1046s # { 1046s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1046s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1046s # { 1046s # GVariant *value; 1046s # 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); 1046s # if (value != NULL) 1046s # { 1046s # g_variant_take_ref (value); 1046s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1046s # g_variant_unref (value); 1046s # } 1046s # } 1046s # } 1046s # out: 1046s # return g_variant_builder_end (&builder); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # _org_project_signaling_iface_on_signal_simple_signal ( 1046s # OrgProjectSignalingIface *object) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # 1046s # GList *connections, *l; 1046s # GVariant *signal_variant; 1046s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1046s # 1046s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1046s # for (l = connections; l != NULL; l = l->next) 1046s # { 1046s # GDBusConnection *connection = l->data; 1046s # g_dbus_connection_emit_signal (connection, 1046s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1046s # signal_variant, NULL); 1046s # } 1046s # g_variant_unref (signal_variant); 1046s # g_list_free_full (connections, g_object_unref); 1046s # } 1046s # 1046s # static void 1046s # _org_project_signaling_iface_on_signal_single_arg_signal_h ( 1046s # OrgProjectSignalingIface *object, 1046s # GVariant *arg_arg_h) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # 1046s # GList *connections, *l; 1046s # GVariant *signal_variant; 1046s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1046s # 1046s # signal_variant = g_variant_ref_sink (g_variant_new ("(@h)", 1046s # arg_arg_h)); 1046s # for (l = connections; l != NULL; l = l->next) 1046s # { 1046s # GDBusConnection *connection = l->data; 1046s # g_dbus_connection_emit_signal (connection, 1046s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalH", 1046s # signal_variant, NULL); 1046s # } 1046s # g_variant_unref (signal_variant); 1046s # g_list_free_full (connections, g_object_unref); 1046s # } 1046s # 1046s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1046s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1046s # 1046s # #else 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1046s # 1046s # #endif 1046s # static void 1046s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1046s # if (skeleton->priv->changed_properties_idle_source != NULL) 1046s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1046s # g_main_context_unref (skeleton->priv->context); 1046s # g_mutex_clear (&skeleton->priv->lock); 1046s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1046s # { 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1046s # #else 1046s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1046s # #endif 1046s # 1046s # g_mutex_init (&skeleton->priv->lock); 1046s # skeleton->priv->context = g_main_context_ref_thread_default (); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1046s # { 1046s # GObjectClass *gobject_class; 1046s # GDBusInterfaceSkeletonClass *skeleton_class; 1046s # 1046s # gobject_class = G_OBJECT_CLASS (klass); 1046s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1046s # 1046s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1046s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1046s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1046s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1046s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1046s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1046s # #endif 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1046s # { 1046s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1046s # iface->single_arg_signal_h = _org_project_signaling_iface_on_signal_single_arg_signal_h; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_skeleton_new: 1046s # * 1046s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_skeleton_new (void) 1046s # { 1046s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1046s # } 1046s # Error: 1046s # 1046s # /tmp/tmppt74if37/tmpzg559cgn.xml: 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppt74if37/tmpzg559cgn.xml', '--output', '-', '--body'] 1046s # Return code: 0 1046s # Output: 1046s # /* 1046s # * This file is generated by gdbus-codegen, do not modify it. 1046s # * 1046s # * The license of this code is the same as for the D-Bus interface description 1046s # * it was derived from. Note that it links to GLib, so must comply with the 1046s # * LGPL linking clauses. 1046s # */ 1046s # 1046s # #ifdef HAVE_CONFIG_H 1046s # # include "config.h" 1046s # #endif 1046s # 1046s # #include 1046s # #ifdef G_OS_UNIX 1046s # # include 1046s # #endif 1046s # 1046s # #ifdef G_ENABLE_DEBUG 1046s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1046s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1046s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1046s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1046s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1046s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1046s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1046s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1046s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1046s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1046s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1046s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1046s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1046s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1046s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1046s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1046s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1046s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1046s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1046s # #else /* !G_ENABLE_DEBUG */ 1046s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1046s # * Do not access GValues directly in your code. Instead, use the 1046s # * g_value_get_*() functions 1046s # */ 1046s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1046s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1046s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1046s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1046s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1046s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1046s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1046s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1046s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1046s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1046s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1046s # #endif /* !G_ENABLE_DEBUG */ 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusArgInfo parent_struct; 1046s # gboolean use_gvariant; 1046s # } _ExtendedGDBusArgInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusMethodInfo parent_struct; 1046s # const gchar *signal_name; 1046s # gboolean pass_fdlist; 1046s # } _ExtendedGDBusMethodInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusSignalInfo parent_struct; 1046s # const gchar *signal_name; 1046s # } _ExtendedGDBusSignalInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusPropertyInfo parent_struct; 1046s # const gchar *hyphen_name; 1046s # guint use_gvariant : 1; 1046s # guint emits_changed_signal : 1; 1046s # } _ExtendedGDBusPropertyInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusInterfaceInfo parent_struct; 1046s # const gchar *hyphen_name; 1046s # } _ExtendedGDBusInterfaceInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # const _ExtendedGDBusPropertyInfo *info; 1046s # guint prop_id; 1046s # GValue orig_value; /* the value before the change */ 1046s # } ChangedProperty; 1046s # 1046s # static void 1046s # _changed_property_free (ChangedProperty *data) 1046s # { 1046s # g_value_unset (&data->orig_value); 1046s # g_free (data); 1046s # } 1046s # 1046s # static gboolean 1046s # _g_strv_equal0 (gchar **a, gchar **b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # guint n; 1046s # if (a == NULL && b == NULL) 1046s # { 1046s # ret = TRUE; 1046s # goto out; 1046s # } 1046s # if (a == NULL || b == NULL) 1046s # goto out; 1046s # if (g_strv_length (a) != g_strv_length (b)) 1046s # goto out; 1046s # for (n = 0; a[n] != NULL; n++) 1046s # if (g_strcmp0 (a[n], b[n]) != 0) 1046s # goto out; 1046s # ret = TRUE; 1046s # out: 1046s # return ret; 1046s # } 1046s # 1046s # static gboolean 1046s # _g_variant_equal0 (GVariant *a, GVariant *b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # if (a == NULL && b == NULL) 1046s # { 1046s # ret = TRUE; 1046s # goto out; 1046s # } 1046s # if (a == NULL || b == NULL) 1046s # goto out; 1046s # ret = g_variant_equal (a, b); 1046s # out: 1046s # return ret; 1046s # } 1046s # 1046s # G_GNUC_UNUSED static gboolean 1046s # _g_value_equal (const GValue *a, const GValue *b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1046s # switch (G_VALUE_TYPE (a)) 1046s # { 1046s # case G_TYPE_BOOLEAN: 1046s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1046s # break; 1046s # case G_TYPE_UCHAR: 1046s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1046s # break; 1046s # case G_TYPE_INT: 1046s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1046s # break; 1046s # case G_TYPE_UINT: 1046s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1046s # break; 1046s # case G_TYPE_INT64: 1046s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1046s # break; 1046s # case G_TYPE_UINT64: 1046s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1046s # break; 1046s # case G_TYPE_DOUBLE: 1046s # { 1046s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1046s # gdouble da = g_value_get_double (a); 1046s # gdouble db = g_value_get_double (b); 1046s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1046s # } 1046s # break; 1046s # case G_TYPE_STRING: 1046s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1046s # break; 1046s # case G_TYPE_VARIANT: 1046s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1046s # break; 1046s # default: 1046s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1046s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1046s # else 1046s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1046s # break; 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # /* ------------------------------------------------------------------------ 1046s # * Code for interface org.project.SignalingIface 1046s # * ------------------------------------------------------------------------ 1046s # */ 1046s # 1046s # /** 1046s # * SECTION:OrgProjectSignalingIface 1046s # * @title: OrgProjectSignalingIface 1046s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1046s # * 1046s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1046s # */ 1046s # 1046s # enum 1046s # { 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1046s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY, 1046s # }; 1046s # 1046s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1046s # 1046s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1046s # 1046s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "SimpleSignal", 1046s # NULL, 1046s # NULL 1046s # }, 1046s # "simple-signal" 1046s # }; 1046s # 1046s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_arg_ay = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "arg_ay", 1046s # (gchar *) "ay", 1046s # NULL 1046s # }, 1046s # FALSE 1046s # }; 1046s # 1046s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers[] = 1046s # { 1046s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_arg_ay.parent_struct, 1046s # NULL 1046s # }; 1046s # 1046s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "SingleArgSignalAy", 1046s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers, 1046s # NULL 1046s # }, 1046s # "single-arg-signal-ay" 1046s # }; 1046s # 1046s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1046s # { 1046s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1046s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay.parent_struct, 1046s # NULL 1046s # }; 1046s # 1046s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "org.project.SignalingIface", 1046s # NULL, 1046s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1046s # NULL, 1046s # NULL 1046s # }, 1046s # "org-project-signaling-iface", 1046s # }; 1046s # 1046s # 1046s # /** 1046s # * org_project_signaling_iface_interface_info: 1046s # * 1046s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1046s # * 1046s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1046s # */ 1046s # GDBusInterfaceInfo * 1046s # org_project_signaling_iface_interface_info (void) 1046s # { 1046s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_override_properties: 1046s # * @klass: The class structure for a #GObject derived class. 1046s # * @property_id_begin: The property id to assign to the first overridden property. 1046s # * 1046s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1046s # * The properties are overridden in the order they are defined. 1046s # * 1046s # * Returns: The last property id. 1046s # */ 1046s # guint 1046s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1046s # { 1046s # return property_id_begin - 1; 1046s # } 1046s # 1046s # 1046s # inline static void 1046s # org_project_signaling_iface_signal_marshal_simple_signal ( 1046s # GClosure *closure, 1046s # GValue *return_value, 1046s # unsigned int n_param_values, 1046s # const GValue *param_values, 1046s # void *invocation_hint, 1046s # void *marshal_data) 1046s # { 1046s # g_cclosure_marshal_VOID__VOID (closure, 1046s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1046s # } 1046s # 1046s # inline static void 1046s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay ( 1046s # GClosure *closure, 1046s # GValue *return_value, 1046s # unsigned int n_param_values, 1046s # const GValue *param_values, 1046s # void *invocation_hint, 1046s # void *marshal_data) 1046s # { 1046s # g_cclosure_marshal_VOID__STRING (closure, 1046s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1046s # } 1046s # 1046s # 1046s # /** 1046s # * OrgProjectSignalingIface: 1046s # * 1046s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceIface: 1046s # * @parent_iface: The parent interface. 1046s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1046s # * @single_arg_signal_ay: Handler for the #OrgProjectSignalingIface::single-arg-signal-ay signal. 1046s # * 1046s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1046s # */ 1046s # 1046s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1046s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1046s # 1046s # static void 1046s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1046s # { 1046s # /* GObject signals for received D-Bus signals: */ 1046s # /** 1046s # * OrgProjectSignalingIface::simple-signal: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * 1046s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1046s # * 1046s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1046s # */ 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1046s # g_signal_new ("simple-signal", 1046s # G_TYPE_FROM_INTERFACE (iface), 1046s # G_SIGNAL_RUN_LAST, 1046s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1046s # NULL, 1046s # NULL, 1046s # org_project_signaling_iface_signal_marshal_simple_signal, 1046s # G_TYPE_NONE, 1046s # 0); 1046s # 1046s # /** 1046s # * OrgProjectSignalingIface::single-arg-signal-ay: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * @arg_arg_ay: Argument. 1046s # * 1046s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAy" is received. 1046s # * 1046s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1046s # */ 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY] = 1046s # g_signal_new ("single-arg-signal-ay", 1046s # G_TYPE_FROM_INTERFACE (iface), 1046s # G_SIGNAL_RUN_LAST, 1046s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ay), 1046s # NULL, 1046s # NULL, 1046s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay, 1046s # G_TYPE_NONE, 1046s # 1, G_TYPE_STRING); 1046s # 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_emit_simple_signal: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * 1046s # * Emits the "SimpleSignal" D-Bus signal. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_emit_simple_signal ( 1046s # OrgProjectSignalingIface *object) 1046s # { 1046s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_emit_single_arg_signal_ay: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * @arg_arg_ay: Argument to pass with the signal. 1046s # * 1046s # * Emits the "SingleArgSignalAy" D-Bus signal. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_emit_single_arg_signal_ay ( 1046s # OrgProjectSignalingIface *object, 1046s # const gchar *arg_arg_ay) 1046s # { 1046s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY], 0, arg_arg_ay); 1046s # } 1046s # 1046s # /* ------------------------------------------------------------------------ */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceProxy: 1046s # * 1046s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceProxyClass: 1046s # * @parent_class: The parent class. 1046s # * 1046s # * Class structure for #OrgProjectSignalingIfaceProxy. 1046s # */ 1046s # 1046s # struct _OrgProjectSignalingIfaceProxyPrivate 1046s # { 1046s # GData *qdata; 1046s # }; 1046s # 1046s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1046s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1046s # 1046s # #else 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1046s # 1046s # #endif 1046s # static void 1046s # org_project_signaling_iface_proxy_finalize (GObject *object) 1046s # { 1046s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1046s # g_datalist_clear (&proxy->priv->qdata); 1046s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1046s # guint prop_id G_GNUC_UNUSED, 1046s # GValue *value G_GNUC_UNUSED, 1046s # GParamSpec *pspec G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1046s # guint prop_id G_GNUC_UNUSED, 1046s # const GValue *value G_GNUC_UNUSED, 1046s # GParamSpec *pspec G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1046s # const gchar *sender_name G_GNUC_UNUSED, 1046s # const gchar *signal_name, 1046s # GVariant *parameters) 1046s # { 1046s # _ExtendedGDBusSignalInfo *info; 1046s # GVariantIter iter; 1046s # GVariant *child; 1046s # GValue *paramv; 1046s # gsize num_params; 1046s # gsize n; 1046s # guint signal_id; 1046s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1046s # if (info == NULL) 1046s # return; 1046s # num_params = g_variant_n_children (parameters); 1046s # paramv = g_new0 (GValue, num_params + 1); 1046s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_set_object (¶mv[0], proxy); 1046s # g_variant_iter_init (&iter, parameters); 1046s # n = 1; 1046s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1046s # { 1046s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1046s # if (arg_info->use_gvariant) 1046s # { 1046s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1046s # g_value_set_variant (¶mv[n], child); 1046s # n++; 1046s # } 1046s # else 1046s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1046s # g_variant_unref (child); 1046s # } 1046s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_signal_emitv (paramv, signal_id, 0, NULL); 1046s # for (n = 0; n < num_params + 1; n++) 1046s # g_value_unset (¶mv[n]); 1046s # g_free (paramv); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1046s # GVariant *changed_properties, 1046s # const gchar *const *invalidated_properties) 1046s # { 1046s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1046s # guint n; 1046s # const gchar *key; 1046s # GVariantIter *iter; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # g_variant_get (changed_properties, "a{sv}", &iter); 1046s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1046s # { 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1046s # g_datalist_remove_data (&proxy->priv->qdata, key); 1046s # if (info != NULL) 1046s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1046s # } 1046s # g_variant_iter_free (iter); 1046s # for (n = 0; invalidated_properties[n] != NULL; n++) 1046s # { 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1046s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1046s # if (info != NULL) 1046s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1046s # } 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1046s # { 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1046s # #else 1046s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1046s # #endif 1046s # 1046s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1046s # { 1046s # GObjectClass *gobject_class; 1046s # GDBusProxyClass *proxy_class; 1046s # 1046s # gobject_class = G_OBJECT_CLASS (klass); 1046s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1046s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1046s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1046s # 1046s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1046s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1046s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1046s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1046s # #endif 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new: 1046s # * @connection: A #GDBusConnection. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1046s # * @user_data: User data to pass to @callback. 1046s # * 1046s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1046s # * 1046s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1046s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_proxy_new ( 1046s # GDBusConnection *connection, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GAsyncReadyCallback callback, 1046s # gpointer user_data) 1046s # { 1046s # 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); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_finish: 1046s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_finish ( 1046s # GAsyncResult *res, 1046s # GError **error) 1046s # { 1046s # GObject *ret; 1046s # GObject *source_object; 1046s # source_object = g_async_result_get_source_object (res); 1046s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1046s # g_object_unref (source_object); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_sync: 1046s # * @connection: A #GDBusConnection. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1046s # * 1046s # * The calling thread is blocked until a reply is received. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_sync ( 1046s # GDBusConnection *connection, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GError **error) 1046s # { 1046s # GInitable *ret; 1046s # 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); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus: 1046s # * @bus_type: A #GBusType. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: A bus name (well-known or unique). 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1046s # * @user_data: User data to pass to @callback. 1046s # * 1046s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1046s # * 1046s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1046s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_proxy_new_for_bus ( 1046s # GBusType bus_type, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GAsyncReadyCallback callback, 1046s # gpointer user_data) 1046s # { 1046s # 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); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1046s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1046s # GAsyncResult *res, 1046s # GError **error) 1046s # { 1046s # GObject *ret; 1046s # GObject *source_object; 1046s # source_object = g_async_result_get_source_object (res); 1046s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1046s # g_object_unref (source_object); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1046s # * @bus_type: A #GBusType. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: A bus name (well-known or unique). 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1046s # * 1046s # * The calling thread is blocked until a reply is received. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1046s # GBusType bus_type, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GError **error) 1046s # { 1046s # GInitable *ret; 1046s # 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); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # 1046s # /* ------------------------------------------------------------------------ */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceSkeleton: 1046s # * 1046s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceSkeletonClass: 1046s # * @parent_class: The parent class. 1046s # * 1046s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1046s # */ 1046s # 1046s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1046s # { 1046s # GValue *properties; 1046s # GList *changed_properties; 1046s # GSource *changed_properties_idle_source; 1046s # GMainContext *context; 1046s # GMutex lock; 1046s # }; 1046s # 1046s # static void 1046s # _org_project_signaling_iface_skeleton_handle_method_call ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name, 1046s # const gchar *method_name, 1046s # GVariant *parameters, 1046s # GDBusMethodInvocation *invocation, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # _ExtendedGDBusMethodInfo *info; 1046s # GVariantIter iter; 1046s # GVariant *child; 1046s # GValue *paramv; 1046s # gsize num_params; 1046s # guint num_extra; 1046s # gsize n; 1046s # guint signal_id; 1046s # GValue return_value = G_VALUE_INIT; 1046s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1046s # g_assert (info != NULL); 1046s # num_params = g_variant_n_children (parameters); 1046s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1046s # n = 0; 1046s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_set_object (¶mv[n++], skeleton); 1046s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1046s # g_value_set_object (¶mv[n++], invocation); 1046s # if (info->pass_fdlist) 1046s # { 1046s # #ifdef G_OS_UNIX 1046s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1046s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1046s # #else 1046s # g_assert_not_reached (); 1046s # #endif 1046s # } 1046s # g_variant_iter_init (&iter, parameters); 1046s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1046s # { 1046s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1046s # if (arg_info->use_gvariant) 1046s # { 1046s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1046s # g_value_set_variant (¶mv[n], child); 1046s # n++; 1046s # } 1046s # else 1046s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1046s # g_variant_unref (child); 1046s # } 1046s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1046s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1046s # if (!g_value_get_boolean (&return_value)) 1046s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1046s # g_value_unset (&return_value); 1046s # for (n = 0; n < num_params + num_extra; n++) 1046s # g_value_unset (¶mv[n]); 1046s # g_free (paramv); 1046s # } 1046s # 1046s # static GVariant * 1046s # _org_project_signaling_iface_skeleton_handle_get_property ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name G_GNUC_UNUSED, 1046s # const gchar *property_name, 1046s # GError **error, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # GValue value = G_VALUE_INIT; 1046s # GParamSpec *pspec; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # GVariant *ret; 1046s # ret = NULL; 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1046s # g_assert (info != NULL); 1046s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1046s # if (pspec == NULL) 1046s # { 1046s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1046s # } 1046s # else 1046s # { 1046s # g_value_init (&value, pspec->value_type); 1046s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1046s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1046s # g_value_unset (&value); 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # static gboolean 1046s # _org_project_signaling_iface_skeleton_handle_set_property ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name G_GNUC_UNUSED, 1046s # const gchar *property_name, 1046s # GVariant *variant, 1046s # GError **error, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # GValue value = G_VALUE_INIT; 1046s # GParamSpec *pspec; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # gboolean ret; 1046s # ret = FALSE; 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1046s # g_assert (info != NULL); 1046s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1046s # if (pspec == NULL) 1046s # { 1046s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1046s # } 1046s # else 1046s # { 1046s # if (info->use_gvariant) 1046s # g_value_set_variant (&value, variant); 1046s # else 1046s # g_dbus_gvariant_to_gvalue (variant, &value); 1046s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1046s # g_value_unset (&value); 1046s # ret = TRUE; 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1046s # { 1046s # _org_project_signaling_iface_skeleton_handle_method_call, 1046s # _org_project_signaling_iface_skeleton_handle_get_property, 1046s # _org_project_signaling_iface_skeleton_handle_set_property, 1046s # {NULL} 1046s # }; 1046s # 1046s # static GDBusInterfaceInfo * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1046s # { 1046s # return org_project_signaling_iface_interface_info (); 1046s # } 1046s # 1046s # static GDBusInterfaceVTable * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1046s # { 1046s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1046s # } 1046s # 1046s # static GVariant * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1046s # 1046s # GVariantBuilder builder; 1046s # guint n; 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1046s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1046s # #else 1046s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1046s # #endif 1046s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1046s # goto out; 1046s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1046s # { 1046s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1046s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1046s # { 1046s # GVariant *value; 1046s # 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); 1046s # if (value != NULL) 1046s # { 1046s # g_variant_take_ref (value); 1046s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1046s # g_variant_unref (value); 1046s # } 1046s # } 1046s # } 1046s # out: 1046s # return g_variant_builder_end (&builder); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # _org_project_signaling_iface_on_signal_simple_signal ( 1046s # OrgProjectSignalingIface *object) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # 1046s # GList *connections, *l; 1046s # GVariant *signal_variant; 1046s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1046s # 1046s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1046s # for (l = connections; l != NULL; l = l->next) 1046s # { 1046s # GDBusConnection *connection = l->data; 1046s # g_dbus_connection_emit_signal (connection, 1046s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1046s # signal_variant, NULL); 1046s # } 1046s # g_variant_unref (signal_variant); 1046s # g_list_free_full (connections, g_object_unref); 1046s # } 1046s # 1046s # static void 1046s # _org_project_signaling_iface_on_signal_single_arg_signal_ay ( 1046s # OrgProjectSignalingIface *object, 1046s # const gchar *arg_arg_ay) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # 1046s # GList *connections, *l; 1046s # GVariant *signal_variant; 1046s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1046s # 1046s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ay)", 1046s # arg_arg_ay)); 1046s # for (l = connections; l != NULL; l = l->next) 1046s # { 1046s # GDBusConnection *connection = l->data; 1046s # g_dbus_connection_emit_signal (connection, 1046s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAy", 1046s # signal_variant, NULL); 1046s # } 1046s # g_variant_unref (signal_variant); 1046s # g_list_free_full (connections, g_object_unref); 1046s # } 1046s # 1046s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1046s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1046s # 1046s # #else 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1046s # 1046s # #endif 1046s # static void 1046s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1046s # if (skeleton->priv->changed_properties_idle_source != NULL) 1046s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1046s # g_main_context_unref (skeleton->priv->context); 1046s # g_mutex_clear (&skeleton->priv->lock); 1046s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1046s # { 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1046s # #else 1046s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1046s # #endif 1046s # 1046s # g_mutex_init (&skeleton->priv->lock); 1046s # skeleton->priv->context = g_main_context_ref_thread_default (); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1046s # { 1046s # GObjectClass *gobject_class; 1046s # GDBusInterfaceSkeletonClass *skeleton_class; 1046s # 1046s # gobject_class = G_OBJECT_CLASS (klass); 1046s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1046s # 1046s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1046s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1046s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1046s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1046s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1046s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1046s # #endif 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1046s # { 1046s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1046s # iface->single_arg_signal_ay = _org_project_signaling_iface_on_signal_single_arg_signal_ay; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_skeleton_new: 1046s # * 1046s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_skeleton_new (void) 1046s # { 1046s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1046s # } 1046s # Error: 1046s # 1046s # /tmp/tmppt74if37/tmpbj0bcoy7.xml: 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppt74if37/tmpbj0bcoy7.xml', '--output', '-', '--body'] 1046s # Return code: 0 1046s # Output: 1046s # /* 1046s # * This file is generated by gdbus-codegen, do not modify it. 1046s # * 1046s # * The license of this code is the same as for the D-Bus interface description 1046s # * it was derived from. Note that it links to GLib, so must comply with the 1046s # * LGPL linking clauses. 1046s # */ 1046s # 1046s # #ifdef HAVE_CONFIG_H 1046s # # include "config.h" 1046s # #endif 1046s # 1046s # #include 1046s # #ifdef G_OS_UNIX 1046s # # include 1046s # #endif 1046s # 1046s # #ifdef G_ENABLE_DEBUG 1046s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1046s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1046s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1046s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1046s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1046s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1046s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1046s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1046s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1046s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1046s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1046s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1046s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1046s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1046s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1046s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1046s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1046s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1046s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1046s # #else /* !G_ENABLE_DEBUG */ 1046s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1046s # * Do not access GValues directly in your code. Instead, use the 1046s # * g_value_get_*() functions 1046s # */ 1046s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1046s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1046s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1046s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1046s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1046s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1046s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1046s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1046s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1046s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1046s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1046s # #endif /* !G_ENABLE_DEBUG */ 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusArgInfo parent_struct; 1046s # gboolean use_gvariant; 1046s # } _ExtendedGDBusArgInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusMethodInfo parent_struct; 1046s # const gchar *signal_name; 1046s # gboolean pass_fdlist; 1046s # } _ExtendedGDBusMethodInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusSignalInfo parent_struct; 1046s # const gchar *signal_name; 1046s # } _ExtendedGDBusSignalInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusPropertyInfo parent_struct; 1046s # const gchar *hyphen_name; 1046s # guint use_gvariant : 1; 1046s # guint emits_changed_signal : 1; 1046s # } _ExtendedGDBusPropertyInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusInterfaceInfo parent_struct; 1046s # const gchar *hyphen_name; 1046s # } _ExtendedGDBusInterfaceInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # const _ExtendedGDBusPropertyInfo *info; 1046s # guint prop_id; 1046s # GValue orig_value; /* the value before the change */ 1046s # } ChangedProperty; 1046s # 1046s # static void 1046s # _changed_property_free (ChangedProperty *data) 1046s # { 1046s # g_value_unset (&data->orig_value); 1046s # g_free (data); 1046s # } 1046s # 1046s # static gboolean 1046s # _g_strv_equal0 (gchar **a, gchar **b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # guint n; 1046s # if (a == NULL && b == NULL) 1046s # { 1046s # ret = TRUE; 1046s # goto out; 1046s # } 1046s # if (a == NULL || b == NULL) 1046s # goto out; 1046s # if (g_strv_length (a) != g_strv_length (b)) 1046s # goto out; 1046s # for (n = 0; a[n] != NULL; n++) 1046s # if (g_strcmp0 (a[n], b[n]) != 0) 1046s # goto out; 1046s # ret = TRUE; 1046s # out: 1046s # return ret; 1046s # } 1046s # 1046s # static gboolean 1046s # _g_variant_equal0 (GVariant *a, GVariant *b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # if (a == NULL && b == NULL) 1046s # { 1046s # ret = TRUE; 1046s # goto out; 1046s # } 1046s # if (a == NULL || b == NULL) 1046s # goto out; 1046s # ret = g_variant_equal (a, b); 1046s # out: 1046s # return ret; 1046s # } 1046s # 1046s # G_GNUC_UNUSED static gboolean 1046s # _g_value_equal (const GValue *a, const GValue *b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1046s # switch (G_VALUE_TYPE (a)) 1046s # { 1046s # case G_TYPE_BOOLEAN: 1046s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1046s # break; 1046s # case G_TYPE_UCHAR: 1046s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1046s # break; 1046s # case G_TYPE_INT: 1046s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1046s # break; 1046s # case G_TYPE_UINT: 1046s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1046s # break; 1046s # case G_TYPE_INT64: 1046s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1046s # break; 1046s # case G_TYPE_UINT64: 1046s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1046s # break; 1046s # case G_TYPE_DOUBLE: 1046s # { 1046s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1046s # gdouble da = g_value_get_double (a); 1046s # gdouble db = g_value_get_double (b); 1046s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1046s # } 1046s # break; 1046s # case G_TYPE_STRING: 1046s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1046s # break; 1046s # case G_TYPE_VARIANT: 1046s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1046s # break; 1046s # default: 1046s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1046s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1046s # else 1046s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1046s # break; 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # /* ------------------------------------------------------------------------ 1046s # * Code for interface org.project.SignalingIface 1046s # * ------------------------------------------------------------------------ 1046s # */ 1046s # 1046s # /** 1046s # * SECTION:OrgProjectSignalingIface 1046s # * @title: OrgProjectSignalingIface 1046s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1046s # * 1046s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1046s # */ 1046s # 1046s # enum 1046s # { 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1046s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS, 1046s # }; 1046s # 1046s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1046s # 1046s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1046s # 1046s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "SimpleSignal", 1046s # NULL, 1046s # NULL 1046s # }, 1046s # "simple-signal" 1046s # }; 1046s # 1046s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_arg_as = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "arg_as", 1046s # (gchar *) "as", 1046s # NULL 1046s # }, 1046s # FALSE 1046s # }; 1046s # 1046s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers[] = 1046s # { 1046s # &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_arg_as.parent_struct, 1046s # NULL 1046s # }; 1046s # 1046s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_as = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "SingleArgSignalAs", 1046s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers, 1046s # NULL 1046s # }, 1046s # "single-arg-signal-as" 1046s # }; 1046s # 1046s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1046s # { 1046s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1046s # &_org_project_signaling_iface_signal_info_single_arg_signal_as.parent_struct, 1046s # NULL 1046s # }; 1046s # 1046s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "org.project.SignalingIface", 1046s # NULL, 1046s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1046s # NULL, 1046s # NULL 1046s # }, 1046s # "org-project-signaling-iface", 1046s # }; 1046s # 1046s # 1046s # /** 1046s # * org_project_signaling_iface_interface_info: 1046s # * 1046s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1046s # * 1046s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1046s # */ 1046s # GDBusInterfaceInfo * 1046s # org_project_signaling_iface_interface_info (void) 1046s # { 1046s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_override_properties: 1046s # * @klass: The class structure for a #GObject derived class. 1046s # * @property_id_begin: The property id to assign to the first overridden property. 1046s # * 1046s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1046s # * The properties are overridden in the order they are defined. 1046s # * 1046s # * Returns: The last property id. 1046s # */ 1046s # guint 1046s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1046s # { 1046s # return property_id_begin - 1; 1046s # } 1046s # 1046s # 1046s # inline static void 1046s # org_project_signaling_iface_signal_marshal_simple_signal ( 1046s # GClosure *closure, 1046s # GValue *return_value, 1046s # unsigned int n_param_values, 1046s # const GValue *param_values, 1046s # void *invocation_hint, 1046s # void *marshal_data) 1046s # { 1046s # g_cclosure_marshal_VOID__VOID (closure, 1046s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1046s # } 1046s # 1046s # inline static void 1046s # org_project_signaling_iface_signal_marshal_single_arg_signal_as ( 1046s # GClosure *closure, 1046s # GValue *return_value, 1046s # unsigned int n_param_values, 1046s # const GValue *param_values, 1046s # void *invocation_hint, 1046s # void *marshal_data) 1046s # { 1046s # g_cclosure_marshal_VOID__BOXED (closure, 1046s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1046s # } 1046s # 1046s # 1046s # /** 1046s # * OrgProjectSignalingIface: 1046s # * 1046s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceIface: 1046s # * @parent_iface: The parent interface. 1046s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1046s # * @single_arg_signal_as: Handler for the #OrgProjectSignalingIface::single-arg-signal-as signal. 1046s # * 1046s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1046s # */ 1046s # 1046s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1046s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1046s # 1046s # static void 1046s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1046s # { 1046s # /* GObject signals for received D-Bus signals: */ 1046s # /** 1046s # * OrgProjectSignalingIface::simple-signal: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * 1046s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1046s # * 1046s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1046s # */ 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1046s # g_signal_new ("simple-signal", 1046s # G_TYPE_FROM_INTERFACE (iface), 1046s # G_SIGNAL_RUN_LAST, 1046s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1046s # NULL, 1046s # NULL, 1046s # org_project_signaling_iface_signal_marshal_simple_signal, 1046s # G_TYPE_NONE, 1046s # 0); 1046s # 1046s # /** 1046s # * OrgProjectSignalingIface::single-arg-signal-as: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * @arg_arg_as: Argument. 1046s # * 1046s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAs" is received. 1046s # * 1046s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1046s # */ 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS] = 1046s # g_signal_new ("single-arg-signal-as", 1046s # G_TYPE_FROM_INTERFACE (iface), 1046s # G_SIGNAL_RUN_LAST, 1046s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_as), 1046s # NULL, 1046s # NULL, 1046s # org_project_signaling_iface_signal_marshal_single_arg_signal_as, 1046s # G_TYPE_NONE, 1046s # 1, G_TYPE_STRV); 1046s # 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_emit_simple_signal: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * 1046s # * Emits the "SimpleSignal" D-Bus signal. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_emit_simple_signal ( 1046s # OrgProjectSignalingIface *object) 1046s # { 1046s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_emit_single_arg_signal_as: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * @arg_arg_as: Argument to pass with the signal. 1046s # * 1046s # * Emits the "SingleArgSignalAs" D-Bus signal. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_emit_single_arg_signal_as ( 1046s # OrgProjectSignalingIface *object, 1046s # const gchar *const *arg_arg_as) 1046s # { 1046s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS], 0, arg_arg_as); 1046s # } 1046s # 1046s # /* ------------------------------------------------------------------------ */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceProxy: 1046s # * 1046s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceProxyClass: 1046s # * @parent_class: The parent class. 1046s # * 1046s # * Class structure for #OrgProjectSignalingIfaceProxy. 1046s # */ 1046s # 1046s # struct _OrgProjectSignalingIfaceProxyPrivate 1046s # { 1046s # GData *qdata; 1046s # }; 1046s # 1046s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1046s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1046s # 1046s # #else 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1046s # 1046s # #endif 1046s # static void 1046s # org_project_signaling_iface_proxy_finalize (GObject *object) 1046s # { 1046s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1046s # g_datalist_clear (&proxy->priv->qdata); 1046s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1046s # guint prop_id G_GNUC_UNUSED, 1046s # GValue *value G_GNUC_UNUSED, 1046s # GParamSpec *pspec G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1046s # guint prop_id G_GNUC_UNUSED, 1046s # const GValue *value G_GNUC_UNUSED, 1046s # GParamSpec *pspec G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1046s # const gchar *sender_name G_GNUC_UNUSED, 1046s # const gchar *signal_name, 1046s # GVariant *parameters) 1046s # { 1046s # _ExtendedGDBusSignalInfo *info; 1046s # GVariantIter iter; 1046s # GVariant *child; 1046s # GValue *paramv; 1046s # gsize num_params; 1046s # gsize n; 1046s # guint signal_id; 1046s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1046s # if (info == NULL) 1046s # return; 1046s # num_params = g_variant_n_children (parameters); 1046s # paramv = g_new0 (GValue, num_params + 1); 1046s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_set_object (¶mv[0], proxy); 1046s # g_variant_iter_init (&iter, parameters); 1046s # n = 1; 1046s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1046s # { 1046s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1046s # if (arg_info->use_gvariant) 1046s # { 1046s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1046s # g_value_set_variant (¶mv[n], child); 1046s # n++; 1046s # } 1046s # else 1046s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1046s # g_variant_unref (child); 1046s # } 1046s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_signal_emitv (paramv, signal_id, 0, NULL); 1046s # for (n = 0; n < num_params + 1; n++) 1046s # g_value_unset (¶mv[n]); 1046s # g_free (paramv); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1046s # GVariant *changed_properties, 1046s # const gchar *const *invalidated_properties) 1046s # { 1046s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1046s # guint n; 1046s # const gchar *key; 1046s # GVariantIter *iter; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # g_variant_get (changed_properties, "a{sv}", &iter); 1046s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1046s # { 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1046s # g_datalist_remove_data (&proxy->priv->qdata, key); 1046s # if (info != NULL) 1046s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1046s # } 1046s # g_variant_iter_free (iter); 1046s # for (n = 0; invalidated_properties[n] != NULL; n++) 1046s # { 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1046s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1046s # if (info != NULL) 1046s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1046s # } 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1046s # { 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1046s # #else 1046s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1046s # #endif 1046s # 1046s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1046s # { 1046s # GObjectClass *gobject_class; 1046s # GDBusProxyClass *proxy_class; 1046s # 1046s # gobject_class = G_OBJECT_CLASS (klass); 1046s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1046s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1046s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1046s # 1046s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1046s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1046s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1046s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1046s # #endif 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new: 1046s # * @connection: A #GDBusConnection. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1046s # * @user_data: User data to pass to @callback. 1046s # * 1046s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1046s # * 1046s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1046s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_proxy_new ( 1046s # GDBusConnection *connection, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GAsyncReadyCallback callback, 1046s # gpointer user_data) 1046s # { 1046s # 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); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_finish: 1046s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_finish ( 1046s # GAsyncResult *res, 1046s # GError **error) 1046s # { 1046s # GObject *ret; 1046s # GObject *source_object; 1046s # source_object = g_async_result_get_source_object (res); 1046s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1046s # g_object_unref (source_object); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_sync: 1046s # * @connection: A #GDBusConnection. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1046s # * 1046s # * The calling thread is blocked until a reply is received. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_sync ( 1046s # GDBusConnection *connection, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GError **error) 1046s # { 1046s # GInitable *ret; 1046s # 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); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus: 1046s # * @bus_type: A #GBusType. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: A bus name (well-known or unique). 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1046s # * @user_data: User data to pass to @callback. 1046s # * 1046s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1046s # * 1046s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1046s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_proxy_new_for_bus ( 1046s # GBusType bus_type, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GAsyncReadyCallback callback, 1046s # gpointer user_data) 1046s # { 1046s # 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); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1046s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1046s # GAsyncResult *res, 1046s # GError **error) 1046s # { 1046s # GObject *ret; 1046s # GObject *source_object; 1046s # source_object = g_async_result_get_source_object (res); 1046s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1046s # g_object_unref (source_object); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1046s # * @bus_type: A #GBusType. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: A bus name (well-known or unique). 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1046s # * 1046s # * The calling thread is blocked until a reply is received. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1046s # GBusType bus_type, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GError **error) 1046s # { 1046s # GInitable *ret; 1046s # 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); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # 1046s # /* ------------------------------------------------------------------------ */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceSkeleton: 1046s # * 1046s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceSkeletonClass: 1046s # * @parent_class: The parent class. 1046s # * 1046s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1046s # */ 1046s # 1046s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1046s # { 1046s # GValue *properties; 1046s # GList *changed_properties; 1046s # GSource *changed_properties_idle_source; 1046s # GMainContext *context; 1046s # GMutex lock; 1046s # }; 1046s # 1046s # static void 1046s # _org_project_signaling_iface_skeleton_handle_method_call ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name, 1046s # const gchar *method_name, 1046s # GVariant *parameters, 1046s # GDBusMethodInvocation *invocation, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # _ExtendedGDBusMethodInfo *info; 1046s # GVariantIter iter; 1046s # GVariant *child; 1046s # GValue *paramv; 1046s # gsize num_params; 1046s # guint num_extra; 1046s # gsize n; 1046s # guint signal_id; 1046s # GValue return_value = G_VALUE_INIT; 1046s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1046s # g_assert (info != NULL); 1046s # num_params = g_variant_n_children (parameters); 1046s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1046s # n = 0; 1046s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_set_object (¶mv[n++], skeleton); 1046s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1046s # g_value_set_object (¶mv[n++], invocation); 1046s # if (info->pass_fdlist) 1046s # { 1046s # #ifdef G_OS_UNIX 1046s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1046s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1046s # #else 1046s # g_assert_not_reached (); 1046s # #endif 1046s # } 1046s # g_variant_iter_init (&iter, parameters); 1046s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1046s # { 1046s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1046s # if (arg_info->use_gvariant) 1046s # { 1046s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1046s # g_value_set_variant (¶mv[n], child); 1046s # n++; 1046s # } 1046s # else 1046s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1046s # g_variant_unref (child); 1046s # } 1046s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1046s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1046s # if (!g_value_get_boolean (&return_value)) 1046s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1046s # g_value_unset (&return_value); 1046s # for (n = 0; n < num_params + num_extra; n++) 1046s # g_value_unset (¶mv[n]); 1046s # g_free (paramv); 1046s # } 1046s # 1046s # static GVariant * 1046s # _org_project_signaling_iface_skeleton_handle_get_property ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name G_GNUC_UNUSED, 1046s # const gchar *property_name, 1046s # GError **error, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # GValue value = G_VALUE_INIT; 1046s # GParamSpec *pspec; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # GVariant *ret; 1046s # ret = NULL; 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1046s # g_assert (info != NULL); 1046s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1046s # if (pspec == NULL) 1046s # { 1046s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1046s # } 1046s # else 1046s # { 1046s # g_value_init (&value, pspec->value_type); 1046s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1046s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1046s # g_value_unset (&value); 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # static gboolean 1046s # _org_project_signaling_iface_skeleton_handle_set_property ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name G_GNUC_UNUSED, 1046s # const gchar *property_name, 1046s # GVariant *variant, 1046s # GError **error, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # GValue value = G_VALUE_INIT; 1046s # GParamSpec *pspec; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # gboolean ret; 1046s # ret = FALSE; 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1046s # g_assert (info != NULL); 1046s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1046s # if (pspec == NULL) 1046s # { 1046s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1046s # } 1046s # else 1046s # { 1046s # if (info->use_gvariant) 1046s # g_value_set_variant (&value, variant); 1046s # else 1046s # g_dbus_gvariant_to_gvalue (variant, &value); 1046s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1046s # g_value_unset (&value); 1046s # ret = TRUE; 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1046s # { 1046s # _org_project_signaling_iface_skeleton_handle_method_call, 1046s # _org_project_signaling_iface_skeleton_handle_get_property, 1046s # _org_project_signaling_iface_skeleton_handle_set_property, 1046s # {NULL} 1046s # }; 1046s # 1046s # static GDBusInterfaceInfo * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1046s # { 1046s # return org_project_signaling_iface_interface_info (); 1046s # } 1046s # 1046s # static GDBusInterfaceVTable * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1046s # { 1046s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1046s # } 1046s # 1046s # static GVariant * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1046s # 1046s # GVariantBuilder builder; 1046s # guint n; 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1046s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1046s # #else 1046s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1046s # #endif 1046s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1046s # goto out; 1046s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1046s # { 1046s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1046s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1046s # { 1046s # GVariant *value; 1046s # 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); 1046s # if (value != NULL) 1046s # { 1046s # g_variant_take_ref (value); 1046s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1046s # g_variant_unref (value); 1046s # } 1046s # } 1046s # } 1046s # out: 1046s # return g_variant_builder_end (&builder); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # _org_project_signaling_iface_on_signal_simple_signal ( 1046s # OrgProjectSignalingIface *object) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # 1046s # GList *connections, *l; 1046s # GVariant *signal_variant; 1046s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1046s # 1046s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1046s # for (l = connections; l != NULL; l = l->next) 1046s # { 1046s # GDBusConnection *connection = l->data; 1046s # g_dbus_connection_emit_signal (connection, 1046s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1046s # signal_variant, NULL); 1046s # } 1046s # g_variant_unref (signal_variant); 1046s # g_list_free_full (connections, g_object_unref); 1046s # } 1046s # 1046s # static void 1046s # _org_project_signaling_iface_on_signal_single_arg_signal_as ( 1046s # OrgProjectSignalingIface *object, 1046s # const gchar *const *arg_arg_as) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # 1046s # GList *connections, *l; 1046s # GVariant *signal_variant; 1046s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1046s # 1046s # signal_variant = g_variant_ref_sink (g_variant_new ("(^as)", 1046s # arg_arg_as)); 1046s # for (l = connections; l != NULL; l = l->next) 1046s # { 1046s # GDBusConnection *connection = l->data; 1046s # g_dbus_connection_emit_signal (connection, 1046s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAs", 1046s # signal_variant, NULL); 1046s # } 1046s # g_variant_unref (signal_variant); 1046s # g_list_free_full (connections, g_object_unref); 1046s # } 1046s # 1046s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1046s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1046s # 1046s # #else 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1046s # 1046s # #endif 1046s # static void 1046s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1046s # if (skeleton->priv->changed_properties_idle_source != NULL) 1046s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1046s # g_main_context_unref (skeleton->priv->context); 1046s # g_mutex_clear (&skeleton->priv->lock); 1046s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1046s # { 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1046s # #else 1046s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1046s # #endif 1046s # 1046s # g_mutex_init (&skeleton->priv->lock); 1046s # skeleton->priv->context = g_main_context_ref_thread_default (); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1046s # { 1046s # GObjectClass *gobject_class; 1046s # GDBusInterfaceSkeletonClass *skeleton_class; 1046s # 1046s # gobject_class = G_OBJECT_CLASS (klass); 1046s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1046s # 1046s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1046s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1046s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1046s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1046s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1046s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1046s # #endif 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1046s # { 1046s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1046s # iface->single_arg_signal_as = _org_project_signaling_iface_on_signal_single_arg_signal_as; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_skeleton_new: 1046s # * 1046s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_skeleton_new (void) 1046s # { 1046s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1046s # } 1046s # Error: 1046s # 1046s # /tmp/tmppt74if37/tmpkub8838n.xml: 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppt74if37/tmpkub8838n.xml', '--output', '-', '--body'] 1046s # Return code: 0 1046s # Output: 1046s # /* 1046s # * This file is generated by gdbus-codegen, do not modify it. 1046s # * 1046s # * The license of this code is the same as for the D-Bus interface description 1046s # * it was derived from. Note that it links to GLib, so must comply with the 1046s # * LGPL linking clauses. 1046s # */ 1046s # 1046s # #ifdef HAVE_CONFIG_H 1046s # # include "config.h" 1046s # #endif 1046s # 1046s # #include 1046s # #ifdef G_OS_UNIX 1046s # # include 1046s # #endif 1046s # 1046s # #ifdef G_ENABLE_DEBUG 1046s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1046s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1046s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1046s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1046s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1046s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1046s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1046s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1046s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1046s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1046s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1046s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1046s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1046s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1046s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1046s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1046s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1046s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1046s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1046s # #else /* !G_ENABLE_DEBUG */ 1046s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1046s # * Do not access GValues directly in your code. Instead, use the 1046s # * g_value_get_*() functions 1046s # */ 1046s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1046s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1046s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1046s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1046s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1046s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1046s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1046s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1046s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1046s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1046s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1046s # #endif /* !G_ENABLE_DEBUG */ 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusArgInfo parent_struct; 1046s # gboolean use_gvariant; 1046s # } _ExtendedGDBusArgInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusMethodInfo parent_struct; 1046s # const gchar *signal_name; 1046s # gboolean pass_fdlist; 1046s # } _ExtendedGDBusMethodInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusSignalInfo parent_struct; 1046s # const gchar *signal_name; 1046s # } _ExtendedGDBusSignalInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusPropertyInfo parent_struct; 1046s # const gchar *hyphen_name; 1046s # guint use_gvariant : 1; 1046s # guint emits_changed_signal : 1; 1046s # } _ExtendedGDBusPropertyInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusInterfaceInfo parent_struct; 1046s # const gchar *hyphen_name; 1046s # } _ExtendedGDBusInterfaceInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # const _ExtendedGDBusPropertyInfo *info; 1046s # guint prop_id; 1046s # GValue orig_value; /* the value before the change */ 1046s # } ChangedProperty; 1046s # 1046s # static void 1046s # _changed_property_free (ChangedProperty *data) 1046s # { 1046s # g_value_unset (&data->orig_value); 1046s # g_free (data); 1046s # } 1046s # 1046s # static gboolean 1046s # _g_strv_equal0 (gchar **a, gchar **b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # guint n; 1046s # if (a == NULL && b == NULL) 1046s # { 1046s # ret = TRUE; 1046s # goto out; 1046s # } 1046s # if (a == NULL || b == NULL) 1046s # goto out; 1046s # if (g_strv_length (a) != g_strv_length (b)) 1046s # goto out; 1046s # for (n = 0; a[n] != NULL; n++) 1046s # if (g_strcmp0 (a[n], b[n]) != 0) 1046s # goto out; 1046s # ret = TRUE; 1046s # out: 1046s # return ret; 1046s # } 1046s # 1046s # static gboolean 1046s # _g_variant_equal0 (GVariant *a, GVariant *b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # if (a == NULL && b == NULL) 1046s # { 1046s # ret = TRUE; 1046s # goto out; 1046s # } 1046s # if (a == NULL || b == NULL) 1046s # goto out; 1046s # ret = g_variant_equal (a, b); 1046s # out: 1046s # return ret; 1046s # } 1046s # 1046s # G_GNUC_UNUSED static gboolean 1046s # _g_value_equal (const GValue *a, const GValue *b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1046s # switch (G_VALUE_TYPE (a)) 1046s # { 1046s # case G_TYPE_BOOLEAN: 1046s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1046s # break; 1046s # case G_TYPE_UCHAR: 1046s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1046s # break; 1046s # case G_TYPE_INT: 1046s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1046s # break; 1046s # case G_TYPE_UINT: 1046s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1046s # break; 1046s # case G_TYPE_INT64: 1046s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1046s # break; 1046s # case G_TYPE_UINT64: 1046s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1046s # break; 1046s # case G_TYPE_DOUBLE: 1046s # { 1046s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1046s # gdouble da = g_value_get_double (a); 1046s # gdouble db = g_value_get_double (b); 1046s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1046s # } 1046s # break; 1046s # case G_TYPE_STRING: 1046s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1046s # break; 1046s # case G_TYPE_VARIANT: 1046s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1046s # break; 1046s # default: 1046s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1046s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1046s # else 1046s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1046s # break; 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # /* ------------------------------------------------------------------------ 1046s # * Code for interface org.project.SignalingIface 1046s # * ------------------------------------------------------------------------ 1046s # */ 1046s # 1046s # /** 1046s # * SECTION:OrgProjectSignalingIface 1046s # * @title: OrgProjectSignalingIface 1046s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1046s # * 1046s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1046s # */ 1046s # 1046s # enum 1046s # { 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1046s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO, 1046s # }; 1046s # 1046s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1046s # 1046s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1046s # 1046s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "SimpleSignal", 1046s # NULL, 1046s # NULL 1046s # }, 1046s # "simple-signal" 1046s # }; 1046s # 1046s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_arg_ao = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "arg_ao", 1046s # (gchar *) "ao", 1046s # NULL 1046s # }, 1046s # FALSE 1046s # }; 1046s # 1046s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers[] = 1046s # { 1046s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_arg_ao.parent_struct, 1046s # NULL 1046s # }; 1046s # 1046s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "SingleArgSignalAo", 1046s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers, 1046s # NULL 1046s # }, 1046s # "single-arg-signal-ao" 1046s # }; 1046s # 1046s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1046s # { 1046s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1046s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao.parent_struct, 1046s # NULL 1046s # }; 1046s # 1046s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "org.project.SignalingIface", 1046s # NULL, 1046s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1046s # NULL, 1046s # NULL 1046s # }, 1046s # "org-project-signaling-iface", 1046s # }; 1046s # 1046s # 1046s # /** 1046s # * org_project_signaling_iface_interface_info: 1046s # * 1046s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1046s # * 1046s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1046s # */ 1046s # GDBusInterfaceInfo * 1046s # org_project_signaling_iface_interface_info (void) 1046s # { 1046s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_override_properties: 1046s # * @klass: The class structure for a #GObject derived class. 1046s # * @property_id_begin: The property id to assign to the first overridden property. 1046s # * 1046s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1046s # * The properties are overridden in the order they are defined. 1046s # * 1046s # * Returns: The last property id. 1046s # */ 1046s # guint 1046s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1046s # { 1046s # return property_id_begin - 1; 1046s # } 1046s # 1046s # 1046s # inline static void 1046s # org_project_signaling_iface_signal_marshal_simple_signal ( 1046s # GClosure *closure, 1046s # GValue *return_value, 1046s # unsigned int n_param_values, 1046s # const GValue *param_values, 1046s # void *invocation_hint, 1046s # void *marshal_data) 1046s # { 1046s # g_cclosure_marshal_VOID__VOID (closure, 1046s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1046s # } 1046s # 1046s # inline static void 1046s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao ( 1046s # GClosure *closure, 1046s # GValue *return_value, 1046s # unsigned int n_param_values, 1046s # const GValue *param_values, 1046s # void *invocation_hint, 1046s # void *marshal_data) 1046s # { 1046s # g_cclosure_marshal_VOID__BOXED (closure, 1046s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1046s # } 1046s # 1046s # 1046s # /** 1046s # * OrgProjectSignalingIface: 1046s # * 1046s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceIface: 1046s # * @parent_iface: The parent interface. 1046s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1046s # * @single_arg_signal_ao: Handler for the #OrgProjectSignalingIface::single-arg-signal-ao signal. 1046s # * 1046s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1046s # */ 1046s # 1046s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1046s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1046s # 1046s # static void 1046s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1046s # { 1046s # /* GObject signals for received D-Bus signals: */ 1046s # /** 1046s # * OrgProjectSignalingIface::simple-signal: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * 1046s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1046s # * 1046s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1046s # */ 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1046s # g_signal_new ("simple-signal", 1046s # G_TYPE_FROM_INTERFACE (iface), 1046s # G_SIGNAL_RUN_LAST, 1046s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1046s # NULL, 1046s # NULL, 1046s # org_project_signaling_iface_signal_marshal_simple_signal, 1046s # G_TYPE_NONE, 1046s # 0); 1046s # 1046s # /** 1046s # * OrgProjectSignalingIface::single-arg-signal-ao: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * @arg_arg_ao: Argument. 1046s # * 1046s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAo" is received. 1046s # * 1046s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1046s # */ 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO] = 1046s # g_signal_new ("single-arg-signal-ao", 1046s # G_TYPE_FROM_INTERFACE (iface), 1046s # G_SIGNAL_RUN_LAST, 1046s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ao), 1046s # NULL, 1046s # NULL, 1046s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao, 1046s # G_TYPE_NONE, 1046s # 1, G_TYPE_STRV); 1046s # 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_emit_simple_signal: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * 1046s # * Emits the "SimpleSignal" D-Bus signal. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_emit_simple_signal ( 1046s # OrgProjectSignalingIface *object) 1046s # { 1046s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_emit_single_arg_signal_ao: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * @arg_arg_ao: Argument to pass with the signal. 1046s # * 1046s # * Emits the "SingleArgSignalAo" D-Bus signal. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_emit_single_arg_signal_ao ( 1046s # OrgProjectSignalingIface *object, 1046s # const gchar *const *arg_arg_ao) 1046s # { 1046s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO], 0, arg_arg_ao); 1046s # } 1046s # 1046s # /* ------------------------------------------------------------------------ */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceProxy: 1046s # * 1046s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceProxyClass: 1046s # * @parent_class: The parent class. 1046s # * 1046s # * Class structure for #OrgProjectSignalingIfaceProxy. 1046s # */ 1046s # 1046s # struct _OrgProjectSignalingIfaceProxyPrivate 1046s # { 1046s # GData *qdata; 1046s # }; 1046s # 1046s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1046s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1046s # 1046s # #else 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1046s # 1046s # #endif 1046s # static void 1046s # org_project_signaling_iface_proxy_finalize (GObject *object) 1046s # { 1046s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1046s # g_datalist_clear (&proxy->priv->qdata); 1046s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1046s # guint prop_id G_GNUC_UNUSED, 1046s # GValue *value G_GNUC_UNUSED, 1046s # GParamSpec *pspec G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1046s # guint prop_id G_GNUC_UNUSED, 1046s # const GValue *value G_GNUC_UNUSED, 1046s # GParamSpec *pspec G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1046s # const gchar *sender_name G_GNUC_UNUSED, 1046s # const gchar *signal_name, 1046s # GVariant *parameters) 1046s # { 1046s # _ExtendedGDBusSignalInfo *info; 1046s # GVariantIter iter; 1046s # GVariant *child; 1046s # GValue *paramv; 1046s # gsize num_params; 1046s # gsize n; 1046s # guint signal_id; 1046s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1046s # if (info == NULL) 1046s # return; 1046s # num_params = g_variant_n_children (parameters); 1046s # paramv = g_new0 (GValue, num_params + 1); 1046s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_set_object (¶mv[0], proxy); 1046s # g_variant_iter_init (&iter, parameters); 1046s # n = 1; 1046s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1046s # { 1046s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1046s # if (arg_info->use_gvariant) 1046s # { 1046s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1046s # g_value_set_variant (¶mv[n], child); 1046s # n++; 1046s # } 1046s # else 1046s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1046s # g_variant_unref (child); 1046s # } 1046s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_signal_emitv (paramv, signal_id, 0, NULL); 1046s # for (n = 0; n < num_params + 1; n++) 1046s # g_value_unset (¶mv[n]); 1046s # g_free (paramv); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1046s # GVariant *changed_properties, 1046s # const gchar *const *invalidated_properties) 1046s # { 1046s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1046s # guint n; 1046s # const gchar *key; 1046s # GVariantIter *iter; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # g_variant_get (changed_properties, "a{sv}", &iter); 1046s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1046s # { 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1046s # g_datalist_remove_data (&proxy->priv->qdata, key); 1046s # if (info != NULL) 1046s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1046s # } 1046s # g_variant_iter_free (iter); 1046s # for (n = 0; invalidated_properties[n] != NULL; n++) 1046s # { 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1046s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1046s # if (info != NULL) 1046s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1046s # } 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1046s # { 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1046s # #else 1046s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1046s # #endif 1046s # 1046s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1046s # { 1046s # GObjectClass *gobject_class; 1046s # GDBusProxyClass *proxy_class; 1046s # 1046s # gobject_class = G_OBJECT_CLASS (klass); 1046s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1046s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1046s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1046s # 1046s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1046s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1046s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1046s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1046s # #endif 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new: 1046s # * @connection: A #GDBusConnection. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1046s # * @user_data: User data to pass to @callback. 1046s # * 1046s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1046s # * 1046s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1046s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_proxy_new ( 1046s # GDBusConnection *connection, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GAsyncReadyCallback callback, 1046s # gpointer user_data) 1046s # { 1046s # 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); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_finish: 1046s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_finish ( 1046s # GAsyncResult *res, 1046s # GError **error) 1046s # { 1046s # GObject *ret; 1046s # GObject *source_object; 1046s # source_object = g_async_result_get_source_object (res); 1046s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1046s # g_object_unref (source_object); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_sync: 1046s # * @connection: A #GDBusConnection. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1046s # * 1046s # * The calling thread is blocked until a reply is received. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_sync ( 1046s # GDBusConnection *connection, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GError **error) 1046s # { 1046s # GInitable *ret; 1046s # 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); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus: 1046s # * @bus_type: A #GBusType. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: A bus name (well-known or unique). 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1046s # * @user_data: User data to pass to @callback. 1046s # * 1046s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1046s # * 1046s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1046s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_proxy_new_for_bus ( 1046s # GBusType bus_type, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GAsyncReadyCallback callback, 1046s # gpointer user_data) 1046s # { 1046s # 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); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1046s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1046s # GAsyncResult *res, 1046s # GError **error) 1046s # { 1046s # GObject *ret; 1046s # GObject *source_object; 1046s # source_object = g_async_result_get_source_object (res); 1046s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1046s # g_object_unref (source_object); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1046s # * @bus_type: A #GBusType. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: A bus name (well-known or unique). 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1046s # * 1046s # * The calling thread is blocked until a reply is received. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1046s # GBusType bus_type, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GError **error) 1046s # { 1046s # GInitable *ret; 1046s # 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); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # 1046s # /* ------------------------------------------------------------------------ */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceSkeleton: 1046s # * 1046s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceSkeletonClass: 1046s # * @parent_class: The parent class. 1046s # * 1046s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1046s # */ 1046s # 1046s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1046s # { 1046s # GValue *properties; 1046s # GList *changed_properties; 1046s # GSource *changed_properties_idle_source; 1046s # GMainContext *context; 1046s # GMutex lock; 1046s # }; 1046s # 1046s # static void 1046s # _org_project_signaling_iface_skeleton_handle_method_call ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name, 1046s # const gchar *method_name, 1046s # GVariant *parameters, 1046s # GDBusMethodInvocation *invocation, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # _ExtendedGDBusMethodInfo *info; 1046s # GVariantIter iter; 1046s # GVariant *child; 1046s # GValue *paramv; 1046s # gsize num_params; 1046s # guint num_extra; 1046s # gsize n; 1046s # guint signal_id; 1046s # GValue return_value = G_VALUE_INIT; 1046s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1046s # g_assert (info != NULL); 1046s # num_params = g_variant_n_children (parameters); 1046s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1046s # n = 0; 1046s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_set_object (¶mv[n++], skeleton); 1046s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1046s # g_value_set_object (¶mv[n++], invocation); 1046s # if (info->pass_fdlist) 1046s # { 1046s # #ifdef G_OS_UNIX 1046s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1046s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1046s # #else 1046s # g_assert_not_reached (); 1046s # #endif 1046s # } 1046s # g_variant_iter_init (&iter, parameters); 1046s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1046s # { 1046s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1046s # if (arg_info->use_gvariant) 1046s # { 1046s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1046s # g_value_set_variant (¶mv[n], child); 1046s # n++; 1046s # } 1046s # else 1046s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1046s # g_variant_unref (child); 1046s # } 1046s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1046s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1046s # if (!g_value_get_boolean (&return_value)) 1046s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1046s # g_value_unset (&return_value); 1046s # for (n = 0; n < num_params + num_extra; n++) 1046s # g_value_unset (¶mv[n]); 1046s # g_free (paramv); 1046s # } 1046s # 1046s # static GVariant * 1046s # _org_project_signaling_iface_skeleton_handle_get_property ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name G_GNUC_UNUSED, 1046s # const gchar *property_name, 1046s # GError **error, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # GValue value = G_VALUE_INIT; 1046s # GParamSpec *pspec; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # GVariant *ret; 1046s # ret = NULL; 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1046s # g_assert (info != NULL); 1046s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1046s # if (pspec == NULL) 1046s # { 1046s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1046s # } 1046s # else 1046s # { 1046s # g_value_init (&value, pspec->value_type); 1046s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1046s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1046s # g_value_unset (&value); 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # static gboolean 1046s # _org_project_signaling_iface_skeleton_handle_set_property ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name G_GNUC_UNUSED, 1046s # const gchar *property_name, 1046s # GVariant *variant, 1046s # GError **error, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # GValue value = G_VALUE_INIT; 1046s # GParamSpec *pspec; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # gboolean ret; 1046s # ret = FALSE; 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1046s # g_assert (info != NULL); 1046s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1046s # if (pspec == NULL) 1046s # { 1046s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1046s # } 1046s # else 1046s # { 1046s # if (info->use_gvariant) 1046s # g_value_set_variant (&value, variant); 1046s # else 1046s # g_dbus_gvariant_to_gvalue (variant, &value); 1046s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1046s # g_value_unset (&value); 1046s # ret = TRUE; 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1046s # { 1046s # _org_project_signaling_iface_skeleton_handle_method_call, 1046s # _org_project_signaling_iface_skeleton_handle_get_property, 1046s # _org_project_signaling_iface_skeleton_handle_set_property, 1046s # {NULL} 1046s # }; 1046s # 1046s # static GDBusInterfaceInfo * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1046s # { 1046s # return org_project_signaling_iface_interface_info (); 1046s # } 1046s # 1046s # static GDBusInterfaceVTable * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1046s # { 1046s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1046s # } 1046s # 1046s # static GVariant * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1046s # 1046s # GVariantBuilder builder; 1046s # guint n; 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1046s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1046s # #else 1046s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1046s # #endif 1046s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1046s # goto out; 1046s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1046s # { 1046s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1046s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1046s # { 1046s # GVariant *value; 1046s # 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); 1046s # if (value != NULL) 1046s # { 1046s # g_variant_take_ref (value); 1046s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1046s # g_variant_unref (value); 1046s # } 1046s # } 1046s # } 1046s # out: 1046s # return g_variant_builder_end (&builder); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # _org_project_signaling_iface_on_signal_simple_signal ( 1046s # OrgProjectSignalingIface *object) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # 1046s # GList *connections, *l; 1046s # GVariant *signal_variant; 1046s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1046s # 1046s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1046s # for (l = connections; l != NULL; l = l->next) 1046s # { 1046s # GDBusConnection *connection = l->data; 1046s # g_dbus_connection_emit_signal (connection, 1046s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1046s # signal_variant, NULL); 1046s # } 1046s # g_variant_unref (signal_variant); 1046s # g_list_free_full (connections, g_object_unref); 1046s # } 1046s # 1046s # static void 1046s # _org_project_signaling_iface_on_signal_single_arg_signal_ao ( 1046s # OrgProjectSignalingIface *object, 1046s # const gchar *const *arg_arg_ao) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # 1046s # GList *connections, *l; 1046s # GVariant *signal_variant; 1046s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1046s # 1046s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ao)", 1046s # arg_arg_ao)); 1046s # for (l = connections; l != NULL; l = l->next) 1046s # { 1046s # GDBusConnection *connection = l->data; 1046s # g_dbus_connection_emit_signal (connection, 1046s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAo", 1046s # signal_variant, NULL); 1046s # } 1046s # g_variant_unref (signal_variant); 1046s # g_list_free_full (connections, g_object_unref); 1046s # } 1046s # 1046s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1046s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1046s # 1046s # #else 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1046s # 1046s # #endif 1046s # static void 1046s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1046s # if (skeleton->priv->changed_properties_idle_source != NULL) 1046s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1046s # g_main_context_unref (skeleton->priv->context); 1046s # g_mutex_clear (&skeleton->priv->lock); 1046s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1046s # { 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1046s # #else 1046s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1046s # #endif 1046s # 1046s # g_mutex_init (&skeleton->priv->lock); 1046s # skeleton->priv->context = g_main_context_ref_thread_default (); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1046s # { 1046s # GObjectClass *gobject_class; 1046s # GDBusInterfaceSkeletonClass *skeleton_class; 1046s # 1046s # gobject_class = G_OBJECT_CLASS (klass); 1046s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1046s # 1046s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1046s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1046s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1046s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1046s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1046s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1046s # #endif 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1046s # { 1046s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1046s # iface->single_arg_signal_ao = _org_project_signaling_iface_on_signal_single_arg_signal_ao; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_skeleton_new: 1046s # * 1046s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_skeleton_new (void) 1046s # { 1046s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1046s # } 1046s # Error: 1046s # 1046s # /tmp/tmppt74if37/tmpcipbd5ak.xml: 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppt74if37/tmpcipbd5ak.xml', '--output', '-', '--body'] 1046s # Return code: 0 1046s # Output: 1046s # /* 1046s # * This file is generated by gdbus-codegen, do not modify it. 1046s # * 1046s # * The license of this code is the same as for the D-Bus interface description 1046s # * it was derived from. Note that it links to GLib, so must comply with the 1046s # * LGPL linking clauses. 1046s # */ 1046s # 1046s # #ifdef HAVE_CONFIG_H 1046s # # include "config.h" 1046s # #endif 1046s # 1046s # #include 1046s # #ifdef G_OS_UNIX 1046s # # include 1046s # #endif 1046s # 1046s # #ifdef G_ENABLE_DEBUG 1046s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1046s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1046s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1046s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1046s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1046s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1046s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1046s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1046s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1046s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1046s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1046s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1046s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1046s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1046s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1046s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1046s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1046s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1046s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1046s # #else /* !G_ENABLE_DEBUG */ 1046s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1046s # * Do not access GValues directly in your code. Instead, use the 1046s # * g_value_get_*() functions 1046s # */ 1046s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1046s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1046s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1046s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1046s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1046s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1046s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1046s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1046s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1046s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1046s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1046s # #endif /* !G_ENABLE_DEBUG */ 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusArgInfo parent_struct; 1046s # gboolean use_gvariant; 1046s # } _ExtendedGDBusArgInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusMethodInfo parent_struct; 1046s # const gchar *signal_name; 1046s # gboolean pass_fdlist; 1046s # } _ExtendedGDBusMethodInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusSignalInfo parent_struct; 1046s # const gchar *signal_name; 1046s # } _ExtendedGDBusSignalInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusPropertyInfo parent_struct; 1046s # const gchar *hyphen_name; 1046s # guint use_gvariant : 1; 1046s # guint emits_changed_signal : 1; 1046s # } _ExtendedGDBusPropertyInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusInterfaceInfo parent_struct; 1046s # const gchar *hyphen_name; 1046s # } _ExtendedGDBusInterfaceInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # const _ExtendedGDBusPropertyInfo *info; 1046s # guint prop_id; 1046s # GValue orig_value; /* the value before the change */ 1046s # } ChangedProperty; 1046s # 1046s # static void 1046s # _changed_property_free (ChangedProperty *data) 1046s # { 1046s # g_value_unset (&data->orig_value); 1046s # g_free (data); 1046s # } 1046s # 1046s # static gboolean 1046s # _g_strv_equal0 (gchar **a, gchar **b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # guint n; 1046s # if (a == NULL && b == NULL) 1046s # { 1046s # ret = TRUE; 1046s # goto out; 1046s # } 1046s # if (a == NULL || b == NULL) 1046s # goto out; 1046s # if (g_strv_length (a) != g_strv_length (b)) 1046s # goto out; 1046s # for (n = 0; a[n] != NULL; n++) 1046s # if (g_strcmp0 (a[n], b[n]) != 0) 1046s # goto out; 1046s # ret = TRUE; 1046s # out: 1046s # return ret; 1046s # } 1046s # 1046s # static gboolean 1046s # _g_variant_equal0 (GVariant *a, GVariant *b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # if (a == NULL && b == NULL) 1046s # { 1046s # ret = TRUE; 1046s # goto out; 1046s # } 1046s # if (a == NULL || b == NULL) 1046s # goto out; 1046s # ret = g_variant_equal (a, b); 1046s # out: 1046s # return ret; 1046s # } 1046s # 1046s # G_GNUC_UNUSED static gboolean 1046s # _g_value_equal (const GValue *a, const GValue *b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1046s # switch (G_VALUE_TYPE (a)) 1046s # { 1046s # case G_TYPE_BOOLEAN: 1046s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1046s # break; 1046s # case G_TYPE_UCHAR: 1046s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1046s # break; 1046s # case G_TYPE_INT: 1046s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1046s # break; 1046s # case G_TYPE_UINT: 1046s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1046s # break; 1046s # case G_TYPE_INT64: 1046s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1046s # break; 1046s # case G_TYPE_UINT64: 1046s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1046s # break; 1046s # case G_TYPE_DOUBLE: 1046s # { 1046s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1046s # gdouble da = g_value_get_double (a); 1046s # gdouble db = g_value_get_double (b); 1046s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1046s # } 1046s # break; 1046s # case G_TYPE_STRING: 1046s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1046s # break; 1046s # case G_TYPE_VARIANT: 1046s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1046s # break; 1046s # default: 1046s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1046s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1046s # else 1046s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1046s # break; 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # /* ------------------------------------------------------------------------ 1046s # * Code for interface org.project.SignalingIface 1046s # * ------------------------------------------------------------------------ 1046s # */ 1046s # 1046s # /** 1046s # * SECTION:OrgProjectSignalingIface 1046s # * @title: OrgProjectSignalingIface 1046s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1046s # * 1046s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1046s # */ 1046s # 1046s # enum 1046s # { 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1046s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY, 1046s # }; 1046s # 1046s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1046s # 1046s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1046s # 1046s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "SimpleSignal", 1046s # NULL, 1046s # NULL 1046s # }, 1046s # "simple-signal" 1046s # }; 1046s # 1046s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_arg_aay = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "arg_aay", 1046s # (gchar *) "aay", 1046s # NULL 1046s # }, 1046s # FALSE 1046s # }; 1046s # 1046s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers[] = 1046s # { 1046s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_arg_aay.parent_struct, 1046s # NULL 1046s # }; 1046s # 1046s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "SingleArgSignalAay", 1046s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers, 1046s # NULL 1046s # }, 1046s # "single-arg-signal-aay" 1046s # }; 1046s # 1046s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1046s # { 1046s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1046s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay.parent_struct, 1046s # NULL 1046s # }; 1046s # 1046s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "org.project.SignalingIface", 1046s # NULL, 1046s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1046s # NULL, 1046s # NULL 1046s # }, 1046s # "org-project-signaling-iface", 1046s # }; 1046s # 1046s # 1046s # /** 1046s # * org_project_signaling_iface_interface_info: 1046s # * 1046s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1046s # * 1046s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1046s # */ 1046s # GDBusInterfaceInfo * 1046s # org_project_signaling_iface_interface_info (void) 1046s # { 1046s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_override_properties: 1046s # * @klass: The class structure for a #GObject derived class. 1046s # * @property_id_begin: The property id to assign to the first overridden property. 1046s # * 1046s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1046s # * The properties are overridden in the order they are defined. 1046s # * 1046s # * Returns: The last property id. 1046s # */ 1046s # guint 1046s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1046s # { 1046s # return property_id_begin - 1; 1046s # } 1046s # 1046s # 1046s # inline static void 1046s # org_project_signaling_iface_signal_marshal_simple_signal ( 1046s # GClosure *closure, 1046s # GValue *return_value, 1046s # unsigned int n_param_values, 1046s # const GValue *param_values, 1046s # void *invocation_hint, 1046s # void *marshal_data) 1046s # { 1046s # g_cclosure_marshal_VOID__VOID (closure, 1046s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1046s # } 1046s # 1046s # inline static void 1046s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay ( 1046s # GClosure *closure, 1046s # GValue *return_value, 1046s # unsigned int n_param_values, 1046s # const GValue *param_values, 1046s # void *invocation_hint, 1046s # void *marshal_data) 1046s # { 1046s # g_cclosure_marshal_VOID__BOXED (closure, 1046s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1046s # } 1046s # 1046s # 1046s # /** 1046s # * OrgProjectSignalingIface: 1046s # * 1046s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceIface: 1046s # * @parent_iface: The parent interface. 1046s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1046s # * @single_arg_signal_aay: Handler for the #OrgProjectSignalingIface::single-arg-signal-aay signal. 1046s # * 1046s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1046s # */ 1046s # 1046s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1046s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1046s # 1046s # static void 1046s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1046s # { 1046s # /* GObject signals for received D-Bus signals: */ 1046s # /** 1046s # * OrgProjectSignalingIface::simple-signal: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * 1046s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1046s # * 1046s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1046s # */ 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1046s # g_signal_new ("simple-signal", 1046s # G_TYPE_FROM_INTERFACE (iface), 1046s # G_SIGNAL_RUN_LAST, 1046s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1046s # NULL, 1046s # NULL, 1046s # org_project_signaling_iface_signal_marshal_simple_signal, 1046s # G_TYPE_NONE, 1046s # 0); 1046s # 1046s # /** 1046s # * OrgProjectSignalingIface::single-arg-signal-aay: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * @arg_arg_aay: Argument. 1046s # * 1046s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAay" is received. 1046s # * 1046s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1046s # */ 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY] = 1046s # g_signal_new ("single-arg-signal-aay", 1046s # G_TYPE_FROM_INTERFACE (iface), 1046s # G_SIGNAL_RUN_LAST, 1046s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_aay), 1046s # NULL, 1046s # NULL, 1046s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay, 1046s # G_TYPE_NONE, 1046s # 1, G_TYPE_STRV); 1046s # 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_emit_simple_signal: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * 1046s # * Emits the "SimpleSignal" D-Bus signal. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_emit_simple_signal ( 1046s # OrgProjectSignalingIface *object) 1046s # { 1046s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_emit_single_arg_signal_aay: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * @arg_arg_aay: Argument to pass with the signal. 1046s # * 1046s # * Emits the "SingleArgSignalAay" D-Bus signal. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_emit_single_arg_signal_aay ( 1046s # OrgProjectSignalingIface *object, 1046s # const gchar *const *arg_arg_aay) 1046s # { 1046s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY], 0, arg_arg_aay); 1046s # } 1046s # 1046s # /* ------------------------------------------------------------------------ */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceProxy: 1046s # * 1046s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceProxyClass: 1046s # * @parent_class: The parent class. 1046s # * 1046s # * Class structure for #OrgProjectSignalingIfaceProxy. 1046s # */ 1046s # 1046s # struct _OrgProjectSignalingIfaceProxyPrivate 1046s # { 1046s # GData *qdata; 1046s # }; 1046s # 1046s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1046s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1046s # 1046s # #else 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1046s # 1046s # #endif 1046s # static void 1046s # org_project_signaling_iface_proxy_finalize (GObject *object) 1046s # { 1046s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1046s # g_datalist_clear (&proxy->priv->qdata); 1046s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1046s # guint prop_id G_GNUC_UNUSED, 1046s # GValue *value G_GNUC_UNUSED, 1046s # GParamSpec *pspec G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1046s # guint prop_id G_GNUC_UNUSED, 1046s # const GValue *value G_GNUC_UNUSED, 1046s # GParamSpec *pspec G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1046s # const gchar *sender_name G_GNUC_UNUSED, 1046s # const gchar *signal_name, 1046s # GVariant *parameters) 1046s # { 1046s # _ExtendedGDBusSignalInfo *info; 1046s # GVariantIter iter; 1046s # GVariant *child; 1046s # GValue *paramv; 1046s # gsize num_params; 1046s # gsize n; 1046s # guint signal_id; 1046s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1046s # if (info == NULL) 1046s # return; 1046s # num_params = g_variant_n_children (parameters); 1046s # paramv = g_new0 (GValue, num_params + 1); 1046s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_set_object (¶mv[0], proxy); 1046s # g_variant_iter_init (&iter, parameters); 1046s # n = 1; 1046s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1046s # { 1046s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1046s # if (arg_info->use_gvariant) 1046s # { 1046s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1046s # g_value_set_variant (¶mv[n], child); 1046s # n++; 1046s # } 1046s # else 1046s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1046s # g_variant_unref (child); 1046s # } 1046s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_signal_emitv (paramv, signal_id, 0, NULL); 1046s # for (n = 0; n < num_params + 1; n++) 1046s # g_value_unset (¶mv[n]); 1046s # g_free (paramv); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1046s # GVariant *changed_properties, 1046s # const gchar *const *invalidated_properties) 1046s # { 1046s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1046s # guint n; 1046s # const gchar *key; 1046s # GVariantIter *iter; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # g_variant_get (changed_properties, "a{sv}", &iter); 1046s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1046s # { 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1046s # g_datalist_remove_data (&proxy->priv->qdata, key); 1046s # if (info != NULL) 1046s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1046s # } 1046s # g_variant_iter_free (iter); 1046s # for (n = 0; invalidated_properties[n] != NULL; n++) 1046s # { 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1046s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1046s # if (info != NULL) 1046s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1046s # } 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1046s # { 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1046s # #else 1046s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1046s # #endif 1046s # 1046s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1046s # { 1046s # GObjectClass *gobject_class; 1046s # GDBusProxyClass *proxy_class; 1046s # 1046s # gobject_class = G_OBJECT_CLASS (klass); 1046s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1046s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1046s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1046s # 1046s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1046s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1046s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1046s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1046s # #endif 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new: 1046s # * @connection: A #GDBusConnection. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1046s # * @user_data: User data to pass to @callback. 1046s # * 1046s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1046s # * 1046s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1046s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_proxy_new ( 1046s # GDBusConnection *connection, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GAsyncReadyCallback callback, 1046s # gpointer user_data) 1046s # { 1046s # 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); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_finish: 1046s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_finish ( 1046s # GAsyncResult *res, 1046s # GError **error) 1046s # { 1046s # GObject *ret; 1046s # GObject *source_object; 1046s # source_object = g_async_result_get_source_object (res); 1046s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1046s # g_object_unref (source_object); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_sync: 1046s # * @connection: A #GDBusConnection. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1046s # * 1046s # * The calling thread is blocked until a reply is received. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_sync ( 1046s # GDBusConnection *connection, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GError **error) 1046s # { 1046s # GInitable *ret; 1046s # 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); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus: 1046s # * @bus_type: A #GBusType. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: A bus name (well-known or unique). 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1046s # * @user_data: User data to pass to @callback. 1046s # * 1046s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1046s # * 1046s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1046s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_proxy_new_for_bus ( 1046s # GBusType bus_type, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GAsyncReadyCallback callback, 1046s # gpointer user_data) 1046s # { 1046s # 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); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1046s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1046s # GAsyncResult *res, 1046s # GError **error) 1046s # { 1046s # GObject *ret; 1046s # GObject *source_object; 1046s # source_object = g_async_result_get_source_object (res); 1046s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1046s # g_object_unref (source_object); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1046s # * @bus_type: A #GBusType. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: A bus name (well-known or unique). 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1046s # * 1046s # * The calling thread is blocked until a reply is received. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1046s # GBusType bus_type, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GError **error) 1046s # { 1046s # GInitable *ret; 1046s # 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); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # 1046s # /* ------------------------------------------------------------------------ */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceSkeleton: 1046s # * 1046s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceSkeletonClass: 1046s # * @parent_class: The parent class. 1046s # * 1046s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1046s # */ 1046s # 1046s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1046s # { 1046s # GValue *properties; 1046s # GList *changed_properties; 1046s # GSource *changed_properties_idle_source; 1046s # GMainContext *context; 1046s # GMutex lock; 1046s # }; 1046s # 1046s # static void 1046s # _org_project_signaling_iface_skeleton_handle_method_call ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name, 1046s # const gchar *method_name, 1046s # GVariant *parameters, 1046s # GDBusMethodInvocation *invocation, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # _ExtendedGDBusMethodInfo *info; 1046s # GVariantIter iter; 1046s # GVariant *child; 1046s # GValue *paramv; 1046s # gsize num_params; 1046s # guint num_extra; 1046s # gsize n; 1046s # guint signal_id; 1046s # GValue return_value = G_VALUE_INIT; 1046s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1046s # g_assert (info != NULL); 1046s # num_params = g_variant_n_children (parameters); 1046s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1046s # n = 0; 1046s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_set_object (¶mv[n++], skeleton); 1046s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1046s # g_value_set_object (¶mv[n++], invocation); 1046s # if (info->pass_fdlist) 1046s # { 1046s # #ifdef G_OS_UNIX 1046s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1046s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1046s # #else 1046s # g_assert_not_reached (); 1046s # #endif 1046s # } 1046s # g_variant_iter_init (&iter, parameters); 1046s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1046s # { 1046s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1046s # if (arg_info->use_gvariant) 1046s # { 1046s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1046s # g_value_set_variant (¶mv[n], child); 1046s # n++; 1046s # } 1046s # else 1046s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1046s # g_variant_unref (child); 1046s # } 1046s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1046s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1046s # if (!g_value_get_boolean (&return_value)) 1046s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1046s # g_value_unset (&return_value); 1046s # for (n = 0; n < num_params + num_extra; n++) 1046s # g_value_unset (¶mv[n]); 1046s # g_free (paramv); 1046s # } 1046s # 1046s # static GVariant * 1046s # _org_project_signaling_iface_skeleton_handle_get_property ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name G_GNUC_UNUSED, 1046s # const gchar *property_name, 1046s # GError **error, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # GValue value = G_VALUE_INIT; 1046s # GParamSpec *pspec; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # GVariant *ret; 1046s # ret = NULL; 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1046s # g_assert (info != NULL); 1046s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1046s # if (pspec == NULL) 1046s # { 1046s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1046s # } 1046s # else 1046s # { 1046s # g_value_init (&value, pspec->value_type); 1046s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1046s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1046s # g_value_unset (&value); 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # static gboolean 1046s # _org_project_signaling_iface_skeleton_handle_set_property ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name G_GNUC_UNUSED, 1046s # const gchar *property_name, 1046s # GVariant *variant, 1046s # GError **error, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # GValue value = G_VALUE_INIT; 1046s # GParamSpec *pspec; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # gboolean ret; 1046s # ret = FALSE; 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1046s # g_assert (info != NULL); 1046s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1046s # if (pspec == NULL) 1046s # { 1046s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1046s # } 1046s # else 1046s # { 1046s # if (info->use_gvariant) 1046s # g_value_set_variant (&value, variant); 1046s # else 1046s # g_dbus_gvariant_to_gvalue (variant, &value); 1046s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1046s # g_value_unset (&value); 1046s # ret = TRUE; 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1046s # { 1046s # _org_project_signaling_iface_skeleton_handle_method_call, 1046s # _org_project_signaling_iface_skeleton_handle_get_property, 1046s # _org_project_signaling_iface_skeleton_handle_set_property, 1046s # {NULL} 1046s # }; 1046s # 1046s # static GDBusInterfaceInfo * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1046s # { 1046s # return org_project_signaling_iface_interface_info (); 1046s # } 1046s # 1046s # static GDBusInterfaceVTable * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1046s # { 1046s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1046s # } 1046s # 1046s # static GVariant * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1046s # 1046s # GVariantBuilder builder; 1046s # guint n; 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1046s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1046s # #else 1046s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1046s # #endif 1046s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1046s # goto out; 1046s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1046s # { 1046s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1046s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1046s # { 1046s # GVariant *value; 1046s # 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); 1046s # if (value != NULL) 1046s # { 1046s # g_variant_take_ref (value); 1046s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1046s # g_variant_unref (value); 1046s # } 1046s # } 1046s # } 1046s # out: 1046s # return g_variant_builder_end (&builder); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # _org_project_signaling_iface_on_signal_simple_signal ( 1046s # OrgProjectSignalingIface *object) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # 1046s # GList *connections, *l; 1046s # GVariant *signal_variant; 1046s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1046s # 1046s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1046s # for (l = connections; l != NULL; l = l->next) 1046s # { 1046s # GDBusConnection *connection = l->data; 1046s # g_dbus_connection_emit_signal (connection, 1046s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1046s # signal_variant, NULL); 1046s # } 1046s # g_variant_unref (signal_variant); 1046s # g_list_free_full (connections, g_object_unref); 1046s # } 1046s # 1046s # static void 1046s # _org_project_signaling_iface_on_signal_single_arg_signal_aay ( 1046s # OrgProjectSignalingIface *object, 1046s # const gchar *const *arg_arg_aay) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # 1046s # GList *connections, *l; 1046s # GVariant *signal_variant; 1046s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1046s # 1046s # signal_variant = g_variant_ref_sink (g_variant_new ("(^aay)", 1046s # arg_arg_aay)); 1046s # for (l = connections; l != NULL; l = l->next) 1046s # { 1046s # GDBusConnection *connection = l->data; 1046s # g_dbus_connection_emit_signal (connection, 1046s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAay", 1046s # signal_variant, NULL); 1046s # } 1046s # g_variant_unref (signal_variant); 1046s # g_list_free_full (connections, g_object_unref); 1046s # } 1046s # 1046s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1046s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1046s # 1046s # #else 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1046s # 1046s # #endif 1046s # static void 1046s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1046s # if (skeleton->priv->changed_properties_idle_source != NULL) 1046s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1046s # g_main_context_unref (skeleton->priv->context); 1046s # g_mutex_clear (&skeleton->priv->lock); 1046s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1046s # { 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1046s # #else 1046s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1046s # #endif 1046s # 1046s # g_mutex_init (&skeleton->priv->lock); 1046s # skeleton->priv->context = g_main_context_ref_thread_default (); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1046s # { 1046s # GObjectClass *gobject_class; 1046s # GDBusInterfaceSkeletonClass *skeleton_class; 1046s # 1046s # gobject_class = G_OBJECT_CLASS (klass); 1046s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1046s # 1046s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1046s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1046s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1046s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1046s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1046s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1046s # #endif 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1046s # { 1046s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1046s # iface->single_arg_signal_aay = _org_project_signaling_iface_on_signal_single_arg_signal_aay; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_skeleton_new: 1046s # * 1046s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_skeleton_new (void) 1046s # { 1046s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1046s # } 1046s # Error: 1046s # 1046s # /tmp/tmppt74if37/tmpteeo0pi3.xml: 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppt74if37/tmpteeo0pi3.xml', '--output', '-', '--body'] 1046s # Return code: 0 1046s # Output: 1046s # /* 1046s # * This file is generated by gdbus-codegen, do not modify it. 1046s # * 1046s # * The license of this code is the same as for the D-Bus interface description 1046s # * it was derived from. Note that it links to GLib, so must comply with the 1046s # * LGPL linking clauses. 1046s # */ 1046s # 1046s # #ifdef HAVE_CONFIG_H 1046s # # include "config.h" 1046s # #endif 1046s # 1046s # #include 1046s # #ifdef G_OS_UNIX 1046s # # include 1046s # #endif 1046s # 1046s # #ifdef G_ENABLE_DEBUG 1046s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1046s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1046s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1046s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1046s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1046s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1046s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1046s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1046s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1046s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1046s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1046s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1046s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1046s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1046s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1046s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1046s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1046s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1046s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1046s # #else /* !G_ENABLE_DEBUG */ 1046s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1046s # * Do not access GValues directly in your code. Instead, use the 1046s # * g_value_get_*() functions 1046s # */ 1046s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1046s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1046s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1046s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1046s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1046s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1046s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1046s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1046s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1046s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1046s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1046s # #endif /* !G_ENABLE_DEBUG */ 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusArgInfo parent_struct; 1046s # gboolean use_gvariant; 1046s # } _ExtendedGDBusArgInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusMethodInfo parent_struct; 1046s # const gchar *signal_name; 1046s # gboolean pass_fdlist; 1046s # } _ExtendedGDBusMethodInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusSignalInfo parent_struct; 1046s # const gchar *signal_name; 1046s # } _ExtendedGDBusSignalInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusPropertyInfo parent_struct; 1046s # const gchar *hyphen_name; 1046s # guint use_gvariant : 1; 1046s # guint emits_changed_signal : 1; 1046s # } _ExtendedGDBusPropertyInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusInterfaceInfo parent_struct; 1046s # const gchar *hyphen_name; 1046s # } _ExtendedGDBusInterfaceInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # const _ExtendedGDBusPropertyInfo *info; 1046s # guint prop_id; 1046s # GValue orig_value; /* the value before the change */ 1046s # } ChangedProperty; 1046s # 1046s # static void 1046s # _changed_property_free (ChangedProperty *data) 1046s # { 1046s # g_value_unset (&data->orig_value); 1046s # g_free (data); 1046s # } 1046s # 1046s # static gboolean 1046s # _g_strv_equal0 (gchar **a, gchar **b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # guint n; 1046s # if (a == NULL && b == NULL) 1046s # { 1046s # ret = TRUE; 1046s # goto out; 1046s # } 1046s # if (a == NULL || b == NULL) 1046s # goto out; 1046s # if (g_strv_length (a) != g_strv_length (b)) 1046s # goto out; 1046s # for (n = 0; a[n] != NULL; n++) 1046s # if (g_strcmp0 (a[n], b[n]) != 0) 1046s # goto out; 1046s # ret = TRUE; 1046s # out: 1046s # return ret; 1046s # } 1046s # 1046s # static gboolean 1046s # _g_variant_equal0 (GVariant *a, GVariant *b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # if (a == NULL && b == NULL) 1046s # { 1046s # ret = TRUE; 1046s # goto out; 1046s # } 1046s # if (a == NULL || b == NULL) 1046s # goto out; 1046s # ret = g_variant_equal (a, b); 1046s # out: 1046s # return ret; 1046s # } 1046s # 1046s # G_GNUC_UNUSED static gboolean 1046s # _g_value_equal (const GValue *a, const GValue *b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1046s # switch (G_VALUE_TYPE (a)) 1046s # { 1046s # case G_TYPE_BOOLEAN: 1046s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1046s # break; 1046s # case G_TYPE_UCHAR: 1046s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1046s # break; 1046s # case G_TYPE_INT: 1046s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1046s # break; 1046s # case G_TYPE_UINT: 1046s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1046s # break; 1046s # case G_TYPE_INT64: 1046s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1046s # break; 1046s # case G_TYPE_UINT64: 1046s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1046s # break; 1046s # case G_TYPE_DOUBLE: 1046s # { 1046s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1046s # gdouble da = g_value_get_double (a); 1046s # gdouble db = g_value_get_double (b); 1046s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1046s # } 1046s # break; 1046s # case G_TYPE_STRING: 1046s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1046s # break; 1046s # case G_TYPE_VARIANT: 1046s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1046s # break; 1046s # default: 1046s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1046s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1046s # else 1046s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1046s # break; 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # /* ------------------------------------------------------------------------ 1046s # * Code for interface org.project.SignalingIface 1046s # * ------------------------------------------------------------------------ 1046s # */ 1046s # 1046s # /** 1046s # * SECTION:OrgProjectSignalingIface 1046s # * @title: OrgProjectSignalingIface 1046s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1046s # * 1046s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1046s # */ 1046s # 1046s # enum 1046s # { 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1046s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV, 1046s # }; 1046s # 1046s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1046s # 1046s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1046s # 1046s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "SimpleSignal", 1046s # NULL, 1046s # NULL 1046s # }, 1046s # "simple-signal" 1046s # }; 1046s # 1046s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_arg_asv = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "arg_asv", 1046s # (gchar *) "a{sv}", 1046s # NULL 1046s # }, 1046s # FALSE 1046s # }; 1046s # 1046s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers[] = 1046s # { 1046s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_arg_asv.parent_struct, 1046s # NULL 1046s # }; 1046s # 1046s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "SingleArgSignalAsv", 1046s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers, 1046s # NULL 1046s # }, 1046s # "single-arg-signal-asv" 1046s # }; 1046s # 1046s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1046s # { 1046s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1046s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv.parent_struct, 1046s # NULL 1046s # }; 1046s # 1046s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "org.project.SignalingIface", 1046s # NULL, 1046s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1046s # NULL, 1046s # NULL 1046s # }, 1046s # "org-project-signaling-iface", 1046s # }; 1046s # 1046s # 1046s # /** 1046s # * org_project_signaling_iface_interface_info: 1046s # * 1046s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1046s # * 1046s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1046s # */ 1046s # GDBusInterfaceInfo * 1046s # org_project_signaling_iface_interface_info (void) 1046s # { 1046s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_override_properties: 1046s # * @klass: The class structure for a #GObject derived class. 1046s # * @property_id_begin: The property id to assign to the first overridden property. 1046s # * 1046s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1046s # * The properties are overridden in the order they are defined. 1046s # * 1046s # * Returns: The last property id. 1046s # */ 1046s # guint 1046s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1046s # { 1046s # return property_id_begin - 1; 1046s # } 1046s # 1046s # 1046s # inline static void 1046s # org_project_signaling_iface_signal_marshal_simple_signal ( 1046s # GClosure *closure, 1046s # GValue *return_value, 1046s # unsigned int n_param_values, 1046s # const GValue *param_values, 1046s # void *invocation_hint, 1046s # void *marshal_data) 1046s # { 1046s # g_cclosure_marshal_VOID__VOID (closure, 1046s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1046s # } 1046s # 1046s # inline static void 1046s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv ( 1046s # GClosure *closure, 1046s # GValue *return_value, 1046s # unsigned int n_param_values, 1046s # const GValue *param_values, 1046s # void *invocation_hint, 1046s # void *marshal_data) 1046s # { 1046s # g_cclosure_marshal_VOID__VARIANT (closure, 1046s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1046s # } 1046s # 1046s # 1046s # /** 1046s # * OrgProjectSignalingIface: 1046s # * 1046s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceIface: 1046s # * @parent_iface: The parent interface. 1046s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1046s # * @single_arg_signal_asv: Handler for the #OrgProjectSignalingIface::single-arg-signal-asv signal. 1046s # * 1046s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1046s # */ 1046s # 1046s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1046s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1046s # 1046s # static void 1046s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1046s # { 1046s # /* GObject signals for received D-Bus signals: */ 1046s # /** 1046s # * OrgProjectSignalingIface::simple-signal: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * 1046s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1046s # * 1046s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1046s # */ 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1046s # g_signal_new ("simple-signal", 1046s # G_TYPE_FROM_INTERFACE (iface), 1046s # G_SIGNAL_RUN_LAST, 1046s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1046s # NULL, 1046s # NULL, 1046s # org_project_signaling_iface_signal_marshal_simple_signal, 1046s # G_TYPE_NONE, 1046s # 0); 1046s # 1046s # /** 1046s # * OrgProjectSignalingIface::single-arg-signal-asv: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * @arg_arg_asv: Argument. 1046s # * 1046s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAsv" is received. 1046s # * 1046s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1046s # */ 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV] = 1046s # g_signal_new ("single-arg-signal-asv", 1046s # G_TYPE_FROM_INTERFACE (iface), 1046s # G_SIGNAL_RUN_LAST, 1046s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_asv), 1046s # NULL, 1046s # NULL, 1046s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv, 1046s # G_TYPE_NONE, 1046s # 1, G_TYPE_VARIANT); 1046s # 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_emit_simple_signal: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * 1046s # * Emits the "SimpleSignal" D-Bus signal. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_emit_simple_signal ( 1046s # OrgProjectSignalingIface *object) 1046s # { 1046s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_emit_single_arg_signal_asv: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * @arg_arg_asv: Argument to pass with the signal. 1046s # * 1046s # * Emits the "SingleArgSignalAsv" D-Bus signal. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_emit_single_arg_signal_asv ( 1046s # OrgProjectSignalingIface *object, 1046s # GVariant *arg_arg_asv) 1046s # { 1046s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV], 0, arg_arg_asv); 1046s # } 1046s # 1046s # /* ------------------------------------------------------------------------ */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceProxy: 1046s # * 1046s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceProxyClass: 1046s # * @parent_class: The parent class. 1046s # * 1046s # * Class structure for #OrgProjectSignalingIfaceProxy. 1046s # */ 1046s # 1046s # struct _OrgProjectSignalingIfaceProxyPrivate 1046s # { 1046s # GData *qdata; 1046s # }; 1046s # 1046s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1046s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1046s # 1046s # #else 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1046s # 1046s # #endif 1046s # static void 1046s # org_project_signaling_iface_proxy_finalize (GObject *object) 1046s # { 1046s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1046s # g_datalist_clear (&proxy->priv->qdata); 1046s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1046s # guint prop_id G_GNUC_UNUSED, 1046s # GValue *value G_GNUC_UNUSED, 1046s # GParamSpec *pspec G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1046s # guint prop_id G_GNUC_UNUSED, 1046s # const GValue *value G_GNUC_UNUSED, 1046s # GParamSpec *pspec G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1046s # const gchar *sender_name G_GNUC_UNUSED, 1046s # const gchar *signal_name, 1046s # GVariant *parameters) 1046s # { 1046s # _ExtendedGDBusSignalInfo *info; 1046s # GVariantIter iter; 1046s # GVariant *child; 1046s # GValue *paramv; 1046s # gsize num_params; 1046s # gsize n; 1046s # guint signal_id; 1046s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1046s # if (info == NULL) 1046s # return; 1046s # num_params = g_variant_n_children (parameters); 1046s # paramv = g_new0 (GValue, num_params + 1); 1046s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_set_object (¶mv[0], proxy); 1046s # g_variant_iter_init (&iter, parameters); 1046s # n = 1; 1046s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1046s # { 1046s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1046s # if (arg_info->use_gvariant) 1046s # { 1046s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1046s # g_value_set_variant (¶mv[n], child); 1046s # n++; 1046s # } 1046s # else 1046s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1046s # g_variant_unref (child); 1046s # } 1046s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_signal_emitv (paramv, signal_id, 0, NULL); 1046s # for (n = 0; n < num_params + 1; n++) 1046s # g_value_unset (¶mv[n]); 1046s # g_free (paramv); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1046s # GVariant *changed_properties, 1046s # const gchar *const *invalidated_properties) 1046s # { 1046s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1046s # guint n; 1046s # const gchar *key; 1046s # GVariantIter *iter; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # g_variant_get (changed_properties, "a{sv}", &iter); 1046s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1046s # { 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1046s # g_datalist_remove_data (&proxy->priv->qdata, key); 1046s # if (info != NULL) 1046s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1046s # } 1046s # g_variant_iter_free (iter); 1046s # for (n = 0; invalidated_properties[n] != NULL; n++) 1046s # { 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1046s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1046s # if (info != NULL) 1046s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1046s # } 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1046s # { 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1046s # #else 1046s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1046s # #endif 1046s # 1046s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1046s # { 1046s # GObjectClass *gobject_class; 1046s # GDBusProxyClass *proxy_class; 1046s # 1046s # gobject_class = G_OBJECT_CLASS (klass); 1046s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1046s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1046s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1046s # 1046s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1046s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1046s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1046s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1046s # #endif 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new: 1046s # * @connection: A #GDBusConnection. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1046s # * @user_data: User data to pass to @callback. 1046s # * 1046s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1046s # * 1046s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1046s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_proxy_new ( 1046s # GDBusConnection *connection, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GAsyncReadyCallback callback, 1046s # gpointer user_data) 1046s # { 1046s # 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); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_finish: 1046s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_finish ( 1046s # GAsyncResult *res, 1046s # GError **error) 1046s # { 1046s # GObject *ret; 1046s # GObject *source_object; 1046s # source_object = g_async_result_get_source_object (res); 1046s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1046s # g_object_unref (source_object); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_sync: 1046s # * @connection: A #GDBusConnection. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1046s # * 1046s # * The calling thread is blocked until a reply is received. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_sync ( 1046s # GDBusConnection *connection, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GError **error) 1046s # { 1046s # GInitable *ret; 1046s # 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); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus: 1046s # * @bus_type: A #GBusType. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: A bus name (well-known or unique). 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1046s # * @user_data: User data to pass to @callback. 1046s # * 1046s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1046s # * 1046s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1046s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_proxy_new_for_bus ( 1046s # GBusType bus_type, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GAsyncReadyCallback callback, 1046s # gpointer user_data) 1046s # { 1046s # 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); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1046s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1046s # GAsyncResult *res, 1046s # GError **error) 1046s # { 1046s # GObject *ret; 1046s # GObject *source_object; 1046s # source_object = g_async_result_get_source_object (res); 1046s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1046s # g_object_unref (source_object); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1046s # * @bus_type: A #GBusType. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: A bus name (well-known or unique). 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1046s # * 1046s # * The calling thread is blocked until a reply is received. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1046s # GBusType bus_type, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GError **error) 1046s # { 1046s # GInitable *ret; 1046s # 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); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # 1046s # /* ------------------------------------------------------------------------ */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceSkeleton: 1046s # * 1046s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceSkeletonClass: 1046s # * @parent_class: The parent class. 1046s # * 1046s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1046s # */ 1046s # 1046s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1046s # { 1046s # GValue *properties; 1046s # GList *changed_properties; 1046s # GSource *changed_properties_idle_source; 1046s # GMainContext *context; 1046s # GMutex lock; 1046s # }; 1046s # 1046s # static void 1046s # _org_project_signaling_iface_skeleton_handle_method_call ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name, 1046s # const gchar *method_name, 1046s # GVariant *parameters, 1046s # GDBusMethodInvocation *invocation, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # _ExtendedGDBusMethodInfo *info; 1046s # GVariantIter iter; 1046s # GVariant *child; 1046s # GValue *paramv; 1046s # gsize num_params; 1046s # guint num_extra; 1046s # gsize n; 1046s # guint signal_id; 1046s # GValue return_value = G_VALUE_INIT; 1046s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1046s # g_assert (info != NULL); 1046s # num_params = g_variant_n_children (parameters); 1046s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1046s # n = 0; 1046s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_set_object (¶mv[n++], skeleton); 1046s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1046s # g_value_set_object (¶mv[n++], invocation); 1046s # if (info->pass_fdlist) 1046s # { 1046s # #ifdef G_OS_UNIX 1046s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1046s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1046s # #else 1046s # g_assert_not_reached (); 1046s # #endif 1046s # } 1046s # g_variant_iter_init (&iter, parameters); 1046s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1046s # { 1046s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1046s # if (arg_info->use_gvariant) 1046s # { 1046s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1046s # g_value_set_variant (¶mv[n], child); 1046s # n++; 1046s # } 1046s # else 1046s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1046s # g_variant_unref (child); 1046s # } 1046s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1046s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1046s # if (!g_value_get_boolean (&return_value)) 1046s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1046s # g_value_unset (&return_value); 1046s # for (n = 0; n < num_params + num_extra; n++) 1046s # g_value_unset (¶mv[n]); 1046s # g_free (paramv); 1046s # } 1046s # 1046s # static GVariant * 1046s # _org_project_signaling_iface_skeleton_handle_get_property ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name G_GNUC_UNUSED, 1046s # const gchar *property_name, 1046s # GError **error, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # GValue value = G_VALUE_INIT; 1046s # GParamSpec *pspec; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # GVariant *ret; 1046s # ret = NULL; 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1046s # g_assert (info != NULL); 1046s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1046s # if (pspec == NULL) 1046s # { 1046s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1046s # } 1046s # else 1046s # { 1046s # g_value_init (&value, pspec->value_type); 1046s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1046s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1046s # g_value_unset (&value); 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # static gboolean 1046s # _org_project_signaling_iface_skeleton_handle_set_property ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name G_GNUC_UNUSED, 1046s # const gchar *property_name, 1046s # GVariant *variant, 1046s # GError **error, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # GValue value = G_VALUE_INIT; 1046s # GParamSpec *pspec; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # gboolean ret; 1046s # ret = FALSE; 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1046s # g_assert (info != NULL); 1046s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1046s # if (pspec == NULL) 1046s # { 1046s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1046s # } 1046s # else 1046s # { 1046s # if (info->use_gvariant) 1046s # g_value_set_variant (&value, variant); 1046s # else 1046s # g_dbus_gvariant_to_gvalue (variant, &value); 1046s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1046s # g_value_unset (&value); 1046s # ret = TRUE; 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1046s # { 1046s # _org_project_signaling_iface_skeleton_handle_method_call, 1046s # _org_project_signaling_iface_skeleton_handle_get_property, 1046s # _org_project_signaling_iface_skeleton_handle_set_property, 1046s # {NULL} 1046s # }; 1046s # 1046s # static GDBusInterfaceInfo * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1046s # { 1046s # return org_project_signaling_iface_interface_info (); 1046s # } 1046s # 1046s # static GDBusInterfaceVTable * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1046s # { 1046s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1046s # } 1046s # 1046s # static GVariant * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1046s # 1046s # GVariantBuilder builder; 1046s # guint n; 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1046s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1046s # #else 1046s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1046s # #endif 1046s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1046s # goto out; 1046s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1046s # { 1046s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1046s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1046s # { 1046s # GVariant *value; 1046s # 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); 1046s # if (value != NULL) 1046s # { 1046s # g_variant_take_ref (value); 1046s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1046s # g_variant_unref (value); 1046s # } 1046s # } 1046s # } 1046s # out: 1046s # return g_variant_builder_end (&builder); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # _org_project_signaling_iface_on_signal_simple_signal ( 1046s # OrgProjectSignalingIface *object) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # 1046s # GList *connections, *l; 1046s # GVariant *signal_variant; 1046s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1046s # 1046s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1046s # for (l = connections; l != NULL; l = l->next) 1046s # { 1046s # GDBusConnection *connection = l->data; 1046s # g_dbus_connection_emit_signal (connection, 1046s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1046s # signal_variant, NULL); 1046s # } 1046s # g_variant_unref (signal_variant); 1046s # g_list_free_full (connections, g_object_unref); 1046s # } 1046s # 1046s # static void 1046s # _org_project_signaling_iface_on_signal_single_arg_signal_asv ( 1046s # OrgProjectSignalingIface *object, 1046s # GVariant *arg_arg_asv) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # 1046s # GList *connections, *l; 1046s # GVariant *signal_variant; 1046s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1046s # 1046s # signal_variant = g_variant_ref_sink (g_variant_new ("(@a{sv})", 1046s # arg_arg_asv)); 1046s # for (l = connections; l != NULL; l = l->next) 1046s # { 1046s # GDBusConnection *connection = l->data; 1046s # g_dbus_connection_emit_signal (connection, 1046s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAsv", 1046s # signal_variant, NULL); 1046s # } 1046s # g_variant_unref (signal_variant); 1046s # g_list_free_full (connections, g_object_unref); 1046s # } 1046s # 1046s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1046s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1046s # 1046s # #else 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1046s # 1046s # #endif 1046s # static void 1046s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1046s # if (skeleton->priv->changed_properties_idle_source != NULL) 1046s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1046s # g_main_context_unref (skeleton->priv->context); 1046s # g_mutex_clear (&skeleton->priv->lock); 1046s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1046s # { 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1046s # #else 1046s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1046s # #endif 1046s # 1046s # g_mutex_init (&skeleton->priv->lock); 1046s # skeleton->priv->context = g_main_context_ref_thread_default (); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1046s # { 1046s # GObjectClass *gobject_class; 1046s # GDBusInterfaceSkeletonClass *skeleton_class; 1046s # 1046s # gobject_class = G_OBJECT_CLASS (klass); 1046s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1046s # 1046s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1046s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1046s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1046s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1046s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1046s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1046s # #endif 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1046s # { 1046s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1046s # iface->single_arg_signal_asv = _org_project_signaling_iface_on_signal_single_arg_signal_asv; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_skeleton_new: 1046s # * 1046s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_skeleton_new (void) 1046s # { 1046s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1046s # } 1046s # Error: 1046s ok 24 __main__.TestCodegen.test_generate_signals_marshallers_multiple_args 1046s # gdbus-codegen: /usr/bin/gdbus-codegen 1046s # tmpdir: /tmp/tmpcbqk8hg4 1046s # /tmp/tmpcbqk8hg4/tmp5c1qrvz3.xml: 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcbqk8hg4/tmp5c1qrvz3.xml', '--output', '-', '--body'] 1046s # Return code: 0 1046s # Output: 1046s # /* 1046s # * This file is generated by gdbus-codegen, do not modify it. 1046s # * 1046s # * The license of this code is the same as for the D-Bus interface description 1046s # * it was derived from. Note that it links to GLib, so must comply with the 1046s # * LGPL linking clauses. 1046s # */ 1046s # 1046s # #ifdef HAVE_CONFIG_H 1046s # # include "config.h" 1046s # #endif 1046s # 1046s # #include 1046s # #ifdef G_OS_UNIX 1046s # # include 1046s # #endif 1046s # 1046s # #ifdef G_ENABLE_DEBUG 1046s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1046s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1046s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1046s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1046s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1046s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1046s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1046s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1046s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1046s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1046s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1046s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1046s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1046s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1046s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1046s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1046s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1046s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1046s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1046s # #else /* !G_ENABLE_DEBUG */ 1046s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1046s # * Do not access GValues directly in your code. Instead, use the 1046s # * g_value_get_*() functions 1046s # */ 1046s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1046s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1046s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1046s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1046s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1046s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1046s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1046s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1046s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1046s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1046s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1046s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1046s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1046s # #endif /* !G_ENABLE_DEBUG */ 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusArgInfo parent_struct; 1046s # gboolean use_gvariant; 1046s # } _ExtendedGDBusArgInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusMethodInfo parent_struct; 1046s # const gchar *signal_name; 1046s # gboolean pass_fdlist; 1046s # } _ExtendedGDBusMethodInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusSignalInfo parent_struct; 1046s # const gchar *signal_name; 1046s # } _ExtendedGDBusSignalInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusPropertyInfo parent_struct; 1046s # const gchar *hyphen_name; 1046s # guint use_gvariant : 1; 1046s # guint emits_changed_signal : 1; 1046s # } _ExtendedGDBusPropertyInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # GDBusInterfaceInfo parent_struct; 1046s # const gchar *hyphen_name; 1046s # } _ExtendedGDBusInterfaceInfo; 1046s # 1046s # typedef struct 1046s # { 1046s # const _ExtendedGDBusPropertyInfo *info; 1046s # guint prop_id; 1046s # GValue orig_value; /* the value before the change */ 1046s # } ChangedProperty; 1046s # 1046s # static void 1046s # _changed_property_free (ChangedProperty *data) 1046s # { 1046s # g_value_unset (&data->orig_value); 1046s # g_free (data); 1046s # } 1046s # 1046s # static gboolean 1046s # _g_strv_equal0 (gchar **a, gchar **b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # guint n; 1046s # if (a == NULL && b == NULL) 1046s # { 1046s # ret = TRUE; 1046s # goto out; 1046s # } 1046s # if (a == NULL || b == NULL) 1046s # goto out; 1046s # if (g_strv_length (a) != g_strv_length (b)) 1046s # goto out; 1046s # for (n = 0; a[n] != NULL; n++) 1046s # if (g_strcmp0 (a[n], b[n]) != 0) 1046s # goto out; 1046s # ret = TRUE; 1046s # out: 1046s # return ret; 1046s # } 1046s # 1046s # static gboolean 1046s # _g_variant_equal0 (GVariant *a, GVariant *b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # if (a == NULL && b == NULL) 1046s # { 1046s # ret = TRUE; 1046s # goto out; 1046s # } 1046s # if (a == NULL || b == NULL) 1046s # goto out; 1046s # ret = g_variant_equal (a, b); 1046s # out: 1046s # return ret; 1046s # } 1046s # 1046s # G_GNUC_UNUSED static gboolean 1046s # _g_value_equal (const GValue *a, const GValue *b) 1046s # { 1046s # gboolean ret = FALSE; 1046s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1046s # switch (G_VALUE_TYPE (a)) 1046s # { 1046s # case G_TYPE_BOOLEAN: 1046s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1046s # break; 1046s # case G_TYPE_UCHAR: 1046s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1046s # break; 1046s # case G_TYPE_INT: 1046s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1046s # break; 1046s # case G_TYPE_UINT: 1046s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1046s # break; 1046s # case G_TYPE_INT64: 1046s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1046s # break; 1046s # case G_TYPE_UINT64: 1046s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1046s # break; 1046s # case G_TYPE_DOUBLE: 1046s # { 1046s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1046s # gdouble da = g_value_get_double (a); 1046s # gdouble db = g_value_get_double (b); 1046s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1046s # } 1046s # break; 1046s # case G_TYPE_STRING: 1046s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1046s # break; 1046s # case G_TYPE_VARIANT: 1046s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1046s # break; 1046s # default: 1046s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1046s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1046s # else 1046s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1046s # break; 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # static void 1046s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 1046s # GClosure *closure, 1046s # GValue *return_value G_GNUC_UNUSED, 1046s # unsigned int n_param_values, 1046s # const GValue *param_values, 1046s # void *invocation_hint G_GNUC_UNUSED, 1046s # void *marshal_data) 1046s # { 1046s # typedef void (*_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1046s # (void *data1, 1046s # gboolean arg_an_b, 1046s # guchar arg_an_y, 1046s # gint16 arg_an_n, 1046s # guint16 arg_an_q, 1046s # gint arg_an_i, 1046s # guint arg_an_u, 1046s # gint64 arg_an_x, 1046s # guint64 arg_an_t, 1046s # gdouble arg_an_d, 1046s # const gchar *arg_an_s, 1046s # const gchar *arg_an_o, 1046s # const gchar *arg_an_g, 1046s # GVariant *arg_an_h, 1046s # const gchar *arg_an_ay, 1046s # const gchar *const *arg_an_as, 1046s # const gchar *const *arg_an_ao, 1046s # const gchar *const *arg_an_aay, 1046s # GVariant *arg_an_asv, 1046s # void *data2); 1046s # _GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 1046s # GCClosure *cc = (GCClosure*) closure; 1046s # void *data1, *data2; 1046s # 1046s # g_return_if_fail (n_param_values == 19); 1046s # 1046s # if (G_CCLOSURE_SWAP_DATA (closure)) 1046s # { 1046s # data1 = closure->data; 1046s # data2 = g_value_peek_pointer (param_values + 0); 1046s # } 1046s # else 1046s # { 1046s # data1 = g_value_peek_pointer (param_values + 0); 1046s # data2 = closure->data; 1046s # } 1046s # 1046s # callback = (_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1046s # (marshal_data ? marshal_data : cc->callback); 1046s # 1046s # callback (data1, 1046s # g_marshal_value_peek_boolean (param_values + 1), 1046s # g_marshal_value_peek_uchar (param_values + 2), 1046s # g_marshal_value_peek_int (param_values + 3), 1046s # g_marshal_value_peek_uint (param_values + 4), 1046s # g_marshal_value_peek_int (param_values + 5), 1046s # g_marshal_value_peek_uint (param_values + 6), 1046s # g_marshal_value_peek_int64 (param_values + 7), 1046s # g_marshal_value_peek_uint64 (param_values + 8), 1046s # g_marshal_value_peek_double (param_values + 9), 1046s # g_marshal_value_peek_string (param_values + 10), 1046s # g_marshal_value_peek_string (param_values + 11), 1046s # g_marshal_value_peek_string (param_values + 12), 1046s # g_marshal_value_peek_variant (param_values + 13), 1046s # g_marshal_value_peek_string (param_values + 14), 1046s # g_marshal_value_peek_boxed (param_values + 15), 1046s # g_marshal_value_peek_boxed (param_values + 16), 1046s # g_marshal_value_peek_boxed (param_values + 17), 1046s # g_marshal_value_peek_variant (param_values + 18), 1046s # data2); 1046s # } 1046s # 1046s # /* ------------------------------------------------------------------------ 1046s # * Code for interface org.project.SignalingIface 1046s # * ------------------------------------------------------------------------ 1046s # */ 1046s # 1046s # /** 1046s # * SECTION:OrgProjectSignalingIface 1046s # * @title: OrgProjectSignalingIface 1046s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1046s # * 1046s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1046s # */ 1046s # 1046s # enum 1046s # { 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS, 1046s # }; 1046s # 1046s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1046s # 1046s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1046s # 1046s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "SimpleSignal", 1046s # NULL, 1046s # NULL 1046s # }, 1046s # "simple-signal" 1046s # }; 1046s # 1046s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "an_b", 1046s # (gchar *) "b", 1046s # NULL 1046s # }, 1046s # FALSE 1046s # }; 1046s # 1046s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "an_y", 1046s # (gchar *) "y", 1046s # NULL 1046s # }, 1046s # FALSE 1046s # }; 1046s # 1046s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "an_n", 1046s # (gchar *) "n", 1046s # NULL 1046s # }, 1046s # FALSE 1046s # }; 1046s # 1046s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "an_q", 1046s # (gchar *) "q", 1046s # NULL 1046s # }, 1046s # FALSE 1046s # }; 1046s # 1046s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "an_i", 1046s # (gchar *) "i", 1046s # NULL 1046s # }, 1046s # FALSE 1046s # }; 1046s # 1046s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "an_u", 1046s # (gchar *) "u", 1046s # NULL 1046s # }, 1046s # FALSE 1046s # }; 1046s # 1046s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "an_x", 1046s # (gchar *) "x", 1046s # NULL 1046s # }, 1046s # FALSE 1046s # }; 1046s # 1046s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "an_t", 1046s # (gchar *) "t", 1046s # NULL 1046s # }, 1046s # FALSE 1046s # }; 1046s # 1046s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "an_d", 1046s # (gchar *) "d", 1046s # NULL 1046s # }, 1046s # FALSE 1046s # }; 1046s # 1046s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "an_s", 1046s # (gchar *) "s", 1046s # NULL 1046s # }, 1046s # FALSE 1046s # }; 1046s # 1046s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "an_o", 1046s # (gchar *) "o", 1046s # NULL 1046s # }, 1046s # FALSE 1046s # }; 1046s # 1046s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "an_g", 1046s # (gchar *) "g", 1046s # NULL 1046s # }, 1046s # FALSE 1046s # }; 1046s # 1046s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "an_h", 1046s # (gchar *) "h", 1046s # NULL 1046s # }, 1046s # FALSE 1046s # }; 1046s # 1046s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "an_ay", 1046s # (gchar *) "ay", 1046s # NULL 1046s # }, 1046s # FALSE 1046s # }; 1046s # 1046s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "an_as", 1046s # (gchar *) "as", 1046s # NULL 1046s # }, 1046s # FALSE 1046s # }; 1046s # 1046s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "an_ao", 1046s # (gchar *) "ao", 1046s # NULL 1046s # }, 1046s # FALSE 1046s # }; 1046s # 1046s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "an_aay", 1046s # (gchar *) "aay", 1046s # NULL 1046s # }, 1046s # FALSE 1046s # }; 1046s # 1046s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "an_asv", 1046s # (gchar *) "a{sv}", 1046s # NULL 1046s # }, 1046s # FALSE 1046s # }; 1046s # 1046s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers[] = 1046s # { 1046s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b.parent_struct, 1046s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y.parent_struct, 1046s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n.parent_struct, 1046s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q.parent_struct, 1046s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i.parent_struct, 1046s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u.parent_struct, 1046s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x.parent_struct, 1046s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t.parent_struct, 1046s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d.parent_struct, 1046s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s.parent_struct, 1046s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o.parent_struct, 1046s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g.parent_struct, 1046s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h.parent_struct, 1046s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay.parent_struct, 1046s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as.parent_struct, 1046s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao.parent_struct, 1046s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay.parent_struct, 1046s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv.parent_struct, 1046s # NULL 1046s # }; 1046s # 1046s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_signal_with_many_args = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "SignalWithManyArgs", 1046s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers, 1046s # NULL 1046s # }, 1046s # "signal-with-many-args" 1046s # }; 1046s # 1046s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1046s # { 1046s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1046s # &_org_project_signaling_iface_signal_info_signal_with_many_args.parent_struct, 1046s # NULL 1046s # }; 1046s # 1046s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1046s # { 1046s # { 1046s # -1, 1046s # (gchar *) "org.project.SignalingIface", 1046s # NULL, 1046s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1046s # NULL, 1046s # NULL 1046s # }, 1046s # "org-project-signaling-iface", 1046s # }; 1046s # 1046s # 1046s # /** 1046s # * org_project_signaling_iface_interface_info: 1046s # * 1046s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1046s # * 1046s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1046s # */ 1046s # GDBusInterfaceInfo * 1046s # org_project_signaling_iface_interface_info (void) 1046s # { 1046s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_override_properties: 1046s # * @klass: The class structure for a #GObject derived class. 1046s # * @property_id_begin: The property id to assign to the first overridden property. 1046s # * 1046s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1046s # * The properties are overridden in the order they are defined. 1046s # * 1046s # * Returns: The last property id. 1046s # */ 1046s # guint 1046s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1046s # { 1046s # return property_id_begin - 1; 1046s # } 1046s # 1046s # 1046s # inline static void 1046s # org_project_signaling_iface_signal_marshal_simple_signal ( 1046s # GClosure *closure, 1046s # GValue *return_value, 1046s # unsigned int n_param_values, 1046s # const GValue *param_values, 1046s # void *invocation_hint, 1046s # void *marshal_data) 1046s # { 1046s # g_cclosure_marshal_VOID__VOID (closure, 1046s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1046s # } 1046s # 1046s # inline static void 1046s # org_project_signaling_iface_signal_marshal_signal_with_many_args ( 1046s # GClosure *closure, 1046s # GValue *return_value, 1046s # unsigned int n_param_values, 1046s # const GValue *param_values, 1046s # void *invocation_hint, 1046s # void *marshal_data) 1046s # { 1046s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT (closure, 1046s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1046s # } 1046s # 1046s # 1046s # /** 1046s # * OrgProjectSignalingIface: 1046s # * 1046s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceIface: 1046s # * @parent_iface: The parent interface. 1046s # * @signal_with_many_args: Handler for the #OrgProjectSignalingIface::signal-with-many-args signal. 1046s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1046s # * 1046s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1046s # */ 1046s # 1046s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1046s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1046s # 1046s # static void 1046s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1046s # { 1046s # /* GObject signals for received D-Bus signals: */ 1046s # /** 1046s # * OrgProjectSignalingIface::simple-signal: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * 1046s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1046s # * 1046s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1046s # */ 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1046s # g_signal_new ("simple-signal", 1046s # G_TYPE_FROM_INTERFACE (iface), 1046s # G_SIGNAL_RUN_LAST, 1046s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1046s # NULL, 1046s # NULL, 1046s # org_project_signaling_iface_signal_marshal_simple_signal, 1046s # G_TYPE_NONE, 1046s # 0); 1046s # 1046s # /** 1046s # * OrgProjectSignalingIface::signal-with-many-args: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * @arg_an_b: Argument. 1046s # * @arg_an_y: Argument. 1046s # * @arg_an_n: Argument. 1046s # * @arg_an_q: Argument. 1046s # * @arg_an_i: Argument. 1046s # * @arg_an_u: Argument. 1046s # * @arg_an_x: Argument. 1046s # * @arg_an_t: Argument. 1046s # * @arg_an_d: Argument. 1046s # * @arg_an_s: Argument. 1046s # * @arg_an_o: Argument. 1046s # * @arg_an_g: Argument. 1046s # * @arg_an_h: Argument. 1046s # * @arg_an_ay: Argument. 1046s # * @arg_an_as: Argument. 1046s # * @arg_an_ao: Argument. 1046s # * @arg_an_aay: Argument. 1046s # * @arg_an_asv: Argument. 1046s # * 1046s # * On the client-side, this signal is emitted whenever the D-Bus signal "SignalWithManyArgs" is received. 1046s # * 1046s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1046s # */ 1046s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS] = 1046s # g_signal_new ("signal-with-many-args", 1046s # G_TYPE_FROM_INTERFACE (iface), 1046s # G_SIGNAL_RUN_LAST, 1046s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, signal_with_many_args), 1046s # NULL, 1046s # NULL, 1046s # org_project_signaling_iface_signal_marshal_signal_with_many_args, 1046s # G_TYPE_NONE, 1046s # 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); 1046s # 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_emit_simple_signal: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * 1046s # * Emits the "SimpleSignal" D-Bus signal. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_emit_simple_signal ( 1046s # OrgProjectSignalingIface *object) 1046s # { 1046s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_emit_signal_with_many_args: 1046s # * @object: A #OrgProjectSignalingIface. 1046s # * @arg_an_b: Argument to pass with the signal. 1046s # * @arg_an_y: Argument to pass with the signal. 1046s # * @arg_an_n: Argument to pass with the signal. 1046s # * @arg_an_q: Argument to pass with the signal. 1046s # * @arg_an_i: Argument to pass with the signal. 1046s # * @arg_an_u: Argument to pass with the signal. 1046s # * @arg_an_x: Argument to pass with the signal. 1046s # * @arg_an_t: Argument to pass with the signal. 1046s # * @arg_an_d: Argument to pass with the signal. 1046s # * @arg_an_s: Argument to pass with the signal. 1046s # * @arg_an_o: Argument to pass with the signal. 1046s # * @arg_an_g: Argument to pass with the signal. 1046s # * @arg_an_h: Argument to pass with the signal. 1046s # * @arg_an_ay: Argument to pass with the signal. 1046s # * @arg_an_as: Argument to pass with the signal. 1046s # * @arg_an_ao: Argument to pass with the signal. 1046s # * @arg_an_aay: Argument to pass with the signal. 1046s # * @arg_an_asv: Argument to pass with the signal. 1046s # * 1046s # * Emits the "SignalWithManyArgs" D-Bus signal. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_emit_signal_with_many_args ( 1046s # OrgProjectSignalingIface *object, 1046s # gboolean arg_an_b, 1046s # guchar arg_an_y, 1046s # gint16 arg_an_n, 1046s # guint16 arg_an_q, 1046s # gint arg_an_i, 1046s # guint arg_an_u, 1046s # gint64 arg_an_x, 1046s # guint64 arg_an_t, 1046s # gdouble arg_an_d, 1046s # const gchar *arg_an_s, 1046s # const gchar *arg_an_o, 1046s # const gchar *arg_an_g, 1046s # GVariant *arg_an_h, 1046s # const gchar *arg_an_ay, 1046s # const gchar *const *arg_an_as, 1046s # const gchar *const *arg_an_ao, 1046s # const gchar *const *arg_an_aay, 1046s # GVariant *arg_an_asv) 1046s # { 1046s # 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); 1046s # } 1046s # 1046s # /* ------------------------------------------------------------------------ */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceProxy: 1046s # * 1046s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceProxyClass: 1046s # * @parent_class: The parent class. 1046s # * 1046s # * Class structure for #OrgProjectSignalingIfaceProxy. 1046s # */ 1046s # 1046s # struct _OrgProjectSignalingIfaceProxyPrivate 1046s # { 1046s # GData *qdata; 1046s # }; 1046s # 1046s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1046s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1046s # 1046s # #else 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1046s # 1046s # #endif 1046s # static void 1046s # org_project_signaling_iface_proxy_finalize (GObject *object) 1046s # { 1046s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1046s # g_datalist_clear (&proxy->priv->qdata); 1046s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1046s # guint prop_id G_GNUC_UNUSED, 1046s # GValue *value G_GNUC_UNUSED, 1046s # GParamSpec *pspec G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1046s # guint prop_id G_GNUC_UNUSED, 1046s # const GValue *value G_GNUC_UNUSED, 1046s # GParamSpec *pspec G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1046s # const gchar *sender_name G_GNUC_UNUSED, 1046s # const gchar *signal_name, 1046s # GVariant *parameters) 1046s # { 1046s # _ExtendedGDBusSignalInfo *info; 1046s # GVariantIter iter; 1046s # GVariant *child; 1046s # GValue *paramv; 1046s # gsize num_params; 1046s # gsize n; 1046s # guint signal_id; 1046s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1046s # if (info == NULL) 1046s # return; 1046s # num_params = g_variant_n_children (parameters); 1046s # paramv = g_new0 (GValue, num_params + 1); 1046s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_set_object (¶mv[0], proxy); 1046s # g_variant_iter_init (&iter, parameters); 1046s # n = 1; 1046s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1046s # { 1046s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1046s # if (arg_info->use_gvariant) 1046s # { 1046s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1046s # g_value_set_variant (¶mv[n], child); 1046s # n++; 1046s # } 1046s # else 1046s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1046s # g_variant_unref (child); 1046s # } 1046s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_signal_emitv (paramv, signal_id, 0, NULL); 1046s # for (n = 0; n < num_params + 1; n++) 1046s # g_value_unset (¶mv[n]); 1046s # g_free (paramv); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1046s # GVariant *changed_properties, 1046s # const gchar *const *invalidated_properties) 1046s # { 1046s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1046s # guint n; 1046s # const gchar *key; 1046s # GVariantIter *iter; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # g_variant_get (changed_properties, "a{sv}", &iter); 1046s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1046s # { 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1046s # g_datalist_remove_data (&proxy->priv->qdata, key); 1046s # if (info != NULL) 1046s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1046s # } 1046s # g_variant_iter_free (iter); 1046s # for (n = 0; invalidated_properties[n] != NULL; n++) 1046s # { 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1046s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1046s # if (info != NULL) 1046s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1046s # } 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1046s # { 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1046s # #else 1046s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1046s # #endif 1046s # 1046s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1046s # { 1046s # GObjectClass *gobject_class; 1046s # GDBusProxyClass *proxy_class; 1046s # 1046s # gobject_class = G_OBJECT_CLASS (klass); 1046s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1046s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1046s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1046s # 1046s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1046s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1046s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1046s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1046s # #endif 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new: 1046s # * @connection: A #GDBusConnection. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1046s # * @user_data: User data to pass to @callback. 1046s # * 1046s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1046s # * 1046s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1046s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_proxy_new ( 1046s # GDBusConnection *connection, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GAsyncReadyCallback callback, 1046s # gpointer user_data) 1046s # { 1046s # 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); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_finish: 1046s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_finish ( 1046s # GAsyncResult *res, 1046s # GError **error) 1046s # { 1046s # GObject *ret; 1046s # GObject *source_object; 1046s # source_object = g_async_result_get_source_object (res); 1046s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1046s # g_object_unref (source_object); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_sync: 1046s # * @connection: A #GDBusConnection. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1046s # * 1046s # * The calling thread is blocked until a reply is received. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_sync ( 1046s # GDBusConnection *connection, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GError **error) 1046s # { 1046s # GInitable *ret; 1046s # 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); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus: 1046s # * @bus_type: A #GBusType. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: A bus name (well-known or unique). 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1046s # * @user_data: User data to pass to @callback. 1046s # * 1046s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1046s # * 1046s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1046s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1046s # */ 1046s # void 1046s # org_project_signaling_iface_proxy_new_for_bus ( 1046s # GBusType bus_type, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GAsyncReadyCallback callback, 1046s # gpointer user_data) 1046s # { 1046s # 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); 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1046s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1046s # GAsyncResult *res, 1046s # GError **error) 1046s # { 1046s # GObject *ret; 1046s # GObject *source_object; 1046s # source_object = g_async_result_get_source_object (res); 1046s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1046s # g_object_unref (source_object); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1046s # * @bus_type: A #GBusType. 1046s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1046s # * @name: A bus name (well-known or unique). 1046s # * @object_path: An object path. 1046s # * @cancellable: (nullable): A #GCancellable or %NULL. 1046s # * @error: Return location for error or %NULL 1046s # * 1046s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1046s # * 1046s # * The calling thread is blocked until a reply is received. 1046s # * 1046s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1046s # GBusType bus_type, 1046s # GDBusProxyFlags flags, 1046s # const gchar *name, 1046s # const gchar *object_path, 1046s # GCancellable *cancellable, 1046s # GError **error) 1046s # { 1046s # GInitable *ret; 1046s # 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); 1046s # if (ret != NULL) 1046s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1046s # else 1046s # return NULL; 1046s # } 1046s # 1046s # 1046s # /* ------------------------------------------------------------------------ */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceSkeleton: 1046s # * 1046s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1046s # */ 1046s # 1046s # /** 1046s # * OrgProjectSignalingIfaceSkeletonClass: 1046s # * @parent_class: The parent class. 1046s # * 1046s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1046s # */ 1046s # 1046s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1046s # { 1046s # GValue *properties; 1046s # GList *changed_properties; 1046s # GSource *changed_properties_idle_source; 1046s # GMainContext *context; 1046s # GMutex lock; 1046s # }; 1046s # 1046s # static void 1046s # _org_project_signaling_iface_skeleton_handle_method_call ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name, 1046s # const gchar *method_name, 1046s # GVariant *parameters, 1046s # GDBusMethodInvocation *invocation, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # _ExtendedGDBusMethodInfo *info; 1046s # GVariantIter iter; 1046s # GVariant *child; 1046s # GValue *paramv; 1046s # gsize num_params; 1046s # guint num_extra; 1046s # gsize n; 1046s # guint signal_id; 1046s # GValue return_value = G_VALUE_INIT; 1046s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1046s # g_assert (info != NULL); 1046s # num_params = g_variant_n_children (parameters); 1046s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1046s # n = 0; 1046s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_set_object (¶mv[n++], skeleton); 1046s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1046s # g_value_set_object (¶mv[n++], invocation); 1046s # if (info->pass_fdlist) 1046s # { 1046s # #ifdef G_OS_UNIX 1046s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1046s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1046s # #else 1046s # g_assert_not_reached (); 1046s # #endif 1046s # } 1046s # g_variant_iter_init (&iter, parameters); 1046s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1046s # { 1046s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1046s # if (arg_info->use_gvariant) 1046s # { 1046s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1046s # g_value_set_variant (¶mv[n], child); 1046s # n++; 1046s # } 1046s # else 1046s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1046s # g_variant_unref (child); 1046s # } 1046s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1046s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1046s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1046s # if (!g_value_get_boolean (&return_value)) 1046s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1046s # g_value_unset (&return_value); 1046s # for (n = 0; n < num_params + num_extra; n++) 1046s # g_value_unset (¶mv[n]); 1046s # g_free (paramv); 1046s # } 1046s # 1046s # static GVariant * 1046s # _org_project_signaling_iface_skeleton_handle_get_property ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name G_GNUC_UNUSED, 1046s # const gchar *property_name, 1046s # GError **error, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # GValue value = G_VALUE_INIT; 1046s # GParamSpec *pspec; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # GVariant *ret; 1046s # ret = NULL; 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1046s # g_assert (info != NULL); 1046s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1046s # if (pspec == NULL) 1046s # { 1046s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1046s # } 1046s # else 1046s # { 1046s # g_value_init (&value, pspec->value_type); 1046s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1046s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1046s # g_value_unset (&value); 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # static gboolean 1046s # _org_project_signaling_iface_skeleton_handle_set_property ( 1046s # GDBusConnection *connection G_GNUC_UNUSED, 1046s # const gchar *sender G_GNUC_UNUSED, 1046s # const gchar *object_path G_GNUC_UNUSED, 1046s # const gchar *interface_name G_GNUC_UNUSED, 1046s # const gchar *property_name, 1046s # GVariant *variant, 1046s # GError **error, 1046s # gpointer user_data) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1046s # GValue value = G_VALUE_INIT; 1046s # GParamSpec *pspec; 1046s # _ExtendedGDBusPropertyInfo *info; 1046s # gboolean ret; 1046s # ret = FALSE; 1046s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1046s # g_assert (info != NULL); 1046s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1046s # if (pspec == NULL) 1046s # { 1046s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1046s # } 1046s # else 1046s # { 1046s # if (info->use_gvariant) 1046s # g_value_set_variant (&value, variant); 1046s # else 1046s # g_dbus_gvariant_to_gvalue (variant, &value); 1046s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1046s # g_value_unset (&value); 1046s # ret = TRUE; 1046s # } 1046s # return ret; 1046s # } 1046s # 1046s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1046s # { 1046s # _org_project_signaling_iface_skeleton_handle_method_call, 1046s # _org_project_signaling_iface_skeleton_handle_get_property, 1046s # _org_project_signaling_iface_skeleton_handle_set_property, 1046s # {NULL} 1046s # }; 1046s # 1046s # static GDBusInterfaceInfo * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1046s # { 1046s # return org_project_signaling_iface_interface_info (); 1046s # } 1046s # 1046s # static GDBusInterfaceVTable * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1046s # { 1046s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1046s # } 1046s # 1046s # static GVariant * 1046s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1046s # 1046s # GVariantBuilder builder; 1046s # guint n; 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1046s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1046s # #else 1046s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1046s # #endif 1046s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1046s # goto out; 1046s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1046s # { 1046s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1046s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1046s # { 1046s # GVariant *value; 1046s # 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); 1046s # if (value != NULL) 1046s # { 1046s # g_variant_take_ref (value); 1046s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1046s # g_variant_unref (value); 1046s # } 1046s # } 1046s # } 1046s # out: 1046s # return g_variant_builder_end (&builder); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1046s # { 1046s # } 1046s # 1046s # static void 1046s # _org_project_signaling_iface_on_signal_simple_signal ( 1046s # OrgProjectSignalingIface *object) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # 1046s # GList *connections, *l; 1046s # GVariant *signal_variant; 1046s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1046s # 1046s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1046s # for (l = connections; l != NULL; l = l->next) 1046s # { 1046s # GDBusConnection *connection = l->data; 1046s # g_dbus_connection_emit_signal (connection, 1046s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1046s # signal_variant, NULL); 1046s # } 1046s # g_variant_unref (signal_variant); 1046s # g_list_free_full (connections, g_object_unref); 1046s # } 1046s # 1046s # static void 1046s # _org_project_signaling_iface_on_signal_signal_with_many_args ( 1046s # OrgProjectSignalingIface *object, 1046s # gboolean arg_an_b, 1046s # guchar arg_an_y, 1046s # gint16 arg_an_n, 1046s # guint16 arg_an_q, 1046s # gint arg_an_i, 1046s # guint arg_an_u, 1046s # gint64 arg_an_x, 1046s # guint64 arg_an_t, 1046s # gdouble arg_an_d, 1046s # const gchar *arg_an_s, 1046s # const gchar *arg_an_o, 1046s # const gchar *arg_an_g, 1046s # GVariant *arg_an_h, 1046s # const gchar *arg_an_ay, 1046s # const gchar *const *arg_an_as, 1046s # const gchar *const *arg_an_ao, 1046s # const gchar *const *arg_an_aay, 1046s # GVariant *arg_an_asv) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # 1046s # GList *connections, *l; 1046s # GVariant *signal_variant; 1046s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1046s # 1046s # signal_variant = g_variant_ref_sink (g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1046s # arg_an_b, 1046s # arg_an_y, 1046s # arg_an_n, 1046s # arg_an_q, 1046s # arg_an_i, 1046s # arg_an_u, 1046s # arg_an_x, 1046s # arg_an_t, 1046s # arg_an_d, 1046s # arg_an_s, 1046s # arg_an_o, 1046s # arg_an_g, 1046s # arg_an_h, 1046s # arg_an_ay, 1046s # arg_an_as, 1046s # arg_an_ao, 1046s # arg_an_aay, 1046s # arg_an_asv)); 1046s # for (l = connections; l != NULL; l = l->next) 1046s # { 1046s # GDBusConnection *connection = l->data; 1046s # g_dbus_connection_emit_signal (connection, 1046s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SignalWithManyArgs", 1046s # signal_variant, NULL); 1046s # } 1046s # g_variant_unref (signal_variant); 1046s # g_list_free_full (connections, g_object_unref); 1046s # } 1046s # 1046s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1046s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1046s # 1046s # #else 1046s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1046s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1046s # 1046s # #endif 1046s # static void 1046s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1046s # { 1046s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1046s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1046s # if (skeleton->priv->changed_properties_idle_source != NULL) 1046s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1046s # g_main_context_unref (skeleton->priv->context); 1046s # g_mutex_clear (&skeleton->priv->lock); 1046s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1046s # { 1046s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1046s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1046s # #else 1046s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1046s # #endif 1046s # 1046s # g_mutex_init (&skeleton->priv->lock); 1046s # skeleton->priv->context = g_main_context_ref_thread_default (); 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1046s # { 1046s # GObjectClass *gobject_class; 1046s # GDBusInterfaceSkeletonClass *skeleton_class; 1046s # 1046s # gobject_class = G_OBJECT_CLASS (klass); 1046s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1046s # 1046s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1046s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1046s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1046s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1046s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1046s # 1046s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1046s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1046s # #endif 1046s # } 1046s # 1046s # static void 1046s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1046s # { 1046s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1046s # iface->signal_with_many_args = _org_project_signaling_iface_on_signal_signal_with_many_args; 1046s # } 1046s # 1046s # /** 1046s # * org_project_signaling_iface_skeleton_new: 1046s # * 1046s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1046s # * 1046s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1046s # */ 1046s # OrgProjectSignalingIface * 1046s # org_project_signaling_iface_skeleton_new (void) 1046s # { 1046s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1046s # } 1046s # Error: 1046s ok 25 __main__.TestCodegen.test_generate_valid_docbook 1046s # gdbus-codegen: /usr/bin/gdbus-codegen 1046s # tmpdir: /tmp/tmp8bw8sgc1 1046s # /tmp/tmp8bw8sgc1/tmphw23ljo6.xml: 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # 1046s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8bw8sgc1/tmphw23ljo6.xml', '--generate-docbook', 'test'] 1046s # Return code: 0 1046s # Output: 1046s # 1046s # Error: 1046s ok 26 __main__.TestCodegen.test_glib_max_allowed_less_than_min_required 1046s # gdbus-codegen: /usr/bin/gdbus-codegen 1046s # tmpdir: /tmp/tmpevhdua7w 1046s # /tmp/tmpevhdua7w/tmpnupf83jd.xml: 1046s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpevhdua7w/tmpnupf83jd.xml', '--output', '-', '--body', '--glib-max-allowed', '2.62', '--glib-min-required', '2.64'] 1046s # Return code: 1 1046s # Output: 1046s # 1046s # Error: 1046s # ERROR: Invalid versions: --glib-min-required ((2, 64)) must be less than or equal to --glib-max-allowed ((2, 62)) 1046s ok 27 __main__.TestCodegen.test_glib_max_allowed_major_only 1046s # gdbus-codegen: /usr/bin/gdbus-codegen 1046s # tmpdir: /tmp/tmpga9895_b 1046s # /tmp/tmpga9895_b/tmpl35gz1z2.xml: 1046s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpga9895_b/tmpl35gz1z2.xml', '--output', '-', '--header', '--glib-max-allowed', '3'] 1046s # Return code: 0 1046s # Output: 1046s # /* 1046s # * This file is generated by gdbus-codegen, do not modify it. 1046s # * 1046s # * The license of this code is the same as for the D-Bus interface description 1046s # * it was derived from. Note that it links to GLib, so must comply with the 1046s # * LGPL linking clauses. 1046s # */ 1046s # 1046s # #ifndef __STDOUT__ 1046s # #define __STDOUT__ 1046s # 1046s # #include 1046s # 1046s # G_BEGIN_DECLS 1046s # 1046s # 1046s # G_END_DECLS 1046s # 1046s # #endif /* __STDOUT__ */ 1046s # Error: 1046s ok 28 __main__.TestCodegen.test_glib_max_allowed_too_low 1046s # gdbus-codegen: /usr/bin/gdbus-codegen 1046s # tmpdir: /tmp/tmp83x061pf 1046s # /tmp/tmp83x061pf/tmpmyv29ct5.xml: 1046s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp83x061pf/tmpmyv29ct5.xml', '--output', '-', '--body', '--glib-max-allowed', '2.6'] 1046s # Return code: 1 1046s # Output: 1046s # 1046s # Error: 1046s # ERROR: Invalid versions: --glib-min-required ((2, 30)) must be less than or equal to --glib-max-allowed ((2, 6)) 1046s ok 29 __main__.TestCodegen.test_glib_max_allowed_unstable 1046s # gdbus-codegen: /usr/bin/gdbus-codegen 1046s # tmpdir: /tmp/tmp_ayzgns3 1046s # /tmp/tmp_ayzgns3/tmpdg9tzv_t.xml: 1046s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp_ayzgns3/tmpdg9tzv_t.xml', '--output', '-', '--header', '--glib-max-allowed', '2.63', '--glib-min-required', '2.64'] 1046s # Return code: 0 1046s # Output: 1046s # /* 1046s # * This file is generated by gdbus-codegen, do not modify it. 1046s # * 1046s # * The license of this code is the same as for the D-Bus interface description 1046s # * it was derived from. Note that it links to GLib, so must comply with the 1046s # * LGPL linking clauses. 1046s # */ 1046s # 1046s # #ifndef __STDOUT__ 1046s # #define __STDOUT__ 1046s # 1046s # #include 1046s # 1046s # G_BEGIN_DECLS 1046s # 1046s # 1046s # G_END_DECLS 1046s # 1046s # #endif /* __STDOUT__ */ 1046s # Error: 1046s ok 30 __main__.TestCodegen.test_glib_max_allowed_with_micro 1046s # gdbus-codegen: /usr/bin/gdbus-codegen 1046s # tmpdir: /tmp/tmpbvvg28ll 1046s # /tmp/tmpbvvg28ll/tmphk2d4gib.xml: 1046s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpbvvg28ll/tmphk2d4gib.xml', '--output', '-', '--header', '--glib-max-allowed', '2.46.2'] 1046s # Return code: 0 1046s # Output: 1046s # /* 1046s # * This file is generated by gdbus-codegen, do not modify it. 1046s # * 1046s # * The license of this code is the same as for the D-Bus interface description 1046s # * it was derived from. Note that it links to GLib, so must comply with the 1046s # * LGPL linking clauses. 1046s # */ 1046s # 1046s # #ifndef __STDOUT__ 1046s # #define __STDOUT__ 1046s # 1046s # #include 1046s # 1046s # G_BEGIN_DECLS 1046s # 1046s # 1046s # G_END_DECLS 1046s # 1046s # #endif /* __STDOUT__ */ 1046s # Error: 1046s ok 31 __main__.TestCodegen.test_glib_min_required_invalid 1046s # gdbus-codegen: /usr/bin/gdbus-codegen 1046s # tmpdir: /tmp/tmpc77b3hhj 1046s # /tmp/tmpc77b3hhj/tmpqy_3eagv.xml: 1046s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpc77b3hhj/tmpqy_3eagv.xml', '--output', '-', '--body', '--glib-min-required', 'hello mum'] 1046s # Return code: 1 1046s # Output: 1046s # 1046s # Error: 1046s # ERROR: Unrecognized --glib-min-required string ‘hello mum’ 1046s ok 32 __main__.TestCodegen.test_glib_min_required_major_only 1046s # gdbus-codegen: /usr/bin/gdbus-codegen 1046s # tmpdir: /tmp/tmp2b4mvrsw 1046s # /tmp/tmp2b4mvrsw/tmpm4n5pf4o.xml: 1046s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2b4mvrsw/tmpm4n5pf4o.xml', '--output', '-', '--header', '--glib-min-required', '3', '--glib-max-allowed', '3.2'] 1046s # Return code: 0 1046s # Output: 1046s # /* 1046s # * This file is generated by gdbus-codegen, do not modify it. 1046s # * 1046s # * The license of this code is the same as for the D-Bus interface description 1046s # * it was derived from. Note that it links to GLib, so must comply with the 1046s # * LGPL linking clauses. 1046s # */ 1046s # 1046s # #ifndef __STDOUT__ 1046s # #define __STDOUT__ 1046s # 1046s # #include 1046s # 1046s # G_BEGIN_DECLS 1046s # 1046s # 1046s # G_END_DECLS 1046s # 1046s # #endif /* __STDOUT__ */ 1046s # Error: 1046s ok 33 __main__.TestCodegen.test_glib_min_required_too_low 1046s # gdbus-codegen: /usr/bin/gdbus-codegen 1046s # tmpdir: /tmp/tmp904pofa7 1046s # /tmp/tmp904pofa7/tmp5rm9obgr.xml: 1046s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp904pofa7/tmp5rm9obgr.xml', '--output', '-', '--body', '--glib-min-required', '2.6'] 1046s # Return code: 1 1046s # Output: 1046s # 1046s # Error: 1046s # ERROR: Invalid --glib-min-required string ‘2.6’: minimum version is 2.30 1046s ok 34 __main__.TestCodegen.test_glib_min_required_with_micro 1046s # gdbus-codegen: /usr/bin/gdbus-codegen 1046s # tmpdir: /tmp/tmpc3rl78h_ 1046s # /tmp/tmpc3rl78h_/tmpkx7zlm1g.xml: 1046s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpc3rl78h_/tmpkx7zlm1g.xml', '--output', '-', '--header', '--glib-min-required', '2.46.2'] 1046s # Return code: 0 1046s # Output: 1046s # /* 1046s # * This file is generated by gdbus-codegen, do not modify it. 1046s # * 1046s # * The license of this code is the same as for the D-Bus interface description 1046s # * it was derived from. Note that it links to GLib, so must comply with the 1046s # * LGPL linking clauses. 1046s # */ 1046s # 1046s # #ifndef __STDOUT__ 1046s # #define __STDOUT__ 1046s # 1046s # #include 1046s # 1046s # G_BEGIN_DECLS 1046s # 1046s # 1046s # G_END_DECLS 1046s # 1046s # #endif /* __STDOUT__ */ 1046s # Error: 1046s ok 35 __main__.TestCodegen.test_help 1046s # gdbus-codegen: /usr/bin/gdbus-codegen 1046s # tmpdir: /tmp/tmp4yvs0g0j 1046s # Running: ['/usr/bin/gdbus-codegen', '--help'] 1046s # Return code: 0 1046s # Output: 1046s # usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 1046s # [--c-namespace NAMESPACE] [--c-generate-object-manager] 1046s # [--c-generate-autocleanup {none,objects,all}] 1046s # [--generate-docbook OUTFILES] [--generate-md OUTFILES] 1046s # [--generate-rst OUTFILES] [--pragma-once] 1046s # [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 1046s # [--glib-min-required VERSION] 1046s # [--glib-max-allowed VERSION] 1046s # [--symbol-decorator SYMBOL_DECORATOR] 1046s # [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 1046s # [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 1046s # [--generate-c-code OUTFILES | --header | --body | 1046s # --interface-info-header | --interface-info-body] 1046s # [--output FILE | --output-directory OUTDIR] 1046s # FILE [FILE ...] 1046s # 1046s # D-Bus code and documentation generator 1046s # 1046s # positional arguments: 1046s # FILE D-Bus introspection XML file 1046s # 1046s # options: 1046s # -h, --help show this help message and exit 1046s # --interface-prefix PREFIX 1046s # String to strip from D-Bus interface names for code 1046s # and docs 1046s # --c-namespace NAMESPACE 1046s # The namespace to use for generated C code 1046s # --c-generate-object-manager 1046s # Generate a GDBusObjectManagerClient subclass when 1046s # generating C code 1046s # --c-generate-autocleanup {none,objects,all} 1046s # Generate autocleanup support 1046s # --generate-docbook OUTFILES 1046s # Generate Docbook in OUTFILES-org.Project.IFace.xml 1046s # --generate-md OUTFILES 1046s # Generate Markdown in OUTFILES-org.Project.IFace.md 1046s # --generate-rst OUTFILES 1046s # Generate reStructuredText in OUTFILES- 1046s # org.Project.IFace.rst 1046s # --pragma-once Use "pragma once" as the inclusion guard 1046s # --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 1046s # Add annotation (may be used several times) 1046s # --glib-min-required VERSION 1046s # Minimum version of GLib to be supported by the 1046s # outputted code (default: 2.30) 1046s # --glib-max-allowed VERSION 1046s # Maximum version of GLib to be used by the outputted 1046s # code (default: current GLib version) 1046s # --symbol-decorator SYMBOL_DECORATOR 1046s # Macro used to decorate a symbol in the outputted 1046s # header, possibly to export symbols 1046s # --symbol-decorator-header SYMBOL_DECORATOR_HEADER 1046s # Additional header required for decorator specified by 1046s # --symbol-decorator 1046s # --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 1046s # Additional define required for decorator specified by 1046s # --symbol-decorator 1046s # --generate-c-code OUTFILES 1046s # Generate C code in OUTFILES.[ch] 1046s # --header Generate C headers 1046s # --body Generate C code 1046s # --interface-info-header 1046s # Generate GDBusInterfaceInfo C header 1046s # --interface-info-body 1046s # Generate GDBusInterfaceInfo C code 1046s # --output FILE Write output into the specified file 1046s # --output-directory OUTDIR 1046s # Location to output generated files 1046s # Error: 1047s # Executing: glib/codegen.py.test 1047s ok 36 __main__.TestCodegen.test_indentation_preservation_in_comments 1047s # gdbus-codegen: /usr/bin/gdbus-codegen 1047s # tmpdir: /tmp/tmp93cf4rq4 1047s # /tmp/tmp93cf4rq4/tmpvz7_v2pf.xml: 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp93cf4rq4/tmpvz7_v2pf.xml', '--generate-rst', 'test'] 1047s # Return code: 0 1047s # Output: 1047s # 1047s # Error: 1047s # 1047s # /tmp/tmp93cf4rq4/tmpxhhm2nfd.xml: 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp93cf4rq4/tmpxhhm2nfd.xml', '--generate-md', 'test'] 1047s # Return code: 0 1047s # Output: 1047s # 1047s # Error: 1047s # 1047s # /tmp/tmp93cf4rq4/tmpupf8c1mm.xml: 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp93cf4rq4/tmpupf8c1mm.xml', '--generate-docbook', 'test'] 1047s # Return code: 0 1047s # Output: 1047s # 1047s # Error: 1047s ok 37 __main__.TestCodegen.test_no_args 1047s # gdbus-codegen: /usr/bin/gdbus-codegen 1047s # tmpdir: /tmp/tmpfu22aj0r 1047s # Running: ['/usr/bin/gdbus-codegen'] 1047s # Return code: 2 1047s # Output: 1047s # 1047s # Error: 1047s # usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 1047s # [--c-namespace NAMESPACE] [--c-generate-object-manager] 1047s # [--c-generate-autocleanup {none,objects,all}] 1047s # [--generate-docbook OUTFILES] [--generate-md OUTFILES] 1047s # [--generate-rst OUTFILES] [--pragma-once] 1047s # [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 1047s # [--glib-min-required VERSION] 1047s # [--glib-max-allowed VERSION] 1047s # [--symbol-decorator SYMBOL_DECORATOR] 1047s # [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 1047s # [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 1047s # [--generate-c-code OUTFILES | --header | --body | 1047s # --interface-info-header | --interface-info-body] 1047s # [--output FILE | --output-directory OUTDIR] 1047s # FILE [FILE ...] 1047s # gdbus-codegen: error: the following arguments are required: FILE 1047s ok 38 __main__.TestCodegen.test_reproducible 1047s # gdbus-codegen: /usr/bin/gdbus-codegen 1047s # tmpdir: /tmp/tmpgz3214sd 1047s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgz3214sd/tmplltaljlk1.xml', '/tmp/tmpgz3214sd/tmpjw6g15en2.xml', '--output', '-', '--header'] 1047s # Return code: 0 1047s # Output: 1047s # /* 1047s # * This file is generated by gdbus-codegen, do not modify it. 1047s # * 1047s # * The license of this code is the same as for the D-Bus interface description 1047s # * it was derived from. Note that it links to GLib, so must comply with the 1047s # * LGPL linking clauses. 1047s # */ 1047s # 1047s # #ifndef __STDOUT__ 1047s # #define __STDOUT__ 1047s # 1047s # #include 1047s # 1047s # G_BEGIN_DECLS 1047s # 1047s # 1047s # /* ------------------------------------------------------------------------ */ 1047s # /* Declarations for org.project.Bar.Frobnicator */ 1047s # 1047s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR (org_project_bar_frobnicator_get_type ()) 1047s # #define ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicator)) 1047s # #define IS_ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR)) 1047s # #define ORG_PROJECT_BAR_FROBNICATOR_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicatorIface)) 1047s # 1047s # struct _OrgProjectBarFrobnicator; 1047s # typedef struct _OrgProjectBarFrobnicator OrgProjectBarFrobnicator; 1047s # typedef struct _OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorIface; 1047s # 1047s # struct _OrgProjectBarFrobnicatorIface 1047s # { 1047s # GTypeInterface parent_iface; 1047s # 1047s # gboolean (*handle_random_method) ( 1047s # OrgProjectBarFrobnicator *object, 1047s # GDBusMethodInvocation *invocation); 1047s # 1047s # }; 1047s # 1047s # GType org_project_bar_frobnicator_get_type (void) G_GNUC_CONST; 1047s # 1047s # GDBusInterfaceInfo *org_project_bar_frobnicator_interface_info (void); 1047s # guint org_project_bar_frobnicator_override_properties (GObjectClass *klass, guint property_id_begin); 1047s # 1047s # 1047s # /* D-Bus method call completion functions: */ 1047s # void org_project_bar_frobnicator_complete_random_method ( 1047s # OrgProjectBarFrobnicator *object, 1047s # GDBusMethodInvocation *invocation); 1047s # 1047s # 1047s # 1047s # /* D-Bus method calls: */ 1047s # void org_project_bar_frobnicator_call_random_method ( 1047s # OrgProjectBarFrobnicator *proxy, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data); 1047s # 1047s # gboolean org_project_bar_frobnicator_call_random_method_finish ( 1047s # OrgProjectBarFrobnicator *proxy, 1047s # GAsyncResult *res, 1047s # GError **error); 1047s # 1047s # gboolean org_project_bar_frobnicator_call_random_method_sync ( 1047s # OrgProjectBarFrobnicator *proxy, 1047s # GCancellable *cancellable, 1047s # GError **error); 1047s # 1047s # 1047s # 1047s # /* ---- */ 1047s # 1047s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY (org_project_bar_frobnicator_proxy_get_type ()) 1047s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxy)) 1047s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 1047s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 1047s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 1047s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 1047s # 1047s # typedef struct _OrgProjectBarFrobnicatorProxy OrgProjectBarFrobnicatorProxy; 1047s # typedef struct _OrgProjectBarFrobnicatorProxyClass OrgProjectBarFrobnicatorProxyClass; 1047s # typedef struct _OrgProjectBarFrobnicatorProxyPrivate OrgProjectBarFrobnicatorProxyPrivate; 1047s # 1047s # struct _OrgProjectBarFrobnicatorProxy 1047s # { 1047s # /*< private >*/ 1047s # GDBusProxy parent_instance; 1047s # OrgProjectBarFrobnicatorProxyPrivate *priv; 1047s # }; 1047s # 1047s # struct _OrgProjectBarFrobnicatorProxyClass 1047s # { 1047s # GDBusProxyClass parent_class; 1047s # }; 1047s # 1047s # GType org_project_bar_frobnicator_proxy_get_type (void) G_GNUC_CONST; 1047s # 1047s # #if GLIB_CHECK_VERSION(2, 44, 0) 1047s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorProxy, g_object_unref) 1047s # #endif 1047s # 1047s # void org_project_bar_frobnicator_proxy_new ( 1047s # GDBusConnection *connection, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data); 1047s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_finish ( 1047s # GAsyncResult *res, 1047s # GError **error); 1047s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_sync ( 1047s # GDBusConnection *connection, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GError **error); 1047s # 1047s # void org_project_bar_frobnicator_proxy_new_for_bus ( 1047s # GBusType bus_type, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data); 1047s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_finish ( 1047s # GAsyncResult *res, 1047s # GError **error); 1047s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_sync ( 1047s # GBusType bus_type, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GError **error); 1047s # 1047s # 1047s # /* ---- */ 1047s # 1047s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON (org_project_bar_frobnicator_skeleton_get_type ()) 1047s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeleton)) 1047s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 1047s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 1047s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 1047s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 1047s # 1047s # typedef struct _OrgProjectBarFrobnicatorSkeleton OrgProjectBarFrobnicatorSkeleton; 1047s # typedef struct _OrgProjectBarFrobnicatorSkeletonClass OrgProjectBarFrobnicatorSkeletonClass; 1047s # typedef struct _OrgProjectBarFrobnicatorSkeletonPrivate OrgProjectBarFrobnicatorSkeletonPrivate; 1047s # 1047s # struct _OrgProjectBarFrobnicatorSkeleton 1047s # { 1047s # /*< private >*/ 1047s # GDBusInterfaceSkeleton parent_instance; 1047s # OrgProjectBarFrobnicatorSkeletonPrivate *priv; 1047s # }; 1047s # 1047s # struct _OrgProjectBarFrobnicatorSkeletonClass 1047s # { 1047s # GDBusInterfaceSkeletonClass parent_class; 1047s # }; 1047s # 1047s # GType org_project_bar_frobnicator_skeleton_get_type (void) G_GNUC_CONST; 1047s # 1047s # #if GLIB_CHECK_VERSION(2, 44, 0) 1047s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorSkeleton, g_object_unref) 1047s # #endif 1047s # 1047s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_skeleton_new (void); 1047s # 1047s # 1047s # /* ------------------------------------------------------------------------ */ 1047s # /* Declarations for com.acme.Coyote */ 1047s # 1047s # #define TYPE_COM_ACME_COYOTE (com_acme_coyote_get_type ()) 1047s # #define COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyote)) 1047s # #define IS_COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE)) 1047s # #define COM_ACME_COYOTE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyoteIface)) 1047s # 1047s # struct _ComAcmeCoyote; 1047s # typedef struct _ComAcmeCoyote ComAcmeCoyote; 1047s # typedef struct _ComAcmeCoyoteIface ComAcmeCoyoteIface; 1047s # 1047s # struct _ComAcmeCoyoteIface 1047s # { 1047s # GTypeInterface parent_iface; 1047s # 1047s # 1047s # 1047s # gboolean (*handle_attack) ( 1047s # ComAcmeCoyote *object, 1047s # GDBusMethodInvocation *invocation); 1047s # 1047s # gboolean (*handle_run) ( 1047s # ComAcmeCoyote *object, 1047s # GDBusMethodInvocation *invocation); 1047s # 1047s # gboolean (*handle_sleep) ( 1047s # ComAcmeCoyote *object, 1047s # GDBusMethodInvocation *invocation); 1047s # 1047s # const gchar * (*get_mood) (ComAcmeCoyote *object); 1047s # 1047s # void (*surprised) ( 1047s # ComAcmeCoyote *object); 1047s # 1047s # }; 1047s # 1047s # GType com_acme_coyote_get_type (void) G_GNUC_CONST; 1047s # 1047s # GDBusInterfaceInfo *com_acme_coyote_interface_info (void); 1047s # guint com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin); 1047s # 1047s # 1047s # /* D-Bus method call completion functions: */ 1047s # void com_acme_coyote_complete_run ( 1047s # ComAcmeCoyote *object, 1047s # GDBusMethodInvocation *invocation); 1047s # 1047s # void com_acme_coyote_complete_sleep ( 1047s # ComAcmeCoyote *object, 1047s # GDBusMethodInvocation *invocation); 1047s # 1047s # void com_acme_coyote_complete_attack ( 1047s # ComAcmeCoyote *object, 1047s # GDBusMethodInvocation *invocation); 1047s # 1047s # 1047s # 1047s # /* D-Bus signal emissions functions: */ 1047s # void com_acme_coyote_emit_surprised ( 1047s # ComAcmeCoyote *object); 1047s # 1047s # 1047s # 1047s # /* D-Bus method calls: */ 1047s # void com_acme_coyote_call_run ( 1047s # ComAcmeCoyote *proxy, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data); 1047s # 1047s # gboolean com_acme_coyote_call_run_finish ( 1047s # ComAcmeCoyote *proxy, 1047s # GAsyncResult *res, 1047s # GError **error); 1047s # 1047s # gboolean com_acme_coyote_call_run_sync ( 1047s # ComAcmeCoyote *proxy, 1047s # GCancellable *cancellable, 1047s # GError **error); 1047s # 1047s # void com_acme_coyote_call_sleep ( 1047s # ComAcmeCoyote *proxy, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data); 1047s # 1047s # gboolean com_acme_coyote_call_sleep_finish ( 1047s # ComAcmeCoyote *proxy, 1047s # GAsyncResult *res, 1047s # GError **error); 1047s # 1047s # gboolean com_acme_coyote_call_sleep_sync ( 1047s # ComAcmeCoyote *proxy, 1047s # GCancellable *cancellable, 1047s # GError **error); 1047s # 1047s # void com_acme_coyote_call_attack ( 1047s # ComAcmeCoyote *proxy, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data); 1047s # 1047s # gboolean com_acme_coyote_call_attack_finish ( 1047s # ComAcmeCoyote *proxy, 1047s # GAsyncResult *res, 1047s # GError **error); 1047s # 1047s # gboolean com_acme_coyote_call_attack_sync ( 1047s # ComAcmeCoyote *proxy, 1047s # GCancellable *cancellable, 1047s # GError **error); 1047s # 1047s # 1047s # 1047s # /* D-Bus property accessors: */ 1047s # const gchar *com_acme_coyote_get_mood (ComAcmeCoyote *object); 1047s # gchar *com_acme_coyote_dup_mood (ComAcmeCoyote *object); 1047s # void com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value); 1047s # 1047s # 1047s # /* ---- */ 1047s # 1047s # #define TYPE_COM_ACME_COYOTE_PROXY (com_acme_coyote_proxy_get_type ()) 1047s # #define COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxy)) 1047s # #define COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 1047s # #define COM_ACME_COYOTE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 1047s # #define IS_COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_PROXY)) 1047s # #define IS_COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_PROXY)) 1047s # 1047s # typedef struct _ComAcmeCoyoteProxy ComAcmeCoyoteProxy; 1047s # typedef struct _ComAcmeCoyoteProxyClass ComAcmeCoyoteProxyClass; 1047s # typedef struct _ComAcmeCoyoteProxyPrivate ComAcmeCoyoteProxyPrivate; 1047s # 1047s # struct _ComAcmeCoyoteProxy 1047s # { 1047s # /*< private >*/ 1047s # GDBusProxy parent_instance; 1047s # ComAcmeCoyoteProxyPrivate *priv; 1047s # }; 1047s # 1047s # struct _ComAcmeCoyoteProxyClass 1047s # { 1047s # GDBusProxyClass parent_class; 1047s # }; 1047s # 1047s # GType com_acme_coyote_proxy_get_type (void) G_GNUC_CONST; 1047s # 1047s # #if GLIB_CHECK_VERSION(2, 44, 0) 1047s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteProxy, g_object_unref) 1047s # #endif 1047s # 1047s # void com_acme_coyote_proxy_new ( 1047s # GDBusConnection *connection, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data); 1047s # ComAcmeCoyote *com_acme_coyote_proxy_new_finish ( 1047s # GAsyncResult *res, 1047s # GError **error); 1047s # ComAcmeCoyote *com_acme_coyote_proxy_new_sync ( 1047s # GDBusConnection *connection, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GError **error); 1047s # 1047s # void com_acme_coyote_proxy_new_for_bus ( 1047s # GBusType bus_type, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data); 1047s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_finish ( 1047s # GAsyncResult *res, 1047s # GError **error); 1047s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_sync ( 1047s # GBusType bus_type, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GError **error); 1047s # 1047s # 1047s # /* ---- */ 1047s # 1047s # #define TYPE_COM_ACME_COYOTE_SKELETON (com_acme_coyote_skeleton_get_type ()) 1047s # #define COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeleton)) 1047s # #define COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 1047s # #define COM_ACME_COYOTE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 1047s # #define IS_COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_SKELETON)) 1047s # #define IS_COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_SKELETON)) 1047s # 1047s # typedef struct _ComAcmeCoyoteSkeleton ComAcmeCoyoteSkeleton; 1047s # typedef struct _ComAcmeCoyoteSkeletonClass ComAcmeCoyoteSkeletonClass; 1047s # typedef struct _ComAcmeCoyoteSkeletonPrivate ComAcmeCoyoteSkeletonPrivate; 1047s # 1047s # struct _ComAcmeCoyoteSkeleton 1047s # { 1047s # /*< private >*/ 1047s # GDBusInterfaceSkeleton parent_instance; 1047s # ComAcmeCoyoteSkeletonPrivate *priv; 1047s # }; 1047s # 1047s # struct _ComAcmeCoyoteSkeletonClass 1047s # { 1047s # GDBusInterfaceSkeletonClass parent_class; 1047s # }; 1047s # 1047s # GType com_acme_coyote_skeleton_get_type (void) G_GNUC_CONST; 1047s # 1047s # #if GLIB_CHECK_VERSION(2, 44, 0) 1047s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteSkeleton, g_object_unref) 1047s # #endif 1047s # 1047s # ComAcmeCoyote *com_acme_coyote_skeleton_new (void); 1047s # 1047s # 1047s # G_END_DECLS 1047s # 1047s # #endif /* __STDOUT__ */ 1047s # Error: 1047s # 1047s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgz3214sd/tmpjw6g15en2.xml', '/tmp/tmpgz3214sd/tmplltaljlk1.xml', '--output', '-', '--header'] 1047s # Return code: 0 1047s # Output: 1047s # /* 1047s # * This file is generated by gdbus-codegen, do not modify it. 1047s # * 1047s # * The license of this code is the same as for the D-Bus interface description 1047s # * it was derived from. Note that it links to GLib, so must comply with the 1047s # * LGPL linking clauses. 1047s # */ 1047s # 1047s # #ifndef __STDOUT__ 1047s # #define __STDOUT__ 1047s # 1047s # #include 1047s # 1047s # G_BEGIN_DECLS 1047s # 1047s # 1047s # /* ------------------------------------------------------------------------ */ 1047s # /* Declarations for org.project.Bar.Frobnicator */ 1047s # 1047s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR (org_project_bar_frobnicator_get_type ()) 1047s # #define ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicator)) 1047s # #define IS_ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR)) 1047s # #define ORG_PROJECT_BAR_FROBNICATOR_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicatorIface)) 1047s # 1047s # struct _OrgProjectBarFrobnicator; 1047s # typedef struct _OrgProjectBarFrobnicator OrgProjectBarFrobnicator; 1047s # typedef struct _OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorIface; 1047s # 1047s # struct _OrgProjectBarFrobnicatorIface 1047s # { 1047s # GTypeInterface parent_iface; 1047s # 1047s # gboolean (*handle_random_method) ( 1047s # OrgProjectBarFrobnicator *object, 1047s # GDBusMethodInvocation *invocation); 1047s # 1047s # }; 1047s # 1047s # GType org_project_bar_frobnicator_get_type (void) G_GNUC_CONST; 1047s # 1047s # GDBusInterfaceInfo *org_project_bar_frobnicator_interface_info (void); 1047s # guint org_project_bar_frobnicator_override_properties (GObjectClass *klass, guint property_id_begin); 1047s # 1047s # 1047s # /* D-Bus method call completion functions: */ 1047s # void org_project_bar_frobnicator_complete_random_method ( 1047s # OrgProjectBarFrobnicator *object, 1047s # GDBusMethodInvocation *invocation); 1047s # 1047s # 1047s # 1047s # /* D-Bus method calls: */ 1047s # void org_project_bar_frobnicator_call_random_method ( 1047s # OrgProjectBarFrobnicator *proxy, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data); 1047s # 1047s # gboolean org_project_bar_frobnicator_call_random_method_finish ( 1047s # OrgProjectBarFrobnicator *proxy, 1047s # GAsyncResult *res, 1047s # GError **error); 1047s # 1047s # gboolean org_project_bar_frobnicator_call_random_method_sync ( 1047s # OrgProjectBarFrobnicator *proxy, 1047s # GCancellable *cancellable, 1047s # GError **error); 1047s # 1047s # 1047s # 1047s # /* ---- */ 1047s # 1047s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY (org_project_bar_frobnicator_proxy_get_type ()) 1047s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxy)) 1047s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 1047s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 1047s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 1047s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 1047s # 1047s # typedef struct _OrgProjectBarFrobnicatorProxy OrgProjectBarFrobnicatorProxy; 1047s # typedef struct _OrgProjectBarFrobnicatorProxyClass OrgProjectBarFrobnicatorProxyClass; 1047s # typedef struct _OrgProjectBarFrobnicatorProxyPrivate OrgProjectBarFrobnicatorProxyPrivate; 1047s # 1047s # struct _OrgProjectBarFrobnicatorProxy 1047s # { 1047s # /*< private >*/ 1047s # GDBusProxy parent_instance; 1047s # OrgProjectBarFrobnicatorProxyPrivate *priv; 1047s # }; 1047s # 1047s # struct _OrgProjectBarFrobnicatorProxyClass 1047s # { 1047s # GDBusProxyClass parent_class; 1047s # }; 1047s # 1047s # GType org_project_bar_frobnicator_proxy_get_type (void) G_GNUC_CONST; 1047s # 1047s # #if GLIB_CHECK_VERSION(2, 44, 0) 1047s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorProxy, g_object_unref) 1047s # #endif 1047s # 1047s # void org_project_bar_frobnicator_proxy_new ( 1047s # GDBusConnection *connection, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data); 1047s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_finish ( 1047s # GAsyncResult *res, 1047s # GError **error); 1047s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_sync ( 1047s # GDBusConnection *connection, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GError **error); 1047s # 1047s # void org_project_bar_frobnicator_proxy_new_for_bus ( 1047s # GBusType bus_type, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data); 1047s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_finish ( 1047s # GAsyncResult *res, 1047s # GError **error); 1047s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_sync ( 1047s # GBusType bus_type, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GError **error); 1047s # 1047s # 1047s # /* ---- */ 1047s # 1047s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON (org_project_bar_frobnicator_skeleton_get_type ()) 1047s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeleton)) 1047s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 1047s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 1047s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 1047s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 1047s # 1047s # typedef struct _OrgProjectBarFrobnicatorSkeleton OrgProjectBarFrobnicatorSkeleton; 1047s # typedef struct _OrgProjectBarFrobnicatorSkeletonClass OrgProjectBarFrobnicatorSkeletonClass; 1047s # typedef struct _OrgProjectBarFrobnicatorSkeletonPrivate OrgProjectBarFrobnicatorSkeletonPrivate; 1047s # 1047s # struct _OrgProjectBarFrobnicatorSkeleton 1047s # { 1047s # /*< private >*/ 1047s # GDBusInterfaceSkeleton parent_instance; 1047s # OrgProjectBarFrobnicatorSkeletonPrivate *priv; 1047s # }; 1047s # 1047s # struct _OrgProjectBarFrobnicatorSkeletonClass 1047s # { 1047s # GDBusInterfaceSkeletonClass parent_class; 1047s # }; 1047s # 1047s # GType org_project_bar_frobnicator_skeleton_get_type (void) G_GNUC_CONST; 1047s # 1047s # #if GLIB_CHECK_VERSION(2, 44, 0) 1047s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorSkeleton, g_object_unref) 1047s # #endif 1047s # 1047s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_skeleton_new (void); 1047s # 1047s # 1047s # /* ------------------------------------------------------------------------ */ 1047s # /* Declarations for com.acme.Coyote */ 1047s # 1047s # #define TYPE_COM_ACME_COYOTE (com_acme_coyote_get_type ()) 1047s # #define COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyote)) 1047s # #define IS_COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE)) 1047s # #define COM_ACME_COYOTE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyoteIface)) 1047s # 1047s # struct _ComAcmeCoyote; 1047s # typedef struct _ComAcmeCoyote ComAcmeCoyote; 1047s # typedef struct _ComAcmeCoyoteIface ComAcmeCoyoteIface; 1047s # 1047s # struct _ComAcmeCoyoteIface 1047s # { 1047s # GTypeInterface parent_iface; 1047s # 1047s # 1047s # 1047s # gboolean (*handle_attack) ( 1047s # ComAcmeCoyote *object, 1047s # GDBusMethodInvocation *invocation); 1047s # 1047s # gboolean (*handle_run) ( 1047s # ComAcmeCoyote *object, 1047s # GDBusMethodInvocation *invocation); 1047s # 1047s # gboolean (*handle_sleep) ( 1047s # ComAcmeCoyote *object, 1047s # GDBusMethodInvocation *invocation); 1047s # 1047s # const gchar * (*get_mood) (ComAcmeCoyote *object); 1047s # 1047s # void (*surprised) ( 1047s # ComAcmeCoyote *object); 1047s # 1047s # }; 1047s # 1047s # GType com_acme_coyote_get_type (void) G_GNUC_CONST; 1047s # 1047s # GDBusInterfaceInfo *com_acme_coyote_interface_info (void); 1047s # guint com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin); 1047s # 1047s # 1047s # /* D-Bus method call completion functions: */ 1047s # void com_acme_coyote_complete_run ( 1047s # ComAcmeCoyote *object, 1047s # GDBusMethodInvocation *invocation); 1047s # 1047s # void com_acme_coyote_complete_sleep ( 1047s # ComAcmeCoyote *object, 1047s # GDBusMethodInvocation *invocation); 1047s # 1047s # void com_acme_coyote_complete_attack ( 1047s # ComAcmeCoyote *object, 1047s # GDBusMethodInvocation *invocation); 1047s # 1047s # 1047s # 1047s # /* D-Bus signal emissions functions: */ 1047s # void com_acme_coyote_emit_surprised ( 1047s # ComAcmeCoyote *object); 1047s # 1047s # 1047s # 1047s # /* D-Bus method calls: */ 1047s # void com_acme_coyote_call_run ( 1047s # ComAcmeCoyote *proxy, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data); 1047s # 1047s # gboolean com_acme_coyote_call_run_finish ( 1047s # ComAcmeCoyote *proxy, 1047s # GAsyncResult *res, 1047s # GError **error); 1047s # 1047s # gboolean com_acme_coyote_call_run_sync ( 1047s # ComAcmeCoyote *proxy, 1047s # GCancellable *cancellable, 1047s # GError **error); 1047s # 1047s # void com_acme_coyote_call_sleep ( 1047s # ComAcmeCoyote *proxy, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data); 1047s # 1047s # gboolean com_acme_coyote_call_sleep_finish ( 1047s # ComAcmeCoyote *proxy, 1047s # GAsyncResult *res, 1047s # GError **error); 1047s # 1047s # gboolean com_acme_coyote_call_sleep_sync ( 1047s # ComAcmeCoyote *proxy, 1047s # GCancellable *cancellable, 1047s # GError **error); 1047s # 1047s # void com_acme_coyote_call_attack ( 1047s # ComAcmeCoyote *proxy, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data); 1047s # 1047s # gboolean com_acme_coyote_call_attack_finish ( 1047s # ComAcmeCoyote *proxy, 1047s # GAsyncResult *res, 1047s # GError **error); 1047s # 1047s # gboolean com_acme_coyote_call_attack_sync ( 1047s # ComAcmeCoyote *proxy, 1047s # GCancellable *cancellable, 1047s # GError **error); 1047s # 1047s # 1047s # 1047s # /* D-Bus property accessors: */ 1047s # const gchar *com_acme_coyote_get_mood (ComAcmeCoyote *object); 1047s # gchar *com_acme_coyote_dup_mood (ComAcmeCoyote *object); 1047s # void com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value); 1047s # 1047s # 1047s # /* ---- */ 1047s # 1047s # #define TYPE_COM_ACME_COYOTE_PROXY (com_acme_coyote_proxy_get_type ()) 1047s # #define COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxy)) 1047s # #define COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 1047s # #define COM_ACME_COYOTE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 1047s # #define IS_COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_PROXY)) 1047s # #define IS_COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_PROXY)) 1047s # 1047s # typedef struct _ComAcmeCoyoteProxy ComAcmeCoyoteProxy; 1047s # typedef struct _ComAcmeCoyoteProxyClass ComAcmeCoyoteProxyClass; 1047s # typedef struct _ComAcmeCoyoteProxyPrivate ComAcmeCoyoteProxyPrivate; 1047s # 1047s # struct _ComAcmeCoyoteProxy 1047s # { 1047s # /*< private >*/ 1047s # GDBusProxy parent_instance; 1047s # ComAcmeCoyoteProxyPrivate *priv; 1047s # }; 1047s # 1047s # struct _ComAcmeCoyoteProxyClass 1047s # { 1047s # GDBusProxyClass parent_class; 1047s # }; 1047s # 1047s # GType com_acme_coyote_proxy_get_type (void) G_GNUC_CONST; 1047s # 1047s # #if GLIB_CHECK_VERSION(2, 44, 0) 1047s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteProxy, g_object_unref) 1047s # #endif 1047s # 1047s # void com_acme_coyote_proxy_new ( 1047s # GDBusConnection *connection, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data); 1047s # ComAcmeCoyote *com_acme_coyote_proxy_new_finish ( 1047s # GAsyncResult *res, 1047s # GError **error); 1047s # ComAcmeCoyote *com_acme_coyote_proxy_new_sync ( 1047s # GDBusConnection *connection, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GError **error); 1047s # 1047s # void com_acme_coyote_proxy_new_for_bus ( 1047s # GBusType bus_type, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data); 1047s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_finish ( 1047s # GAsyncResult *res, 1047s # GError **error); 1047s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_sync ( 1047s # GBusType bus_type, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GError **error); 1047s # 1047s # 1047s # /* ---- */ 1047s # 1047s # #define TYPE_COM_ACME_COYOTE_SKELETON (com_acme_coyote_skeleton_get_type ()) 1047s # #define COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeleton)) 1047s # #define COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 1047s # #define COM_ACME_COYOTE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 1047s # #define IS_COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_SKELETON)) 1047s # #define IS_COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_SKELETON)) 1047s # 1047s # typedef struct _ComAcmeCoyoteSkeleton ComAcmeCoyoteSkeleton; 1047s # typedef struct _ComAcmeCoyoteSkeletonClass ComAcmeCoyoteSkeletonClass; 1047s # typedef struct _ComAcmeCoyoteSkeletonPrivate ComAcmeCoyoteSkeletonPrivate; 1047s # 1047s # struct _ComAcmeCoyoteSkeleton 1047s # { 1047s # /*< private >*/ 1047s # GDBusInterfaceSkeleton parent_instance; 1047s # ComAcmeCoyoteSkeletonPrivate *priv; 1047s # }; 1047s # 1047s # struct _ComAcmeCoyoteSkeletonClass 1047s # { 1047s # GDBusInterfaceSkeletonClass parent_class; 1047s # }; 1047s # 1047s # GType com_acme_coyote_skeleton_get_type (void) G_GNUC_CONST; 1047s # 1047s # #if GLIB_CHECK_VERSION(2, 44, 0) 1047s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteSkeleton, g_object_unref) 1047s # #endif 1047s # 1047s # ComAcmeCoyote *com_acme_coyote_skeleton_new (void); 1047s # 1047s # 1047s # G_END_DECLS 1047s # 1047s # #endif /* __STDOUT__ */ 1047s # Error: 1047s # 1047s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgz3214sd/tmplltaljlk1.xml', '/tmp/tmpgz3214sd/tmpjw6g15en2.xml', '--output', '-', '--body'] 1047s # Return code: 0 1047s # Output: 1047s # /* 1047s # * This file is generated by gdbus-codegen, do not modify it. 1047s # * 1047s # * The license of this code is the same as for the D-Bus interface description 1047s # * it was derived from. Note that it links to GLib, so must comply with the 1047s # * LGPL linking clauses. 1047s # */ 1047s # 1047s # #ifdef HAVE_CONFIG_H 1047s # # include "config.h" 1047s # #endif 1047s # 1047s # #include 1047s # #ifdef G_OS_UNIX 1047s # # include 1047s # #endif 1047s # 1047s # #ifdef G_ENABLE_DEBUG 1047s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1047s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1047s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1047s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1047s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1047s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1047s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1047s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1047s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1047s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1047s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1047s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1047s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1047s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1047s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1047s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1047s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1047s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1047s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1047s # #else /* !G_ENABLE_DEBUG */ 1047s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1047s # * Do not access GValues directly in your code. Instead, use the 1047s # * g_value_get_*() functions 1047s # */ 1047s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1047s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1047s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1047s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1047s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1047s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1047s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1047s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1047s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1047s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1047s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1047s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1047s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1047s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1047s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1047s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1047s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1047s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1047s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1047s # #endif /* !G_ENABLE_DEBUG */ 1047s # 1047s # typedef struct 1047s # { 1047s # GDBusArgInfo parent_struct; 1047s # gboolean use_gvariant; 1047s # } _ExtendedGDBusArgInfo; 1047s # 1047s # typedef struct 1047s # { 1047s # GDBusMethodInfo parent_struct; 1047s # const gchar *signal_name; 1047s # gboolean pass_fdlist; 1047s # } _ExtendedGDBusMethodInfo; 1047s # 1047s # typedef struct 1047s # { 1047s # GDBusSignalInfo parent_struct; 1047s # const gchar *signal_name; 1047s # } _ExtendedGDBusSignalInfo; 1047s # 1047s # typedef struct 1047s # { 1047s # GDBusPropertyInfo parent_struct; 1047s # const gchar *hyphen_name; 1047s # guint use_gvariant : 1; 1047s # guint emits_changed_signal : 1; 1047s # } _ExtendedGDBusPropertyInfo; 1047s # 1047s # typedef struct 1047s # { 1047s # GDBusInterfaceInfo parent_struct; 1047s # const gchar *hyphen_name; 1047s # } _ExtendedGDBusInterfaceInfo; 1047s # 1047s # typedef struct 1047s # { 1047s # const _ExtendedGDBusPropertyInfo *info; 1047s # guint prop_id; 1047s # GValue orig_value; /* the value before the change */ 1047s # } ChangedProperty; 1047s # 1047s # static void 1047s # _changed_property_free (ChangedProperty *data) 1047s # { 1047s # g_value_unset (&data->orig_value); 1047s # g_free (data); 1047s # } 1047s # 1047s # static gboolean 1047s # _g_strv_equal0 (gchar **a, gchar **b) 1047s # { 1047s # gboolean ret = FALSE; 1047s # guint n; 1047s # if (a == NULL && b == NULL) 1047s # { 1047s # ret = TRUE; 1047s # goto out; 1047s # } 1047s # if (a == NULL || b == NULL) 1047s # goto out; 1047s # if (g_strv_length (a) != g_strv_length (b)) 1047s # goto out; 1047s # for (n = 0; a[n] != NULL; n++) 1047s # if (g_strcmp0 (a[n], b[n]) != 0) 1047s # goto out; 1047s # ret = TRUE; 1047s # out: 1047s # return ret; 1047s # } 1047s # 1047s # static gboolean 1047s # _g_variant_equal0 (GVariant *a, GVariant *b) 1047s # { 1047s # gboolean ret = FALSE; 1047s # if (a == NULL && b == NULL) 1047s # { 1047s # ret = TRUE; 1047s # goto out; 1047s # } 1047s # if (a == NULL || b == NULL) 1047s # goto out; 1047s # ret = g_variant_equal (a, b); 1047s # out: 1047s # return ret; 1047s # } 1047s # 1047s # G_GNUC_UNUSED static gboolean 1047s # _g_value_equal (const GValue *a, const GValue *b) 1047s # { 1047s # gboolean ret = FALSE; 1047s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1047s # switch (G_VALUE_TYPE (a)) 1047s # { 1047s # case G_TYPE_BOOLEAN: 1047s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1047s # break; 1047s # case G_TYPE_UCHAR: 1047s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1047s # break; 1047s # case G_TYPE_INT: 1047s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1047s # break; 1047s # case G_TYPE_UINT: 1047s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1047s # break; 1047s # case G_TYPE_INT64: 1047s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1047s # break; 1047s # case G_TYPE_UINT64: 1047s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1047s # break; 1047s # case G_TYPE_DOUBLE: 1047s # { 1047s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1047s # gdouble da = g_value_get_double (a); 1047s # gdouble db = g_value_get_double (b); 1047s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1047s # } 1047s # break; 1047s # case G_TYPE_STRING: 1047s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1047s # break; 1047s # case G_TYPE_VARIANT: 1047s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1047s # break; 1047s # default: 1047s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1047s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1047s # else 1047s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1047s # break; 1047s # } 1047s # return ret; 1047s # } 1047s # 1047s # static void 1047s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1047s # GClosure *closure, 1047s # GValue *return_value, 1047s # unsigned int n_param_values, 1047s # const GValue *param_values, 1047s # void *invocation_hint G_GNUC_UNUSED, 1047s # void *marshal_data) 1047s # { 1047s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1047s # (void *data1, 1047s # GDBusMethodInvocation *arg_method_invocation, 1047s # void *data2); 1047s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1047s # GCClosure *cc = (GCClosure*) closure; 1047s # void *data1, *data2; 1047s # gboolean v_return; 1047s # 1047s # g_return_if_fail (return_value != NULL); 1047s # g_return_if_fail (n_param_values == 2); 1047s # 1047s # if (G_CCLOSURE_SWAP_DATA (closure)) 1047s # { 1047s # data1 = closure->data; 1047s # data2 = g_value_peek_pointer (param_values + 0); 1047s # } 1047s # else 1047s # { 1047s # data1 = g_value_peek_pointer (param_values + 0); 1047s # data2 = closure->data; 1047s # } 1047s # 1047s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1047s # (marshal_data ? marshal_data : cc->callback); 1047s # 1047s # v_return = 1047s # callback (data1, 1047s # g_marshal_value_peek_object (param_values + 1), 1047s # data2); 1047s # 1047s # g_value_set_boolean (return_value, v_return); 1047s # } 1047s # 1047s # /* ------------------------------------------------------------------------ 1047s # * Code for interface org.project.Bar.Frobnicator 1047s # * ------------------------------------------------------------------------ 1047s # */ 1047s # 1047s # /** 1047s # * SECTION:OrgProjectBarFrobnicator 1047s # * @title: OrgProjectBarFrobnicator 1047s # * @short_description: Generated C code for the org.project.Bar.Frobnicator D-Bus interface 1047s # * 1047s # * This section contains code for working with the org.project.Bar.Frobnicator D-Bus interface in C. 1047s # */ 1047s # 1047s # /* ---- Introspection data for org.project.Bar.Frobnicator ---- */ 1047s # 1047s # static const _ExtendedGDBusMethodInfo _org_project_bar_frobnicator_method_info_random_method = 1047s # { 1047s # { 1047s # -1, 1047s # (gchar *) "RandomMethod", 1047s # NULL, 1047s # NULL, 1047s # NULL 1047s # }, 1047s # "handle-random-method", 1047s # FALSE 1047s # }; 1047s # 1047s # static const GDBusMethodInfo * const _org_project_bar_frobnicator_method_info_pointers[] = 1047s # { 1047s # &_org_project_bar_frobnicator_method_info_random_method.parent_struct, 1047s # NULL 1047s # }; 1047s # 1047s # static const _ExtendedGDBusInterfaceInfo _org_project_bar_frobnicator_interface_info = 1047s # { 1047s # { 1047s # -1, 1047s # (gchar *) "org.project.Bar.Frobnicator", 1047s # (GDBusMethodInfo **) &_org_project_bar_frobnicator_method_info_pointers, 1047s # NULL, 1047s # NULL, 1047s # NULL 1047s # }, 1047s # "org-project-bar-frobnicator", 1047s # }; 1047s # 1047s # 1047s # /** 1047s # * org_project_bar_frobnicator_interface_info: 1047s # * 1047s # * Gets a machine-readable description of the org.project.Bar.Frobnicator D-Bus interface. 1047s # * 1047s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1047s # */ 1047s # GDBusInterfaceInfo * 1047s # org_project_bar_frobnicator_interface_info (void) 1047s # { 1047s # return (GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct; 1047s # } 1047s # 1047s # /** 1047s # * org_project_bar_frobnicator_override_properties: 1047s # * @klass: The class structure for a #GObject derived class. 1047s # * @property_id_begin: The property id to assign to the first overridden property. 1047s # * 1047s # * Overrides all #GObject properties in the #OrgProjectBarFrobnicator interface for a concrete class. 1047s # * The properties are overridden in the order they are defined. 1047s # * 1047s # * Returns: The last property id. 1047s # */ 1047s # guint 1047s # org_project_bar_frobnicator_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1047s # { 1047s # return property_id_begin - 1; 1047s # } 1047s # 1047s # 1047s # inline static void 1047s # org_project_bar_frobnicator_method_marshal_random_method ( 1047s # GClosure *closure, 1047s # GValue *return_value, 1047s # unsigned int n_param_values, 1047s # const GValue *param_values, 1047s # void *invocation_hint, 1047s # void *marshal_data) 1047s # { 1047s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1047s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1047s # } 1047s # 1047s # 1047s # /** 1047s # * OrgProjectBarFrobnicator: 1047s # * 1047s # * Abstract interface type for the D-Bus interface org.project.Bar.Frobnicator. 1047s # */ 1047s # 1047s # /** 1047s # * OrgProjectBarFrobnicatorIface: 1047s # * @parent_iface: The parent interface. 1047s # * @handle_random_method: Handler for the #OrgProjectBarFrobnicator::handle-random-method signal. 1047s # * 1047s # * Virtual table for the D-Bus interface org.project.Bar.Frobnicator. 1047s # */ 1047s # 1047s # typedef OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorInterface; 1047s # G_DEFINE_INTERFACE (OrgProjectBarFrobnicator, org_project_bar_frobnicator, G_TYPE_OBJECT) 1047s # 1047s # static void 1047s # org_project_bar_frobnicator_default_init (OrgProjectBarFrobnicatorIface *iface) 1047s # { 1047s # /* GObject signals for incoming D-Bus method calls: */ 1047s # /** 1047s # * OrgProjectBarFrobnicator::handle-random-method: 1047s # * @object: A #OrgProjectBarFrobnicator. 1047s # * @invocation: A #GDBusMethodInvocation. 1047s # * 1047s # * Signal emitted when a remote caller is invoking the RandomMethod() D-Bus method. 1047s # * 1047s # * 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. 1047s # * 1047s # * 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. 1047s # */ 1047s # g_signal_new ("handle-random-method", 1047s # G_TYPE_FROM_INTERFACE (iface), 1047s # G_SIGNAL_RUN_LAST, 1047s # G_STRUCT_OFFSET (OrgProjectBarFrobnicatorIface, handle_random_method), 1047s # g_signal_accumulator_true_handled, 1047s # NULL, 1047s # org_project_bar_frobnicator_method_marshal_random_method, 1047s # G_TYPE_BOOLEAN, 1047s # 1, 1047s # G_TYPE_DBUS_METHOD_INVOCATION); 1047s # 1047s # } 1047s # 1047s # /** 1047s # * org_project_bar_frobnicator_call_random_method: 1047s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1047s # * @cancellable: (nullable): A #GCancellable or %NULL. 1047s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1047s # * @user_data: User data to pass to @callback. 1047s # * 1047s # * Asynchronously invokes the RandomMethod() D-Bus method on @proxy. 1047s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1047s # * You can then call org_project_bar_frobnicator_call_random_method_finish() to get the result of the operation. 1047s # * 1047s # * See org_project_bar_frobnicator_call_random_method_sync() for the synchronous, blocking version of this method. 1047s # */ 1047s # void 1047s # org_project_bar_frobnicator_call_random_method ( 1047s # OrgProjectBarFrobnicator *proxy, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data) 1047s # { 1047s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1047s # "RandomMethod", 1047s # g_variant_new ("()"), 1047s # G_DBUS_CALL_FLAGS_NONE, 1047s # -1, 1047s # cancellable, 1047s # callback, 1047s # user_data); 1047s # } 1047s # 1047s # /** 1047s # * org_project_bar_frobnicator_call_random_method_finish: 1047s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1047s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_call_random_method(). 1047s # * @error: Return location for error or %NULL. 1047s # * 1047s # * Finishes an operation started with org_project_bar_frobnicator_call_random_method(). 1047s # * 1047s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1047s # */ 1047s # gboolean 1047s # org_project_bar_frobnicator_call_random_method_finish ( 1047s # OrgProjectBarFrobnicator *proxy, 1047s # GAsyncResult *res, 1047s # GError **error) 1047s # { 1047s # GVariant *_ret; 1047s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1047s # if (_ret == NULL) 1047s # goto _out; 1047s # g_variant_get (_ret, 1047s # "()"); 1047s # g_variant_unref (_ret); 1047s # _out: 1047s # return _ret != NULL; 1047s # } 1047s # 1047s # /** 1047s # * org_project_bar_frobnicator_call_random_method_sync: 1047s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1047s # * @cancellable: (nullable): A #GCancellable or %NULL. 1047s # * @error: Return location for error or %NULL. 1047s # * 1047s # * Synchronously invokes the RandomMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1047s # * 1047s # * See org_project_bar_frobnicator_call_random_method() for the asynchronous version of this method. 1047s # * 1047s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1047s # */ 1047s # gboolean 1047s # org_project_bar_frobnicator_call_random_method_sync ( 1047s # OrgProjectBarFrobnicator *proxy, 1047s # GCancellable *cancellable, 1047s # GError **error) 1047s # { 1047s # GVariant *_ret; 1047s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1047s # "RandomMethod", 1047s # g_variant_new ("()"), 1047s # G_DBUS_CALL_FLAGS_NONE, 1047s # -1, 1047s # cancellable, 1047s # error); 1047s # if (_ret == NULL) 1047s # goto _out; 1047s # g_variant_get (_ret, 1047s # "()"); 1047s # g_variant_unref (_ret); 1047s # _out: 1047s # return _ret != NULL; 1047s # } 1047s # 1047s # /** 1047s # * org_project_bar_frobnicator_complete_random_method: 1047s # * @object: A #OrgProjectBarFrobnicator. 1047s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1047s # * 1047s # * 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. 1047s # * 1047s # * This method will free @invocation, you cannot use it afterwards. 1047s # */ 1047s # void 1047s # org_project_bar_frobnicator_complete_random_method ( 1047s # OrgProjectBarFrobnicator *object G_GNUC_UNUSED, 1047s # GDBusMethodInvocation *invocation) 1047s # { 1047s # g_dbus_method_invocation_return_value (invocation, 1047s # g_variant_new ("()")); 1047s # } 1047s # 1047s # /* ------------------------------------------------------------------------ */ 1047s # 1047s # /** 1047s # * OrgProjectBarFrobnicatorProxy: 1047s # * 1047s # * The #OrgProjectBarFrobnicatorProxy structure contains only private data and should only be accessed using the provided API. 1047s # */ 1047s # 1047s # /** 1047s # * OrgProjectBarFrobnicatorProxyClass: 1047s # * @parent_class: The parent class. 1047s # * 1047s # * Class structure for #OrgProjectBarFrobnicatorProxy. 1047s # */ 1047s # 1047s # struct _OrgProjectBarFrobnicatorProxyPrivate 1047s # { 1047s # GData *qdata; 1047s # }; 1047s # 1047s # static void org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface); 1047s # 1047s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1047s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 1047s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorProxy) 1047s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 1047s # 1047s # #else 1047s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 1047s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 1047s # 1047s # #endif 1047s # static void 1047s # org_project_bar_frobnicator_proxy_finalize (GObject *object) 1047s # { 1047s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (object); 1047s # g_datalist_clear (&proxy->priv->qdata); 1047s # G_OBJECT_CLASS (org_project_bar_frobnicator_proxy_parent_class)->finalize (object); 1047s # } 1047s # 1047s # static void 1047s # org_project_bar_frobnicator_proxy_get_property (GObject *object G_GNUC_UNUSED, 1047s # guint prop_id G_GNUC_UNUSED, 1047s # GValue *value G_GNUC_UNUSED, 1047s # GParamSpec *pspec G_GNUC_UNUSED) 1047s # { 1047s # } 1047s # 1047s # static void 1047s # org_project_bar_frobnicator_proxy_set_property (GObject *object G_GNUC_UNUSED, 1047s # guint prop_id G_GNUC_UNUSED, 1047s # const GValue *value G_GNUC_UNUSED, 1047s # GParamSpec *pspec G_GNUC_UNUSED) 1047s # { 1047s # } 1047s # 1047s # static void 1047s # org_project_bar_frobnicator_proxy_g_signal (GDBusProxy *proxy, 1047s # const gchar *sender_name G_GNUC_UNUSED, 1047s # const gchar *signal_name, 1047s # GVariant *parameters) 1047s # { 1047s # _ExtendedGDBusSignalInfo *info; 1047s # GVariantIter iter; 1047s # GVariant *child; 1047s # GValue *paramv; 1047s # gsize num_params; 1047s # gsize n; 1047s # guint signal_id; 1047s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, signal_name); 1047s # if (info == NULL) 1047s # return; 1047s # num_params = g_variant_n_children (parameters); 1047s # paramv = g_new0 (GValue, num_params + 1); 1047s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1047s # g_value_set_object (¶mv[0], proxy); 1047s # g_variant_iter_init (&iter, parameters); 1047s # n = 1; 1047s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1047s # { 1047s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1047s # if (arg_info->use_gvariant) 1047s # { 1047s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1047s # g_value_set_variant (¶mv[n], child); 1047s # n++; 1047s # } 1047s # else 1047s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1047s # g_variant_unref (child); 1047s # } 1047s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1047s # g_signal_emitv (paramv, signal_id, 0, NULL); 1047s # for (n = 0; n < num_params + 1; n++) 1047s # g_value_unset (¶mv[n]); 1047s # g_free (paramv); 1047s # } 1047s # 1047s # static void 1047s # org_project_bar_frobnicator_proxy_g_properties_changed (GDBusProxy *_proxy, 1047s # GVariant *changed_properties, 1047s # const gchar *const *invalidated_properties) 1047s # { 1047s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (_proxy); 1047s # guint n; 1047s # const gchar *key; 1047s # GVariantIter *iter; 1047s # _ExtendedGDBusPropertyInfo *info; 1047s # g_variant_get (changed_properties, "a{sv}", &iter); 1047s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1047s # { 1047s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, key); 1047s # g_datalist_remove_data (&proxy->priv->qdata, key); 1047s # if (info != NULL) 1047s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1047s # } 1047s # g_variant_iter_free (iter); 1047s # for (n = 0; invalidated_properties[n] != NULL; n++) 1047s # { 1047s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, invalidated_properties[n]); 1047s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1047s # if (info != NULL) 1047s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1047s # } 1047s # } 1047s # 1047s # static void 1047s # org_project_bar_frobnicator_proxy_init (OrgProjectBarFrobnicatorProxy *proxy) 1047s # { 1047s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1047s # proxy->priv = org_project_bar_frobnicator_proxy_get_instance_private (proxy); 1047s # #else 1047s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyPrivate); 1047s # #endif 1047s # 1047s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_bar_frobnicator_interface_info ()); 1047s # } 1047s # 1047s # static void 1047s # org_project_bar_frobnicator_proxy_class_init (OrgProjectBarFrobnicatorProxyClass *klass) 1047s # { 1047s # GObjectClass *gobject_class; 1047s # GDBusProxyClass *proxy_class; 1047s # 1047s # gobject_class = G_OBJECT_CLASS (klass); 1047s # gobject_class->finalize = org_project_bar_frobnicator_proxy_finalize; 1047s # gobject_class->get_property = org_project_bar_frobnicator_proxy_get_property; 1047s # gobject_class->set_property = org_project_bar_frobnicator_proxy_set_property; 1047s # 1047s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1047s # proxy_class->g_signal = org_project_bar_frobnicator_proxy_g_signal; 1047s # proxy_class->g_properties_changed = org_project_bar_frobnicator_proxy_g_properties_changed; 1047s # 1047s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1047s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorProxyPrivate)); 1047s # #endif 1047s # } 1047s # 1047s # static void 1047s # org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 1047s # { 1047s # } 1047s # 1047s # /** 1047s # * org_project_bar_frobnicator_proxy_new: 1047s # * @connection: A #GDBusConnection. 1047s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1047s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1047s # * @object_path: An object path. 1047s # * @cancellable: (nullable): A #GCancellable or %NULL. 1047s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1047s # * @user_data: User data to pass to @callback. 1047s # * 1047s # * Asynchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new() for more details. 1047s # * 1047s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1047s # * You can then call org_project_bar_frobnicator_proxy_new_finish() to get the result of the operation. 1047s # * 1047s # * See org_project_bar_frobnicator_proxy_new_sync() for the synchronous, blocking version of this constructor. 1047s # */ 1047s # void 1047s # org_project_bar_frobnicator_proxy_new ( 1047s # GDBusConnection *connection, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data) 1047s # { 1047s # 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); 1047s # } 1047s # 1047s # /** 1047s # * org_project_bar_frobnicator_proxy_new_finish: 1047s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new(). 1047s # * @error: Return location for error or %NULL 1047s # * 1047s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new(). 1047s # * 1047s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1047s # */ 1047s # OrgProjectBarFrobnicator * 1047s # org_project_bar_frobnicator_proxy_new_finish ( 1047s # GAsyncResult *res, 1047s # GError **error) 1047s # { 1047s # GObject *ret; 1047s # GObject *source_object; 1047s # source_object = g_async_result_get_source_object (res); 1047s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1047s # g_object_unref (source_object); 1047s # if (ret != NULL) 1047s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1047s # else 1047s # return NULL; 1047s # } 1047s # 1047s # /** 1047s # * org_project_bar_frobnicator_proxy_new_sync: 1047s # * @connection: A #GDBusConnection. 1047s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1047s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1047s # * @object_path: An object path. 1047s # * @cancellable: (nullable): A #GCancellable or %NULL. 1047s # * @error: Return location for error or %NULL 1047s # * 1047s # * Synchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new_sync() for more details. 1047s # * 1047s # * The calling thread is blocked until a reply is received. 1047s # * 1047s # * See org_project_bar_frobnicator_proxy_new() for the asynchronous version of this constructor. 1047s # * 1047s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1047s # */ 1047s # OrgProjectBarFrobnicator * 1047s # org_project_bar_frobnicator_proxy_new_sync ( 1047s # GDBusConnection *connection, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GError **error) 1047s # { 1047s # GInitable *ret; 1047s # 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); 1047s # if (ret != NULL) 1047s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1047s # else 1047s # return NULL; 1047s # } 1047s # 1047s # 1047s # /** 1047s # * org_project_bar_frobnicator_proxy_new_for_bus: 1047s # * @bus_type: A #GBusType. 1047s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1047s # * @name: A bus name (well-known or unique). 1047s # * @object_path: An object path. 1047s # * @cancellable: (nullable): A #GCancellable or %NULL. 1047s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1047s # * @user_data: User data to pass to @callback. 1047s # * 1047s # * Like org_project_bar_frobnicator_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1047s # * 1047s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1047s # * You can then call org_project_bar_frobnicator_proxy_new_for_bus_finish() to get the result of the operation. 1047s # * 1047s # * See org_project_bar_frobnicator_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1047s # */ 1047s # void 1047s # org_project_bar_frobnicator_proxy_new_for_bus ( 1047s # GBusType bus_type, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data) 1047s # { 1047s # 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); 1047s # } 1047s # 1047s # /** 1047s # * org_project_bar_frobnicator_proxy_new_for_bus_finish: 1047s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new_for_bus(). 1047s # * @error: Return location for error or %NULL 1047s # * 1047s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new_for_bus(). 1047s # * 1047s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1047s # */ 1047s # OrgProjectBarFrobnicator * 1047s # org_project_bar_frobnicator_proxy_new_for_bus_finish ( 1047s # GAsyncResult *res, 1047s # GError **error) 1047s # { 1047s # GObject *ret; 1047s # GObject *source_object; 1047s # source_object = g_async_result_get_source_object (res); 1047s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1047s # g_object_unref (source_object); 1047s # if (ret != NULL) 1047s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1047s # else 1047s # return NULL; 1047s # } 1047s # 1047s # /** 1047s # * org_project_bar_frobnicator_proxy_new_for_bus_sync: 1047s # * @bus_type: A #GBusType. 1047s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1047s # * @name: A bus name (well-known or unique). 1047s # * @object_path: An object path. 1047s # * @cancellable: (nullable): A #GCancellable or %NULL. 1047s # * @error: Return location for error or %NULL 1047s # * 1047s # * Like org_project_bar_frobnicator_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1047s # * 1047s # * The calling thread is blocked until a reply is received. 1047s # * 1047s # * See org_project_bar_frobnicator_proxy_new_for_bus() for the asynchronous version of this constructor. 1047s # * 1047s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1047s # */ 1047s # OrgProjectBarFrobnicator * 1047s # org_project_bar_frobnicator_proxy_new_for_bus_sync ( 1047s # GBusType bus_type, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GError **error) 1047s # { 1047s # GInitable *ret; 1047s # 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); 1047s # if (ret != NULL) 1047s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1047s # else 1047s # return NULL; 1047s # } 1047s # 1047s # 1047s # /* ------------------------------------------------------------------------ */ 1047s # 1047s # /** 1047s # * OrgProjectBarFrobnicatorSkeleton: 1047s # * 1047s # * The #OrgProjectBarFrobnicatorSkeleton structure contains only private data and should only be accessed using the provided API. 1047s # */ 1047s # 1047s # /** 1047s # * OrgProjectBarFrobnicatorSkeletonClass: 1047s # * @parent_class: The parent class. 1047s # * 1047s # * Class structure for #OrgProjectBarFrobnicatorSkeleton. 1047s # */ 1047s # 1047s # struct _OrgProjectBarFrobnicatorSkeletonPrivate 1047s # { 1047s # GValue *properties; 1047s # GList *changed_properties; 1047s # GSource *changed_properties_idle_source; 1047s # GMainContext *context; 1047s # GMutex lock; 1047s # }; 1047s # 1047s # static void 1047s # _org_project_bar_frobnicator_skeleton_handle_method_call ( 1047s # GDBusConnection *connection G_GNUC_UNUSED, 1047s # const gchar *sender G_GNUC_UNUSED, 1047s # const gchar *object_path G_GNUC_UNUSED, 1047s # const gchar *interface_name, 1047s # const gchar *method_name, 1047s # GVariant *parameters, 1047s # GDBusMethodInvocation *invocation, 1047s # gpointer user_data) 1047s # { 1047s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1047s # _ExtendedGDBusMethodInfo *info; 1047s # GVariantIter iter; 1047s # GVariant *child; 1047s # GValue *paramv; 1047s # gsize num_params; 1047s # guint num_extra; 1047s # gsize n; 1047s # guint signal_id; 1047s # GValue return_value = G_VALUE_INIT; 1047s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1047s # g_assert (info != NULL); 1047s # num_params = g_variant_n_children (parameters); 1047s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1047s # n = 0; 1047s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1047s # g_value_set_object (¶mv[n++], skeleton); 1047s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1047s # g_value_set_object (¶mv[n++], invocation); 1047s # if (info->pass_fdlist) 1047s # { 1047s # #ifdef G_OS_UNIX 1047s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1047s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1047s # #else 1047s # g_assert_not_reached (); 1047s # #endif 1047s # } 1047s # g_variant_iter_init (&iter, parameters); 1047s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1047s # { 1047s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1047s # if (arg_info->use_gvariant) 1047s # { 1047s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1047s # g_value_set_variant (¶mv[n], child); 1047s # n++; 1047s # } 1047s # else 1047s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1047s # g_variant_unref (child); 1047s # } 1047s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1047s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1047s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1047s # if (!g_value_get_boolean (&return_value)) 1047s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1047s # g_value_unset (&return_value); 1047s # for (n = 0; n < num_params + num_extra; n++) 1047s # g_value_unset (¶mv[n]); 1047s # g_free (paramv); 1047s # } 1047s # 1047s # static GVariant * 1047s # _org_project_bar_frobnicator_skeleton_handle_get_property ( 1047s # GDBusConnection *connection G_GNUC_UNUSED, 1047s # const gchar *sender G_GNUC_UNUSED, 1047s # const gchar *object_path G_GNUC_UNUSED, 1047s # const gchar *interface_name G_GNUC_UNUSED, 1047s # const gchar *property_name, 1047s # GError **error, 1047s # gpointer user_data) 1047s # { 1047s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1047s # GValue value = G_VALUE_INIT; 1047s # GParamSpec *pspec; 1047s # _ExtendedGDBusPropertyInfo *info; 1047s # GVariant *ret; 1047s # ret = NULL; 1047s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 1047s # g_assert (info != NULL); 1047s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1047s # if (pspec == NULL) 1047s # { 1047s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1047s # } 1047s # else 1047s # { 1047s # g_value_init (&value, pspec->value_type); 1047s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1047s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1047s # g_value_unset (&value); 1047s # } 1047s # return ret; 1047s # } 1047s # 1047s # static gboolean 1047s # _org_project_bar_frobnicator_skeleton_handle_set_property ( 1047s # GDBusConnection *connection G_GNUC_UNUSED, 1047s # const gchar *sender G_GNUC_UNUSED, 1047s # const gchar *object_path G_GNUC_UNUSED, 1047s # const gchar *interface_name G_GNUC_UNUSED, 1047s # const gchar *property_name, 1047s # GVariant *variant, 1047s # GError **error, 1047s # gpointer user_data) 1047s # { 1047s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1047s # GValue value = G_VALUE_INIT; 1047s # GParamSpec *pspec; 1047s # _ExtendedGDBusPropertyInfo *info; 1047s # gboolean ret; 1047s # ret = FALSE; 1047s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 1047s # g_assert (info != NULL); 1047s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1047s # if (pspec == NULL) 1047s # { 1047s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1047s # } 1047s # else 1047s # { 1047s # if (info->use_gvariant) 1047s # g_value_set_variant (&value, variant); 1047s # else 1047s # g_dbus_gvariant_to_gvalue (variant, &value); 1047s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1047s # g_value_unset (&value); 1047s # ret = TRUE; 1047s # } 1047s # return ret; 1047s # } 1047s # 1047s # static const GDBusInterfaceVTable _org_project_bar_frobnicator_skeleton_vtable = 1047s # { 1047s # _org_project_bar_frobnicator_skeleton_handle_method_call, 1047s # _org_project_bar_frobnicator_skeleton_handle_get_property, 1047s # _org_project_bar_frobnicator_skeleton_handle_set_property, 1047s # {NULL} 1047s # }; 1047s # 1047s # static GDBusInterfaceInfo * 1047s # org_project_bar_frobnicator_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1047s # { 1047s # return org_project_bar_frobnicator_interface_info (); 1047s # } 1047s # 1047s # static GDBusInterfaceVTable * 1047s # org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1047s # { 1047s # return (GDBusInterfaceVTable *) &_org_project_bar_frobnicator_skeleton_vtable; 1047s # } 1047s # 1047s # static GVariant * 1047s # org_project_bar_frobnicator_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1047s # { 1047s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (_skeleton); 1047s # 1047s # GVariantBuilder builder; 1047s # guint n; 1047s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1047s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1047s # #else 1047s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1047s # #endif 1047s # if (_org_project_bar_frobnicator_interface_info.parent_struct.properties == NULL) 1047s # goto out; 1047s # for (n = 0; _org_project_bar_frobnicator_interface_info.parent_struct.properties[n] != NULL; n++) 1047s # { 1047s # GDBusPropertyInfo *info = _org_project_bar_frobnicator_interface_info.parent_struct.properties[n]; 1047s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1047s # { 1047s # GVariant *value; 1047s # 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); 1047s # if (value != NULL) 1047s # { 1047s # g_variant_take_ref (value); 1047s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1047s # g_variant_unref (value); 1047s # } 1047s # } 1047s # } 1047s # out: 1047s # return g_variant_builder_end (&builder); 1047s # } 1047s # 1047s # static void 1047s # org_project_bar_frobnicator_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1047s # { 1047s # } 1047s # 1047s # static void org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface); 1047s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1047s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1047s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorSkeleton) 1047s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 1047s # 1047s # #else 1047s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1047s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 1047s # 1047s # #endif 1047s # static void 1047s # org_project_bar_frobnicator_skeleton_finalize (GObject *object) 1047s # { 1047s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (object); 1047s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1047s # if (skeleton->priv->changed_properties_idle_source != NULL) 1047s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1047s # g_main_context_unref (skeleton->priv->context); 1047s # g_mutex_clear (&skeleton->priv->lock); 1047s # G_OBJECT_CLASS (org_project_bar_frobnicator_skeleton_parent_class)->finalize (object); 1047s # } 1047s # 1047s # static void 1047s # org_project_bar_frobnicator_skeleton_init (OrgProjectBarFrobnicatorSkeleton *skeleton) 1047s # { 1047s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1047s # skeleton->priv = org_project_bar_frobnicator_skeleton_get_instance_private (skeleton); 1047s # #else 1047s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonPrivate); 1047s # #endif 1047s # 1047s # g_mutex_init (&skeleton->priv->lock); 1047s # skeleton->priv->context = g_main_context_ref_thread_default (); 1047s # } 1047s # 1047s # static void 1047s # org_project_bar_frobnicator_skeleton_class_init (OrgProjectBarFrobnicatorSkeletonClass *klass) 1047s # { 1047s # GObjectClass *gobject_class; 1047s # GDBusInterfaceSkeletonClass *skeleton_class; 1047s # 1047s # gobject_class = G_OBJECT_CLASS (klass); 1047s # gobject_class->finalize = org_project_bar_frobnicator_skeleton_finalize; 1047s # 1047s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1047s # skeleton_class->get_info = org_project_bar_frobnicator_skeleton_dbus_interface_get_info; 1047s # skeleton_class->get_properties = org_project_bar_frobnicator_skeleton_dbus_interface_get_properties; 1047s # skeleton_class->flush = org_project_bar_frobnicator_skeleton_dbus_interface_flush; 1047s # skeleton_class->get_vtable = org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable; 1047s # 1047s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1047s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorSkeletonPrivate)); 1047s # #endif 1047s # } 1047s # 1047s # static void 1047s # org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 1047s # { 1047s # } 1047s # 1047s # /** 1047s # * org_project_bar_frobnicator_skeleton_new: 1047s # * 1047s # * Creates a skeleton object for the D-Bus interface org.project.Bar.Frobnicator. 1047s # * 1047s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorSkeleton): The skeleton object. 1047s # */ 1047s # OrgProjectBarFrobnicator * 1047s # org_project_bar_frobnicator_skeleton_new (void) 1047s # { 1047s # return ORG_PROJECT_BAR_FROBNICATOR (g_object_new (TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, NULL)); 1047s # } 1047s # 1047s # /* ------------------------------------------------------------------------ 1047s # * Code for interface com.acme.Coyote 1047s # * ------------------------------------------------------------------------ 1047s # */ 1047s # 1047s # /** 1047s # * SECTION:ComAcmeCoyote 1047s # * @title: ComAcmeCoyote 1047s # * @short_description: Generated C code for the com.acme.Coyote D-Bus interface 1047s # * 1047s # * This section contains code for working with the com.acme.Coyote D-Bus interface in C. 1047s # */ 1047s # 1047s # enum 1047s # { 1047s # _COM_ACME_COYOTE_SURPRISED, 1047s # }; 1047s # 1047s # static unsigned _COM_ACME_COYOTE_SIGNALS[1] = { 0 }; 1047s # 1047s # /* ---- Introspection data for com.acme.Coyote ---- */ 1047s # 1047s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_run = 1047s # { 1047s # { 1047s # -1, 1047s # (gchar *) "Run", 1047s # NULL, 1047s # NULL, 1047s # NULL 1047s # }, 1047s # "handle-run", 1047s # FALSE 1047s # }; 1047s # 1047s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_sleep = 1047s # { 1047s # { 1047s # -1, 1047s # (gchar *) "Sleep", 1047s # NULL, 1047s # NULL, 1047s # NULL 1047s # }, 1047s # "handle-sleep", 1047s # FALSE 1047s # }; 1047s # 1047s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_attack = 1047s # { 1047s # { 1047s # -1, 1047s # (gchar *) "Attack", 1047s # NULL, 1047s # NULL, 1047s # NULL 1047s # }, 1047s # "handle-attack", 1047s # FALSE 1047s # }; 1047s # 1047s # static const GDBusMethodInfo * const _com_acme_coyote_method_info_pointers[] = 1047s # { 1047s # &_com_acme_coyote_method_info_run.parent_struct, 1047s # &_com_acme_coyote_method_info_sleep.parent_struct, 1047s # &_com_acme_coyote_method_info_attack.parent_struct, 1047s # NULL 1047s # }; 1047s # 1047s # static const _ExtendedGDBusSignalInfo _com_acme_coyote_signal_info_surprised = 1047s # { 1047s # { 1047s # -1, 1047s # (gchar *) "Surprised", 1047s # NULL, 1047s # NULL 1047s # }, 1047s # "surprised" 1047s # }; 1047s # 1047s # static const GDBusSignalInfo * const _com_acme_coyote_signal_info_pointers[] = 1047s # { 1047s # &_com_acme_coyote_signal_info_surprised.parent_struct, 1047s # NULL 1047s # }; 1047s # 1047s # static const _ExtendedGDBusPropertyInfo _com_acme_coyote_property_info_mood = 1047s # { 1047s # { 1047s # -1, 1047s # (gchar *) "Mood", 1047s # (gchar *) "s", 1047s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1047s # NULL 1047s # }, 1047s # "mood", 1047s # FALSE, 1047s # TRUE 1047s # }; 1047s # 1047s # static const GDBusPropertyInfo * const _com_acme_coyote_property_info_pointers[] = 1047s # { 1047s # &_com_acme_coyote_property_info_mood.parent_struct, 1047s # NULL 1047s # }; 1047s # 1047s # static const _ExtendedGDBusInterfaceInfo _com_acme_coyote_interface_info = 1047s # { 1047s # { 1047s # -1, 1047s # (gchar *) "com.acme.Coyote", 1047s # (GDBusMethodInfo **) &_com_acme_coyote_method_info_pointers, 1047s # (GDBusSignalInfo **) &_com_acme_coyote_signal_info_pointers, 1047s # (GDBusPropertyInfo **) &_com_acme_coyote_property_info_pointers, 1047s # NULL 1047s # }, 1047s # "com-acme-coyote", 1047s # }; 1047s # 1047s # 1047s # /** 1047s # * com_acme_coyote_interface_info: 1047s # * 1047s # * Gets a machine-readable description of the com.acme.Coyote D-Bus interface. 1047s # * 1047s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1047s # */ 1047s # GDBusInterfaceInfo * 1047s # com_acme_coyote_interface_info (void) 1047s # { 1047s # return (GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct; 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_override_properties: 1047s # * @klass: The class structure for a #GObject derived class. 1047s # * @property_id_begin: The property id to assign to the first overridden property. 1047s # * 1047s # * Overrides all #GObject properties in the #ComAcmeCoyote interface for a concrete class. 1047s # * The properties are overridden in the order they are defined. 1047s # * 1047s # * Returns: The last property id. 1047s # */ 1047s # guint 1047s # com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin) 1047s # { 1047s # g_object_class_override_property (klass, property_id_begin++, "mood"); 1047s # return property_id_begin - 1; 1047s # } 1047s # 1047s # 1047s # inline static void 1047s # com_acme_coyote_signal_marshal_surprised ( 1047s # GClosure *closure, 1047s # GValue *return_value, 1047s # unsigned int n_param_values, 1047s # const GValue *param_values, 1047s # void *invocation_hint, 1047s # void *marshal_data) 1047s # { 1047s # g_cclosure_marshal_VOID__VOID (closure, 1047s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1047s # } 1047s # 1047s # inline static void 1047s # com_acme_coyote_method_marshal_run ( 1047s # GClosure *closure, 1047s # GValue *return_value, 1047s # unsigned int n_param_values, 1047s # const GValue *param_values, 1047s # void *invocation_hint, 1047s # void *marshal_data) 1047s # { 1047s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1047s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1047s # } 1047s # 1047s # inline static void 1047s # com_acme_coyote_method_marshal_sleep ( 1047s # GClosure *closure, 1047s # GValue *return_value, 1047s # unsigned int n_param_values, 1047s # const GValue *param_values, 1047s # void *invocation_hint, 1047s # void *marshal_data) 1047s # { 1047s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1047s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1047s # } 1047s # 1047s # inline static void 1047s # com_acme_coyote_method_marshal_attack ( 1047s # GClosure *closure, 1047s # GValue *return_value, 1047s # unsigned int n_param_values, 1047s # const GValue *param_values, 1047s # void *invocation_hint, 1047s # void *marshal_data) 1047s # { 1047s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1047s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1047s # } 1047s # 1047s # 1047s # /** 1047s # * ComAcmeCoyote: 1047s # * 1047s # * Abstract interface type for the D-Bus interface com.acme.Coyote. 1047s # */ 1047s # 1047s # /** 1047s # * ComAcmeCoyoteIface: 1047s # * @parent_iface: The parent interface. 1047s # * @handle_attack: Handler for the #ComAcmeCoyote::handle-attack signal. 1047s # * @handle_run: Handler for the #ComAcmeCoyote::handle-run signal. 1047s # * @handle_sleep: Handler for the #ComAcmeCoyote::handle-sleep signal. 1047s # * @get_mood: Getter for the #ComAcmeCoyote:mood property. 1047s # * @surprised: Handler for the #ComAcmeCoyote::surprised signal. 1047s # * 1047s # * Virtual table for the D-Bus interface com.acme.Coyote. 1047s # */ 1047s # 1047s # typedef ComAcmeCoyoteIface ComAcmeCoyoteInterface; 1047s # G_DEFINE_INTERFACE (ComAcmeCoyote, com_acme_coyote, G_TYPE_OBJECT) 1047s # 1047s # static void 1047s # com_acme_coyote_default_init (ComAcmeCoyoteIface *iface) 1047s # { 1047s # /* GObject signals for incoming D-Bus method calls: */ 1047s # /** 1047s # * ComAcmeCoyote::handle-run: 1047s # * @object: A #ComAcmeCoyote. 1047s # * @invocation: A #GDBusMethodInvocation. 1047s # * 1047s # * Signal emitted when a remote caller is invoking the Run() D-Bus method. 1047s # * 1047s # * 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. 1047s # * 1047s # * 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. 1047s # */ 1047s # g_signal_new ("handle-run", 1047s # G_TYPE_FROM_INTERFACE (iface), 1047s # G_SIGNAL_RUN_LAST, 1047s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_run), 1047s # g_signal_accumulator_true_handled, 1047s # NULL, 1047s # com_acme_coyote_method_marshal_run, 1047s # G_TYPE_BOOLEAN, 1047s # 1, 1047s # G_TYPE_DBUS_METHOD_INVOCATION); 1047s # 1047s # /** 1047s # * ComAcmeCoyote::handle-sleep: 1047s # * @object: A #ComAcmeCoyote. 1047s # * @invocation: A #GDBusMethodInvocation. 1047s # * 1047s # * Signal emitted when a remote caller is invoking the Sleep() D-Bus method. 1047s # * 1047s # * 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. 1047s # * 1047s # * 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. 1047s # */ 1047s # g_signal_new ("handle-sleep", 1047s # G_TYPE_FROM_INTERFACE (iface), 1047s # G_SIGNAL_RUN_LAST, 1047s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_sleep), 1047s # g_signal_accumulator_true_handled, 1047s # NULL, 1047s # com_acme_coyote_method_marshal_sleep, 1047s # G_TYPE_BOOLEAN, 1047s # 1, 1047s # G_TYPE_DBUS_METHOD_INVOCATION); 1047s # 1047s # /** 1047s # * ComAcmeCoyote::handle-attack: 1047s # * @object: A #ComAcmeCoyote. 1047s # * @invocation: A #GDBusMethodInvocation. 1047s # * 1047s # * Signal emitted when a remote caller is invoking the Attack() D-Bus method. 1047s # * 1047s # * 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. 1047s # * 1047s # * 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. 1047s # */ 1047s # g_signal_new ("handle-attack", 1047s # G_TYPE_FROM_INTERFACE (iface), 1047s # G_SIGNAL_RUN_LAST, 1047s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_attack), 1047s # g_signal_accumulator_true_handled, 1047s # NULL, 1047s # com_acme_coyote_method_marshal_attack, 1047s # G_TYPE_BOOLEAN, 1047s # 1, 1047s # G_TYPE_DBUS_METHOD_INVOCATION); 1047s # 1047s # /* GObject signals for received D-Bus signals: */ 1047s # /** 1047s # * ComAcmeCoyote::surprised: 1047s # * @object: A #ComAcmeCoyote. 1047s # * 1047s # * On the client-side, this signal is emitted whenever the D-Bus signal "Surprised" is received. 1047s # * 1047s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1047s # */ 1047s # _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED] = 1047s # g_signal_new ("surprised", 1047s # G_TYPE_FROM_INTERFACE (iface), 1047s # G_SIGNAL_RUN_LAST, 1047s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, surprised), 1047s # NULL, 1047s # NULL, 1047s # com_acme_coyote_signal_marshal_surprised, 1047s # G_TYPE_NONE, 1047s # 0); 1047s # 1047s # /* GObject properties for D-Bus properties: */ 1047s # /** 1047s # * ComAcmeCoyote:mood: 1047s # * 1047s # * Represents the D-Bus property "Mood". 1047s # * 1047s # * 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. 1047s # */ 1047s # g_object_interface_install_property (iface, 1047s # g_param_spec_string ("mood", "Mood", "Mood", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_get_mood: (skip) 1047s # * @object: A #ComAcmeCoyote. 1047s # * 1047s # * Gets the value of the "Mood" D-Bus property. 1047s # * 1047s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1047s # * 1047s # * 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. 1047s # * 1047s # * 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. 1047s # */ 1047s # const gchar * 1047s # com_acme_coyote_get_mood (ComAcmeCoyote *object) 1047s # { 1047s # g_return_val_if_fail (IS_COM_ACME_COYOTE (object), NULL); 1047s # 1047s # return COM_ACME_COYOTE_GET_IFACE (object)->get_mood (object); 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_dup_mood: (skip) 1047s # * @object: A #ComAcmeCoyote. 1047s # * 1047s # * Gets a copy of the "Mood" D-Bus property. 1047s # * 1047s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1047s # * 1047s # * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). 1047s # */ 1047s # gchar * 1047s # com_acme_coyote_dup_mood (ComAcmeCoyote *object) 1047s # { 1047s # gchar *value; 1047s # g_object_get (G_OBJECT (object), "mood", &value, NULL); 1047s # return value; 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_set_mood: (skip) 1047s # * @object: A #ComAcmeCoyote. 1047s # * @value: The value to set. 1047s # * 1047s # * Sets the "Mood" D-Bus property to @value. 1047s # * 1047s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1047s # */ 1047s # void 1047s # com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value) 1047s # { 1047s # g_object_set (G_OBJECT (object), "mood", value, NULL); 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_emit_surprised: 1047s # * @object: A #ComAcmeCoyote. 1047s # * 1047s # * Emits the "Surprised" D-Bus signal. 1047s # */ 1047s # void 1047s # com_acme_coyote_emit_surprised ( 1047s # ComAcmeCoyote *object) 1047s # { 1047s # g_signal_emit (object, _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED], 0); 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_call_run: 1047s # * @proxy: A #ComAcmeCoyoteProxy. 1047s # * @cancellable: (nullable): A #GCancellable or %NULL. 1047s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1047s # * @user_data: User data to pass to @callback. 1047s # * 1047s # * Asynchronously invokes the Run() D-Bus method on @proxy. 1047s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1047s # * You can then call com_acme_coyote_call_run_finish() to get the result of the operation. 1047s # * 1047s # * See com_acme_coyote_call_run_sync() for the synchronous, blocking version of this method. 1047s # */ 1047s # void 1047s # com_acme_coyote_call_run ( 1047s # ComAcmeCoyote *proxy, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data) 1047s # { 1047s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1047s # "Run", 1047s # g_variant_new ("()"), 1047s # G_DBUS_CALL_FLAGS_NONE, 1047s # -1, 1047s # cancellable, 1047s # callback, 1047s # user_data); 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_call_run_finish: 1047s # * @proxy: A #ComAcmeCoyoteProxy. 1047s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_run(). 1047s # * @error: Return location for error or %NULL. 1047s # * 1047s # * Finishes an operation started with com_acme_coyote_call_run(). 1047s # * 1047s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1047s # */ 1047s # gboolean 1047s # com_acme_coyote_call_run_finish ( 1047s # ComAcmeCoyote *proxy, 1047s # GAsyncResult *res, 1047s # GError **error) 1047s # { 1047s # GVariant *_ret; 1047s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1047s # if (_ret == NULL) 1047s # goto _out; 1047s # g_variant_get (_ret, 1047s # "()"); 1047s # g_variant_unref (_ret); 1047s # _out: 1047s # return _ret != NULL; 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_call_run_sync: 1047s # * @proxy: A #ComAcmeCoyoteProxy. 1047s # * @cancellable: (nullable): A #GCancellable or %NULL. 1047s # * @error: Return location for error or %NULL. 1047s # * 1047s # * Synchronously invokes the Run() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1047s # * 1047s # * See com_acme_coyote_call_run() for the asynchronous version of this method. 1047s # * 1047s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1047s # */ 1047s # gboolean 1047s # com_acme_coyote_call_run_sync ( 1047s # ComAcmeCoyote *proxy, 1047s # GCancellable *cancellable, 1047s # GError **error) 1047s # { 1047s # GVariant *_ret; 1047s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1047s # "Run", 1047s # g_variant_new ("()"), 1047s # G_DBUS_CALL_FLAGS_NONE, 1047s # -1, 1047s # cancellable, 1047s # error); 1047s # if (_ret == NULL) 1047s # goto _out; 1047s # g_variant_get (_ret, 1047s # "()"); 1047s # g_variant_unref (_ret); 1047s # _out: 1047s # return _ret != NULL; 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_call_sleep: 1047s # * @proxy: A #ComAcmeCoyoteProxy. 1047s # * @cancellable: (nullable): A #GCancellable or %NULL. 1047s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1047s # * @user_data: User data to pass to @callback. 1047s # * 1047s # * Asynchronously invokes the Sleep() D-Bus method on @proxy. 1047s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1047s # * You can then call com_acme_coyote_call_sleep_finish() to get the result of the operation. 1047s # * 1047s # * See com_acme_coyote_call_sleep_sync() for the synchronous, blocking version of this method. 1047s # */ 1047s # void 1047s # com_acme_coyote_call_sleep ( 1047s # ComAcmeCoyote *proxy, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data) 1047s # { 1047s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1047s # "Sleep", 1047s # g_variant_new ("()"), 1047s # G_DBUS_CALL_FLAGS_NONE, 1047s # -1, 1047s # cancellable, 1047s # callback, 1047s # user_data); 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_call_sleep_finish: 1047s # * @proxy: A #ComAcmeCoyoteProxy. 1047s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_sleep(). 1047s # * @error: Return location for error or %NULL. 1047s # * 1047s # * Finishes an operation started with com_acme_coyote_call_sleep(). 1047s # * 1047s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1047s # */ 1047s # gboolean 1047s # com_acme_coyote_call_sleep_finish ( 1047s # ComAcmeCoyote *proxy, 1047s # GAsyncResult *res, 1047s # GError **error) 1047s # { 1047s # GVariant *_ret; 1047s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1047s # if (_ret == NULL) 1047s # goto _out; 1047s # g_variant_get (_ret, 1047s # "()"); 1047s # g_variant_unref (_ret); 1047s # _out: 1047s # return _ret != NULL; 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_call_sleep_sync: 1047s # * @proxy: A #ComAcmeCoyoteProxy. 1047s # * @cancellable: (nullable): A #GCancellable or %NULL. 1047s # * @error: Return location for error or %NULL. 1047s # * 1047s # * Synchronously invokes the Sleep() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1047s # * 1047s # * See com_acme_coyote_call_sleep() for the asynchronous version of this method. 1047s # * 1047s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1047s # */ 1047s # gboolean 1047s # com_acme_coyote_call_sleep_sync ( 1047s # ComAcmeCoyote *proxy, 1047s # GCancellable *cancellable, 1047s # GError **error) 1047s # { 1047s # GVariant *_ret; 1047s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1047s # "Sleep", 1047s # g_variant_new ("()"), 1047s # G_DBUS_CALL_FLAGS_NONE, 1047s # -1, 1047s # cancellable, 1047s # error); 1047s # if (_ret == NULL) 1047s # goto _out; 1047s # g_variant_get (_ret, 1047s # "()"); 1047s # g_variant_unref (_ret); 1047s # _out: 1047s # return _ret != NULL; 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_call_attack: 1047s # * @proxy: A #ComAcmeCoyoteProxy. 1047s # * @cancellable: (nullable): A #GCancellable or %NULL. 1047s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1047s # * @user_data: User data to pass to @callback. 1047s # * 1047s # * Asynchronously invokes the Attack() D-Bus method on @proxy. 1047s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1047s # * You can then call com_acme_coyote_call_attack_finish() to get the result of the operation. 1047s # * 1047s # * See com_acme_coyote_call_attack_sync() for the synchronous, blocking version of this method. 1047s # */ 1047s # void 1047s # com_acme_coyote_call_attack ( 1047s # ComAcmeCoyote *proxy, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data) 1047s # { 1047s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1047s # "Attack", 1047s # g_variant_new ("()"), 1047s # G_DBUS_CALL_FLAGS_NONE, 1047s # -1, 1047s # cancellable, 1047s # callback, 1047s # user_data); 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_call_attack_finish: 1047s # * @proxy: A #ComAcmeCoyoteProxy. 1047s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_attack(). 1047s # * @error: Return location for error or %NULL. 1047s # * 1047s # * Finishes an operation started with com_acme_coyote_call_attack(). 1047s # * 1047s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1047s # */ 1047s # gboolean 1047s # com_acme_coyote_call_attack_finish ( 1047s # ComAcmeCoyote *proxy, 1047s # GAsyncResult *res, 1047s # GError **error) 1047s # { 1047s # GVariant *_ret; 1047s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1047s # if (_ret == NULL) 1047s # goto _out; 1047s # g_variant_get (_ret, 1047s # "()"); 1047s # g_variant_unref (_ret); 1047s # _out: 1047s # return _ret != NULL; 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_call_attack_sync: 1047s # * @proxy: A #ComAcmeCoyoteProxy. 1047s # * @cancellable: (nullable): A #GCancellable or %NULL. 1047s # * @error: Return location for error or %NULL. 1047s # * 1047s # * Synchronously invokes the Attack() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1047s # * 1047s # * See com_acme_coyote_call_attack() for the asynchronous version of this method. 1047s # * 1047s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1047s # */ 1047s # gboolean 1047s # com_acme_coyote_call_attack_sync ( 1047s # ComAcmeCoyote *proxy, 1047s # GCancellable *cancellable, 1047s # GError **error) 1047s # { 1047s # GVariant *_ret; 1047s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1047s # "Attack", 1047s # g_variant_new ("()"), 1047s # G_DBUS_CALL_FLAGS_NONE, 1047s # -1, 1047s # cancellable, 1047s # error); 1047s # if (_ret == NULL) 1047s # goto _out; 1047s # g_variant_get (_ret, 1047s # "()"); 1047s # g_variant_unref (_ret); 1047s # _out: 1047s # return _ret != NULL; 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_complete_run: 1047s # * @object: A #ComAcmeCoyote. 1047s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1047s # * 1047s # * 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. 1047s # * 1047s # * This method will free @invocation, you cannot use it afterwards. 1047s # */ 1047s # void 1047s # com_acme_coyote_complete_run ( 1047s # ComAcmeCoyote *object G_GNUC_UNUSED, 1047s # GDBusMethodInvocation *invocation) 1047s # { 1047s # g_dbus_method_invocation_return_value (invocation, 1047s # g_variant_new ("()")); 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_complete_sleep: 1047s # * @object: A #ComAcmeCoyote. 1047s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1047s # * 1047s # * 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. 1047s # * 1047s # * This method will free @invocation, you cannot use it afterwards. 1047s # */ 1047s # void 1047s # com_acme_coyote_complete_sleep ( 1047s # ComAcmeCoyote *object G_GNUC_UNUSED, 1047s # GDBusMethodInvocation *invocation) 1047s # { 1047s # g_dbus_method_invocation_return_value (invocation, 1047s # g_variant_new ("()")); 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_complete_attack: 1047s # * @object: A #ComAcmeCoyote. 1047s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1047s # * 1047s # * 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. 1047s # * 1047s # * This method will free @invocation, you cannot use it afterwards. 1047s # */ 1047s # void 1047s # com_acme_coyote_complete_attack ( 1047s # ComAcmeCoyote *object G_GNUC_UNUSED, 1047s # GDBusMethodInvocation *invocation) 1047s # { 1047s # g_dbus_method_invocation_return_value (invocation, 1047s # g_variant_new ("()")); 1047s # } 1047s # 1047s # /* ------------------------------------------------------------------------ */ 1047s # 1047s # /** 1047s # * ComAcmeCoyoteProxy: 1047s # * 1047s # * The #ComAcmeCoyoteProxy structure contains only private data and should only be accessed using the provided API. 1047s # */ 1047s # 1047s # /** 1047s # * ComAcmeCoyoteProxyClass: 1047s # * @parent_class: The parent class. 1047s # * 1047s # * Class structure for #ComAcmeCoyoteProxy. 1047s # */ 1047s # 1047s # struct _ComAcmeCoyoteProxyPrivate 1047s # { 1047s # GData *qdata; 1047s # }; 1047s # 1047s # static void com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface); 1047s # 1047s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1047s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 1047s # G_ADD_PRIVATE (ComAcmeCoyoteProxy) 1047s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 1047s # 1047s # #else 1047s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 1047s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 1047s # 1047s # #endif 1047s # static void 1047s # com_acme_coyote_proxy_finalize (GObject *object) 1047s # { 1047s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 1047s # g_datalist_clear (&proxy->priv->qdata); 1047s # G_OBJECT_CLASS (com_acme_coyote_proxy_parent_class)->finalize (object); 1047s # } 1047s # 1047s # static void 1047s # com_acme_coyote_proxy_get_property (GObject *object, 1047s # guint prop_id, 1047s # GValue *value, 1047s # GParamSpec *pspec G_GNUC_UNUSED) 1047s # { 1047s # const _ExtendedGDBusPropertyInfo *info; 1047s # GVariant *variant; 1047s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1047s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1047s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1047s # if (info->use_gvariant) 1047s # { 1047s # g_value_set_variant (value, variant); 1047s # } 1047s # else 1047s # { 1047s # if (variant != NULL) 1047s # g_dbus_gvariant_to_gvalue (variant, value); 1047s # } 1047s # if (variant != NULL) 1047s # g_variant_unref (variant); 1047s # } 1047s # 1047s # static void 1047s # com_acme_coyote_proxy_set_property_cb (GDBusProxy *proxy, 1047s # GAsyncResult *res, 1047s # gpointer user_data) 1047s # { 1047s # const _ExtendedGDBusPropertyInfo *info = user_data; 1047s # GError *error; 1047s # GVariant *_ret; 1047s # error = NULL; 1047s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1047s # if (!_ret) 1047s # { 1047s # g_warning ("Error setting property '%s' on interface com.acme.Coyote: %s (%s, %d)", 1047s # info->parent_struct.name, 1047s # error->message, g_quark_to_string (error->domain), error->code); 1047s # g_error_free (error); 1047s # } 1047s # else 1047s # { 1047s # g_variant_unref (_ret); 1047s # } 1047s # } 1047s # 1047s # static void 1047s # com_acme_coyote_proxy_set_property (GObject *object, 1047s # guint prop_id, 1047s # const GValue *value, 1047s # GParamSpec *pspec G_GNUC_UNUSED) 1047s # { 1047s # const _ExtendedGDBusPropertyInfo *info; 1047s # GVariant *variant; 1047s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1047s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1047s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1047s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1047s # "org.freedesktop.DBus.Properties.Set", 1047s # g_variant_new ("(ssv)", "com.acme.Coyote", info->parent_struct.name, variant), 1047s # G_DBUS_CALL_FLAGS_NONE, 1047s # -1, 1047s # NULL, (GAsyncReadyCallback) com_acme_coyote_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1047s # g_variant_unref (variant); 1047s # } 1047s # 1047s # static void 1047s # com_acme_coyote_proxy_g_signal (GDBusProxy *proxy, 1047s # const gchar *sender_name G_GNUC_UNUSED, 1047s # const gchar *signal_name, 1047s # GVariant *parameters) 1047s # { 1047s # _ExtendedGDBusSignalInfo *info; 1047s # GVariantIter iter; 1047s # GVariant *child; 1047s # GValue *paramv; 1047s # gsize num_params; 1047s # gsize n; 1047s # guint signal_id; 1047s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, signal_name); 1047s # if (info == NULL) 1047s # return; 1047s # num_params = g_variant_n_children (parameters); 1047s # paramv = g_new0 (GValue, num_params + 1); 1047s # g_value_init (¶mv[0], TYPE_COM_ACME_COYOTE); 1047s # g_value_set_object (¶mv[0], proxy); 1047s # g_variant_iter_init (&iter, parameters); 1047s # n = 1; 1047s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1047s # { 1047s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1047s # if (arg_info->use_gvariant) 1047s # { 1047s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1047s # g_value_set_variant (¶mv[n], child); 1047s # n++; 1047s # } 1047s # else 1047s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1047s # g_variant_unref (child); 1047s # } 1047s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 1047s # g_signal_emitv (paramv, signal_id, 0, NULL); 1047s # for (n = 0; n < num_params + 1; n++) 1047s # g_value_unset (¶mv[n]); 1047s # g_free (paramv); 1047s # } 1047s # 1047s # static void 1047s # com_acme_coyote_proxy_g_properties_changed (GDBusProxy *_proxy, 1047s # GVariant *changed_properties, 1047s # const gchar *const *invalidated_properties) 1047s # { 1047s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (_proxy); 1047s # guint n; 1047s # const gchar *key; 1047s # GVariantIter *iter; 1047s # _ExtendedGDBusPropertyInfo *info; 1047s # g_variant_get (changed_properties, "a{sv}", &iter); 1047s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1047s # { 1047s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, key); 1047s # g_datalist_remove_data (&proxy->priv->qdata, key); 1047s # if (info != NULL) 1047s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1047s # } 1047s # g_variant_iter_free (iter); 1047s # for (n = 0; invalidated_properties[n] != NULL; n++) 1047s # { 1047s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, invalidated_properties[n]); 1047s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1047s # if (info != NULL) 1047s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1047s # } 1047s # } 1047s # 1047s # static const gchar * 1047s # com_acme_coyote_proxy_get_mood (ComAcmeCoyote *object) 1047s # { 1047s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 1047s # GVariant *variant; 1047s # const gchar *value = NULL; 1047s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "Mood"); 1047s # if (variant != NULL) 1047s # { 1047s # value = g_variant_get_string (variant, NULL); 1047s # g_variant_unref (variant); 1047s # } 1047s # return value; 1047s # } 1047s # 1047s # static void 1047s # com_acme_coyote_proxy_init (ComAcmeCoyoteProxy *proxy) 1047s # { 1047s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1047s # proxy->priv = com_acme_coyote_proxy_get_instance_private (proxy); 1047s # #else 1047s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyPrivate); 1047s # #endif 1047s # 1047s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), com_acme_coyote_interface_info ()); 1047s # } 1047s # 1047s # static void 1047s # com_acme_coyote_proxy_class_init (ComAcmeCoyoteProxyClass *klass) 1047s # { 1047s # GObjectClass *gobject_class; 1047s # GDBusProxyClass *proxy_class; 1047s # 1047s # gobject_class = G_OBJECT_CLASS (klass); 1047s # gobject_class->finalize = com_acme_coyote_proxy_finalize; 1047s # gobject_class->get_property = com_acme_coyote_proxy_get_property; 1047s # gobject_class->set_property = com_acme_coyote_proxy_set_property; 1047s # 1047s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1047s # proxy_class->g_signal = com_acme_coyote_proxy_g_signal; 1047s # proxy_class->g_properties_changed = com_acme_coyote_proxy_g_properties_changed; 1047s # 1047s # com_acme_coyote_override_properties (gobject_class, 1); 1047s # 1047s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1047s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteProxyPrivate)); 1047s # #endif 1047s # } 1047s # 1047s # static void 1047s # com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface) 1047s # { 1047s # iface->get_mood = com_acme_coyote_proxy_get_mood; 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_proxy_new: 1047s # * @connection: A #GDBusConnection. 1047s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1047s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1047s # * @object_path: An object path. 1047s # * @cancellable: (nullable): A #GCancellable or %NULL. 1047s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1047s # * @user_data: User data to pass to @callback. 1047s # * 1047s # * Asynchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new() for more details. 1047s # * 1047s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1047s # * You can then call com_acme_coyote_proxy_new_finish() to get the result of the operation. 1047s # * 1047s # * See com_acme_coyote_proxy_new_sync() for the synchronous, blocking version of this constructor. 1047s # */ 1047s # void 1047s # com_acme_coyote_proxy_new ( 1047s # GDBusConnection *connection, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data) 1047s # { 1047s # 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); 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_proxy_new_finish: 1047s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new(). 1047s # * @error: Return location for error or %NULL 1047s # * 1047s # * Finishes an operation started with com_acme_coyote_proxy_new(). 1047s # * 1047s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1047s # */ 1047s # ComAcmeCoyote * 1047s # com_acme_coyote_proxy_new_finish ( 1047s # GAsyncResult *res, 1047s # GError **error) 1047s # { 1047s # GObject *ret; 1047s # GObject *source_object; 1047s # source_object = g_async_result_get_source_object (res); 1047s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1047s # g_object_unref (source_object); 1047s # if (ret != NULL) 1047s # return COM_ACME_COYOTE (ret); 1047s # else 1047s # return NULL; 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_proxy_new_sync: 1047s # * @connection: A #GDBusConnection. 1047s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1047s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1047s # * @object_path: An object path. 1047s # * @cancellable: (nullable): A #GCancellable or %NULL. 1047s # * @error: Return location for error or %NULL 1047s # * 1047s # * Synchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new_sync() for more details. 1047s # * 1047s # * The calling thread is blocked until a reply is received. 1047s # * 1047s # * See com_acme_coyote_proxy_new() for the asynchronous version of this constructor. 1047s # * 1047s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1047s # */ 1047s # ComAcmeCoyote * 1047s # com_acme_coyote_proxy_new_sync ( 1047s # GDBusConnection *connection, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GError **error) 1047s # { 1047s # GInitable *ret; 1047s # 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); 1047s # if (ret != NULL) 1047s # return COM_ACME_COYOTE (ret); 1047s # else 1047s # return NULL; 1047s # } 1047s # 1047s # 1047s # /** 1047s # * com_acme_coyote_proxy_new_for_bus: 1047s # * @bus_type: A #GBusType. 1047s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1047s # * @name: A bus name (well-known or unique). 1047s # * @object_path: An object path. 1047s # * @cancellable: (nullable): A #GCancellable or %NULL. 1047s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1047s # * @user_data: User data to pass to @callback. 1047s # * 1047s # * Like com_acme_coyote_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1047s # * 1047s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1047s # * You can then call com_acme_coyote_proxy_new_for_bus_finish() to get the result of the operation. 1047s # * 1047s # * See com_acme_coyote_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1047s # */ 1047s # void 1047s # com_acme_coyote_proxy_new_for_bus ( 1047s # GBusType bus_type, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data) 1047s # { 1047s # 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); 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_proxy_new_for_bus_finish: 1047s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new_for_bus(). 1047s # * @error: Return location for error or %NULL 1047s # * 1047s # * Finishes an operation started with com_acme_coyote_proxy_new_for_bus(). 1047s # * 1047s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1047s # */ 1047s # ComAcmeCoyote * 1047s # com_acme_coyote_proxy_new_for_bus_finish ( 1047s # GAsyncResult *res, 1047s # GError **error) 1047s # { 1047s # GObject *ret; 1047s # GObject *source_object; 1047s # source_object = g_async_result_get_source_object (res); 1047s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1047s # g_object_unref (source_object); 1047s # if (ret != NULL) 1047s # return COM_ACME_COYOTE (ret); 1047s # else 1047s # return NULL; 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_proxy_new_for_bus_sync: 1047s # * @bus_type: A #GBusType. 1047s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1047s # * @name: A bus name (well-known or unique). 1047s # * @object_path: An object path. 1047s # * @cancellable: (nullable): A #GCancellable or %NULL. 1047s # * @error: Return location for error or %NULL 1047s # * 1047s # * Like com_acme_coyote_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1047s # * 1047s # * The calling thread is blocked until a reply is received. 1047s # * 1047s # * See com_acme_coyote_proxy_new_for_bus() for the asynchronous version of this constructor. 1047s # * 1047s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1047s # */ 1047s # ComAcmeCoyote * 1047s # com_acme_coyote_proxy_new_for_bus_sync ( 1047s # GBusType bus_type, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GError **error) 1047s # { 1047s # GInitable *ret; 1047s # 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); 1047s # if (ret != NULL) 1047s # return COM_ACME_COYOTE (ret); 1047s # else 1047s # return NULL; 1047s # } 1047s # 1047s # 1047s # /* ------------------------------------------------------------------------ */ 1047s # 1047s # /** 1047s # * ComAcmeCoyoteSkeleton: 1047s # * 1047s # * The #ComAcmeCoyoteSkeleton structure contains only private data and should only be accessed using the provided API. 1047s # */ 1047s # 1047s # /** 1047s # * ComAcmeCoyoteSkeletonClass: 1047s # * @parent_class: The parent class. 1047s # * 1047s # * Class structure for #ComAcmeCoyoteSkeleton. 1047s # */ 1047s # 1047s # struct _ComAcmeCoyoteSkeletonPrivate 1047s # { 1047s # GValue *properties; 1047s # GList *changed_properties; 1047s # GSource *changed_properties_idle_source; 1047s # GMainContext *context; 1047s # GMutex lock; 1047s # }; 1047s # 1047s # static void 1047s # _com_acme_coyote_skeleton_handle_method_call ( 1047s # GDBusConnection *connection G_GNUC_UNUSED, 1047s # const gchar *sender G_GNUC_UNUSED, 1047s # const gchar *object_path G_GNUC_UNUSED, 1047s # const gchar *interface_name, 1047s # const gchar *method_name, 1047s # GVariant *parameters, 1047s # GDBusMethodInvocation *invocation, 1047s # gpointer user_data) 1047s # { 1047s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1047s # _ExtendedGDBusMethodInfo *info; 1047s # GVariantIter iter; 1047s # GVariant *child; 1047s # GValue *paramv; 1047s # gsize num_params; 1047s # guint num_extra; 1047s # gsize n; 1047s # guint signal_id; 1047s # GValue return_value = G_VALUE_INIT; 1047s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1047s # g_assert (info != NULL); 1047s # num_params = g_variant_n_children (parameters); 1047s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1047s # n = 0; 1047s # g_value_init (¶mv[n], TYPE_COM_ACME_COYOTE); 1047s # g_value_set_object (¶mv[n++], skeleton); 1047s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1047s # g_value_set_object (¶mv[n++], invocation); 1047s # if (info->pass_fdlist) 1047s # { 1047s # #ifdef G_OS_UNIX 1047s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1047s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1047s # #else 1047s # g_assert_not_reached (); 1047s # #endif 1047s # } 1047s # g_variant_iter_init (&iter, parameters); 1047s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1047s # { 1047s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1047s # if (arg_info->use_gvariant) 1047s # { 1047s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1047s # g_value_set_variant (¶mv[n], child); 1047s # n++; 1047s # } 1047s # else 1047s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1047s # g_variant_unref (child); 1047s # } 1047s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 1047s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1047s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1047s # if (!g_value_get_boolean (&return_value)) 1047s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1047s # g_value_unset (&return_value); 1047s # for (n = 0; n < num_params + num_extra; n++) 1047s # g_value_unset (¶mv[n]); 1047s # g_free (paramv); 1047s # } 1047s # 1047s # static GVariant * 1047s # _com_acme_coyote_skeleton_handle_get_property ( 1047s # GDBusConnection *connection G_GNUC_UNUSED, 1047s # const gchar *sender G_GNUC_UNUSED, 1047s # const gchar *object_path G_GNUC_UNUSED, 1047s # const gchar *interface_name G_GNUC_UNUSED, 1047s # const gchar *property_name, 1047s # GError **error, 1047s # gpointer user_data) 1047s # { 1047s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1047s # GValue value = G_VALUE_INIT; 1047s # GParamSpec *pspec; 1047s # _ExtendedGDBusPropertyInfo *info; 1047s # GVariant *ret; 1047s # ret = NULL; 1047s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 1047s # g_assert (info != NULL); 1047s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1047s # if (pspec == NULL) 1047s # { 1047s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1047s # } 1047s # else 1047s # { 1047s # g_value_init (&value, pspec->value_type); 1047s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1047s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1047s # g_value_unset (&value); 1047s # } 1047s # return ret; 1047s # } 1047s # 1047s # static gboolean 1047s # _com_acme_coyote_skeleton_handle_set_property ( 1047s # GDBusConnection *connection G_GNUC_UNUSED, 1047s # const gchar *sender G_GNUC_UNUSED, 1047s # const gchar *object_path G_GNUC_UNUSED, 1047s # const gchar *interface_name G_GNUC_UNUSED, 1047s # const gchar *property_name, 1047s # GVariant *variant, 1047s # GError **error, 1047s # gpointer user_data) 1047s # { 1047s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1047s # GValue value = G_VALUE_INIT; 1047s # GParamSpec *pspec; 1047s # _ExtendedGDBusPropertyInfo *info; 1047s # gboolean ret; 1047s # ret = FALSE; 1047s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 1047s # g_assert (info != NULL); 1047s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1047s # if (pspec == NULL) 1047s # { 1047s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1047s # } 1047s # else 1047s # { 1047s # if (info->use_gvariant) 1047s # g_value_set_variant (&value, variant); 1047s # else 1047s # g_dbus_gvariant_to_gvalue (variant, &value); 1047s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1047s # g_value_unset (&value); 1047s # ret = TRUE; 1047s # } 1047s # return ret; 1047s # } 1047s # 1047s # static const GDBusInterfaceVTable _com_acme_coyote_skeleton_vtable = 1047s # { 1047s # _com_acme_coyote_skeleton_handle_method_call, 1047s # _com_acme_coyote_skeleton_handle_get_property, 1047s # _com_acme_coyote_skeleton_handle_set_property, 1047s # {NULL} 1047s # }; 1047s # 1047s # static GDBusInterfaceInfo * 1047s # com_acme_coyote_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1047s # { 1047s # return com_acme_coyote_interface_info (); 1047s # } 1047s # 1047s # static GDBusInterfaceVTable * 1047s # com_acme_coyote_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1047s # { 1047s # return (GDBusInterfaceVTable *) &_com_acme_coyote_skeleton_vtable; 1047s # } 1047s # 1047s # static GVariant * 1047s # com_acme_coyote_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1047s # { 1047s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 1047s # 1047s # GVariantBuilder builder; 1047s # guint n; 1047s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1047s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1047s # #else 1047s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1047s # #endif 1047s # if (_com_acme_coyote_interface_info.parent_struct.properties == NULL) 1047s # goto out; 1047s # for (n = 0; _com_acme_coyote_interface_info.parent_struct.properties[n] != NULL; n++) 1047s # { 1047s # GDBusPropertyInfo *info = _com_acme_coyote_interface_info.parent_struct.properties[n]; 1047s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1047s # { 1047s # GVariant *value; 1047s # 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); 1047s # if (value != NULL) 1047s # { 1047s # g_variant_take_ref (value); 1047s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1047s # g_variant_unref (value); 1047s # } 1047s # } 1047s # } 1047s # out: 1047s # return g_variant_builder_end (&builder); 1047s # } 1047s # 1047s # static gboolean _com_acme_coyote_emit_changed (gpointer user_data); 1047s # 1047s # static void 1047s # com_acme_coyote_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1047s # { 1047s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 1047s # gboolean emit_changed = FALSE; 1047s # 1047s # g_mutex_lock (&skeleton->priv->lock); 1047s # if (skeleton->priv->changed_properties_idle_source != NULL) 1047s # { 1047s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1047s # skeleton->priv->changed_properties_idle_source = NULL; 1047s # emit_changed = TRUE; 1047s # } 1047s # g_mutex_unlock (&skeleton->priv->lock); 1047s # 1047s # if (emit_changed) 1047s # _com_acme_coyote_emit_changed (skeleton); 1047s # } 1047s # 1047s # static void 1047s # _com_acme_coyote_on_signal_surprised ( 1047s # ComAcmeCoyote *object) 1047s # { 1047s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1047s # 1047s # GList *connections, *l; 1047s # GVariant *signal_variant; 1047s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1047s # 1047s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1047s # for (l = connections; l != NULL; l = l->next) 1047s # { 1047s # GDBusConnection *connection = l->data; 1047s # g_dbus_connection_emit_signal (connection, 1047s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.acme.Coyote", "Surprised", 1047s # signal_variant, NULL); 1047s # } 1047s # g_variant_unref (signal_variant); 1047s # g_list_free_full (connections, g_object_unref); 1047s # } 1047s # 1047s # static void com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface); 1047s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1047s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1047s # G_ADD_PRIVATE (ComAcmeCoyoteSkeleton) 1047s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 1047s # 1047s # #else 1047s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1047s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 1047s # 1047s # #endif 1047s # static void 1047s # com_acme_coyote_skeleton_finalize (GObject *object) 1047s # { 1047s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1047s # guint n; 1047s # for (n = 0; n < 1; n++) 1047s # g_value_unset (&skeleton->priv->properties[n]); 1047s # g_free (skeleton->priv->properties); 1047s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1047s # if (skeleton->priv->changed_properties_idle_source != NULL) 1047s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1047s # g_main_context_unref (skeleton->priv->context); 1047s # g_mutex_clear (&skeleton->priv->lock); 1047s # G_OBJECT_CLASS (com_acme_coyote_skeleton_parent_class)->finalize (object); 1047s # } 1047s # 1047s # static void 1047s # com_acme_coyote_skeleton_get_property (GObject *object, 1047s # guint prop_id, 1047s # GValue *value, 1047s # GParamSpec *pspec G_GNUC_UNUSED) 1047s # { 1047s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1047s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1047s # g_mutex_lock (&skeleton->priv->lock); 1047s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1047s # g_mutex_unlock (&skeleton->priv->lock); 1047s # } 1047s # 1047s # static gboolean 1047s # _com_acme_coyote_emit_changed (gpointer user_data) 1047s # { 1047s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1047s # GList *l; 1047s # GVariantBuilder builder; 1047s # GVariantBuilder invalidated_builder; 1047s # guint num_changes; 1047s # 1047s # g_mutex_lock (&skeleton->priv->lock); 1047s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1047s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1047s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1047s # #else 1047s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1047s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1047s # #endif 1047s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1047s # { 1047s # ChangedProperty *cp = l->data; 1047s # GVariant *variant; 1047s # const GValue *cur_value; 1047s # 1047s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1047s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1047s # { 1047s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1047s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1047s # g_variant_unref (variant); 1047s # num_changes++; 1047s # } 1047s # } 1047s # if (num_changes > 0) 1047s # { 1047s # GList *connections, *ll; 1047s # GVariant *signal_variant; 1047s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "com.acme.Coyote", 1047s # &builder, &invalidated_builder)); 1047s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1047s # for (ll = connections; ll != NULL; ll = ll->next) 1047s # { 1047s # GDBusConnection *connection = ll->data; 1047s # 1047s # g_dbus_connection_emit_signal (connection, 1047s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1047s # "org.freedesktop.DBus.Properties", 1047s # "PropertiesChanged", 1047s # signal_variant, 1047s # NULL); 1047s # } 1047s # g_variant_unref (signal_variant); 1047s # g_list_free_full (connections, g_object_unref); 1047s # } 1047s # else 1047s # { 1047s # g_variant_builder_clear (&builder); 1047s # g_variant_builder_clear (&invalidated_builder); 1047s # } 1047s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1047s # skeleton->priv->changed_properties = NULL; 1047s # skeleton->priv->changed_properties_idle_source = NULL; 1047s # g_mutex_unlock (&skeleton->priv->lock); 1047s # return FALSE; 1047s # } 1047s # 1047s # static void 1047s # _com_acme_coyote_schedule_emit_changed (ComAcmeCoyoteSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1047s # { 1047s # ChangedProperty *cp; 1047s # GList *l; 1047s # cp = NULL; 1047s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1047s # { 1047s # ChangedProperty *i_cp = l->data; 1047s # if (i_cp->info == info) 1047s # { 1047s # cp = i_cp; 1047s # break; 1047s # } 1047s # } 1047s # if (cp == NULL) 1047s # { 1047s # cp = g_new0 (ChangedProperty, 1); 1047s # cp->prop_id = prop_id; 1047s # cp->info = info; 1047s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1047s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1047s # g_value_copy (orig_value, &cp->orig_value); 1047s # } 1047s # } 1047s # 1047s # static void 1047s # com_acme_coyote_skeleton_notify (GObject *object, 1047s # GParamSpec *pspec G_GNUC_UNUSED) 1047s # { 1047s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1047s # g_mutex_lock (&skeleton->priv->lock); 1047s # if (skeleton->priv->changed_properties != NULL && 1047s # skeleton->priv->changed_properties_idle_source == NULL) 1047s # { 1047s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1047s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1047s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _com_acme_coyote_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1047s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _com_acme_coyote_emit_changed"); 1047s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1047s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1047s # } 1047s # g_mutex_unlock (&skeleton->priv->lock); 1047s # } 1047s # 1047s # static void 1047s # com_acme_coyote_skeleton_set_property (GObject *object, 1047s # guint prop_id, 1047s # const GValue *value, 1047s # GParamSpec *pspec) 1047s # { 1047s # const _ExtendedGDBusPropertyInfo *info; 1047s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1047s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1047s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1047s # g_mutex_lock (&skeleton->priv->lock); 1047s # g_object_freeze_notify (object); 1047s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1047s # { 1047s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1047s # info->emits_changed_signal) 1047s # _com_acme_coyote_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1047s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1047s # g_object_notify_by_pspec (object, pspec); 1047s # } 1047s # g_mutex_unlock (&skeleton->priv->lock); 1047s # g_object_thaw_notify (object); 1047s # } 1047s # 1047s # static void 1047s # com_acme_coyote_skeleton_init (ComAcmeCoyoteSkeleton *skeleton) 1047s # { 1047s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1047s # skeleton->priv = com_acme_coyote_skeleton_get_instance_private (skeleton); 1047s # #else 1047s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonPrivate); 1047s # #endif 1047s # 1047s # g_mutex_init (&skeleton->priv->lock); 1047s # skeleton->priv->context = g_main_context_ref_thread_default (); 1047s # skeleton->priv->properties = g_new0 (GValue, 1); 1047s # g_value_init (&skeleton->priv->properties[0], G_TYPE_STRING); 1047s # } 1047s # 1047s # static const gchar * 1047s # com_acme_coyote_skeleton_get_mood (ComAcmeCoyote *object) 1047s # { 1047s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1047s # const gchar *value; 1047s # g_mutex_lock (&skeleton->priv->lock); 1047s # value = g_marshal_value_peek_string (&(skeleton->priv->properties[0])); 1047s # g_mutex_unlock (&skeleton->priv->lock); 1047s # return value; 1047s # } 1047s # 1047s # static void 1047s # com_acme_coyote_skeleton_class_init (ComAcmeCoyoteSkeletonClass *klass) 1047s # { 1047s # GObjectClass *gobject_class; 1047s # GDBusInterfaceSkeletonClass *skeleton_class; 1047s # 1047s # gobject_class = G_OBJECT_CLASS (klass); 1047s # gobject_class->finalize = com_acme_coyote_skeleton_finalize; 1047s # gobject_class->get_property = com_acme_coyote_skeleton_get_property; 1047s # gobject_class->set_property = com_acme_coyote_skeleton_set_property; 1047s # gobject_class->notify = com_acme_coyote_skeleton_notify; 1047s # 1047s # 1047s # com_acme_coyote_override_properties (gobject_class, 1); 1047s # 1047s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1047s # skeleton_class->get_info = com_acme_coyote_skeleton_dbus_interface_get_info; 1047s # skeleton_class->get_properties = com_acme_coyote_skeleton_dbus_interface_get_properties; 1047s # skeleton_class->flush = com_acme_coyote_skeleton_dbus_interface_flush; 1047s # skeleton_class->get_vtable = com_acme_coyote_skeleton_dbus_interface_get_vtable; 1047s # 1047s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1047s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteSkeletonPrivate)); 1047s # #endif 1047s # } 1047s # 1047s # static void 1047s # com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface) 1047s # { 1047s # iface->surprised = _com_acme_coyote_on_signal_surprised; 1047s # iface->get_mood = com_acme_coyote_skeleton_get_mood; 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_skeleton_new: 1047s # * 1047s # * Creates a skeleton object for the D-Bus interface com.acme.Coyote. 1047s # * 1047s # * Returns: (transfer full) (type ComAcmeCoyoteSkeleton): The skeleton object. 1047s # */ 1047s # ComAcmeCoyote * 1047s # com_acme_coyote_skeleton_new (void) 1047s # { 1047s # return COM_ACME_COYOTE (g_object_new (TYPE_COM_ACME_COYOTE_SKELETON, NULL)); 1047s # } 1047s # Error: 1047s # 1047s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgz3214sd/tmpjw6g15en2.xml', '/tmp/tmpgz3214sd/tmplltaljlk1.xml', '--output', '-', '--body'] 1047s # Return code: 0 1047s # Output: 1047s # /* 1047s # * This file is generated by gdbus-codegen, do not modify it. 1047s # * 1047s # * The license of this code is the same as for the D-Bus interface description 1047s # * it was derived from. Note that it links to GLib, so must comply with the 1047s # * LGPL linking clauses. 1047s # */ 1047s # 1047s # #ifdef HAVE_CONFIG_H 1047s # # include "config.h" 1047s # #endif 1047s # 1047s # #include 1047s # #ifdef G_OS_UNIX 1047s # # include 1047s # #endif 1047s # 1047s # #ifdef G_ENABLE_DEBUG 1047s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1047s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1047s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1047s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1047s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1047s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1047s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1047s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1047s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1047s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1047s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1047s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1047s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1047s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1047s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1047s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1047s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1047s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1047s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1047s # #else /* !G_ENABLE_DEBUG */ 1047s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1047s # * Do not access GValues directly in your code. Instead, use the 1047s # * g_value_get_*() functions 1047s # */ 1047s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1047s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1047s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1047s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1047s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1047s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1047s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1047s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1047s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1047s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1047s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1047s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1047s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1047s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1047s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1047s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1047s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1047s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1047s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1047s # #endif /* !G_ENABLE_DEBUG */ 1047s # 1047s # typedef struct 1047s # { 1047s # GDBusArgInfo parent_struct; 1047s # gboolean use_gvariant; 1047s # } _ExtendedGDBusArgInfo; 1047s # 1047s # typedef struct 1047s # { 1047s # GDBusMethodInfo parent_struct; 1047s # const gchar *signal_name; 1047s # gboolean pass_fdlist; 1047s # } _ExtendedGDBusMethodInfo; 1047s # 1047s # typedef struct 1047s # { 1047s # GDBusSignalInfo parent_struct; 1047s # const gchar *signal_name; 1047s # } _ExtendedGDBusSignalInfo; 1047s # 1047s # typedef struct 1047s # { 1047s # GDBusPropertyInfo parent_struct; 1047s # const gchar *hyphen_name; 1047s # guint use_gvariant : 1; 1047s # guint emits_changed_signal : 1; 1047s # } _ExtendedGDBusPropertyInfo; 1047s # 1047s # typedef struct 1047s # { 1047s # GDBusInterfaceInfo parent_struct; 1047s # const gchar *hyphen_name; 1047s # } _ExtendedGDBusInterfaceInfo; 1047s # 1047s # typedef struct 1047s # { 1047s # const _ExtendedGDBusPropertyInfo *info; 1047s # guint prop_id; 1047s # GValue orig_value; /* the value before the change */ 1047s # } ChangedProperty; 1047s # 1047s # static void 1047s # _changed_property_free (ChangedProperty *data) 1047s # { 1047s # g_value_unset (&data->orig_value); 1047s # g_free (data); 1047s # } 1047s # 1047s # static gboolean 1047s # _g_strv_equal0 (gchar **a, gchar **b) 1047s # { 1047s # gboolean ret = FALSE; 1047s # guint n; 1047s # if (a == NULL && b == NULL) 1047s # { 1047s # ret = TRUE; 1047s # goto out; 1047s # } 1047s # if (a == NULL || b == NULL) 1047s # goto out; 1047s # if (g_strv_length (a) != g_strv_length (b)) 1047s # goto out; 1047s # for (n = 0; a[n] != NULL; n++) 1047s # if (g_strcmp0 (a[n], b[n]) != 0) 1047s # goto out; 1047s # ret = TRUE; 1047s # out: 1047s # return ret; 1047s # } 1047s # 1047s # static gboolean 1047s # _g_variant_equal0 (GVariant *a, GVariant *b) 1047s # { 1047s # gboolean ret = FALSE; 1047s # if (a == NULL && b == NULL) 1047s # { 1047s # ret = TRUE; 1047s # goto out; 1047s # } 1047s # if (a == NULL || b == NULL) 1047s # goto out; 1047s # ret = g_variant_equal (a, b); 1047s # out: 1047s # return ret; 1047s # } 1047s # 1047s # G_GNUC_UNUSED static gboolean 1047s # _g_value_equal (const GValue *a, const GValue *b) 1047s # { 1047s # gboolean ret = FALSE; 1047s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1047s # switch (G_VALUE_TYPE (a)) 1047s # { 1047s # case G_TYPE_BOOLEAN: 1047s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1047s # break; 1047s # case G_TYPE_UCHAR: 1047s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1047s # break; 1047s # case G_TYPE_INT: 1047s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1047s # break; 1047s # case G_TYPE_UINT: 1047s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1047s # break; 1047s # case G_TYPE_INT64: 1047s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1047s # break; 1047s # case G_TYPE_UINT64: 1047s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1047s # break; 1047s # case G_TYPE_DOUBLE: 1047s # { 1047s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1047s # gdouble da = g_value_get_double (a); 1047s # gdouble db = g_value_get_double (b); 1047s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1047s # } 1047s # break; 1047s # case G_TYPE_STRING: 1047s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1047s # break; 1047s # case G_TYPE_VARIANT: 1047s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1047s # break; 1047s # default: 1047s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1047s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1047s # else 1047s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1047s # break; 1047s # } 1047s # return ret; 1047s # } 1047s # 1047s # static void 1047s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1047s # GClosure *closure, 1047s # GValue *return_value, 1047s # unsigned int n_param_values, 1047s # const GValue *param_values, 1047s # void *invocation_hint G_GNUC_UNUSED, 1047s # void *marshal_data) 1047s # { 1047s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1047s # (void *data1, 1047s # GDBusMethodInvocation *arg_method_invocation, 1047s # void *data2); 1047s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1047s # GCClosure *cc = (GCClosure*) closure; 1047s # void *data1, *data2; 1047s # gboolean v_return; 1047s # 1047s # g_return_if_fail (return_value != NULL); 1047s # g_return_if_fail (n_param_values == 2); 1047s # 1047s # if (G_CCLOSURE_SWAP_DATA (closure)) 1047s # { 1047s # data1 = closure->data; 1047s # data2 = g_value_peek_pointer (param_values + 0); 1047s # } 1047s # else 1047s # { 1047s # data1 = g_value_peek_pointer (param_values + 0); 1047s # data2 = closure->data; 1047s # } 1047s # 1047s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1047s # (marshal_data ? marshal_data : cc->callback); 1047s # 1047s # v_return = 1047s # callback (data1, 1047s # g_marshal_value_peek_object (param_values + 1), 1047s # data2); 1047s # 1047s # g_value_set_boolean (return_value, v_return); 1047s # } 1047s # 1047s # /* ------------------------------------------------------------------------ 1047s # * Code for interface org.project.Bar.Frobnicator 1047s # * ------------------------------------------------------------------------ 1047s # */ 1047s # 1047s # /** 1047s # * SECTION:OrgProjectBarFrobnicator 1047s # * @title: OrgProjectBarFrobnicator 1047s # * @short_description: Generated C code for the org.project.Bar.Frobnicator D-Bus interface 1047s # * 1047s # * This section contains code for working with the org.project.Bar.Frobnicator D-Bus interface in C. 1047s # */ 1047s # 1047s # /* ---- Introspection data for org.project.Bar.Frobnicator ---- */ 1047s # 1047s # static const _ExtendedGDBusMethodInfo _org_project_bar_frobnicator_method_info_random_method = 1047s # { 1047s # { 1047s # -1, 1047s # (gchar *) "RandomMethod", 1047s # NULL, 1047s # NULL, 1047s # NULL 1047s # }, 1047s # "handle-random-method", 1047s # FALSE 1047s # }; 1047s # 1047s # static const GDBusMethodInfo * const _org_project_bar_frobnicator_method_info_pointers[] = 1047s # { 1047s # &_org_project_bar_frobnicator_method_info_random_method.parent_struct, 1047s # NULL 1047s # }; 1047s # 1047s # static const _ExtendedGDBusInterfaceInfo _org_project_bar_frobnicator_interface_info = 1047s # { 1047s # { 1047s # -1, 1047s # (gchar *) "org.project.Bar.Frobnicator", 1047s # (GDBusMethodInfo **) &_org_project_bar_frobnicator_method_info_pointers, 1047s # NULL, 1047s # NULL, 1047s # NULL 1047s # }, 1047s # "org-project-bar-frobnicator", 1047s # }; 1047s # 1047s # 1047s # /** 1047s # * org_project_bar_frobnicator_interface_info: 1047s # * 1047s # * Gets a machine-readable description of the org.project.Bar.Frobnicator D-Bus interface. 1047s # * 1047s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1047s # */ 1047s # GDBusInterfaceInfo * 1047s # org_project_bar_frobnicator_interface_info (void) 1047s # { 1047s # return (GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct; 1047s # } 1047s # 1047s # /** 1047s # * org_project_bar_frobnicator_override_properties: 1047s # * @klass: The class structure for a #GObject derived class. 1047s # * @property_id_begin: The property id to assign to the first overridden property. 1047s # * 1047s # * Overrides all #GObject properties in the #OrgProjectBarFrobnicator interface for a concrete class. 1047s # * The properties are overridden in the order they are defined. 1047s # * 1047s # * Returns: The last property id. 1047s # */ 1047s # guint 1047s # org_project_bar_frobnicator_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1047s # { 1047s # return property_id_begin - 1; 1047s # } 1047s # 1047s # 1047s # inline static void 1047s # org_project_bar_frobnicator_method_marshal_random_method ( 1047s # GClosure *closure, 1047s # GValue *return_value, 1047s # unsigned int n_param_values, 1047s # const GValue *param_values, 1047s # void *invocation_hint, 1047s # void *marshal_data) 1047s # { 1047s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1047s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1047s # } 1047s # 1047s # 1047s # /** 1047s # * OrgProjectBarFrobnicator: 1047s # * 1047s # * Abstract interface type for the D-Bus interface org.project.Bar.Frobnicator. 1047s # */ 1047s # 1047s # /** 1047s # * OrgProjectBarFrobnicatorIface: 1047s # * @parent_iface: The parent interface. 1047s # * @handle_random_method: Handler for the #OrgProjectBarFrobnicator::handle-random-method signal. 1047s # * 1047s # * Virtual table for the D-Bus interface org.project.Bar.Frobnicator. 1047s # */ 1047s # 1047s # typedef OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorInterface; 1047s # G_DEFINE_INTERFACE (OrgProjectBarFrobnicator, org_project_bar_frobnicator, G_TYPE_OBJECT) 1047s # 1047s # static void 1047s # org_project_bar_frobnicator_default_init (OrgProjectBarFrobnicatorIface *iface) 1047s # { 1047s # /* GObject signals for incoming D-Bus method calls: */ 1047s # /** 1047s # * OrgProjectBarFrobnicator::handle-random-method: 1047s # * @object: A #OrgProjectBarFrobnicator. 1047s # * @invocation: A #GDBusMethodInvocation. 1047s # * 1047s # * Signal emitted when a remote caller is invoking the RandomMethod() D-Bus method. 1047s # * 1047s # * 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. 1047s # * 1047s # * 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. 1047s # */ 1047s # g_signal_new ("handle-random-method", 1047s # G_TYPE_FROM_INTERFACE (iface), 1047s # G_SIGNAL_RUN_LAST, 1047s # G_STRUCT_OFFSET (OrgProjectBarFrobnicatorIface, handle_random_method), 1047s # g_signal_accumulator_true_handled, 1047s # NULL, 1047s # org_project_bar_frobnicator_method_marshal_random_method, 1047s # G_TYPE_BOOLEAN, 1047s # 1, 1047s # G_TYPE_DBUS_METHOD_INVOCATION); 1047s # 1047s # } 1047s # 1047s # /** 1047s # * org_project_bar_frobnicator_call_random_method: 1047s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1047s # * @cancellable: (nullable): A #GCancellable or %NULL. 1047s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1047s # * @user_data: User data to pass to @callback. 1047s # * 1047s # * Asynchronously invokes the RandomMethod() D-Bus method on @proxy. 1047s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1047s # * You can then call org_project_bar_frobnicator_call_random_method_finish() to get the result of the operation. 1047s # * 1047s # * See org_project_bar_frobnicator_call_random_method_sync() for the synchronous, blocking version of this method. 1047s # */ 1047s # void 1047s # org_project_bar_frobnicator_call_random_method ( 1047s # OrgProjectBarFrobnicator *proxy, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data) 1047s # { 1047s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1047s # "RandomMethod", 1047s # g_variant_new ("()"), 1047s # G_DBUS_CALL_FLAGS_NONE, 1047s # -1, 1047s # cancellable, 1047s # callback, 1047s # user_data); 1047s # } 1047s # 1047s # /** 1047s # * org_project_bar_frobnicator_call_random_method_finish: 1047s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1047s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_call_random_method(). 1047s # * @error: Return location for error or %NULL. 1047s # * 1047s # * Finishes an operation started with org_project_bar_frobnicator_call_random_method(). 1047s # * 1047s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1047s # */ 1047s # gboolean 1047s # org_project_bar_frobnicator_call_random_method_finish ( 1047s # OrgProjectBarFrobnicator *proxy, 1047s # GAsyncResult *res, 1047s # GError **error) 1047s # { 1047s # GVariant *_ret; 1047s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1047s # if (_ret == NULL) 1047s # goto _out; 1047s # g_variant_get (_ret, 1047s # "()"); 1047s # g_variant_unref (_ret); 1047s # _out: 1047s # return _ret != NULL; 1047s # } 1047s # 1047s # /** 1047s # * org_project_bar_frobnicator_call_random_method_sync: 1047s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1047s # * @cancellable: (nullable): A #GCancellable or %NULL. 1047s # * @error: Return location for error or %NULL. 1047s # * 1047s # * Synchronously invokes the RandomMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1047s # * 1047s # * See org_project_bar_frobnicator_call_random_method() for the asynchronous version of this method. 1047s # * 1047s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1047s # */ 1047s # gboolean 1047s # org_project_bar_frobnicator_call_random_method_sync ( 1047s # OrgProjectBarFrobnicator *proxy, 1047s # GCancellable *cancellable, 1047s # GError **error) 1047s # { 1047s # GVariant *_ret; 1047s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1047s # "RandomMethod", 1047s # g_variant_new ("()"), 1047s # G_DBUS_CALL_FLAGS_NONE, 1047s # -1, 1047s # cancellable, 1047s # error); 1047s # if (_ret == NULL) 1047s # goto _out; 1047s # g_variant_get (_ret, 1047s # "()"); 1047s # g_variant_unref (_ret); 1047s # _out: 1047s # return _ret != NULL; 1047s # } 1047s # 1047s # /** 1047s # * org_project_bar_frobnicator_complete_random_method: 1047s # * @object: A #OrgProjectBarFrobnicator. 1047s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1047s # * 1047s # * 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. 1047s # * 1047s # * This method will free @invocation, you cannot use it afterwards. 1047s # */ 1047s # void 1047s # org_project_bar_frobnicator_complete_random_method ( 1047s # OrgProjectBarFrobnicator *object G_GNUC_UNUSED, 1047s # GDBusMethodInvocation *invocation) 1047s # { 1047s # g_dbus_method_invocation_return_value (invocation, 1047s # g_variant_new ("()")); 1047s # } 1047s # 1047s # /* ------------------------------------------------------------------------ */ 1047s # 1047s # /** 1047s # * OrgProjectBarFrobnicatorProxy: 1047s # * 1047s # * The #OrgProjectBarFrobnicatorProxy structure contains only private data and should only be accessed using the provided API. 1047s # */ 1047s # 1047s # /** 1047s # * OrgProjectBarFrobnicatorProxyClass: 1047s # * @parent_class: The parent class. 1047s # * 1047s # * Class structure for #OrgProjectBarFrobnicatorProxy. 1047s # */ 1047s # 1047s # struct _OrgProjectBarFrobnicatorProxyPrivate 1047s # { 1047s # GData *qdata; 1047s # }; 1047s # 1047s # static void org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface); 1047s # 1047s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1047s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 1047s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorProxy) 1047s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 1047s # 1047s # #else 1047s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 1047s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 1047s # 1047s # #endif 1047s # static void 1047s # org_project_bar_frobnicator_proxy_finalize (GObject *object) 1047s # { 1047s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (object); 1047s # g_datalist_clear (&proxy->priv->qdata); 1047s # G_OBJECT_CLASS (org_project_bar_frobnicator_proxy_parent_class)->finalize (object); 1047s # } 1047s # 1047s # static void 1047s # org_project_bar_frobnicator_proxy_get_property (GObject *object G_GNUC_UNUSED, 1047s # guint prop_id G_GNUC_UNUSED, 1047s # GValue *value G_GNUC_UNUSED, 1047s # GParamSpec *pspec G_GNUC_UNUSED) 1047s # { 1047s # } 1047s # 1047s # static void 1047s # org_project_bar_frobnicator_proxy_set_property (GObject *object G_GNUC_UNUSED, 1047s # guint prop_id G_GNUC_UNUSED, 1047s # const GValue *value G_GNUC_UNUSED, 1047s # GParamSpec *pspec G_GNUC_UNUSED) 1047s # { 1047s # } 1047s # 1047s # static void 1047s # org_project_bar_frobnicator_proxy_g_signal (GDBusProxy *proxy, 1047s # const gchar *sender_name G_GNUC_UNUSED, 1047s # const gchar *signal_name, 1047s # GVariant *parameters) 1047s # { 1047s # _ExtendedGDBusSignalInfo *info; 1047s # GVariantIter iter; 1047s # GVariant *child; 1047s # GValue *paramv; 1047s # gsize num_params; 1047s # gsize n; 1047s # guint signal_id; 1047s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, signal_name); 1047s # if (info == NULL) 1047s # return; 1047s # num_params = g_variant_n_children (parameters); 1047s # paramv = g_new0 (GValue, num_params + 1); 1047s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1047s # g_value_set_object (¶mv[0], proxy); 1047s # g_variant_iter_init (&iter, parameters); 1047s # n = 1; 1047s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1047s # { 1047s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1047s # if (arg_info->use_gvariant) 1047s # { 1047s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1047s # g_value_set_variant (¶mv[n], child); 1047s # n++; 1047s # } 1047s # else 1047s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1047s # g_variant_unref (child); 1047s # } 1047s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1047s # g_signal_emitv (paramv, signal_id, 0, NULL); 1047s # for (n = 0; n < num_params + 1; n++) 1047s # g_value_unset (¶mv[n]); 1047s # g_free (paramv); 1047s # } 1047s # 1047s # static void 1047s # org_project_bar_frobnicator_proxy_g_properties_changed (GDBusProxy *_proxy, 1047s # GVariant *changed_properties, 1047s # const gchar *const *invalidated_properties) 1047s # { 1047s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (_proxy); 1047s # guint n; 1047s # const gchar *key; 1047s # GVariantIter *iter; 1047s # _ExtendedGDBusPropertyInfo *info; 1047s # g_variant_get (changed_properties, "a{sv}", &iter); 1047s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1047s # { 1047s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, key); 1047s # g_datalist_remove_data (&proxy->priv->qdata, key); 1047s # if (info != NULL) 1047s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1047s # } 1047s # g_variant_iter_free (iter); 1047s # for (n = 0; invalidated_properties[n] != NULL; n++) 1047s # { 1047s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, invalidated_properties[n]); 1047s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1047s # if (info != NULL) 1047s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1047s # } 1047s # } 1047s # 1047s # static void 1047s # org_project_bar_frobnicator_proxy_init (OrgProjectBarFrobnicatorProxy *proxy) 1047s # { 1047s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1047s # proxy->priv = org_project_bar_frobnicator_proxy_get_instance_private (proxy); 1047s # #else 1047s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyPrivate); 1047s # #endif 1047s # 1047s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_bar_frobnicator_interface_info ()); 1047s # } 1047s # 1047s # static void 1047s # org_project_bar_frobnicator_proxy_class_init (OrgProjectBarFrobnicatorProxyClass *klass) 1047s # { 1047s # GObjectClass *gobject_class; 1047s # GDBusProxyClass *proxy_class; 1047s # 1047s # gobject_class = G_OBJECT_CLASS (klass); 1047s # gobject_class->finalize = org_project_bar_frobnicator_proxy_finalize; 1047s # gobject_class->get_property = org_project_bar_frobnicator_proxy_get_property; 1047s # gobject_class->set_property = org_project_bar_frobnicator_proxy_set_property; 1047s # 1047s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1047s # proxy_class->g_signal = org_project_bar_frobnicator_proxy_g_signal; 1047s # proxy_class->g_properties_changed = org_project_bar_frobnicator_proxy_g_properties_changed; 1047s # 1047s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1047s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorProxyPrivate)); 1047s # #endif 1047s # } 1047s # 1047s # static void 1047s # org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 1047s # { 1047s # } 1047s # 1047s # /** 1047s # * org_project_bar_frobnicator_proxy_new: 1047s # * @connection: A #GDBusConnection. 1047s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1047s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1047s # * @object_path: An object path. 1047s # * @cancellable: (nullable): A #GCancellable or %NULL. 1047s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1047s # * @user_data: User data to pass to @callback. 1047s # * 1047s # * Asynchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new() for more details. 1047s # * 1047s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1047s # * You can then call org_project_bar_frobnicator_proxy_new_finish() to get the result of the operation. 1047s # * 1047s # * See org_project_bar_frobnicator_proxy_new_sync() for the synchronous, blocking version of this constructor. 1047s # */ 1047s # void 1047s # org_project_bar_frobnicator_proxy_new ( 1047s # GDBusConnection *connection, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data) 1047s # { 1047s # 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); 1047s # } 1047s # 1047s # /** 1047s # * org_project_bar_frobnicator_proxy_new_finish: 1047s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new(). 1047s # * @error: Return location for error or %NULL 1047s # * 1047s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new(). 1047s # * 1047s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1047s # */ 1047s # OrgProjectBarFrobnicator * 1047s # org_project_bar_frobnicator_proxy_new_finish ( 1047s # GAsyncResult *res, 1047s # GError **error) 1047s # { 1047s # GObject *ret; 1047s # GObject *source_object; 1047s # source_object = g_async_result_get_source_object (res); 1047s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1047s # g_object_unref (source_object); 1047s # if (ret != NULL) 1047s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1047s # else 1047s # return NULL; 1047s # } 1047s # 1047s # /** 1047s # * org_project_bar_frobnicator_proxy_new_sync: 1047s # * @connection: A #GDBusConnection. 1047s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1047s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1047s # * @object_path: An object path. 1047s # * @cancellable: (nullable): A #GCancellable or %NULL. 1047s # * @error: Return location for error or %NULL 1047s # * 1047s # * Synchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new_sync() for more details. 1047s # * 1047s # * The calling thread is blocked until a reply is received. 1047s # * 1047s # * See org_project_bar_frobnicator_proxy_new() for the asynchronous version of this constructor. 1047s # * 1047s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1047s # */ 1047s # OrgProjectBarFrobnicator * 1047s # org_project_bar_frobnicator_proxy_new_sync ( 1047s # GDBusConnection *connection, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GError **error) 1047s # { 1047s # GInitable *ret; 1047s # 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); 1047s # if (ret != NULL) 1047s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1047s # else 1047s # return NULL; 1047s # } 1047s # 1047s # 1047s # /** 1047s # * org_project_bar_frobnicator_proxy_new_for_bus: 1047s # * @bus_type: A #GBusType. 1047s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1047s # * @name: A bus name (well-known or unique). 1047s # * @object_path: An object path. 1047s # * @cancellable: (nullable): A #GCancellable or %NULL. 1047s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1047s # * @user_data: User data to pass to @callback. 1047s # * 1047s # * Like org_project_bar_frobnicator_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1047s # * 1047s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1047s # * You can then call org_project_bar_frobnicator_proxy_new_for_bus_finish() to get the result of the operation. 1047s # * 1047s # * See org_project_bar_frobnicator_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1047s # */ 1047s # void 1047s # org_project_bar_frobnicator_proxy_new_for_bus ( 1047s # GBusType bus_type, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data) 1047s # { 1047s # 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); 1047s # } 1047s # 1047s # /** 1047s # * org_project_bar_frobnicator_proxy_new_for_bus_finish: 1047s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new_for_bus(). 1047s # * @error: Return location for error or %NULL 1047s # * 1047s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new_for_bus(). 1047s # * 1047s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1047s # */ 1047s # OrgProjectBarFrobnicator * 1047s # org_project_bar_frobnicator_proxy_new_for_bus_finish ( 1047s # GAsyncResult *res, 1047s # GError **error) 1047s # { 1047s # GObject *ret; 1047s # GObject *source_object; 1047s # source_object = g_async_result_get_source_object (res); 1047s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1047s # g_object_unref (source_object); 1047s # if (ret != NULL) 1047s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1047s # else 1047s # return NULL; 1047s # } 1047s # 1047s # /** 1047s # * org_project_bar_frobnicator_proxy_new_for_bus_sync: 1047s # * @bus_type: A #GBusType. 1047s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1047s # * @name: A bus name (well-known or unique). 1047s # * @object_path: An object path. 1047s # * @cancellable: (nullable): A #GCancellable or %NULL. 1047s # * @error: Return location for error or %NULL 1047s # * 1047s # * Like org_project_bar_frobnicator_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1047s # * 1047s # * The calling thread is blocked until a reply is received. 1047s # * 1047s # * See org_project_bar_frobnicator_proxy_new_for_bus() for the asynchronous version of this constructor. 1047s # * 1047s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1047s # */ 1047s # OrgProjectBarFrobnicator * 1047s # org_project_bar_frobnicator_proxy_new_for_bus_sync ( 1047s # GBusType bus_type, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GError **error) 1047s # { 1047s # GInitable *ret; 1047s # 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); 1047s # if (ret != NULL) 1047s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1047s # else 1047s # return NULL; 1047s # } 1047s # 1047s # 1047s # /* ------------------------------------------------------------------------ */ 1047s # 1047s # /** 1047s # * OrgProjectBarFrobnicatorSkeleton: 1047s # * 1047s # * The #OrgProjectBarFrobnicatorSkeleton structure contains only private data and should only be accessed using the provided API. 1047s # */ 1047s # 1047s # /** 1047s # * OrgProjectBarFrobnicatorSkeletonClass: 1047s # * @parent_class: The parent class. 1047s # * 1047s # * Class structure for #OrgProjectBarFrobnicatorSkeleton. 1047s # */ 1047s # 1047s # struct _OrgProjectBarFrobnicatorSkeletonPrivate 1047s # { 1047s # GValue *properties; 1047s # GList *changed_properties; 1047s # GSource *changed_properties_idle_source; 1047s # GMainContext *context; 1047s # GMutex lock; 1047s # }; 1047s # 1047s # static void 1047s # _org_project_bar_frobnicator_skeleton_handle_method_call ( 1047s # GDBusConnection *connection G_GNUC_UNUSED, 1047s # const gchar *sender G_GNUC_UNUSED, 1047s # const gchar *object_path G_GNUC_UNUSED, 1047s # const gchar *interface_name, 1047s # const gchar *method_name, 1047s # GVariant *parameters, 1047s # GDBusMethodInvocation *invocation, 1047s # gpointer user_data) 1047s # { 1047s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1047s # _ExtendedGDBusMethodInfo *info; 1047s # GVariantIter iter; 1047s # GVariant *child; 1047s # GValue *paramv; 1047s # gsize num_params; 1047s # guint num_extra; 1047s # gsize n; 1047s # guint signal_id; 1047s # GValue return_value = G_VALUE_INIT; 1047s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1047s # g_assert (info != NULL); 1047s # num_params = g_variant_n_children (parameters); 1047s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1047s # n = 0; 1047s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1047s # g_value_set_object (¶mv[n++], skeleton); 1047s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1047s # g_value_set_object (¶mv[n++], invocation); 1047s # if (info->pass_fdlist) 1047s # { 1047s # #ifdef G_OS_UNIX 1047s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1047s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1047s # #else 1047s # g_assert_not_reached (); 1047s # #endif 1047s # } 1047s # g_variant_iter_init (&iter, parameters); 1047s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1047s # { 1047s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1047s # if (arg_info->use_gvariant) 1047s # { 1047s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1047s # g_value_set_variant (¶mv[n], child); 1047s # n++; 1047s # } 1047s # else 1047s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1047s # g_variant_unref (child); 1047s # } 1047s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1047s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1047s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1047s # if (!g_value_get_boolean (&return_value)) 1047s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1047s # g_value_unset (&return_value); 1047s # for (n = 0; n < num_params + num_extra; n++) 1047s # g_value_unset (¶mv[n]); 1047s # g_free (paramv); 1047s # } 1047s # 1047s # static GVariant * 1047s # _org_project_bar_frobnicator_skeleton_handle_get_property ( 1047s # GDBusConnection *connection G_GNUC_UNUSED, 1047s # const gchar *sender G_GNUC_UNUSED, 1047s # const gchar *object_path G_GNUC_UNUSED, 1047s # const gchar *interface_name G_GNUC_UNUSED, 1047s # const gchar *property_name, 1047s # GError **error, 1047s # gpointer user_data) 1047s # { 1047s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1047s # GValue value = G_VALUE_INIT; 1047s # GParamSpec *pspec; 1047s # _ExtendedGDBusPropertyInfo *info; 1047s # GVariant *ret; 1047s # ret = NULL; 1047s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 1047s # g_assert (info != NULL); 1047s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1047s # if (pspec == NULL) 1047s # { 1047s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1047s # } 1047s # else 1047s # { 1047s # g_value_init (&value, pspec->value_type); 1047s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1047s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1047s # g_value_unset (&value); 1047s # } 1047s # return ret; 1047s # } 1047s # 1047s # static gboolean 1047s # _org_project_bar_frobnicator_skeleton_handle_set_property ( 1047s # GDBusConnection *connection G_GNUC_UNUSED, 1047s # const gchar *sender G_GNUC_UNUSED, 1047s # const gchar *object_path G_GNUC_UNUSED, 1047s # const gchar *interface_name G_GNUC_UNUSED, 1047s # const gchar *property_name, 1047s # GVariant *variant, 1047s # GError **error, 1047s # gpointer user_data) 1047s # { 1047s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1047s # GValue value = G_VALUE_INIT; 1047s # GParamSpec *pspec; 1047s # _ExtendedGDBusPropertyInfo *info; 1047s # gboolean ret; 1047s # ret = FALSE; 1047s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 1047s # g_assert (info != NULL); 1047s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1047s # if (pspec == NULL) 1047s # { 1047s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1047s # } 1047s # else 1047s # { 1047s # if (info->use_gvariant) 1047s # g_value_set_variant (&value, variant); 1047s # else 1047s # g_dbus_gvariant_to_gvalue (variant, &value); 1047s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1047s # g_value_unset (&value); 1047s # ret = TRUE; 1047s # } 1047s # return ret; 1047s # } 1047s # 1047s # static const GDBusInterfaceVTable _org_project_bar_frobnicator_skeleton_vtable = 1047s # { 1047s # _org_project_bar_frobnicator_skeleton_handle_method_call, 1047s # _org_project_bar_frobnicator_skeleton_handle_get_property, 1047s # _org_project_bar_frobnicator_skeleton_handle_set_property, 1047s # {NULL} 1047s # }; 1047s # 1047s # static GDBusInterfaceInfo * 1047s # org_project_bar_frobnicator_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1047s # { 1047s # return org_project_bar_frobnicator_interface_info (); 1047s # } 1047s # 1047s # static GDBusInterfaceVTable * 1047s # org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1047s # { 1047s # return (GDBusInterfaceVTable *) &_org_project_bar_frobnicator_skeleton_vtable; 1047s # } 1047s # 1047s # static GVariant * 1047s # org_project_bar_frobnicator_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1047s # { 1047s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (_skeleton); 1047s # 1047s # GVariantBuilder builder; 1047s # guint n; 1047s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1047s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1047s # #else 1047s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1047s # #endif 1047s # if (_org_project_bar_frobnicator_interface_info.parent_struct.properties == NULL) 1047s # goto out; 1047s # for (n = 0; _org_project_bar_frobnicator_interface_info.parent_struct.properties[n] != NULL; n++) 1047s # { 1047s # GDBusPropertyInfo *info = _org_project_bar_frobnicator_interface_info.parent_struct.properties[n]; 1047s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1047s # { 1047s # GVariant *value; 1047s # 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); 1047s # if (value != NULL) 1047s # { 1047s # g_variant_take_ref (value); 1047s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1047s # g_variant_unref (value); 1047s # } 1047s # } 1047s # } 1047s # out: 1047s # return g_variant_builder_end (&builder); 1047s # } 1047s # 1047s # static void 1047s # org_project_bar_frobnicator_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1047s # { 1047s # } 1047s # 1047s # static void org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface); 1047s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1047s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1047s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorSkeleton) 1047s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 1047s # 1047s # #else 1047s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1047s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 1047s # 1047s # #endif 1047s # static void 1047s # org_project_bar_frobnicator_skeleton_finalize (GObject *object) 1047s # { 1047s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (object); 1047s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1047s # if (skeleton->priv->changed_properties_idle_source != NULL) 1047s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1047s # g_main_context_unref (skeleton->priv->context); 1047s # g_mutex_clear (&skeleton->priv->lock); 1047s # G_OBJECT_CLASS (org_project_bar_frobnicator_skeleton_parent_class)->finalize (object); 1047s # } 1047s # 1047s # static void 1047s # org_project_bar_frobnicator_skeleton_init (OrgProjectBarFrobnicatorSkeleton *skeleton) 1047s # { 1047s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1047s # skeleton->priv = org_project_bar_frobnicator_skeleton_get_instance_private (skeleton); 1047s # #else 1047s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonPrivate); 1047s # #endif 1047s # 1047s # g_mutex_init (&skeleton->priv->lock); 1047s # skeleton->priv->context = g_main_context_ref_thread_default (); 1047s # } 1047s # 1047s # static void 1047s # org_project_bar_frobnicator_skeleton_class_init (OrgProjectBarFrobnicatorSkeletonClass *klass) 1047s # { 1047s # GObjectClass *gobject_class; 1047s # GDBusInterfaceSkeletonClass *skeleton_class; 1047s # 1047s # gobject_class = G_OBJECT_CLASS (klass); 1047s # gobject_class->finalize = org_project_bar_frobnicator_skeleton_finalize; 1047s # 1047s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1047s # skeleton_class->get_info = org_project_bar_frobnicator_skeleton_dbus_interface_get_info; 1047s # skeleton_class->get_properties = org_project_bar_frobnicator_skeleton_dbus_interface_get_properties; 1047s # skeleton_class->flush = org_project_bar_frobnicator_skeleton_dbus_interface_flush; 1047s # skeleton_class->get_vtable = org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable; 1047s # 1047s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1047s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorSkeletonPrivate)); 1047s # #endif 1047s # } 1047s # 1047s # static void 1047s # org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 1047s # { 1047s # } 1047s # 1047s # /** 1047s # * org_project_bar_frobnicator_skeleton_new: 1047s # * 1047s # * Creates a skeleton object for the D-Bus interface org.project.Bar.Frobnicator. 1047s # * 1047s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorSkeleton): The skeleton object. 1047s # */ 1047s # OrgProjectBarFrobnicator * 1047s # org_project_bar_frobnicator_skeleton_new (void) 1047s # { 1047s # return ORG_PROJECT_BAR_FROBNICATOR (g_object_new (TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, NULL)); 1047s # } 1047s # 1047s # /* ------------------------------------------------------------------------ 1047s # * Code for interface com.acme.Coyote 1047s # * ------------------------------------------------------------------------ 1047s # */ 1047s # 1047s # /** 1047s # * SECTION:ComAcmeCoyote 1047s # * @title: ComAcmeCoyote 1047s # * @short_description: Generated C code for the com.acme.Coyote D-Bus interface 1047s # * 1047s # * This section contains code for working with the com.acme.Coyote D-Bus interface in C. 1047s # */ 1047s # 1047s # enum 1047s # { 1047s # _COM_ACME_COYOTE_SURPRISED, 1047s # }; 1047s # 1047s # static unsigned _COM_ACME_COYOTE_SIGNALS[1] = { 0 }; 1047s # 1047s # /* ---- Introspection data for com.acme.Coyote ---- */ 1047s # 1047s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_run = 1047s # { 1047s # { 1047s # -1, 1047s # (gchar *) "Run", 1047s # NULL, 1047s # NULL, 1047s # NULL 1047s # }, 1047s # "handle-run", 1047s # FALSE 1047s # }; 1047s # 1047s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_sleep = 1047s # { 1047s # { 1047s # -1, 1047s # (gchar *) "Sleep", 1047s # NULL, 1047s # NULL, 1047s # NULL 1047s # }, 1047s # "handle-sleep", 1047s # FALSE 1047s # }; 1047s # 1047s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_attack = 1047s # { 1047s # { 1047s # -1, 1047s # (gchar *) "Attack", 1047s # NULL, 1047s # NULL, 1047s # NULL 1047s # }, 1047s # "handle-attack", 1047s # FALSE 1047s # }; 1047s # 1047s # static const GDBusMethodInfo * const _com_acme_coyote_method_info_pointers[] = 1047s # { 1047s # &_com_acme_coyote_method_info_run.parent_struct, 1047s # &_com_acme_coyote_method_info_sleep.parent_struct, 1047s # &_com_acme_coyote_method_info_attack.parent_struct, 1047s # NULL 1047s # }; 1047s # 1047s # static const _ExtendedGDBusSignalInfo _com_acme_coyote_signal_info_surprised = 1047s # { 1047s # { 1047s # -1, 1047s # (gchar *) "Surprised", 1047s # NULL, 1047s # NULL 1047s # }, 1047s # "surprised" 1047s # }; 1047s # 1047s # static const GDBusSignalInfo * const _com_acme_coyote_signal_info_pointers[] = 1047s # { 1047s # &_com_acme_coyote_signal_info_surprised.parent_struct, 1047s # NULL 1047s # }; 1047s # 1047s # static const _ExtendedGDBusPropertyInfo _com_acme_coyote_property_info_mood = 1047s # { 1047s # { 1047s # -1, 1047s # (gchar *) "Mood", 1047s # (gchar *) "s", 1047s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1047s # NULL 1047s # }, 1047s # "mood", 1047s # FALSE, 1047s # TRUE 1047s # }; 1047s # 1047s # static const GDBusPropertyInfo * const _com_acme_coyote_property_info_pointers[] = 1047s # { 1047s # &_com_acme_coyote_property_info_mood.parent_struct, 1047s # NULL 1047s # }; 1047s # 1047s # static const _ExtendedGDBusInterfaceInfo _com_acme_coyote_interface_info = 1047s # { 1047s # { 1047s # -1, 1047s # (gchar *) "com.acme.Coyote", 1047s # (GDBusMethodInfo **) &_com_acme_coyote_method_info_pointers, 1047s # (GDBusSignalInfo **) &_com_acme_coyote_signal_info_pointers, 1047s # (GDBusPropertyInfo **) &_com_acme_coyote_property_info_pointers, 1047s # NULL 1047s # }, 1047s # "com-acme-coyote", 1047s # }; 1047s # 1047s # 1047s # /** 1047s # * com_acme_coyote_interface_info: 1047s # * 1047s # * Gets a machine-readable description of the com.acme.Coyote D-Bus interface. 1047s # * 1047s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1047s # */ 1047s # GDBusInterfaceInfo * 1047s # com_acme_coyote_interface_info (void) 1047s # { 1047s # return (GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct; 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_override_properties: 1047s # * @klass: The class structure for a #GObject derived class. 1047s # * @property_id_begin: The property id to assign to the first overridden property. 1047s # * 1047s # * Overrides all #GObject properties in the #ComAcmeCoyote interface for a concrete class. 1047s # * The properties are overridden in the order they are defined. 1047s # * 1047s # * Returns: The last property id. 1047s # */ 1047s # guint 1047s # com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin) 1047s # { 1047s # g_object_class_override_property (klass, property_id_begin++, "mood"); 1047s # return property_id_begin - 1; 1047s # } 1047s # 1047s # 1047s # inline static void 1047s # com_acme_coyote_signal_marshal_surprised ( 1047s # GClosure *closure, 1047s # GValue *return_value, 1047s # unsigned int n_param_values, 1047s # const GValue *param_values, 1047s # void *invocation_hint, 1047s # void *marshal_data) 1047s # { 1047s # g_cclosure_marshal_VOID__VOID (closure, 1047s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1047s # } 1047s # 1047s # inline static void 1047s # com_acme_coyote_method_marshal_run ( 1047s # GClosure *closure, 1047s # GValue *return_value, 1047s # unsigned int n_param_values, 1047s # const GValue *param_values, 1047s # void *invocation_hint, 1047s # void *marshal_data) 1047s # { 1047s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1047s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1047s # } 1047s # 1047s # inline static void 1047s # com_acme_coyote_method_marshal_sleep ( 1047s # GClosure *closure, 1047s # GValue *return_value, 1047s # unsigned int n_param_values, 1047s # const GValue *param_values, 1047s # void *invocation_hint, 1047s # void *marshal_data) 1047s # { 1047s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1047s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1047s # } 1047s # 1047s # inline static void 1047s # com_acme_coyote_method_marshal_attack ( 1047s # GClosure *closure, 1047s # GValue *return_value, 1047s # unsigned int n_param_values, 1047s # const GValue *param_values, 1047s # void *invocation_hint, 1047s # void *marshal_data) 1047s # { 1047s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1047s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1047s # } 1047s # 1047s # 1047s # /** 1047s # * ComAcmeCoyote: 1047s # * 1047s # * Abstract interface type for the D-Bus interface com.acme.Coyote. 1047s # */ 1047s # 1047s # /** 1047s # * ComAcmeCoyoteIface: 1047s # * @parent_iface: The parent interface. 1047s # * @handle_attack: Handler for the #ComAcmeCoyote::handle-attack signal. 1047s # * @handle_run: Handler for the #ComAcmeCoyote::handle-run signal. 1047s # * @handle_sleep: Handler for the #ComAcmeCoyote::handle-sleep signal. 1047s # * @get_mood: Getter for the #ComAcmeCoyote:mood property. 1047s # * @surprised: Handler for the #ComAcmeCoyote::surprised signal. 1047s # * 1047s # * Virtual table for the D-Bus interface com.acme.Coyote. 1047s # */ 1047s # 1047s # typedef ComAcmeCoyoteIface ComAcmeCoyoteInterface; 1047s # G_DEFINE_INTERFACE (ComAcmeCoyote, com_acme_coyote, G_TYPE_OBJECT) 1047s # 1047s # static void 1047s # com_acme_coyote_default_init (ComAcmeCoyoteIface *iface) 1047s # { 1047s # /* GObject signals for incoming D-Bus method calls: */ 1047s # /** 1047s # * ComAcmeCoyote::handle-run: 1047s # * @object: A #ComAcmeCoyote. 1047s # * @invocation: A #GDBusMethodInvocation. 1047s # * 1047s # * Signal emitted when a remote caller is invoking the Run() D-Bus method. 1047s # * 1047s # * 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. 1047s # * 1047s # * 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. 1047s # */ 1047s # g_signal_new ("handle-run", 1047s # G_TYPE_FROM_INTERFACE (iface), 1047s # G_SIGNAL_RUN_LAST, 1047s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_run), 1047s # g_signal_accumulator_true_handled, 1047s # NULL, 1047s # com_acme_coyote_method_marshal_run, 1047s # G_TYPE_BOOLEAN, 1047s # 1, 1047s # G_TYPE_DBUS_METHOD_INVOCATION); 1047s # 1047s # /** 1047s # * ComAcmeCoyote::handle-sleep: 1047s # * @object: A #ComAcmeCoyote. 1047s # * @invocation: A #GDBusMethodInvocation. 1047s # * 1047s # * Signal emitted when a remote caller is invoking the Sleep() D-Bus method. 1047s # * 1047s # * 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. 1047s # * 1047s # * 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. 1047s # */ 1047s # g_signal_new ("handle-sleep", 1047s # G_TYPE_FROM_INTERFACE (iface), 1047s # G_SIGNAL_RUN_LAST, 1047s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_sleep), 1047s # g_signal_accumulator_true_handled, 1047s # NULL, 1047s # com_acme_coyote_method_marshal_sleep, 1047s # G_TYPE_BOOLEAN, 1047s # 1, 1047s # G_TYPE_DBUS_METHOD_INVOCATION); 1047s # 1047s # /** 1047s # * ComAcmeCoyote::handle-attack: 1047s # * @object: A #ComAcmeCoyote. 1047s # * @invocation: A #GDBusMethodInvocation. 1047s # * 1047s # * Signal emitted when a remote caller is invoking the Attack() D-Bus method. 1047s # * 1047s # * 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. 1047s # * 1047s # * 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. 1047s # */ 1047s # g_signal_new ("handle-attack", 1047s # G_TYPE_FROM_INTERFACE (iface), 1047s # G_SIGNAL_RUN_LAST, 1047s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_attack), 1047s # g_signal_accumulator_true_handled, 1047s # NULL, 1047s # com_acme_coyote_method_marshal_attack, 1047s # G_TYPE_BOOLEAN, 1047s # 1, 1047s # G_TYPE_DBUS_METHOD_INVOCATION); 1047s # 1047s # /* GObject signals for received D-Bus signals: */ 1047s # /** 1047s # * ComAcmeCoyote::surprised: 1047s # * @object: A #ComAcmeCoyote. 1047s # * 1047s # * On the client-side, this signal is emitted whenever the D-Bus signal "Surprised" is received. 1047s # * 1047s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1047s # */ 1047s # _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED] = 1047s # g_signal_new ("surprised", 1047s # G_TYPE_FROM_INTERFACE (iface), 1047s # G_SIGNAL_RUN_LAST, 1047s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, surprised), 1047s # NULL, 1047s # NULL, 1047s # com_acme_coyote_signal_marshal_surprised, 1047s # G_TYPE_NONE, 1047s # 0); 1047s # 1047s # /* GObject properties for D-Bus properties: */ 1047s # /** 1047s # * ComAcmeCoyote:mood: 1047s # * 1047s # * Represents the D-Bus property "Mood". 1047s # * 1047s # * 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. 1047s # */ 1047s # g_object_interface_install_property (iface, 1047s # g_param_spec_string ("mood", "Mood", "Mood", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_get_mood: (skip) 1047s # * @object: A #ComAcmeCoyote. 1047s # * 1047s # * Gets the value of the "Mood" D-Bus property. 1047s # * 1047s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1047s # * 1047s # * 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. 1047s # * 1047s # * 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. 1047s # */ 1047s # const gchar * 1047s # com_acme_coyote_get_mood (ComAcmeCoyote *object) 1047s # { 1047s # g_return_val_if_fail (IS_COM_ACME_COYOTE (object), NULL); 1047s # 1047s # return COM_ACME_COYOTE_GET_IFACE (object)->get_mood (object); 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_dup_mood: (skip) 1047s # * @object: A #ComAcmeCoyote. 1047s # * 1047s # * Gets a copy of the "Mood" D-Bus property. 1047s # * 1047s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1047s # * 1047s # * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). 1047s # */ 1047s # gchar * 1047s # com_acme_coyote_dup_mood (ComAcmeCoyote *object) 1047s # { 1047s # gchar *value; 1047s # g_object_get (G_OBJECT (object), "mood", &value, NULL); 1047s # return value; 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_set_mood: (skip) 1047s # * @object: A #ComAcmeCoyote. 1047s # * @value: The value to set. 1047s # * 1047s # * Sets the "Mood" D-Bus property to @value. 1047s # * 1047s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1047s # */ 1047s # void 1047s # com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value) 1047s # { 1047s # g_object_set (G_OBJECT (object), "mood", value, NULL); 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_emit_surprised: 1047s # * @object: A #ComAcmeCoyote. 1047s # * 1047s # * Emits the "Surprised" D-Bus signal. 1047s # */ 1047s # void 1047s # com_acme_coyote_emit_surprised ( 1047s # ComAcmeCoyote *object) 1047s # { 1047s # g_signal_emit (object, _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED], 0); 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_call_run: 1047s # * @proxy: A #ComAcmeCoyoteProxy. 1047s # * @cancellable: (nullable): A #GCancellable or %NULL. 1047s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1047s # * @user_data: User data to pass to @callback. 1047s # * 1047s # * Asynchronously invokes the Run() D-Bus method on @proxy. 1047s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1047s # * You can then call com_acme_coyote_call_run_finish() to get the result of the operation. 1047s # * 1047s # * See com_acme_coyote_call_run_sync() for the synchronous, blocking version of this method. 1047s # */ 1047s # void 1047s # com_acme_coyote_call_run ( 1047s # ComAcmeCoyote *proxy, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data) 1047s # { 1047s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1047s # "Run", 1047s # g_variant_new ("()"), 1047s # G_DBUS_CALL_FLAGS_NONE, 1047s # -1, 1047s # cancellable, 1047s # callback, 1047s # user_data); 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_call_run_finish: 1047s # * @proxy: A #ComAcmeCoyoteProxy. 1047s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_run(). 1047s # * @error: Return location for error or %NULL. 1047s # * 1047s # * Finishes an operation started with com_acme_coyote_call_run(). 1047s # * 1047s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1047s # */ 1047s # gboolean 1047s # com_acme_coyote_call_run_finish ( 1047s # ComAcmeCoyote *proxy, 1047s # GAsyncResult *res, 1047s # GError **error) 1047s # { 1047s # GVariant *_ret; 1047s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1047s # if (_ret == NULL) 1047s # goto _out; 1047s # g_variant_get (_ret, 1047s # "()"); 1047s # g_variant_unref (_ret); 1047s # _out: 1047s # return _ret != NULL; 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_call_run_sync: 1047s # * @proxy: A #ComAcmeCoyoteProxy. 1047s # * @cancellable: (nullable): A #GCancellable or %NULL. 1047s # * @error: Return location for error or %NULL. 1047s # * 1047s # * Synchronously invokes the Run() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1047s # * 1047s # * See com_acme_coyote_call_run() for the asynchronous version of this method. 1047s # * 1047s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1047s # */ 1047s # gboolean 1047s # com_acme_coyote_call_run_sync ( 1047s # ComAcmeCoyote *proxy, 1047s # GCancellable *cancellable, 1047s # GError **error) 1047s # { 1047s # GVariant *_ret; 1047s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1047s # "Run", 1047s # g_variant_new ("()"), 1047s # G_DBUS_CALL_FLAGS_NONE, 1047s # -1, 1047s # cancellable, 1047s # error); 1047s # if (_ret == NULL) 1047s # goto _out; 1047s # g_variant_get (_ret, 1047s # "()"); 1047s # g_variant_unref (_ret); 1047s # _out: 1047s # return _ret != NULL; 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_call_sleep: 1047s # * @proxy: A #ComAcmeCoyoteProxy. 1047s # * @cancellable: (nullable): A #GCancellable or %NULL. 1047s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1047s # * @user_data: User data to pass to @callback. 1047s # * 1047s # * Asynchronously invokes the Sleep() D-Bus method on @proxy. 1047s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1047s # * You can then call com_acme_coyote_call_sleep_finish() to get the result of the operation. 1047s # * 1047s # * See com_acme_coyote_call_sleep_sync() for the synchronous, blocking version of this method. 1047s # */ 1047s # void 1047s # com_acme_coyote_call_sleep ( 1047s # ComAcmeCoyote *proxy, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data) 1047s # { 1047s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1047s # "Sleep", 1047s # g_variant_new ("()"), 1047s # G_DBUS_CALL_FLAGS_NONE, 1047s # -1, 1047s # cancellable, 1047s # callback, 1047s # user_data); 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_call_sleep_finish: 1047s # * @proxy: A #ComAcmeCoyoteProxy. 1047s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_sleep(). 1047s # * @error: Return location for error or %NULL. 1047s # * 1047s # * Finishes an operation started with com_acme_coyote_call_sleep(). 1047s # * 1047s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1047s # */ 1047s # gboolean 1047s # com_acme_coyote_call_sleep_finish ( 1047s # ComAcmeCoyote *proxy, 1047s # GAsyncResult *res, 1047s # GError **error) 1047s # { 1047s # GVariant *_ret; 1047s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1047s # if (_ret == NULL) 1047s # goto _out; 1047s # g_variant_get (_ret, 1047s # "()"); 1047s # g_variant_unref (_ret); 1047s # _out: 1047s # return _ret != NULL; 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_call_sleep_sync: 1047s # * @proxy: A #ComAcmeCoyoteProxy. 1047s # * @cancellable: (nullable): A #GCancellable or %NULL. 1047s # * @error: Return location for error or %NULL. 1047s # * 1047s # * Synchronously invokes the Sleep() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1047s # * 1047s # * See com_acme_coyote_call_sleep() for the asynchronous version of this method. 1047s # * 1047s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1047s # */ 1047s # gboolean 1047s # com_acme_coyote_call_sleep_sync ( 1047s # ComAcmeCoyote *proxy, 1047s # GCancellable *cancellable, 1047s # GError **error) 1047s # { 1047s # GVariant *_ret; 1047s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1047s # "Sleep", 1047s # g_variant_new ("()"), 1047s # G_DBUS_CALL_FLAGS_NONE, 1047s # -1, 1047s # cancellable, 1047s # error); 1047s # if (_ret == NULL) 1047s # goto _out; 1047s # g_variant_get (_ret, 1047s # "()"); 1047s # g_variant_unref (_ret); 1047s # _out: 1047s # return _ret != NULL; 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_call_attack: 1047s # * @proxy: A #ComAcmeCoyoteProxy. 1047s # * @cancellable: (nullable): A #GCancellable or %NULL. 1047s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1047s # * @user_data: User data to pass to @callback. 1047s # * 1047s # * Asynchronously invokes the Attack() D-Bus method on @proxy. 1047s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1047s # * You can then call com_acme_coyote_call_attack_finish() to get the result of the operation. 1047s # * 1047s # * See com_acme_coyote_call_attack_sync() for the synchronous, blocking version of this method. 1047s # */ 1047s # void 1047s # com_acme_coyote_call_attack ( 1047s # ComAcmeCoyote *proxy, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data) 1047s # { 1047s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1047s # "Attack", 1047s # g_variant_new ("()"), 1047s # G_DBUS_CALL_FLAGS_NONE, 1047s # -1, 1047s # cancellable, 1047s # callback, 1047s # user_data); 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_call_attack_finish: 1047s # * @proxy: A #ComAcmeCoyoteProxy. 1047s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_attack(). 1047s # * @error: Return location for error or %NULL. 1047s # * 1047s # * Finishes an operation started with com_acme_coyote_call_attack(). 1047s # * 1047s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1047s # */ 1047s # gboolean 1047s # com_acme_coyote_call_attack_finish ( 1047s # ComAcmeCoyote *proxy, 1047s # GAsyncResult *res, 1047s # GError **error) 1047s # { 1047s # GVariant *_ret; 1047s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1047s # if (_ret == NULL) 1047s # goto _out; 1047s # g_variant_get (_ret, 1047s # "()"); 1047s # g_variant_unref (_ret); 1047s # _out: 1047s # return _ret != NULL; 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_call_attack_sync: 1047s # * @proxy: A #ComAcmeCoyoteProxy. 1047s # * @cancellable: (nullable): A #GCancellable or %NULL. 1047s # * @error: Return location for error or %NULL. 1047s # * 1047s # * Synchronously invokes the Attack() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1047s # * 1047s # * See com_acme_coyote_call_attack() for the asynchronous version of this method. 1047s # * 1047s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1047s # */ 1047s # gboolean 1047s # com_acme_coyote_call_attack_sync ( 1047s # ComAcmeCoyote *proxy, 1047s # GCancellable *cancellable, 1047s # GError **error) 1047s # { 1047s # GVariant *_ret; 1047s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1047s # "Attack", 1047s # g_variant_new ("()"), 1047s # G_DBUS_CALL_FLAGS_NONE, 1047s # -1, 1047s # cancellable, 1047s # error); 1047s # if (_ret == NULL) 1047s # goto _out; 1047s # g_variant_get (_ret, 1047s # "()"); 1047s # g_variant_unref (_ret); 1047s # _out: 1047s # return _ret != NULL; 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_complete_run: 1047s # * @object: A #ComAcmeCoyote. 1047s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1047s # * 1047s # * 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. 1047s # * 1047s # * This method will free @invocation, you cannot use it afterwards. 1047s # */ 1047s # void 1047s # com_acme_coyote_complete_run ( 1047s # ComAcmeCoyote *object G_GNUC_UNUSED, 1047s # GDBusMethodInvocation *invocation) 1047s # { 1047s # g_dbus_method_invocation_return_value (invocation, 1047s # g_variant_new ("()")); 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_complete_sleep: 1047s # * @object: A #ComAcmeCoyote. 1047s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1047s # * 1047s # * 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. 1047s # * 1047s # * This method will free @invocation, you cannot use it afterwards. 1047s # */ 1047s # void 1047s # com_acme_coyote_complete_sleep ( 1047s # ComAcmeCoyote *object G_GNUC_UNUSED, 1047s # GDBusMethodInvocation *invocation) 1047s # { 1047s # g_dbus_method_invocation_return_value (invocation, 1047s # g_variant_new ("()")); 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_complete_attack: 1047s # * @object: A #ComAcmeCoyote. 1047s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1047s # * 1047s # * 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. 1047s # * 1047s # * This method will free @invocation, you cannot use it afterwards. 1047s # */ 1047s # void 1047s # com_acme_coyote_complete_attack ( 1047s # ComAcmeCoyote *object G_GNUC_UNUSED, 1047s # GDBusMethodInvocation *invocation) 1047s # { 1047s # g_dbus_method_invocation_return_value (invocation, 1047s # g_variant_new ("()")); 1047s # } 1047s # 1047s # /* ------------------------------------------------------------------------ */ 1047s # 1047s # /** 1047s # * ComAcmeCoyoteProxy: 1047s # * 1047s # * The #ComAcmeCoyoteProxy structure contains only private data and should only be accessed using the provided API. 1047s # */ 1047s # 1047s # /** 1047s # * ComAcmeCoyoteProxyClass: 1047s # * @parent_class: The parent class. 1047s # * 1047s # * Class structure for #ComAcmeCoyoteProxy. 1047s # */ 1047s # 1047s # struct _ComAcmeCoyoteProxyPrivate 1047s # { 1047s # GData *qdata; 1047s # }; 1047s # 1047s # static void com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface); 1047s # 1047s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1047s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 1047s # G_ADD_PRIVATE (ComAcmeCoyoteProxy) 1047s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 1047s # 1047s # #else 1047s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 1047s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 1047s # 1047s # #endif 1047s # static void 1047s # com_acme_coyote_proxy_finalize (GObject *object) 1047s # { 1047s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 1047s # g_datalist_clear (&proxy->priv->qdata); 1047s # G_OBJECT_CLASS (com_acme_coyote_proxy_parent_class)->finalize (object); 1047s # } 1047s # 1047s # static void 1047s # com_acme_coyote_proxy_get_property (GObject *object, 1047s # guint prop_id, 1047s # GValue *value, 1047s # GParamSpec *pspec G_GNUC_UNUSED) 1047s # { 1047s # const _ExtendedGDBusPropertyInfo *info; 1047s # GVariant *variant; 1047s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1047s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1047s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1047s # if (info->use_gvariant) 1047s # { 1047s # g_value_set_variant (value, variant); 1047s # } 1047s # else 1047s # { 1047s # if (variant != NULL) 1047s # g_dbus_gvariant_to_gvalue (variant, value); 1047s # } 1047s # if (variant != NULL) 1047s # g_variant_unref (variant); 1047s # } 1047s # 1047s # static void 1047s # com_acme_coyote_proxy_set_property_cb (GDBusProxy *proxy, 1047s # GAsyncResult *res, 1047s # gpointer user_data) 1047s # { 1047s # const _ExtendedGDBusPropertyInfo *info = user_data; 1047s # GError *error; 1047s # GVariant *_ret; 1047s # error = NULL; 1047s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1047s # if (!_ret) 1047s # { 1047s # g_warning ("Error setting property '%s' on interface com.acme.Coyote: %s (%s, %d)", 1047s # info->parent_struct.name, 1047s # error->message, g_quark_to_string (error->domain), error->code); 1047s # g_error_free (error); 1047s # } 1047s # else 1047s # { 1047s # g_variant_unref (_ret); 1047s # } 1047s # } 1047s # 1047s # static void 1047s # com_acme_coyote_proxy_set_property (GObject *object, 1047s # guint prop_id, 1047s # const GValue *value, 1047s # GParamSpec *pspec G_GNUC_UNUSED) 1047s # { 1047s # const _ExtendedGDBusPropertyInfo *info; 1047s # GVariant *variant; 1047s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1047s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1047s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1047s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1047s # "org.freedesktop.DBus.Properties.Set", 1047s # g_variant_new ("(ssv)", "com.acme.Coyote", info->parent_struct.name, variant), 1047s # G_DBUS_CALL_FLAGS_NONE, 1047s # -1, 1047s # NULL, (GAsyncReadyCallback) com_acme_coyote_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1047s # g_variant_unref (variant); 1047s # } 1047s # 1047s # static void 1047s # com_acme_coyote_proxy_g_signal (GDBusProxy *proxy, 1047s # const gchar *sender_name G_GNUC_UNUSED, 1047s # const gchar *signal_name, 1047s # GVariant *parameters) 1047s # { 1047s # _ExtendedGDBusSignalInfo *info; 1047s # GVariantIter iter; 1047s # GVariant *child; 1047s # GValue *paramv; 1047s # gsize num_params; 1047s # gsize n; 1047s # guint signal_id; 1047s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, signal_name); 1047s # if (info == NULL) 1047s # return; 1047s # num_params = g_variant_n_children (parameters); 1047s # paramv = g_new0 (GValue, num_params + 1); 1047s # g_value_init (¶mv[0], TYPE_COM_ACME_COYOTE); 1047s # g_value_set_object (¶mv[0], proxy); 1047s # g_variant_iter_init (&iter, parameters); 1047s # n = 1; 1047s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1047s # { 1047s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1047s # if (arg_info->use_gvariant) 1047s # { 1047s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1047s # g_value_set_variant (¶mv[n], child); 1047s # n++; 1047s # } 1047s # else 1047s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1047s # g_variant_unref (child); 1047s # } 1047s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 1047s # g_signal_emitv (paramv, signal_id, 0, NULL); 1047s # for (n = 0; n < num_params + 1; n++) 1047s # g_value_unset (¶mv[n]); 1047s # g_free (paramv); 1047s # } 1047s # 1047s # static void 1047s # com_acme_coyote_proxy_g_properties_changed (GDBusProxy *_proxy, 1047s # GVariant *changed_properties, 1047s # const gchar *const *invalidated_properties) 1047s # { 1047s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (_proxy); 1047s # guint n; 1047s # const gchar *key; 1047s # GVariantIter *iter; 1047s # _ExtendedGDBusPropertyInfo *info; 1047s # g_variant_get (changed_properties, "a{sv}", &iter); 1047s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1047s # { 1047s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, key); 1047s # g_datalist_remove_data (&proxy->priv->qdata, key); 1047s # if (info != NULL) 1047s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1047s # } 1047s # g_variant_iter_free (iter); 1047s # for (n = 0; invalidated_properties[n] != NULL; n++) 1047s # { 1047s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, invalidated_properties[n]); 1047s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1047s # if (info != NULL) 1047s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1047s # } 1047s # } 1047s # 1047s # static const gchar * 1047s # com_acme_coyote_proxy_get_mood (ComAcmeCoyote *object) 1047s # { 1047s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 1047s # GVariant *variant; 1047s # const gchar *value = NULL; 1047s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "Mood"); 1047s # if (variant != NULL) 1047s # { 1047s # value = g_variant_get_string (variant, NULL); 1047s # g_variant_unref (variant); 1047s # } 1047s # return value; 1047s # } 1047s # 1047s # static void 1047s # com_acme_coyote_proxy_init (ComAcmeCoyoteProxy *proxy) 1047s # { 1047s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1047s # proxy->priv = com_acme_coyote_proxy_get_instance_private (proxy); 1047s # #else 1047s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyPrivate); 1047s # #endif 1047s # 1047s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), com_acme_coyote_interface_info ()); 1047s # } 1047s # 1047s # static void 1047s # com_acme_coyote_proxy_class_init (ComAcmeCoyoteProxyClass *klass) 1047s # { 1047s # GObjectClass *gobject_class; 1047s # GDBusProxyClass *proxy_class; 1047s # 1047s # gobject_class = G_OBJECT_CLASS (klass); 1047s # gobject_class->finalize = com_acme_coyote_proxy_finalize; 1047s # gobject_class->get_property = com_acme_coyote_proxy_get_property; 1047s # gobject_class->set_property = com_acme_coyote_proxy_set_property; 1047s # 1047s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1047s # proxy_class->g_signal = com_acme_coyote_proxy_g_signal; 1047s # proxy_class->g_properties_changed = com_acme_coyote_proxy_g_properties_changed; 1047s # 1047s # com_acme_coyote_override_properties (gobject_class, 1); 1047s # 1047s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1047s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteProxyPrivate)); 1047s # #endif 1047s # } 1047s # 1047s # static void 1047s # com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface) 1047s # { 1047s # iface->get_mood = com_acme_coyote_proxy_get_mood; 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_proxy_new: 1047s # * @connection: A #GDBusConnection. 1047s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1047s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1047s # * @object_path: An object path. 1047s # * @cancellable: (nullable): A #GCancellable or %NULL. 1047s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1047s # * @user_data: User data to pass to @callback. 1047s # * 1047s # * Asynchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new() for more details. 1047s # * 1047s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1047s # * You can then call com_acme_coyote_proxy_new_finish() to get the result of the operation. 1047s # * 1047s # * See com_acme_coyote_proxy_new_sync() for the synchronous, blocking version of this constructor. 1047s # */ 1047s # void 1047s # com_acme_coyote_proxy_new ( 1047s # GDBusConnection *connection, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data) 1047s # { 1047s # 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); 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_proxy_new_finish: 1047s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new(). 1047s # * @error: Return location for error or %NULL 1047s # * 1047s # * Finishes an operation started with com_acme_coyote_proxy_new(). 1047s # * 1047s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1047s # */ 1047s # ComAcmeCoyote * 1047s # com_acme_coyote_proxy_new_finish ( 1047s # GAsyncResult *res, 1047s # GError **error) 1047s # { 1047s # GObject *ret; 1047s # GObject *source_object; 1047s # source_object = g_async_result_get_source_object (res); 1047s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1047s # g_object_unref (source_object); 1047s # if (ret != NULL) 1047s # return COM_ACME_COYOTE (ret); 1047s # else 1047s # return NULL; 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_proxy_new_sync: 1047s # * @connection: A #GDBusConnection. 1047s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1047s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1047s # * @object_path: An object path. 1047s # * @cancellable: (nullable): A #GCancellable or %NULL. 1047s # * @error: Return location for error or %NULL 1047s # * 1047s # * Synchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new_sync() for more details. 1047s # * 1047s # * The calling thread is blocked until a reply is received. 1047s # * 1047s # * See com_acme_coyote_proxy_new() for the asynchronous version of this constructor. 1047s # * 1047s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1047s # */ 1047s # ComAcmeCoyote * 1047s # com_acme_coyote_proxy_new_sync ( 1047s # GDBusConnection *connection, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GError **error) 1047s # { 1047s # GInitable *ret; 1047s # 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); 1047s # if (ret != NULL) 1047s # return COM_ACME_COYOTE (ret); 1047s # else 1047s # return NULL; 1047s # } 1047s # 1047s # 1047s # /** 1047s # * com_acme_coyote_proxy_new_for_bus: 1047s # * @bus_type: A #GBusType. 1047s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1047s # * @name: A bus name (well-known or unique). 1047s # * @object_path: An object path. 1047s # * @cancellable: (nullable): A #GCancellable or %NULL. 1047s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1047s # * @user_data: User data to pass to @callback. 1047s # * 1047s # * Like com_acme_coyote_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1047s # * 1047s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1047s # * You can then call com_acme_coyote_proxy_new_for_bus_finish() to get the result of the operation. 1047s # * 1047s # * See com_acme_coyote_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1047s # */ 1047s # void 1047s # com_acme_coyote_proxy_new_for_bus ( 1047s # GBusType bus_type, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data) 1047s # { 1047s # 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); 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_proxy_new_for_bus_finish: 1047s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new_for_bus(). 1047s # * @error: Return location for error or %NULL 1047s # * 1047s # * Finishes an operation started with com_acme_coyote_proxy_new_for_bus(). 1047s # * 1047s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1047s # */ 1047s # ComAcmeCoyote * 1047s # com_acme_coyote_proxy_new_for_bus_finish ( 1047s # GAsyncResult *res, 1047s # GError **error) 1047s # { 1047s # GObject *ret; 1047s # GObject *source_object; 1047s # source_object = g_async_result_get_source_object (res); 1047s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1047s # g_object_unref (source_object); 1047s # if (ret != NULL) 1047s # return COM_ACME_COYOTE (ret); 1047s # else 1047s # return NULL; 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_proxy_new_for_bus_sync: 1047s # * @bus_type: A #GBusType. 1047s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1047s # * @name: A bus name (well-known or unique). 1047s # * @object_path: An object path. 1047s # * @cancellable: (nullable): A #GCancellable or %NULL. 1047s # * @error: Return location for error or %NULL 1047s # * 1047s # * Like com_acme_coyote_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1047s # * 1047s # * The calling thread is blocked until a reply is received. 1047s # * 1047s # * See com_acme_coyote_proxy_new_for_bus() for the asynchronous version of this constructor. 1047s # * 1047s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1047s # */ 1047s # ComAcmeCoyote * 1047s # com_acme_coyote_proxy_new_for_bus_sync ( 1047s # GBusType bus_type, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GError **error) 1047s # { 1047s # GInitable *ret; 1047s # 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); 1047s # if (ret != NULL) 1047s # return COM_ACME_COYOTE (ret); 1047s # else 1047s # return NULL; 1047s # } 1047s # 1047s # 1047s # /* ------------------------------------------------------------------------ */ 1047s # 1047s # /** 1047s # * ComAcmeCoyoteSkeleton: 1047s # * 1047s # * The #ComAcmeCoyoteSkeleton structure contains only private data and should only be accessed using the provided API. 1047s # */ 1047s # 1047s # /** 1047s # * ComAcmeCoyoteSkeletonClass: 1047s # * @parent_class: The parent class. 1047s # * 1047s # * Class structure for #ComAcmeCoyoteSkeleton. 1047s # */ 1047s # 1047s # struct _ComAcmeCoyoteSkeletonPrivate 1047s # { 1047s # GValue *properties; 1047s # GList *changed_properties; 1047s # GSource *changed_properties_idle_source; 1047s # GMainContext *context; 1047s # GMutex lock; 1047s # }; 1047s # 1047s # static void 1047s # _com_acme_coyote_skeleton_handle_method_call ( 1047s # GDBusConnection *connection G_GNUC_UNUSED, 1047s # const gchar *sender G_GNUC_UNUSED, 1047s # const gchar *object_path G_GNUC_UNUSED, 1047s # const gchar *interface_name, 1047s # const gchar *method_name, 1047s # GVariant *parameters, 1047s # GDBusMethodInvocation *invocation, 1047s # gpointer user_data) 1047s # { 1047s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1047s # _ExtendedGDBusMethodInfo *info; 1047s # GVariantIter iter; 1047s # GVariant *child; 1047s # GValue *paramv; 1047s # gsize num_params; 1047s # guint num_extra; 1047s # gsize n; 1047s # guint signal_id; 1047s # GValue return_value = G_VALUE_INIT; 1047s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1047s # g_assert (info != NULL); 1047s # num_params = g_variant_n_children (parameters); 1047s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1047s # n = 0; 1047s # g_value_init (¶mv[n], TYPE_COM_ACME_COYOTE); 1047s # g_value_set_object (¶mv[n++], skeleton); 1047s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1047s # g_value_set_object (¶mv[n++], invocation); 1047s # if (info->pass_fdlist) 1047s # { 1047s # #ifdef G_OS_UNIX 1047s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1047s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1047s # #else 1047s # g_assert_not_reached (); 1047s # #endif 1047s # } 1047s # g_variant_iter_init (&iter, parameters); 1047s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1047s # { 1047s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1047s # if (arg_info->use_gvariant) 1047s # { 1047s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1047s # g_value_set_variant (¶mv[n], child); 1047s # n++; 1047s # } 1047s # else 1047s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1047s # g_variant_unref (child); 1047s # } 1047s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 1047s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1047s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1047s # if (!g_value_get_boolean (&return_value)) 1047s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1047s # g_value_unset (&return_value); 1047s # for (n = 0; n < num_params + num_extra; n++) 1047s # g_value_unset (¶mv[n]); 1047s # g_free (paramv); 1047s # } 1047s # 1047s # static GVariant * 1047s # _com_acme_coyote_skeleton_handle_get_property ( 1047s # GDBusConnection *connection G_GNUC_UNUSED, 1047s # const gchar *sender G_GNUC_UNUSED, 1047s # const gchar *object_path G_GNUC_UNUSED, 1047s # const gchar *interface_name G_GNUC_UNUSED, 1047s # const gchar *property_name, 1047s # GError **error, 1047s # gpointer user_data) 1047s # { 1047s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1047s # GValue value = G_VALUE_INIT; 1047s # GParamSpec *pspec; 1047s # _ExtendedGDBusPropertyInfo *info; 1047s # GVariant *ret; 1047s # ret = NULL; 1047s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 1047s # g_assert (info != NULL); 1047s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1047s # if (pspec == NULL) 1047s # { 1047s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1047s # } 1047s # else 1047s # { 1047s # g_value_init (&value, pspec->value_type); 1047s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1047s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1047s # g_value_unset (&value); 1047s # } 1047s # return ret; 1047s # } 1047s # 1047s # static gboolean 1047s # _com_acme_coyote_skeleton_handle_set_property ( 1047s # GDBusConnection *connection G_GNUC_UNUSED, 1047s # const gchar *sender G_GNUC_UNUSED, 1047s # const gchar *object_path G_GNUC_UNUSED, 1047s # const gchar *interface_name G_GNUC_UNUSED, 1047s # const gchar *property_name, 1047s # GVariant *variant, 1047s # GError **error, 1047s # gpointer user_data) 1047s # { 1047s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1047s # GValue value = G_VALUE_INIT; 1047s # GParamSpec *pspec; 1047s # _ExtendedGDBusPropertyInfo *info; 1047s # gboolean ret; 1047s # ret = FALSE; 1047s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 1047s # g_assert (info != NULL); 1047s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1047s # if (pspec == NULL) 1047s # { 1047s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1047s # } 1047s # else 1047s # { 1047s # if (info->use_gvariant) 1047s # g_value_set_variant (&value, variant); 1047s # else 1047s # g_dbus_gvariant_to_gvalue (variant, &value); 1047s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1047s # g_value_unset (&value); 1047s # ret = TRUE; 1047s # } 1047s # return ret; 1047s # } 1047s # 1047s # static const GDBusInterfaceVTable _com_acme_coyote_skeleton_vtable = 1047s # { 1047s # _com_acme_coyote_skeleton_handle_method_call, 1047s # _com_acme_coyote_skeleton_handle_get_property, 1047s # _com_acme_coyote_skeleton_handle_set_property, 1047s # {NULL} 1047s # }; 1047s # 1047s # static GDBusInterfaceInfo * 1047s # com_acme_coyote_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1047s # { 1047s # return com_acme_coyote_interface_info (); 1047s # } 1047s # 1047s # static GDBusInterfaceVTable * 1047s # com_acme_coyote_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1047s # { 1047s # return (GDBusInterfaceVTable *) &_com_acme_coyote_skeleton_vtable; 1047s # } 1047s # 1047s # static GVariant * 1047s # com_acme_coyote_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1047s # { 1047s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 1047s # 1047s # GVariantBuilder builder; 1047s # guint n; 1047s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1047s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1047s # #else 1047s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1047s # #endif 1047s # if (_com_acme_coyote_interface_info.parent_struct.properties == NULL) 1047s # goto out; 1047s # for (n = 0; _com_acme_coyote_interface_info.parent_struct.properties[n] != NULL; n++) 1047s # { 1047s # GDBusPropertyInfo *info = _com_acme_coyote_interface_info.parent_struct.properties[n]; 1047s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1047s # { 1047s # GVariant *value; 1047s # 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); 1047s # if (value != NULL) 1047s # { 1047s # g_variant_take_ref (value); 1047s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1047s # g_variant_unref (value); 1047s # } 1047s # } 1047s # } 1047s # out: 1047s # return g_variant_builder_end (&builder); 1047s # } 1047s # 1047s # static gboolean _com_acme_coyote_emit_changed (gpointer user_data); 1047s # 1047s # static void 1047s # com_acme_coyote_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1047s # { 1047s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 1047s # gboolean emit_changed = FALSE; 1047s # 1047s # g_mutex_lock (&skeleton->priv->lock); 1047s # if (skeleton->priv->changed_properties_idle_source != NULL) 1047s # { 1047s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1047s # skeleton->priv->changed_properties_idle_source = NULL; 1047s # emit_changed = TRUE; 1047s # } 1047s # g_mutex_unlock (&skeleton->priv->lock); 1047s # 1047s # if (emit_changed) 1047s # _com_acme_coyote_emit_changed (skeleton); 1047s # } 1047s # 1047s # static void 1047s # _com_acme_coyote_on_signal_surprised ( 1047s # ComAcmeCoyote *object) 1047s # { 1047s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1047s # 1047s # GList *connections, *l; 1047s # GVariant *signal_variant; 1047s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1047s # 1047s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1047s # for (l = connections; l != NULL; l = l->next) 1047s # { 1047s # GDBusConnection *connection = l->data; 1047s # g_dbus_connection_emit_signal (connection, 1047s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.acme.Coyote", "Surprised", 1047s # signal_variant, NULL); 1047s # } 1047s # g_variant_unref (signal_variant); 1047s # g_list_free_full (connections, g_object_unref); 1047s # } 1047s # 1047s # static void com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface); 1047s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1047s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1047s # G_ADD_PRIVATE (ComAcmeCoyoteSkeleton) 1047s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 1047s # 1047s # #else 1047s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1047s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 1047s # 1047s # #endif 1047s # static void 1047s # com_acme_coyote_skeleton_finalize (GObject *object) 1047s # { 1047s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1047s # guint n; 1047s # for (n = 0; n < 1; n++) 1047s # g_value_unset (&skeleton->priv->properties[n]); 1047s # g_free (skeleton->priv->properties); 1047s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1047s # if (skeleton->priv->changed_properties_idle_source != NULL) 1047s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1047s # g_main_context_unref (skeleton->priv->context); 1047s # g_mutex_clear (&skeleton->priv->lock); 1047s # G_OBJECT_CLASS (com_acme_coyote_skeleton_parent_class)->finalize (object); 1047s # } 1047s # 1047s # static void 1047s # com_acme_coyote_skeleton_get_property (GObject *object, 1047s # guint prop_id, 1047s # GValue *value, 1047s # GParamSpec *pspec G_GNUC_UNUSED) 1047s # { 1047s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1047s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1047s # g_mutex_lock (&skeleton->priv->lock); 1047s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1047s # g_mutex_unlock (&skeleton->priv->lock); 1047s # } 1047s # 1047s # static gboolean 1047s # _com_acme_coyote_emit_changed (gpointer user_data) 1047s # { 1047s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1047s # GList *l; 1047s # GVariantBuilder builder; 1047s # GVariantBuilder invalidated_builder; 1047s # guint num_changes; 1047s # 1047s # g_mutex_lock (&skeleton->priv->lock); 1047s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1047s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1047s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1047s # #else 1047s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1047s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1047s # #endif 1047s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1047s # { 1047s # ChangedProperty *cp = l->data; 1047s # GVariant *variant; 1047s # const GValue *cur_value; 1047s # 1047s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1047s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1047s # { 1047s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1047s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1047s # g_variant_unref (variant); 1047s # num_changes++; 1047s # } 1047s # } 1047s # if (num_changes > 0) 1047s # { 1047s # GList *connections, *ll; 1047s # GVariant *signal_variant; 1047s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "com.acme.Coyote", 1047s # &builder, &invalidated_builder)); 1047s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1047s # for (ll = connections; ll != NULL; ll = ll->next) 1047s # { 1047s # GDBusConnection *connection = ll->data; 1047s # 1047s # g_dbus_connection_emit_signal (connection, 1047s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1047s # "org.freedesktop.DBus.Properties", 1047s # "PropertiesChanged", 1047s # signal_variant, 1047s # NULL); 1047s # } 1047s # g_variant_unref (signal_variant); 1047s # g_list_free_full (connections, g_object_unref); 1047s # } 1047s # else 1047s # { 1047s # g_variant_builder_clear (&builder); 1047s # g_variant_builder_clear (&invalidated_builder); 1047s # } 1047s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1047s # skeleton->priv->changed_properties = NULL; 1047s # skeleton->priv->changed_properties_idle_source = NULL; 1047s # g_mutex_unlock (&skeleton->priv->lock); 1047s # return FALSE; 1047s # } 1047s # 1047s # static void 1047s # _com_acme_coyote_schedule_emit_changed (ComAcmeCoyoteSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1047s # { 1047s # ChangedProperty *cp; 1047s # GList *l; 1047s # cp = NULL; 1047s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1047s # { 1047s # ChangedProperty *i_cp = l->data; 1047s # if (i_cp->info == info) 1047s # { 1047s # cp = i_cp; 1047s # break; 1047s # } 1047s # } 1047s # if (cp == NULL) 1047s # { 1047s # cp = g_new0 (ChangedProperty, 1); 1047s # cp->prop_id = prop_id; 1047s # cp->info = info; 1047s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1047s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1047s # g_value_copy (orig_value, &cp->orig_value); 1047s # } 1047s # } 1047s # 1047s # static void 1047s # com_acme_coyote_skeleton_notify (GObject *object, 1047s # GParamSpec *pspec G_GNUC_UNUSED) 1047s # { 1047s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1047s # g_mutex_lock (&skeleton->priv->lock); 1047s # if (skeleton->priv->changed_properties != NULL && 1047s # skeleton->priv->changed_properties_idle_source == NULL) 1047s # { 1047s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1047s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1047s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _com_acme_coyote_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1047s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _com_acme_coyote_emit_changed"); 1047s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1047s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1047s # } 1047s # g_mutex_unlock (&skeleton->priv->lock); 1047s # } 1047s # 1047s # static void 1047s # com_acme_coyote_skeleton_set_property (GObject *object, 1047s # guint prop_id, 1047s # const GValue *value, 1047s # GParamSpec *pspec) 1047s # { 1047s # const _ExtendedGDBusPropertyInfo *info; 1047s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1047s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1047s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1047s # g_mutex_lock (&skeleton->priv->lock); 1047s # g_object_freeze_notify (object); 1047s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1047s # { 1047s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1047s # info->emits_changed_signal) 1047s # _com_acme_coyote_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1047s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1047s # g_object_notify_by_pspec (object, pspec); 1047s # } 1047s # g_mutex_unlock (&skeleton->priv->lock); 1047s # g_object_thaw_notify (object); 1047s # } 1047s # 1047s # static void 1047s # com_acme_coyote_skeleton_init (ComAcmeCoyoteSkeleton *skeleton) 1047s # { 1047s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1047s # skeleton->priv = com_acme_coyote_skeleton_get_instance_private (skeleton); 1047s # #else 1047s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonPrivate); 1047s # #endif 1047s # 1047s # g_mutex_init (&skeleton->priv->lock); 1047s # skeleton->priv->context = g_main_context_ref_thread_default (); 1047s # skeleton->priv->properties = g_new0 (GValue, 1); 1047s # g_value_init (&skeleton->priv->properties[0], G_TYPE_STRING); 1047s # } 1047s # 1047s # static const gchar * 1047s # com_acme_coyote_skeleton_get_mood (ComAcmeCoyote *object) 1047s # { 1047s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1047s # const gchar *value; 1047s # g_mutex_lock (&skeleton->priv->lock); 1047s # value = g_marshal_value_peek_string (&(skeleton->priv->properties[0])); 1047s # g_mutex_unlock (&skeleton->priv->lock); 1047s # return value; 1047s # } 1047s # 1047s # static void 1047s # com_acme_coyote_skeleton_class_init (ComAcmeCoyoteSkeletonClass *klass) 1047s # { 1047s # GObjectClass *gobject_class; 1047s # GDBusInterfaceSkeletonClass *skeleton_class; 1047s # 1047s # gobject_class = G_OBJECT_CLASS (klass); 1047s # gobject_class->finalize = com_acme_coyote_skeleton_finalize; 1047s # gobject_class->get_property = com_acme_coyote_skeleton_get_property; 1047s # gobject_class->set_property = com_acme_coyote_skeleton_set_property; 1047s # gobject_class->notify = com_acme_coyote_skeleton_notify; 1047s # 1047s # 1047s # com_acme_coyote_override_properties (gobject_class, 1); 1047s # 1047s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1047s # skeleton_class->get_info = com_acme_coyote_skeleton_dbus_interface_get_info; 1047s # skeleton_class->get_properties = com_acme_coyote_skeleton_dbus_interface_get_properties; 1047s # skeleton_class->flush = com_acme_coyote_skeleton_dbus_interface_flush; 1047s # skeleton_class->get_vtable = com_acme_coyote_skeleton_dbus_interface_get_vtable; 1047s # 1047s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1047s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteSkeletonPrivate)); 1047s # #endif 1047s # } 1047s # 1047s # static void 1047s # com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface) 1047s # { 1047s # iface->surprised = _com_acme_coyote_on_signal_surprised; 1047s # iface->get_mood = com_acme_coyote_skeleton_get_mood; 1047s # } 1047s # 1047s # /** 1047s # * com_acme_coyote_skeleton_new: 1047s # * 1047s # * Creates a skeleton object for the D-Bus interface com.acme.Coyote. 1047s # * 1047s # * Returns: (transfer full) (type ComAcmeCoyoteSkeleton): The skeleton object. 1047s # */ 1047s # ComAcmeCoyote * 1047s # com_acme_coyote_skeleton_new (void) 1047s # { 1047s # return COM_ACME_COYOTE (g_object_new (TYPE_COM_ACME_COYOTE_SKELETON, NULL)); 1047s # } 1047s # Error: 1047s ok 39 __main__.TestCodegen.test_unix_fd_types_and_annotations 1047s # gdbus-codegen: /usr/bin/gdbus-codegen 1047s # tmpdir: /tmp/tmp603w5m3k 1047s # /tmp/tmp603w5m3k/tmpfknhwcas.xml: 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp603w5m3k/tmpfknhwcas.xml', '--output', '-', '--header'] 1047s # Return code: 0 1047s # Output: 1047s # /* 1047s # * This file is generated by gdbus-codegen, do not modify it. 1047s # * 1047s # * The license of this code is the same as for the D-Bus interface description 1047s # * it was derived from. Note that it links to GLib, so must comply with the 1047s # * LGPL linking clauses. 1047s # */ 1047s # 1047s # #ifndef __STDOUT__ 1047s # #define __STDOUT__ 1047s # 1047s # #include 1047s # 1047s # G_BEGIN_DECLS 1047s # 1047s # 1047s # /* ------------------------------------------------------------------------ */ 1047s # /* Declarations for FDPassing */ 1047s # 1047s # #define TYPE_FDPASSING (fdpassing_get_type ()) 1047s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 1047s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 1047s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 1047s # 1047s # struct _FDPassing; 1047s # typedef struct _FDPassing FDPassing; 1047s # typedef struct _FDPassingIface FDPassingIface; 1047s # 1047s # struct _FDPassingIface 1047s # { 1047s # GTypeInterface parent_iface; 1047s # 1047s # gboolean (*handle_hello_fd) ( 1047s # FDPassing *object, 1047s # GDBusMethodInvocation *invocation, 1047s # GUnixFDList *fd_list, 1047s # const gchar *arg_greeting); 1047s # 1047s # gboolean (*handle_no_annotation) ( 1047s # FDPassing *object, 1047s # GDBusMethodInvocation *invocation, 1047s # GVariant *arg_greeting, 1047s # const gchar *arg_greeting_locale); 1047s # 1047s # gboolean (*handle_no_annotation_nested) ( 1047s # FDPassing *object, 1047s # GDBusMethodInvocation *invocation, 1047s # GVariant *arg_files); 1047s # 1047s # }; 1047s # 1047s # GType fdpassing_get_type (void) G_GNUC_CONST; 1047s # 1047s # GDBusInterfaceInfo *fdpassing_interface_info (void); 1047s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 1047s # 1047s # 1047s # /* D-Bus method call completion functions: */ 1047s # void fdpassing_complete_hello_fd ( 1047s # FDPassing *object, 1047s # GDBusMethodInvocation *invocation, 1047s # GUnixFDList *fd_list, 1047s # const gchar *response); 1047s # 1047s # void fdpassing_complete_no_annotation ( 1047s # FDPassing *object, 1047s # GDBusMethodInvocation *invocation, 1047s # GVariant *response, 1047s # const gchar *response_locale); 1047s # 1047s # void fdpassing_complete_no_annotation_nested ( 1047s # FDPassing *object, 1047s # GDBusMethodInvocation *invocation); 1047s # 1047s # 1047s # 1047s # /* D-Bus method calls: */ 1047s # void fdpassing_call_hello_fd ( 1047s # FDPassing *proxy, 1047s # const gchar *arg_greeting, 1047s # GUnixFDList *fd_list, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data); 1047s # 1047s # gboolean fdpassing_call_hello_fd_finish ( 1047s # FDPassing *proxy, 1047s # gchar **out_response, 1047s # GUnixFDList **out_fd_list, 1047s # GAsyncResult *res, 1047s # GError **error); 1047s # 1047s # gboolean fdpassing_call_hello_fd_sync ( 1047s # FDPassing *proxy, 1047s # const gchar *arg_greeting, 1047s # GUnixFDList *fd_list, 1047s # gchar **out_response, 1047s # GUnixFDList **out_fd_list, 1047s # GCancellable *cancellable, 1047s # GError **error); 1047s # 1047s # void fdpassing_call_no_annotation ( 1047s # FDPassing *proxy, 1047s # GVariant *arg_greeting, 1047s # const gchar *arg_greeting_locale, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data); 1047s # 1047s # gboolean fdpassing_call_no_annotation_finish ( 1047s # FDPassing *proxy, 1047s # GVariant **out_response, 1047s # gchar **out_response_locale, 1047s # GAsyncResult *res, 1047s # GError **error); 1047s # 1047s # gboolean fdpassing_call_no_annotation_sync ( 1047s # FDPassing *proxy, 1047s # GVariant *arg_greeting, 1047s # const gchar *arg_greeting_locale, 1047s # GVariant **out_response, 1047s # gchar **out_response_locale, 1047s # GCancellable *cancellable, 1047s # GError **error); 1047s # 1047s # void fdpassing_call_no_annotation_nested ( 1047s # FDPassing *proxy, 1047s # GVariant *arg_files, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data); 1047s # 1047s # gboolean fdpassing_call_no_annotation_nested_finish ( 1047s # FDPassing *proxy, 1047s # GAsyncResult *res, 1047s # GError **error); 1047s # 1047s # gboolean fdpassing_call_no_annotation_nested_sync ( 1047s # FDPassing *proxy, 1047s # GVariant *arg_files, 1047s # GCancellable *cancellable, 1047s # GError **error); 1047s # 1047s # 1047s # 1047s # /* ---- */ 1047s # 1047s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 1047s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 1047s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1047s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1047s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 1047s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 1047s # 1047s # typedef struct _FDPassingProxy FDPassingProxy; 1047s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 1047s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 1047s # 1047s # struct _FDPassingProxy 1047s # { 1047s # /*< private >*/ 1047s # GDBusProxy parent_instance; 1047s # FDPassingProxyPrivate *priv; 1047s # }; 1047s # 1047s # struct _FDPassingProxyClass 1047s # { 1047s # GDBusProxyClass parent_class; 1047s # }; 1047s # 1047s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 1047s # 1047s # #if GLIB_CHECK_VERSION(2, 44, 0) 1047s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 1047s # #endif 1047s # 1047s # void fdpassing_proxy_new ( 1047s # GDBusConnection *connection, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data); 1047s # FDPassing *fdpassing_proxy_new_finish ( 1047s # GAsyncResult *res, 1047s # GError **error); 1047s # FDPassing *fdpassing_proxy_new_sync ( 1047s # GDBusConnection *connection, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GError **error); 1047s # 1047s # void fdpassing_proxy_new_for_bus ( 1047s # GBusType bus_type, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data); 1047s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 1047s # GAsyncResult *res, 1047s # GError **error); 1047s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 1047s # GBusType bus_type, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GError **error); 1047s # 1047s # 1047s # /* ---- */ 1047s # 1047s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 1047s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 1047s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1047s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1047s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 1047s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 1047s # 1047s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 1047s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 1047s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 1047s # 1047s # struct _FDPassingSkeleton 1047s # { 1047s # /*< private >*/ 1047s # GDBusInterfaceSkeleton parent_instance; 1047s # FDPassingSkeletonPrivate *priv; 1047s # }; 1047s # 1047s # struct _FDPassingSkeletonClass 1047s # { 1047s # GDBusInterfaceSkeletonClass parent_class; 1047s # }; 1047s # 1047s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 1047s # 1047s # #if GLIB_CHECK_VERSION(2, 44, 0) 1047s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 1047s # #endif 1047s # 1047s # FDPassing *fdpassing_skeleton_new (void); 1047s # 1047s # 1047s # G_END_DECLS 1047s # 1047s # #endif /* __STDOUT__ */ 1047s # Error: 1047s # 1047s # /tmp/tmp603w5m3k/tmp3gtg7ner.xml: 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp603w5m3k/tmp3gtg7ner.xml', '--output', '-', '--header', '--glib-min-required', '2.32'] 1047s # Return code: 0 1047s # Output: 1047s # /* 1047s # * This file is generated by gdbus-codegen, do not modify it. 1047s # * 1047s # * The license of this code is the same as for the D-Bus interface description 1047s # * it was derived from. Note that it links to GLib, so must comply with the 1047s # * LGPL linking clauses. 1047s # */ 1047s # 1047s # #ifndef __STDOUT__ 1047s # #define __STDOUT__ 1047s # 1047s # #include 1047s # 1047s # G_BEGIN_DECLS 1047s # 1047s # 1047s # /* ------------------------------------------------------------------------ */ 1047s # /* Declarations for FDPassing */ 1047s # 1047s # #define TYPE_FDPASSING (fdpassing_get_type ()) 1047s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 1047s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 1047s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 1047s # 1047s # struct _FDPassing; 1047s # typedef struct _FDPassing FDPassing; 1047s # typedef struct _FDPassingIface FDPassingIface; 1047s # 1047s # struct _FDPassingIface 1047s # { 1047s # GTypeInterface parent_iface; 1047s # 1047s # gboolean (*handle_hello_fd) ( 1047s # FDPassing *object, 1047s # GDBusMethodInvocation *invocation, 1047s # GUnixFDList *fd_list, 1047s # const gchar *arg_greeting); 1047s # 1047s # gboolean (*handle_no_annotation) ( 1047s # FDPassing *object, 1047s # GDBusMethodInvocation *invocation, 1047s # GVariant *arg_greeting, 1047s # const gchar *arg_greeting_locale); 1047s # 1047s # gboolean (*handle_no_annotation_nested) ( 1047s # FDPassing *object, 1047s # GDBusMethodInvocation *invocation, 1047s # GVariant *arg_files); 1047s # 1047s # }; 1047s # 1047s # GType fdpassing_get_type (void) G_GNUC_CONST; 1047s # 1047s # GDBusInterfaceInfo *fdpassing_interface_info (void); 1047s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 1047s # 1047s # 1047s # /* D-Bus method call completion functions: */ 1047s # void fdpassing_complete_hello_fd ( 1047s # FDPassing *object, 1047s # GDBusMethodInvocation *invocation, 1047s # GUnixFDList *fd_list, 1047s # const gchar *response); 1047s # 1047s # void fdpassing_complete_no_annotation ( 1047s # FDPassing *object, 1047s # GDBusMethodInvocation *invocation, 1047s # GVariant *response, 1047s # const gchar *response_locale); 1047s # 1047s # void fdpassing_complete_no_annotation_nested ( 1047s # FDPassing *object, 1047s # GDBusMethodInvocation *invocation); 1047s # 1047s # 1047s # 1047s # /* D-Bus method calls: */ 1047s # void fdpassing_call_hello_fd ( 1047s # FDPassing *proxy, 1047s # const gchar *arg_greeting, 1047s # GUnixFDList *fd_list, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data); 1047s # 1047s # gboolean fdpassing_call_hello_fd_finish ( 1047s # FDPassing *proxy, 1047s # gchar **out_response, 1047s # GUnixFDList **out_fd_list, 1047s # GAsyncResult *res, 1047s # GError **error); 1047s # 1047s # gboolean fdpassing_call_hello_fd_sync ( 1047s # FDPassing *proxy, 1047s # const gchar *arg_greeting, 1047s # GUnixFDList *fd_list, 1047s # gchar **out_response, 1047s # GUnixFDList **out_fd_list, 1047s # GCancellable *cancellable, 1047s # GError **error); 1047s # 1047s # void fdpassing_call_no_annotation ( 1047s # FDPassing *proxy, 1047s # GVariant *arg_greeting, 1047s # const gchar *arg_greeting_locale, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data); 1047s # 1047s # gboolean fdpassing_call_no_annotation_finish ( 1047s # FDPassing *proxy, 1047s # GVariant **out_response, 1047s # gchar **out_response_locale, 1047s # GAsyncResult *res, 1047s # GError **error); 1047s # 1047s # gboolean fdpassing_call_no_annotation_sync ( 1047s # FDPassing *proxy, 1047s # GVariant *arg_greeting, 1047s # const gchar *arg_greeting_locale, 1047s # GVariant **out_response, 1047s # gchar **out_response_locale, 1047s # GCancellable *cancellable, 1047s # GError **error); 1047s # 1047s # void fdpassing_call_no_annotation_nested ( 1047s # FDPassing *proxy, 1047s # GVariant *arg_files, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data); 1047s # 1047s # gboolean fdpassing_call_no_annotation_nested_finish ( 1047s # FDPassing *proxy, 1047s # GAsyncResult *res, 1047s # GError **error); 1047s # 1047s # gboolean fdpassing_call_no_annotation_nested_sync ( 1047s # FDPassing *proxy, 1047s # GVariant *arg_files, 1047s # GCancellable *cancellable, 1047s # GError **error); 1047s # 1047s # 1047s # 1047s # /* ---- */ 1047s # 1047s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 1047s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 1047s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1047s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1047s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 1047s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 1047s # 1047s # typedef struct _FDPassingProxy FDPassingProxy; 1047s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 1047s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 1047s # 1047s # struct _FDPassingProxy 1047s # { 1047s # /*< private >*/ 1047s # GDBusProxy parent_instance; 1047s # FDPassingProxyPrivate *priv; 1047s # }; 1047s # 1047s # struct _FDPassingProxyClass 1047s # { 1047s # GDBusProxyClass parent_class; 1047s # }; 1047s # 1047s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 1047s # 1047s # #if GLIB_CHECK_VERSION(2, 44, 0) 1047s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 1047s # #endif 1047s # 1047s # void fdpassing_proxy_new ( 1047s # GDBusConnection *connection, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data); 1047s # FDPassing *fdpassing_proxy_new_finish ( 1047s # GAsyncResult *res, 1047s # GError **error); 1047s # FDPassing *fdpassing_proxy_new_sync ( 1047s # GDBusConnection *connection, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GError **error); 1047s # 1047s # void fdpassing_proxy_new_for_bus ( 1047s # GBusType bus_type, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data); 1047s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 1047s # GAsyncResult *res, 1047s # GError **error); 1047s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 1047s # GBusType bus_type, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GError **error); 1047s # 1047s # 1047s # /* ---- */ 1047s # 1047s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 1047s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 1047s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1047s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1047s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 1047s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 1047s # 1047s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 1047s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 1047s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 1047s # 1047s # struct _FDPassingSkeleton 1047s # { 1047s # /*< private >*/ 1047s # GDBusInterfaceSkeleton parent_instance; 1047s # FDPassingSkeletonPrivate *priv; 1047s # }; 1047s # 1047s # struct _FDPassingSkeletonClass 1047s # { 1047s # GDBusInterfaceSkeletonClass parent_class; 1047s # }; 1047s # 1047s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 1047s # 1047s # #if GLIB_CHECK_VERSION(2, 44, 0) 1047s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 1047s # #endif 1047s # 1047s # FDPassing *fdpassing_skeleton_new (void); 1047s # 1047s # 1047s # G_END_DECLS 1047s # 1047s # #endif /* __STDOUT__ */ 1047s # Error: 1047s # 1047s # /tmp/tmp603w5m3k/tmpup52d2vs.xml: 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # 1047s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp603w5m3k/tmpup52d2vs.xml', '--output', '-', '--header', '--glib-min-required', '2.64'] 1047s # Return code: 0 1047s # Output: 1047s # /* 1047s # * This file is generated by gdbus-codegen, do not modify it. 1047s # * 1047s # * The license of this code is the same as for the D-Bus interface description 1047s # * it was derived from. Note that it links to GLib, so must comply with the 1047s # * LGPL linking clauses. 1047s # */ 1047s # 1047s # #ifndef __STDOUT__ 1047s # #define __STDOUT__ 1047s # 1047s # #include 1047s # 1047s # G_BEGIN_DECLS 1047s # 1047s # 1047s # /* ------------------------------------------------------------------------ */ 1047s # /* Declarations for FDPassing */ 1047s # 1047s # #define TYPE_FDPASSING (fdpassing_get_type ()) 1047s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 1047s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 1047s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 1047s # 1047s # struct _FDPassing; 1047s # typedef struct _FDPassing FDPassing; 1047s # typedef struct _FDPassingIface FDPassingIface; 1047s # 1047s # struct _FDPassingIface 1047s # { 1047s # GTypeInterface parent_iface; 1047s # 1047s # gboolean (*handle_hello_fd) ( 1047s # FDPassing *object, 1047s # GDBusMethodInvocation *invocation, 1047s # GUnixFDList *fd_list, 1047s # const gchar *arg_greeting); 1047s # 1047s # gboolean (*handle_no_annotation) ( 1047s # FDPassing *object, 1047s # GDBusMethodInvocation *invocation, 1047s # GUnixFDList *fd_list, 1047s # GVariant *arg_greeting, 1047s # const gchar *arg_greeting_locale); 1047s # 1047s # gboolean (*handle_no_annotation_nested) ( 1047s # FDPassing *object, 1047s # GDBusMethodInvocation *invocation, 1047s # GUnixFDList *fd_list, 1047s # GVariant *arg_files); 1047s # 1047s # }; 1047s # 1047s # GType fdpassing_get_type (void) G_GNUC_CONST; 1047s # 1047s # GDBusInterfaceInfo *fdpassing_interface_info (void); 1047s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 1047s # 1047s # 1047s # /* D-Bus method call completion functions: */ 1047s # void fdpassing_complete_hello_fd ( 1047s # FDPassing *object, 1047s # GDBusMethodInvocation *invocation, 1047s # GUnixFDList *fd_list, 1047s # const gchar *response); 1047s # 1047s # void fdpassing_complete_no_annotation ( 1047s # FDPassing *object, 1047s # GDBusMethodInvocation *invocation, 1047s # GUnixFDList *fd_list, 1047s # GVariant *response, 1047s # const gchar *response_locale); 1047s # 1047s # void fdpassing_complete_no_annotation_nested ( 1047s # FDPassing *object, 1047s # GDBusMethodInvocation *invocation, 1047s # GUnixFDList *fd_list); 1047s # 1047s # 1047s # 1047s # /* D-Bus method calls: */ 1047s # void fdpassing_call_hello_fd ( 1047s # FDPassing *proxy, 1047s # const gchar *arg_greeting, 1047s # GDBusCallFlags call_flags, 1047s # gint timeout_msec, 1047s # GUnixFDList *fd_list, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data); 1047s # 1047s # gboolean fdpassing_call_hello_fd_finish ( 1047s # FDPassing *proxy, 1047s # gchar **out_response, 1047s # GUnixFDList **out_fd_list, 1047s # GAsyncResult *res, 1047s # GError **error); 1047s # 1047s # gboolean fdpassing_call_hello_fd_sync ( 1047s # FDPassing *proxy, 1047s # const gchar *arg_greeting, 1047s # GDBusCallFlags call_flags, 1047s # gint timeout_msec, 1047s # GUnixFDList *fd_list, 1047s # gchar **out_response, 1047s # GUnixFDList **out_fd_list, 1047s # GCancellable *cancellable, 1047s # GError **error); 1047s # 1047s # void fdpassing_call_no_annotation ( 1047s # FDPassing *proxy, 1047s # GVariant *arg_greeting, 1047s # const gchar *arg_greeting_locale, 1047s # GDBusCallFlags call_flags, 1047s # gint timeout_msec, 1047s # GUnixFDList *fd_list, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data); 1047s # 1047s # gboolean fdpassing_call_no_annotation_finish ( 1047s # FDPassing *proxy, 1047s # GVariant **out_response, 1047s # gchar **out_response_locale, 1047s # GUnixFDList **out_fd_list, 1047s # GAsyncResult *res, 1047s # GError **error); 1047s # 1047s # gboolean fdpassing_call_no_annotation_sync ( 1047s # FDPassing *proxy, 1047s # GVariant *arg_greeting, 1047s # const gchar *arg_greeting_locale, 1047s # GDBusCallFlags call_flags, 1047s # gint timeout_msec, 1047s # GUnixFDList *fd_list, 1047s # GVariant **out_response, 1047s # gchar **out_response_locale, 1047s # GUnixFDList **out_fd_list, 1047s # GCancellable *cancellable, 1047s # GError **error); 1047s # 1047s # void fdpassing_call_no_annotation_nested ( 1047s # FDPassing *proxy, 1047s # GVariant *arg_files, 1047s # GDBusCallFlags call_flags, 1047s # gint timeout_msec, 1047s # GUnixFDList *fd_list, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data); 1047s # 1047s # gboolean fdpassing_call_no_annotation_nested_finish ( 1047s # FDPassing *proxy, 1047s # GUnixFDList **out_fd_list, 1047s # GAsyncResult *res, 1047s # GError **error); 1047s # 1047s # gboolean fdpassing_call_no_annotation_nested_sync ( 1047s # FDPassing *proxy, 1047s # GVariant *arg_files, 1047s # GDBusCallFlags call_flags, 1047s # gint timeout_msec, 1047s # GUnixFDList *fd_list, 1047s # GUnixFDList **out_fd_list, 1047s # GCancellable *cancellable, 1047s # GError **error); 1047s # 1047s # 1047s # 1047s # /* ---- */ 1047s # 1047s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 1047s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 1047s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1047s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1047s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 1047s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 1047s # 1047s # typedef struct _FDPassingProxy FDPassingProxy; 1047s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 1047s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 1047s # 1047s # struct _FDPassingProxy 1047s # { 1047s # /*< private >*/ 1047s # GDBusProxy parent_instance; 1047s # FDPassingProxyPrivate *priv; 1047s # }; 1047s # 1047s # struct _FDPassingProxyClass 1047s # { 1047s # GDBusProxyClass parent_class; 1047s # }; 1047s # 1047s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 1047s # 1047s # #if GLIB_CHECK_VERSION(2, 44, 0) 1047s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 1047s # #endif 1047s # 1047s # void fdpassing_proxy_new ( 1047s # GDBusConnection *connection, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data); 1047s # FDPassing *fdpassing_proxy_new_finish ( 1047s # GAsyncResult *res, 1047s # GError **error); 1047s # FDPassing *fdpassing_proxy_new_sync ( 1047s # GDBusConnection *connection, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GError **error); 1047s # 1047s # void fdpassing_proxy_new_for_bus ( 1047s # GBusType bus_type, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GAsyncReadyCallback callback, 1047s # gpointer user_data); 1047s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 1047s # GAsyncResult *res, 1047s # GError **error); 1047s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 1047s # GBusType bus_type, 1047s # GDBusProxyFlags flags, 1047s # const gchar *name, 1047s # const gchar *object_path, 1047s # GCancellable *cancellable, 1047s # GError **error); 1047s # 1047s # 1047s # /* ---- */ 1047s # 1047s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 1047s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 1047s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1047s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1047s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 1047s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 1047s # 1047s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 1047s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 1047s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 1047s # 1047s # struct _FDPassingSkeleton 1047s # { 1047s # /*< private >*/ 1047s # GDBusInterfaceSkeleton parent_instance; 1047s # FDPassingSkeletonPrivate *priv; 1047s # }; 1047s # 1047s # struct _FDPassingSkeletonClass 1047s # { 1047s # GDBusInterfaceSkeletonClass parent_class; 1047s # }; 1047s # 1047s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 1047s # 1047s # #if GLIB_CHECK_VERSION(2, 44, 0) 1047s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 1047s # #endif 1047s # 1047s # FDPassing *fdpassing_skeleton_new (void); 1047s # 1047s # 1047s # G_END_DECLS 1047s # 1047s # #endif /* __STDOUT__ */ 1047s # Error: 1047s 1..39 1047s ok - glib/codegen.py.test 1047s # Running test: glib/mount-operation.test 1047s ok - glib/mount-operation.test 1047s TAP version 14 1047s # random seed: R02S5b89aa53bd57209874b75068663c0d65 1047s 1..2 1047s # Start of mount-operation tests 1047s ok 1 /mount-operation/construction 1047s ok 2 /mount-operation/properties 1047s # End of mount-operation tests 1047s # Running test: glib/struct-info.test 1047s TAP version 14 1047s # random seed: R02S11ddcf5200a6f07ec1b90a827f067b72 1047s 1..4 1047s # Start of struct-info tests 1047s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_HE5U52/struct-info/field-iterators/.dirs/home 1047s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_HE5U52/struct-info/field-iterators/.dirs/cache 1047s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_HE5U52/struct-info/field-iterators/.dirs/system-config1:/tmp/test_struct-info_HE5U52/struct-info/field-iterators/.dirs/system-config2 1047s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_HE5U52/struct-info/field-iterators/.dirs/config 1047s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_HE5U52/struct-info/field-iterators/.dirs/system-data1:/tmp/test_struct-info_HE5U52/struct-info/field-iterators/.dirs/system-data2 1047s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_HE5U52/struct-info/field-iterators/.dirs/data 1047s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_HE5U52/struct-info/field-iterators/.dirs/state 1047s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_HE5U52/struct-info/field-iterators/.dirs/runtime 1047s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1047s # /struct-info/field-iterators summary: Test iterating through a struct's fields with gi_struct_info_get_field() 1047s ok 1 /struct-info/field-iterators 1047s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_HE5U52/struct-info/sizeof-gvalue/.dirs/home 1047s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_HE5U52/struct-info/sizeof-gvalue/.dirs/cache 1047s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_HE5U52/struct-info/sizeof-gvalue/.dirs/system-config1:/tmp/test_struct-info_HE5U52/struct-info/sizeof-gvalue/.dirs/system-config2 1047s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_HE5U52/struct-info/sizeof-gvalue/.dirs/config 1047s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_HE5U52/struct-info/sizeof-gvalue/.dirs/system-data1:/tmp/test_struct-info_HE5U52/struct-info/sizeof-gvalue/.dirs/system-data2 1047s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_HE5U52/struct-info/sizeof-gvalue/.dirs/data 1047s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_HE5U52/struct-info/sizeof-gvalue/.dirs/state 1047s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_HE5U52/struct-info/sizeof-gvalue/.dirs/runtime 1047s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1047s # /struct-info/sizeof-gvalue summary: Test that gi_struct_info_get_size() reports the correct sizeof GValue 1047s ok 2 /struct-info/sizeof-gvalue 1047s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_HE5U52/struct-info/is-pointer-for-struct-method-arg/.dirs/home 1047s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_HE5U52/struct-info/is-pointer-for-struct-method-arg/.dirs/cache 1047s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_HE5U52/struct-info/is-pointer-for-struct-method-arg/.dirs/system-config1:/tmp/test_struct-info_HE5U52/struct-info/is-pointer-for-struct-method-arg/.dirs/system-config2 1047s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_HE5U52/struct-info/is-pointer-for-struct-method-arg/.dirs/config 1047s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_HE5U52/struct-info/is-pointer-for-struct-method-arg/.dirs/system-data1:/tmp/test_struct-info_HE5U52/struct-info/is-pointer-for-struct-method-arg/.dirs/system-data2 1047s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_HE5U52/struct-info/is-pointer-for-struct-method-arg/.dirs/data 1047s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_HE5U52/struct-info/is-pointer-for-struct-method-arg/.dirs/state 1047s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_HE5U52/struct-info/is-pointer-for-struct-method-arg/.dirs/runtime 1047s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1047s ok - glib/struct-info.test 1047s # /struct-info/is-pointer-for-struct-method-arg summary: Test that a struct method reports the correct type with gi_type_info_is_pointer() 1047s ok 3 /struct-info/is-pointer-for-struct-method-arg 1047s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_HE5U52/struct-info/boxed/.dirs/home 1047s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_HE5U52/struct-info/boxed/.dirs/cache 1047s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_HE5U52/struct-info/boxed/.dirs/system-config1:/tmp/test_struct-info_HE5U52/struct-info/boxed/.dirs/system-config2 1047s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_HE5U52/struct-info/boxed/.dirs/config 1047s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_HE5U52/struct-info/boxed/.dirs/system-data1:/tmp/test_struct-info_HE5U52/struct-info/boxed/.dirs/system-data2 1047s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_HE5U52/struct-info/boxed/.dirs/data 1047s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_HE5U52/struct-info/boxed/.dirs/state 1047s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_HE5U52/struct-info/boxed/.dirs/runtime 1047s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1047s # /struct-info/boxed summary: Test that a boxed struct is recognised as such 1047s ok 4 /struct-info/boxed 1047s # End of struct-info tests 1047s # Running test: glib/g-file-info-filesystem-readonly.test 1047s TAP version 14 1047s # random seed: R02Sf2ec02d03f0c67bbe047b69e6967abea 1047s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=787731 1047s 1..2 1047s # Start of g-file-info-filesystem-readonly tests 1047s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_g-file-info-filesystem-readonly_9OBV52/g-file-info-filesystem-readonly/test-fs-ro/.dirs/home 1047s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_g-file-info-filesystem-readonly_9OBV52/g-file-info-filesystem-readonly/test-fs-ro/.dirs/cache 1047s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_g-file-info-filesystem-readonly_9OBV52/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-config1:/tmp/test_g-file-info-filesystem-readonly_9OBV52/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-config2 1047s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_g-file-info-filesystem-readonly_9OBV52/g-file-info-filesystem-readonly/test-fs-ro/.dirs/config 1047s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_g-file-info-filesystem-readonly_9OBV52/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-data1:/tmp/test_g-file-info-filesystem-readonly_9OBV52/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-data2 1047s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_g-file-info-filesystem-readonly_9OBV52/g-file-info-filesystem-readonly/test-fs-ro/.dirs/data 1047s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_g-file-info-filesystem-readonly_9OBV52/g-file-info-filesystem-readonly/test-fs-ro/.dirs/state 1047s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_g-file-info-filesystem-readonly_9OBV52/g-file-info-filesystem-readonly/test-fs-ro/.dirs/runtime 1047s ok - glib/g-file-info-filesystem-readonly.test 1047s ok 1 /g-file-info-filesystem-readonly/test-fs-ro # SKIP 'bindfs' and 'fusermount' commands are needed to run this test 1047s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_g-file-info-filesystem-readonly_9OBV52/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/home 1047s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_g-file-info-filesystem-readonly_9OBV52/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/cache 1047s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_g-file-info-filesystem-readonly_9OBV52/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-config1:/tmp/test_g-file-info-filesystem-readonly_9OBV52/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-config2 1047s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_g-file-info-filesystem-readonly_9OBV52/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/config 1047s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_g-file-info-filesystem-readonly_9OBV52/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-data1:/tmp/test_g-file-info-filesystem-readonly_9OBV52/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-data2 1047s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_g-file-info-filesystem-readonly_9OBV52/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/data 1047s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_g-file-info-filesystem-readonly_9OBV52/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/state 1047s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_g-file-info-filesystem-readonly_9OBV52/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/runtime 1047s ok 2 /g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor # SKIP 'bindfs' and 'fusermount' commands are needed to run this test 1047s # End of g-file-info-filesystem-readonly tests 1047s # Running test: glib/data-input-stream.test 1047s TAP version 14 1047s # random seed: R02S737b21843f9ce8cddf684be5386b0445 1047s 1..10 1047s # Start of data-input-stream tests 1047s ok 1 /data-input-stream/basic 1047s ok 2 /data-input-stream/read-lines-LF 1047s ok 3 /data-input-stream/read-lines-LF-valid-utf8 1047s ok 4 /data-input-stream/read-lines-LF-invalid-utf8 1047s ok 5 /data-input-stream/read-lines-CR 1047s ok 6 /data-input-stream/read-lines-CR-LF 1047s ok 7 /data-input-stream/read-lines-any 1047s ok 8 /data-input-stream/read-until 1047s # Test vector 0: part1 # part2 $ part3 ? part4 ? and #$?^ 1047s # Test vector 1: {"key": "value"}? and ? 1047s ok 9 /data-input-stream/read-upto 1047s ok - glib/data-input-stream.test 1047s ok 10 /data-input-stream/read-int 1047s # End of data-input-stream tests 1047s # Running test: glib/cxx-14.test 1047s ok - glib/cxx-14.test 1047s TAP version 14 1047s # random seed: R02Sa554182daf30837a698755983f9ee5b5 1047s 1..2 1047s # Start of gtask tests 1047s # 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. 1047s ok 1 /gtask/name 1047s # Start of name tests 1047s # 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. 1047s ok 2 /gtask/name/macro-wrapper 1047s # End of name tests 1047s # End of gtask tests 1047s # Running test: glib/cond.test 1047s TAP version 14 1047s # random seed: R02Sa78c211a4f2e619e39c36069da205dcc 1047s 1..4 1047s # Start of thread tests 1047s ok 1 /thread/cond1 1047s ok 2 /thread/cond2 1047s # Start of cond tests 1048s ok 3 /thread/cond/wait-until 1048s # slow test /thread/cond/wait-until executed in 1.02 secs 1048s # Start of wait-until tests 1048s # /thread/cond/wait-until/contended-and-interrupted summary: Check proper handling of errno in g_cond_wait_until with a contended mutex 1048s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/957 1049s ok 4 /thread/cond/wait-until/contended-and-interrupted 1049s # slow test /thread/cond/wait-until/contended-and-interrupted executed in 1.10 secs 1049s # End of wait-until tests 1049s # End of cond tests 1049s # End of thread tests 1049s ok - glib/cond.test 1049s # Running test: glib/strfuncs.test 1049s TAP version 14 1049s # random seed: R02S0f422d1de75c0db8271802acc9a31cad 1049s 1..51 1049s # Start of strfuncs tests 1049s ok 1 /strfuncs/ascii-strcasecmp 1049s ok 2 /strfuncs/ascii_strdown 1049s ok 3 /strfuncs/ascii_strdup 1049s ok 4 /strfuncs/ascii_strtod 1049s ok 5 /strfuncs/bounds-check 1049s ok 6 /strfuncs/has-prefix 1049s ok 7 /strfuncs/has-prefix-macro 1049s ok 8 /strfuncs/has-suffix 1049s ok 9 /strfuncs/has-suffix-macro 1049s ok 10 /strfuncs/memdup 1049s ok 11 /strfuncs/memdup2 1049s ok 12 /strfuncs/set_str 1049s ok 13 /strfuncs/stpcpy 1049s ok 14 /strfuncs/str_match_string 1050s ok - glib/strfuncs.test 1050s # Running test: glib/onceinit.test 1050s ok 15 /strfuncs/str_tokenize_and_fold 1050s ok 16 /strfuncs/strcanon 1050s ok 17 /strfuncs/strchomp 1050s ok 18 /strfuncs/strchug 1050s ok 19 /strfuncs/strcompress-strescape 1050s ok 20 /strfuncs/strconcat 1050s ok 21 /strfuncs/strdelimit 1050s ok 22 /strfuncs/strdup 1050s ok 23 /strfuncs/strdup-printf 1050s ok 24 /strfuncs/strdupv 1050s ok 25 /strfuncs/strerror 1050s ok 26 /strfuncs/strip-context 1050s ok 27 /strfuncs/strjoin 1050s ok 28 /strfuncs/strjoinv 1050s ok 29 /strfuncs/strlcat 1050s ok 30 /strfuncs/strlcpy 1050s ok 31 /strfuncs/strncasecmp 1050s ok 32 /strfuncs/strndup 1050s ok 33 /strfuncs/strnfill 1050s ok 34 /strfuncs/strreverse 1050s ok 35 /strfuncs/strsignal 1050s ok 36 /strfuncs/strsplit 1050s ok 37 /strfuncs/strsplit-set 1050s ok 38 /strfuncs/strstr 1050s ok 39 /strfuncs/strtod 1050s ok 40 /strfuncs/strtoull-strtoll 1050s ok 41 /strfuncs/strup 1050s ok 42 /strfuncs/strv-contains 1050s ok 43 /strfuncs/strv-equal 1050s ok 44 /strfuncs/strv-length 1050s ok 45 /strfuncs/test-is-to-digit 1050s ok 46 /strfuncs/transliteration 1050s # /strfuncs/str-equal summary: Test macro and function forms of g_str_equal() 1050s ok 47 /strfuncs/str-equal 1050s ok 48 /strfuncs/str-is-ascii 1050s # Start of ascii-string-to-num tests 1050s ok 49 /strfuncs/ascii-string-to-num/pathological 1050s ok 50 /strfuncs/ascii-string-to-num/usual 1050s # End of ascii-string-to-num tests 1050s # Start of strdup tests 1050s ok 51 /strfuncs/strdup/inline 1050s # End of strdup tests 1050s # End of strfuncs tests 1050s TAP version 14 1050s # random seed: R02S7d741d5a5b279c46ab4624e9da5509ff 1050s 1..1 1050s # Start of thread tests 1050s ok 1 /thread/onceinit 1050s # End of thread tests 1050s ok - glib/onceinit.test 1050s # Running test: glib/signals-refcount4.test 1050s TAP version 14 1050s # random seed: R02S96bdb545ff4fd75449a6bd48b937ee72 1050s 1..1 1050s # Start of gobject tests 1050s # Start of refcount tests 1050s # init 0xca843de7ade0 1050s # 1050s # init 0xca843de71610 1050s # 1052s # Executing: glib/signals-refcount4.test 1055s # dispose 0xca843de7ade0! 1055s # 1055s ok - glib/signals-refcount4.test 1055s # Running test: glib/regex.test 1055s # dispose 0xca843de71610! 1055s # 1055s ok 1 /gobject/refcount/signals 1055s # slow test /gobject/refcount/signals executed in 5.00 secs 1055s # End of refcount tests 1055s # End of gobject tests 1055s TAP version 14 1055s # random seed: R02S98d11b137401265a2a0f2a191ead6e1d 1055s 1..848 1055s # Start of regex tests 1055s ok 1 /regex/properties 1055s ok 2 /regex/class 1055s ok 3 /regex/lookahead 1055s ok 4 /regex/lookbehind 1055s ok 5 /regex/subpattern 1055s ok 6 /regex/condition 1055s ok 7 /regex/recursion 1055s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=640489 1055s ok 8 /regex/multiline 1055s ok 9 /regex/explicit-crlf 1055s ok 10 /regex/max-lookbehind 1055s ok 11 /regex/compile-errors 1055s ok 12 /regex/jit-unsupported-matching 1055s # /regex/unmatched-named-subpattern summary: Test that unmatched subpatterns can still be queried 1055s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2881 1055s ok 13 /regex/unmatched-named-subpattern 1055s # /regex/compiled-regex-after-jit-failure summary: Test that failed OPTIMIZE regex doesn't cause issues on subsequent matches 1055s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2824 1055s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 1055s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 1055s ok 14 /regex/compiled-regex-after-jit-failure 1055s # Start of new tests 1055s ok 15 /regex/new/1 1055s ok 16 /regex/new/2 1055s ok 17 /regex/new/3 1055s ok 18 /regex/new/4 1055s ok 19 /regex/new/5 1055s ok 20 /regex/new/6 1055s ok 21 /regex/new/7 1055s ok 22 /regex/new/8 1055s ok 23 /regex/new/9 1055s ok 24 /regex/new/10 1055s ok 25 /regex/new/11 1055s ok 26 /regex/new/12 1055s ok 27 /regex/new/13 1055s ok 28 /regex/new/14 1055s ok 29 /regex/new/15 1055s ok 30 /regex/new/16 1055s ok 31 /regex/new/17 1055s ok 32 /regex/new/18 1055s ok 33 /regex/new/19 1055s ok 34 /regex/new/71 1055s ok 35 /regex/new/80 1055s ok 36 /regex/new/82 1055s # End of new tests 1055s # Start of new-check-flags tests 1055s ok 37 /regex/new-check-flags/20 1055s ok 38 /regex/new-check-flags/21 1055s ok 39 /regex/new-check-flags/22 1055s ok 40 /regex/new-check-flags/23 1055s ok 41 /regex/new-check-flags/24 1055s ok 42 /regex/new-check-flags/25 1055s ok 43 /regex/new-check-flags/26 1055s ok 44 /regex/new-check-flags/27 1055s ok 45 /regex/new-check-flags/28 1055s ok 46 /regex/new-check-flags/29 1055s ok 47 /regex/new-check-flags/30 1055s ok 48 /regex/new-check-flags/31 1055s ok 49 /regex/new-check-flags/32 1055s ok 50 /regex/new-check-flags/33 1055s ok 51 /regex/new-check-flags/34 1055s ok 52 /regex/new-check-flags/35 1055s ok 53 /regex/new-check-flags/36 1055s # End of new-check-flags tests 1055s # Start of new-fail tests 1055s ok 54 /regex/new-fail/37 1055s ok 55 /regex/new-fail/38 1055s ok 56 /regex/new-fail/39 1055s ok 57 /regex/new-fail/40 1055s ok 58 /regex/new-fail/41 1055s ok 59 /regex/new-fail/42 1055s ok 60 /regex/new-fail/43 1055s ok 61 /regex/new-fail/44 1055s ok 62 /regex/new-fail/45 1055s ok 63 /regex/new-fail/46 1055s ok 64 /regex/new-fail/47 1055s ok 65 /regex/new-fail/48 1055s ok 66 /regex/new-fail/49 1055s ok 67 /regex/new-fail/50 1055s ok 68 /regex/new-fail/51 1055s ok 69 /regex/new-fail/52 1055s ok 70 /regex/new-fail/53 1055s ok 71 /regex/new-fail/54 1055s ok 72 /regex/new-fail/55 1055s ok 73 /regex/new-fail/56 1055s ok 74 /regex/new-fail/57 1055s ok 75 /regex/new-fail/58 1055s ok 76 /regex/new-fail/59 1055s ok 77 /regex/new-fail/60 1055s ok 78 /regex/new-fail/61 1055s ok 79 /regex/new-fail/62 1055s ok 80 /regex/new-fail/63 1055s ok 81 /regex/new-fail/64 1055s ok 82 /regex/new-fail/65 1055s ok 83 /regex/new-fail/66 1055s ok 84 /regex/new-fail/67 1055s ok 85 /regex/new-fail/68 1055s ok 86 /regex/new-fail/69 1055s ok 87 /regex/new-fail/70 1055s ok 88 /regex/new-fail/72 1055s ok 89 /regex/new-fail/73 1055s ok 90 /regex/new-fail/74 1055s ok 91 /regex/new-fail/75 1055s ok 92 /regex/new-fail/76 1055s ok 93 /regex/new-fail/77 1055s ok 94 /regex/new-fail/78 1055s ok 95 /regex/new-fail/79 1055s ok 96 /regex/new-fail/81 1055s ok 97 /regex/new-fail/83 1055s ok 98 /regex/new-fail/84 1055s ok 99 /regex/new-fail/85 1055s ok 100 /regex/new-fail/86 1055s ok 101 /regex/new-fail/87 1055s ok 102 /regex/new-fail/88 1055s ok 103 /regex/new-fail/89 1055s ok 104 /regex/new-fail/90 1055s ok 105 /regex/new-fail/91 1055s # End of new-fail tests 1055s # Start of match-simple tests 1055s ok 106 /regex/match-simple/92 1055s ok 107 /regex/match-simple/93 1055s ok 108 /regex/match-simple/94 1055s ok 109 /regex/match-simple/95 1055s ok 110 /regex/match-simple/96 1055s ok 111 /regex/match-simple/97 1055s ok 112 /regex/match-simple/98 1055s ok 113 /regex/match-simple/99 1055s ok 114 /regex/match-simple/100 1055s ok 115 /regex/match-simple/101 1055s ok 116 /regex/match-simple/102 1055s ok 117 /regex/match-simple/103 1055s ok 118 /regex/match-simple/104 1055s ok 119 /regex/match-simple/105 1055s ok 120 /regex/match-simple/106 1055s ok 121 /regex/match-simple/107 1055s ok 122 /regex/match-simple/108 1055s ok 123 /regex/match-simple/109 1055s ok 124 /regex/match-simple/110 1055s ok 125 /regex/match-simple/111 1055s ok 126 /regex/match-simple/112 1055s ok 127 /regex/match-simple/113 1055s ok 128 /regex/match-simple/114 1055s ok 129 /regex/match-simple/115 1055s ok 130 /regex/match-simple/116 1055s ok 131 /regex/match-simple/117 1055s ok 132 /regex/match-simple/118 1055s ok 133 /regex/match-simple/119 1055s ok 134 /regex/match-simple/120 1055s ok 135 /regex/match-simple/121 1055s ok 136 /regex/match-simple/122 1055s ok 137 /regex/match-simple/123 1055s ok 138 /regex/match-simple/124 1055s ok 139 /regex/match-simple/125 1055s ok 140 /regex/match-simple/126 1055s ok 141 /regex/match-simple/127 1055s ok 142 /regex/match-simple/128 1055s ok 143 /regex/match-simple/129 1055s ok 144 /regex/match-simple/130 1055s ok 145 /regex/match-simple/131 1055s ok 146 /regex/match-simple/132 1055s ok 147 /regex/match-simple/133 1055s ok 148 /regex/match-simple/134 1055s ok 149 /regex/match-simple/135 1055s ok 150 /regex/match-simple/136 1055s ok 151 /regex/match-simple/137 1055s ok 152 /regex/match-simple/138 1055s ok 153 /regex/match-simple/139 1055s ok 154 /regex/match-simple/140 1055s ok 155 /regex/match-simple/141 1055s ok 156 /regex/match-simple/142 1055s ok 157 /regex/match-simple/143 1055s ok 158 /regex/match-simple/144 1055s ok 159 /regex/match-simple/145 1055s ok 160 /regex/match-simple/146 1055s ok 161 /regex/match-simple/147 1055s ok 162 /regex/match-simple/148 1055s ok 163 /regex/match-simple/149 1055s ok 164 /regex/match-simple/150 1055s ok 165 /regex/match-simple/151 1055s ok 166 /regex/match-simple/152 1055s ok 167 /regex/match-simple/153 1055s ok 168 /regex/match-simple/154 1055s ok 169 /regex/match-simple/155 1055s ok 170 /regex/match-simple/156 1055s ok 171 /regex/match-simple/157 1055s ok 172 /regex/match-simple/158 1055s ok 173 /regex/match-simple/159 1055s ok 174 /regex/match-simple/160 1055s ok 175 /regex/match-simple/161 1055s ok 176 /regex/match-simple/162 1055s ok 177 /regex/match-simple/163 1055s ok 178 /regex/match-simple/164 1055s # End of match-simple tests 1055s # Start of match-simple-optimized tests 1055s ok 179 /regex/match-simple-optimized/92 1055s ok 180 /regex/match-simple-optimized/93 1055s ok 181 /regex/match-simple-optimized/94 1055s ok 182 /regex/match-simple-optimized/95 1055s ok 183 /regex/match-simple-optimized/96 1055s ok 184 /regex/match-simple-optimized/97 1055s ok 185 /regex/match-simple-optimized/98 1055s ok 186 /regex/match-simple-optimized/99 1055s ok 187 /regex/match-simple-optimized/100 1055s ok 188 /regex/match-simple-optimized/101 1055s ok 189 /regex/match-simple-optimized/102 1055s ok 190 /regex/match-simple-optimized/103 1055s ok 191 /regex/match-simple-optimized/104 1055s ok 192 /regex/match-simple-optimized/105 1055s ok 193 /regex/match-simple-optimized/106 1055s ok 194 /regex/match-simple-optimized/107 1055s ok 195 /regex/match-simple-optimized/108 1055s ok 196 /regex/match-simple-optimized/109 1055s ok 197 /regex/match-simple-optimized/110 1055s ok 198 /regex/match-simple-optimized/111 1055s ok 199 /regex/match-simple-optimized/112 1055s ok 200 /regex/match-simple-optimized/113 1055s ok 201 /regex/match-simple-optimized/114 1055s ok 202 /regex/match-simple-optimized/115 1055s ok 203 /regex/match-simple-optimized/116 1055s ok 204 /regex/match-simple-optimized/117 1055s ok 205 /regex/match-simple-optimized/118 1055s ok 206 /regex/match-simple-optimized/119 1055s ok 207 /regex/match-simple-optimized/120 1055s ok 208 /regex/match-simple-optimized/121 1055s ok 209 /regex/match-simple-optimized/122 1055s ok 210 /regex/match-simple-optimized/123 1055s ok 211 /regex/match-simple-optimized/124 1055s ok 212 /regex/match-simple-optimized/125 1055s ok 213 /regex/match-simple-optimized/126 1055s ok 214 /regex/match-simple-optimized/127 1055s ok 215 /regex/match-simple-optimized/128 1055s ok 216 /regex/match-simple-optimized/129 1055s ok 217 /regex/match-simple-optimized/130 1055s ok 218 /regex/match-simple-optimized/131 1055s ok 219 /regex/match-simple-optimized/132 1055s ok 220 /regex/match-simple-optimized/133 1055s ok 221 /regex/match-simple-optimized/134 1055s ok 222 /regex/match-simple-optimized/135 1055s ok 223 /regex/match-simple-optimized/136 1055s ok 224 /regex/match-simple-optimized/137 1055s ok 225 /regex/match-simple-optimized/138 1055s ok 226 /regex/match-simple-optimized/139 1055s ok 227 /regex/match-simple-optimized/140 1055s ok 228 /regex/match-simple-optimized/141 1055s ok 229 /regex/match-simple-optimized/142 1055s ok 230 /regex/match-simple-optimized/143 1055s ok 231 /regex/match-simple-optimized/144 1055s ok 232 /regex/match-simple-optimized/145 1055s ok 233 /regex/match-simple-optimized/146 1055s ok 234 /regex/match-simple-optimized/147 1055s ok 235 /regex/match-simple-optimized/148 1055s ok 236 /regex/match-simple-optimized/149 1055s ok 237 /regex/match-simple-optimized/150 1055s ok 238 /regex/match-simple-optimized/151 1055s ok 239 /regex/match-simple-optimized/152 1055s ok 240 /regex/match-simple-optimized/153 1055s ok 241 /regex/match-simple-optimized/154 1055s ok 242 /regex/match-simple-optimized/155 1055s ok 243 /regex/match-simple-optimized/156 1055s ok 244 /regex/match-simple-optimized/157 1055s ok 245 /regex/match-simple-optimized/158 1055s ok 246 /regex/match-simple-optimized/159 1055s ok 247 /regex/match-simple-optimized/160 1055s ok 248 /regex/match-simple-optimized/161 1055s ok 249 /regex/match-simple-optimized/162 1055s ok 250 /regex/match-simple-optimized/163 1055s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 1055s ok 251 /regex/match-simple-optimized/164 1055s # End of match-simple-optimized tests 1055s # Start of match tests 1055s ok 252 /regex/match/165 1055s ok 253 /regex/match/166 1055s ok 254 /regex/match/167 1055s ok 255 /regex/match/168 1055s ok 256 /regex/match/169 1055s ok 257 /regex/match/170 1055s ok 258 /regex/match/171 1055s ok 259 /regex/match/172 1055s ok 260 /regex/match/173 1055s ok 261 /regex/match/174 1055s ok 262 /regex/match/175 1055s ok 263 /regex/match/176 1055s ok 264 /regex/match/177 1055s ok 265 /regex/match/178 1055s ok 266 /regex/match/179 1055s ok 267 /regex/match/180 1055s ok 268 /regex/match/181 1055s ok 269 /regex/match/182 1055s ok 270 /regex/match/183 1055s ok 271 /regex/match/184 1055s ok 272 /regex/match/185 1055s ok 273 /regex/match/186 1055s ok 274 /regex/match/187 1055s ok 275 /regex/match/188 1055s ok 276 /regex/match/189 1055s ok 277 /regex/match/190 1055s ok 278 /regex/match/191 1055s ok 279 /regex/match/192 1055s ok 280 /regex/match/193 1055s ok 281 /regex/match/194 1055s ok 282 /regex/match/195 1055s ok 283 /regex/match/196 1055s ok 284 /regex/match/197 1055s ok 285 /regex/match/198 1055s ok 286 /regex/match/199 1055s ok 287 /regex/match/200 1055s ok 288 /regex/match/201 1055s ok 289 /regex/match/202 1055s ok 290 /regex/match/203 1055s ok 291 /regex/match/204 1055s ok 292 /regex/match/205 1055s ok 293 /regex/match/206 1055s ok 294 /regex/match/207 1055s ok 295 /regex/match/208 1055s ok 296 /regex/match/209 1055s ok 297 /regex/match/210 1055s ok 298 /regex/match/211 1055s ok 299 /regex/match/212 1055s ok 300 /regex/match/213 1055s ok 301 /regex/match/214 1055s ok 302 /regex/match/215 1055s ok 303 /regex/match/216 1055s ok 304 /regex/match/217 1055s ok 305 /regex/match/218 1055s ok 306 /regex/match/219 1055s ok 307 /regex/match/220 1055s ok 308 /regex/match/221 1055s ok 309 /regex/match/222 1055s ok 310 /regex/match/223 1055s ok 311 /regex/match/224 1055s ok 312 /regex/match/225 1055s ok 313 /regex/match/226 1055s ok 314 /regex/match/227 1055s ok 315 /regex/match/228 1055s ok 316 /regex/match/229 1055s ok 317 /regex/match/230 1055s ok 318 /regex/match/231 1055s ok 319 /regex/match/232 1055s ok 320 /regex/match/233 1055s ok 321 /regex/match/234 1055s ok 322 /regex/match/235 1055s ok 323 /regex/match/236 1055s ok 324 /regex/match/237 1055s ok 325 /regex/match/238 1055s ok 326 /regex/match/239 1055s ok 327 /regex/match/240 1055s ok 328 /regex/match/241 1055s ok 329 /regex/match/242 1055s ok 330 /regex/match/243 1055s ok 331 /regex/match/244 1055s ok 332 /regex/match/245 1055s ok 333 /regex/match/246 1055s ok 334 /regex/match/partial281 1055s ok 335 /regex/match/partial282 1055s ok 336 /regex/match/partial283 1055s ok 337 /regex/match/partial284 1055s ok 338 /regex/match/partial285 1055s ok 339 /regex/match/partial286 1055s ok 340 /regex/match/partial287 1055s ok 341 /regex/match/partial288 1055s ok 342 /regex/match/partial289 1055s ok 343 /regex/match/partial290 1055s ok 344 /regex/match/partial291 1055s ok 345 /regex/match/partial292 1055s ok 346 /regex/match/partial293 1055s ok 347 /regex/match/partial294 1055s ok 348 /regex/match/partial295 1055s ok 349 /regex/match/partial296 1055s ok 350 /regex/match/partial297 1055s ok 351 /regex/match/partial298 1055s ok 352 /regex/match/partial299 1055s ok 353 /regex/match/partial300 1055s ok 354 /regex/match/partial301 1055s ok 355 /regex/match/partial302 1055s # Start of next0 tests 1055s ok 356 /regex/match/next0/247 1055s ok 357 /regex/match/next0/248 1055s ok 358 /regex/match/next0/249 1055s ok 359 /regex/match/next0/250 1055s # End of next0 tests 1055s # Start of next1 tests 1055s ok 360 /regex/match/next1/251 1055s ok 361 /regex/match/next1/252 1055s ok 362 /regex/match/next1/253 1055s ok 363 /regex/match/next1/254 1055s ok 364 /regex/match/next1/255 1055s # End of next1 tests 1055s # Start of next2 tests 1055s ok 365 /regex/match/next2/256 1055s ok 366 /regex/match/next2/257 1055s ok 367 /regex/match/next2/258 1055s ok 368 /regex/match/next2/259 1055s ok 369 /regex/match/next2/260 1055s ok 370 /regex/match/next2/261 1055s ok 371 /regex/match/next2/262 1055s ok 372 /regex/match/next2/263 1055s # End of next2 tests 1055s # Start of next3 tests 1055s ok 373 /regex/match/next3/264 1055s ok 374 /regex/match/next3/265 1055s ok 375 /regex/match/next3/266 1055s ok 376 /regex/match/next3/267 1055s ok 377 /regex/match/next3/268 1055s ok 378 /regex/match/next3/269 1055s # End of next3 tests 1055s # Start of next4 tests 1055s ok 379 /regex/match/next4/270 1055s # End of next4 tests 1055s # Start of count tests 1055s ok 380 /regex/match/count/271 1055s ok 381 /regex/match/count/272 1055s ok 382 /regex/match/count/273 1055s ok 383 /regex/match/count/274 1055s ok 384 /regex/match/count/275 1055s ok 385 /regex/match/count/276 1055s ok 386 /regex/match/count/277 1055s ok 387 /regex/match/count/278 1055s ok 388 /regex/match/count/279 1055s ok 389 /regex/match/count/280 1055s # End of count tests 1055s # Start of count-optimized tests 1055s ok 390 /regex/match/count-optimized/271 1055s ok 391 /regex/match/count-optimized/272 1055s ok 392 /regex/match/count-optimized/273 1055s ok 393 /regex/match/count-optimized/274 1055s ok 394 /regex/match/count-optimized/275 1055s ok 395 /regex/match/count-optimized/276 1055s ok 396 /regex/match/count-optimized/277 1055s ok 397 /regex/match/count-optimized/278 1055s ok 398 /regex/match/count-optimized/279 1055s ok 399 /regex/match/count-optimized/280 1055s # End of count-optimized tests 1055s # Start of partial-optimized tests 1055s ok 400 /regex/match/partial-optimized/281 1055s ok 401 /regex/match/partial-optimized/282 1055s ok 402 /regex/match/partial-optimized/283 1055s ok 403 /regex/match/partial-optimized/284 1055s ok 404 /regex/match/partial-optimized/285 1055s ok 405 /regex/match/partial-optimized/286 1055s ok 406 /regex/match/partial-optimized/287 1055s ok 407 /regex/match/partial-optimized/288 1055s ok 408 /regex/match/partial-optimized/289 1055s ok 409 /regex/match/partial-optimized/290 1055s ok 410 /regex/match/partial-optimized/291 1055s ok 411 /regex/match/partial-optimized/292 1055s ok 412 /regex/match/partial-optimized/293 1055s ok 413 /regex/match/partial-optimized/294 1055s ok 414 /regex/match/partial-optimized/295 1055s ok 415 /regex/match/partial-optimized/296 1055s ok 416 /regex/match/partial-optimized/297 1055s ok 417 /regex/match/partial-optimized/298 1055s ok 418 /regex/match/partial-optimized/299 1055s ok 419 /regex/match/partial-optimized/300 1055s ok 420 /regex/match/partial-optimized/301 1055s ok 421 /regex/match/partial-optimized/302 1055s # End of partial-optimized tests 1055s # Start of subpattern tests 1055s ok 422 /regex/match/subpattern/303 1055s ok 423 /regex/match/subpattern/304 1055s ok 424 /regex/match/subpattern/305 1055s ok 425 /regex/match/subpattern/306 1055s ok 426 /regex/match/subpattern/307 1055s ok 427 /regex/match/subpattern/308 1055s ok 428 /regex/match/subpattern/309 1055s ok 429 /regex/match/subpattern/310 1055s ok 430 /regex/match/subpattern/311 1055s ok 431 /regex/match/subpattern/312 1055s ok 432 /regex/match/subpattern/313 1055s ok 433 /regex/match/subpattern/314 1055s ok 434 /regex/match/subpattern/315 1055s # Start of named tests 1055s # Start of dupnames tests 1055s ok 435 /regex/match/subpattern/named/dupnames/325 1055s ok 436 /regex/match/subpattern/named/dupnames/326 1055s ok 437 /regex/match/subpattern/named/dupnames/327 1055s ok 438 /regex/match/subpattern/named/dupnames/328 1055s ok 439 /regex/match/subpattern/named/dupnames/329 1055s # End of dupnames tests 1055s # End of named tests 1055s # End of subpattern tests 1055s # Start of subpattern-optimized tests 1055s ok 440 /regex/match/subpattern-optimized/303 1055s ok 441 /regex/match/subpattern-optimized/304 1055s ok 442 /regex/match/subpattern-optimized/305 1055s ok 443 /regex/match/subpattern-optimized/306 1055s ok 444 /regex/match/subpattern-optimized/307 1055s ok 445 /regex/match/subpattern-optimized/308 1055s ok 446 /regex/match/subpattern-optimized/309 1055s ok 447 /regex/match/subpattern-optimized/310 1055s ok 448 /regex/match/subpattern-optimized/311 1055s ok 449 /regex/match/subpattern-optimized/312 1055s ok 450 /regex/match/subpattern-optimized/313 1055s ok 451 /regex/match/subpattern-optimized/314 1055s ok 452 /regex/match/subpattern-optimized/315 1055s # End of subpattern-optimized tests 1055s # Start of named tests 1055s # Start of subpattern tests 1055s ok 453 /regex/match/named/subpattern/316 1055s ok 454 /regex/match/named/subpattern/317 1055s ok 455 /regex/match/named/subpattern/318 1055s ok 456 /regex/match/named/subpattern/319 1055s ok 457 /regex/match/named/subpattern/320 1055s ok 458 /regex/match/named/subpattern/321 1055s ok 459 /regex/match/named/subpattern/322 1055s ok 460 /regex/match/named/subpattern/323 1055s ok 461 /regex/match/named/subpattern/324 1055s ok 462 /regex/match/named/subpattern/330 1055s ok 463 /regex/match/named/subpattern/331 1055s ok 464 /regex/match/named/subpattern/332 1055s ok 465 /regex/match/named/subpattern/333 1055s ok 466 /regex/match/named/subpattern/334 1055s # End of subpattern tests 1055s # End of named tests 1055s # End of match tests 1055s # Start of match-optimized tests 1055s ok 467 /regex/match-optimized/165 1055s ok 468 /regex/match-optimized/166 1055s ok 469 /regex/match-optimized/167 1055s ok 470 /regex/match-optimized/168 1055s ok 471 /regex/match-optimized/169 1055s ok 472 /regex/match-optimized/170 1055s ok 473 /regex/match-optimized/171 1055s ok 474 /regex/match-optimized/172 1055s ok 475 /regex/match-optimized/173 1055s ok 476 /regex/match-optimized/174 1055s ok 477 /regex/match-optimized/175 1055s ok 478 /regex/match-optimized/176 1055s ok 479 /regex/match-optimized/177 1055s ok 480 /regex/match-optimized/178 1055s ok 481 /regex/match-optimized/179 1055s ok 482 /regex/match-optimized/180 1055s ok 483 /regex/match-optimized/181 1055s ok 484 /regex/match-optimized/182 1055s ok 485 /regex/match-optimized/183 1055s ok 486 /regex/match-optimized/184 1055s ok 487 /regex/match-optimized/185 1055s ok 488 /regex/match-optimized/186 1055s ok 489 /regex/match-optimized/187 1055s ok 490 /regex/match-optimized/188 1055s ok 491 /regex/match-optimized/189 1055s ok 492 /regex/match-optimized/190 1055s ok 493 /regex/match-optimized/191 1055s ok 494 /regex/match-optimized/192 1055s ok 495 /regex/match-optimized/193 1055s ok 496 /regex/match-optimized/194 1055s ok 497 /regex/match-optimized/195 1055s ok 498 /regex/match-optimized/196 1055s ok 499 /regex/match-optimized/197 1055s ok 500 /regex/match-optimized/198 1055s ok 501 /regex/match-optimized/199 1055s ok 502 /regex/match-optimized/200 1055s ok 503 /regex/match-optimized/201 1055s ok 504 /regex/match-optimized/202 1055s ok 505 /regex/match-optimized/203 1055s ok 506 /regex/match-optimized/204 1055s ok 507 /regex/match-optimized/205 1055s ok 508 /regex/match-optimized/206 1055s ok 509 /regex/match-optimized/207 1055s ok 510 /regex/match-optimized/208 1055s ok 511 /regex/match-optimized/209 1055s ok 512 /regex/match-optimized/210 1055s ok 513 /regex/match-optimized/211 1055s ok 514 /regex/match-optimized/212 1055s ok 515 /regex/match-optimized/213 1055s ok 516 /regex/match-optimized/214 1055s ok 517 /regex/match-optimized/215 1055s ok 518 /regex/match-optimized/216 1055s ok 519 /regex/match-optimized/217 1055s ok 520 /regex/match-optimized/218 1055s ok 521 /regex/match-optimized/219 1055s ok 522 /regex/match-optimized/220 1055s ok 523 /regex/match-optimized/221 1055s ok 524 /regex/match-optimized/222 1055s ok 525 /regex/match-optimized/223 1055s ok 526 /regex/match-optimized/224 1055s ok 527 /regex/match-optimized/225 1055s ok 528 /regex/match-optimized/226 1055s ok 529 /regex/match-optimized/227 1055s ok 530 /regex/match-optimized/228 1055s ok 531 /regex/match-optimized/229 1055s ok 532 /regex/match-optimized/230 1055s ok 533 /regex/match-optimized/231 1055s ok 534 /regex/match-optimized/232 1055s ok 535 /regex/match-optimized/233 1055s ok 536 /regex/match-optimized/234 1055s ok 537 /regex/match-optimized/235 1055s ok 538 /regex/match-optimized/236 1055s ok 539 /regex/match-optimized/237 1055s ok 540 /regex/match-optimized/238 1055s ok 541 /regex/match-optimized/239 1055s ok 542 /regex/match-optimized/240 1055s ok 543 /regex/match-optimized/241 1055s ok 544 /regex/match-optimized/242 1055s ok 545 /regex/match-optimized/243 1055s ok 546 /regex/match-optimized/244 1055s ok 547 /regex/match-optimized/245 1055s ok 548 /regex/match-optimized/246 1055s # End of match-optimized tests 1055s # Start of fetch-all0 tests 1055s ok 549 /regex/fetch-all0/335 1055s ok 550 /regex/fetch-all0/336 1055s # End of fetch-all0 tests 1055s # Start of fetch-all1 tests 1055s ok 551 /regex/fetch-all1/337 1055s ok 552 /regex/fetch-all1/338 1055s ok 553 /regex/fetch-all1/339 1055s # End of fetch-all1 tests 1055s # Start of fetch-all2 tests 1055s ok 554 /regex/fetch-all2/340 1055s ok 555 /regex/fetch-all2/341 1055s ok 556 /regex/fetch-all2/342 1055s # End of fetch-all2 tests 1055s # Start of fetch-all3 tests 1055s ok 557 /regex/fetch-all3/343 1055s ok 558 /regex/fetch-all3/344 1055s ok 559 /regex/fetch-all3/345 1055s ok 560 /regex/fetch-all3/346 1055s ok 561 /regex/fetch-all3/347 1055s # End of fetch-all3 tests 1055s # Start of split tests 1055s # Start of simple0 tests 1055s ok 562 /regex/split/simple0/348 1055s ok 563 /regex/split/simple0/349 1055s ok 564 /regex/split/simple0/364 1055s ok 565 /regex/split/simple0/365 1055s # End of simple0 tests 1055s # Start of simple1 tests 1055s ok 566 /regex/split/simple1/350 1055s ok 567 /regex/split/simple1/351 1055s # End of simple1 tests 1055s # Start of simple2 tests 1055s ok 568 /regex/split/simple2/352 1055s ok 569 /regex/split/simple2/358 1055s ok 570 /regex/split/simple2/360 1055s # End of simple2 tests 1055s # Start of simple3 tests 1055s ok 571 /regex/split/simple3/353 1055s ok 572 /regex/split/simple3/354 1055s ok 573 /regex/split/simple3/355 1055s ok 574 /regex/split/simple3/356 1055s ok 575 /regex/split/simple3/357 1055s ok 576 /regex/split/simple3/359 1055s ok 577 /regex/split/simple3/361 1055s ok 578 /regex/split/simple3/362 1055s ok 579 /regex/split/simple3/363 1055s # End of simple3 tests 1055s # End of split tests 1055s # Start of split0 tests 1055s ok 580 /regex/split0/366 1055s ok 581 /regex/split0/368 1055s # End of split0 tests 1055s # Start of full-split0 tests 1055s ok 582 /regex/full-split0/367 1055s ok 583 /regex/full-split0/369 1055s ok 584 /regex/full-split0/370 1055s ok 585 /regex/full-split0/371 1055s ok 586 /regex/full-split0/372 1055s # End of full-split0 tests 1055s # Start of split1 tests 1055s ok 587 /regex/split1/373 1055s ok 588 /regex/split1/376 1055s # End of split1 tests 1055s # Start of full-split1 tests 1055s ok 589 /regex/full-split1/374 1055s ok 590 /regex/full-split1/375 1055s ok 591 /regex/full-split1/377 1055s ok 592 /regex/full-split1/378 1055s ok 593 /regex/full-split1/404 1055s # End of full-split1 tests 1055s # Start of split2 tests 1055s ok 594 /regex/split2/379 1055s ok 595 /regex/split2/383 1055s ok 596 /regex/split2/395 1055s # End of split2 tests 1055s # Start of full-split2 tests 1055s ok 597 /regex/full-split2/380 1055s ok 598 /regex/full-split2/381 1055s ok 599 /regex/full-split2/382 1055s ok 600 /regex/full-split2/384 1055s ok 601 /regex/full-split2/396 1055s ok 602 /regex/full-split2/399 1055s ok 603 /regex/full-split2/405 1055s # End of full-split2 tests 1055s # Start of split3 tests 1055s ok 604 /regex/split3/385 1055s ok 605 /regex/split3/387 1055s ok 606 /regex/split3/389 1055s ok 607 /regex/split3/391 1055s ok 608 /regex/split3/393 1055s ok 609 /regex/split3/397 1055s ok 610 /regex/split3/400 1055s ok 611 /regex/split3/402 1055s # End of split3 tests 1055s # Start of full-split3 tests 1055s ok 612 /regex/full-split3/386 1055s ok 613 /regex/full-split3/388 1055s ok 614 /regex/full-split3/390 1055s ok 615 /regex/full-split3/392 1055s ok 616 /regex/full-split3/394 1055s ok 617 /regex/full-split3/398 1055s ok 618 /regex/full-split3/401 1055s ok 619 /regex/full-split3/403 1055s ok 620 /regex/full-split3/406 1055s ok 621 /regex/full-split3/407 1055s # End of full-split3 tests 1055s # Start of check-repacement tests 1055s ok 622 /regex/check-repacement/408 1055s ok 623 /regex/check-repacement/409 1055s ok 624 /regex/check-repacement/410 1055s ok 625 /regex/check-repacement/411 1055s ok 626 /regex/check-repacement/412 1055s ok 627 /regex/check-repacement/413 1055s ok 628 /regex/check-repacement/414 1055s ok 629 /regex/check-repacement/415 1055s # End of check-repacement tests 1055s # Start of expand tests 1055s ok 630 /regex/expand/416 1055s ok 631 /regex/expand/417 1055s ok 632 /regex/expand/418 1055s ok 633 /regex/expand/419 1055s ok 634 /regex/expand/420 1055s ok 635 /regex/expand/421 1055s ok 636 /regex/expand/422 1055s ok 637 /regex/expand/423 1055s ok 638 /regex/expand/424 1055s ok 639 /regex/expand/425 1055s ok 640 /regex/expand/426 1055s ok 641 /regex/expand/427 1055s ok 642 /regex/expand/428 1055s ok 643 /regex/expand/429 1055s ok 644 /regex/expand/430 1055s ok 645 /regex/expand/431 1055s ok 646 /regex/expand/432 1055s ok 647 /regex/expand/433 1055s ok 648 /regex/expand/434 1055s ok 649 /regex/expand/435 1055s ok 650 /regex/expand/436 1055s ok 651 /regex/expand/437 1055s ok 652 /regex/expand/438 1055s ok 653 /regex/expand/439 1055s ok 654 /regex/expand/440 1055s ok 655 /regex/expand/441 1055s ok 656 /regex/expand/442 1055s ok 657 /regex/expand/443 1055s ok 658 /regex/expand/444 1055s ok 659 /regex/expand/445 1055s ok 660 /regex/expand/446 1055s ok 661 /regex/expand/447 1055s ok 662 /regex/expand/448 1055s ok 663 /regex/expand/449 1055s ok 664 /regex/expand/450 1055s ok 665 /regex/expand/451 1055s ok 666 /regex/expand/452 1055s ok 667 /regex/expand/453 1055s ok 668 /regex/expand/454 1055s ok 669 /regex/expand/455 1055s ok 670 /regex/expand/456 1055s ok 671 /regex/expand/457 1055s ok 672 /regex/expand/458 1055s ok 673 /regex/expand/459 1055s ok 674 /regex/expand/460 1055s ok 675 /regex/expand/461 1055s ok 676 /regex/expand/462 1055s ok 677 /regex/expand/463 1055s ok 678 /regex/expand/464 1055s ok 679 /regex/expand/465 1055s ok 680 /regex/expand/466 1055s ok 681 /regex/expand/467 1055s ok 682 /regex/expand/468 1055s ok 683 /regex/expand/469 1055s ok 684 /regex/expand/470 1055s ok 685 /regex/expand/471 1055s ok 686 /regex/expand/472 1055s ok 687 /regex/expand/473 1055s ok 688 /regex/expand/474 1055s ok 689 /regex/expand/475 1055s ok 690 /regex/expand/476 1055s ok 691 /regex/expand/477 1055s ok 692 /regex/expand/478 1055s ok 693 /regex/expand/479 1055s ok 694 /regex/expand/480 1055s ok 695 /regex/expand/481 1055s # End of expand tests 1055s # Start of replace tests 1055s ok 696 /regex/replace/482 1055s ok 697 /regex/replace/483 1055s ok 698 /regex/replace/484 1055s ok 699 /regex/replace/485 1055s ok 700 /regex/replace/486 1055s ok 701 /regex/replace/487 1055s ok 702 /regex/replace/488 1055s ok 703 /regex/replace/489 1055s ok 704 /regex/replace/490 1055s ok 705 /regex/replace/491 1055s ok 706 /regex/replace/492 1055s ok 707 /regex/replace/493 1055s ok 708 /regex/replace/494 1055s ok 709 /regex/replace/495 1055s ok 710 /regex/replace/496 1055s ok 711 /regex/replace/497 1055s ok 712 /regex/replace/498 1055s ok 713 /regex/replace/499 1055s ok 714 /regex/replace/500 1055s ok 715 /regex/replace/501 1055s ok 716 /regex/replace/502 1055s ok 717 /regex/replace/503 1055s ok 718 /regex/replace/504 1055s ok 719 /regex/replace/505 1055s ok 720 /regex/replace/506 1055s ok 721 /regex/replace/507 1055s ok 722 /regex/replace/508 1055s ok 723 /regex/replace/509 1055s # End of replace tests 1055s # Start of replace-optimized tests 1055s ok 724 /regex/replace-optimized/482 1055s ok 725 /regex/replace-optimized/483 1055s ok 726 /regex/replace-optimized/484 1055s ok 727 /regex/replace-optimized/485 1055s ok 728 /regex/replace-optimized/486 1055s ok 729 /regex/replace-optimized/487 1055s ok 730 /regex/replace-optimized/488 1055s ok 731 /regex/replace-optimized/489 1055s ok 732 /regex/replace-optimized/490 1055s ok 733 /regex/replace-optimized/491 1055s ok 734 /regex/replace-optimized/492 1055s ok 735 /regex/replace-optimized/493 1055s ok 736 /regex/replace-optimized/494 1055s ok 737 /regex/replace-optimized/495 1055s ok 738 /regex/replace-optimized/496 1055s ok 739 /regex/replace-optimized/497 1055s ok 740 /regex/replace-optimized/498 1055s ok 741 /regex/replace-optimized/499 1055s ok 742 /regex/replace-optimized/500 1055s ok 743 /regex/replace-optimized/501 1055s ok 744 /regex/replace-optimized/502 1055s ok 745 /regex/replace-optimized/503 1055s ok 746 /regex/replace-optimized/504 1055s ok 747 /regex/replace-optimized/505 1055s ok 748 /regex/replace-optimized/506 1055s ok 749 /regex/replace-optimized/507 1055s ok 750 /regex/replace-optimized/508 1055s ok 751 /regex/replace-optimized/509 1055s # End of replace-optimized tests 1055s # Start of replace-literally tests 1055s ok 752 /regex/replace-literally/510 1055s ok 753 /regex/replace-literally/511 1055s ok 754 /regex/replace-literally/512 1055s ok 755 /regex/replace-literally/513 1055s ok 756 /regex/replace-literally/514 1055s ok 757 /regex/replace-literally/515 1055s ok 758 /regex/replace-literally/516 1055s ok 759 /regex/replace-literally/517 1055s ok 760 /regex/replace-literally/518 1055s ok 761 /regex/replace-literally/519 1055s ok 762 /regex/replace-literally/520 1055s ok 763 /regex/replace-literally/521 1055s ok 764 /regex/replace-literally/522 1055s ok 765 /regex/replace-literally/523 1055s ok 766 /regex/replace-literally/524 1055s ok 767 /regex/replace-literally/525 1055s ok 768 /regex/replace-literally/526 1055s ok 769 /regex/replace-literally/527 1055s ok 770 /regex/replace-literally/528 1055s ok 771 /regex/replace-literally/529 1055s # End of replace-literally tests 1055s # Start of string-number tests 1055s ok 772 /regex/string-number/530 1055s ok 773 /regex/string-number/531 1055s ok 774 /regex/string-number/532 1055s ok 775 /regex/string-number/533 1055s ok 776 /regex/string-number/534 1055s ok 777 /regex/string-number/535 1055s ok 778 /regex/string-number/536 1055s ok 779 /regex/string-number/537 1055s ok 780 /regex/string-number/538 1055s ok 781 /regex/string-number/539 1055s ok 782 /regex/string-number/540 1055s ok 783 /regex/string-number/541 1055s ok 784 /regex/string-number/542 1055s ok 785 /regex/string-number/543 1055s ok 786 /regex/string-number/544 1055s # End of string-number tests 1055s # Start of escape_nul tests 1055s ok 787 /regex/escape_nul/545 1055s ok 788 /regex/escape_nul/546 1055s ok 789 /regex/escape_nul/547 1055s ok 790 /regex/escape_nul/548 1055s ok 791 /regex/escape_nul/549 1055s ok 792 /regex/escape_nul/550 1055s ok 793 /regex/escape_nul/551 1055s ok 794 /regex/escape_nul/552 1055s ok 795 /regex/escape_nul/553 1055s ok 796 /regex/escape_nul/554 1055s ok 797 /regex/escape_nul/555 1055s ok 798 /regex/escape_nul/556 1055s ok 799 /regex/escape_nul/557 1055s ok 800 /regex/escape_nul/558 1055s ok 801 /regex/escape_nul/559 1055s # End of escape_nul tests 1055s # Start of escape tests 1055s ok 802 /regex/escape/560 1055s ok 803 /regex/escape/561 1055s ok 804 /regex/escape/562 1055s ok 805 /regex/escape/563 1055s ok 806 /regex/escape/564 1055s ok 807 /regex/escape/565 1055s ok 808 /regex/escape/566 1055s ok 809 /regex/escape/567 1055s ok 810 /regex/escape/568 1055s ok 811 /regex/escape/569 1055s ok 812 /regex/escape/570 1055s ok 813 /regex/escape/571 1055s ok 814 /regex/escape/572 1055s ok 815 /regex/escape/573 1055s ok 816 /regex/escape/574 1055s ok 817 /regex/escape/575 1055s ok 818 /regex/escape/576 1055s ok 819 /regex/escape/577 1055s # End of escape tests 1055s # Start of match-all0 tests 1055s ok 820 /regex/match-all0/578 1055s ok 821 /regex/match-all0/580 1055s # End of match-all0 tests 1055s # Start of match-all-full0 tests 1055s ok 822 /regex/match-all-full0/579 1055s ok 823 /regex/match-all-full0/581 1055s ok 824 /regex/match-all-full0/582 1055s ok 825 /regex/match-all-full0/583 1055s # End of match-all-full0 tests 1055s # Start of match-all1 tests 1055s ok 826 /regex/match-all1/584 1055s ok 827 /regex/match-all1/586 1055s ok 828 /regex/match-all1/591 1055s # End of match-all1 tests 1055s # Start of match-all-full1 tests 1055s ok 829 /regex/match-all-full1/585 1055s ok 830 /regex/match-all-full1/587 1055s ok 831 /regex/match-all-full1/588 1055s ok 832 /regex/match-all-full1/589 1055s ok 833 /regex/match-all-full1/590 1055s ok 834 /regex/match-all-full1/592 1055s # End of match-all-full1 tests 1055s # Start of match-all2 tests 1055s ok 835 /regex/match-all2/593 1055s ok 836 /regex/match-all2/595 1055s ok 837 /regex/match-all2/597 1055s # End of match-all2 tests 1055s # Start of match-all-full2 tests 1055s ok 838 /regex/match-all-full2/594 1055s ok 839 /regex/match-all-full2/596 1055s ok 840 /regex/match-all-full2/598 1055s # End of match-all-full2 tests 1055s # Start of match-all3 tests 1055s ok 841 /regex/match-all3/599 1055s ok 842 /regex/match-all3/601 1055s # End of match-all3 tests 1055s # Start of match-all-full3 tests 1055s ok 843 /regex/match-all-full3/600 1055s ok 844 /regex/match-all-full3/602 1055s # End of match-all-full3 tests 1055s # Start of match-notempty tests 1055s ok 845 /regex/match-notempty/603 1055s # End of match-notempty tests 1055s # Start of match-notempty-optimized tests 1055s ok 846 /regex/match-notempty-optimized/603 1055s # End of match-notempty-optimized tests 1055s # Start of match-notempty-atstart tests 1055s ok 847 /regex/match-notempty-atstart/604 1055s # End of match-notempty-atstart tests 1055s # Start of match-notempty-atstart-optimized tests 1055s ok 848 /regex/match-notempty-atstart-optimized/604 1055s # End of match-notempty-atstart-optimized tests 1055s # End of regex tests 1055s TAP version 14 1055s # random seed: R02S3318252b3db93e741c3c7c0f95b32715 1055s 1..2 1055s # Start of union-info tests 1055s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_union-info_LWV052/union-info/basic/.dirs/home 1055s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_union-info_LWV052/union-info/basic/.dirs/cache 1055s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_union-info_LWV052/union-info/basic/.dirs/system-config1:/tmp/test_union-info_LWV052/union-info/basic/.dirs/system-config2 1055s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_union-info_LWV052/union-info/basic/.dirs/config 1055s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_union-info_LWV052/union-info/basic/.dirs/system-data1:/tmp/test_union-info_LWV052/union-info/basic/.dirs/system-data2 1055s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_union-info_LWV052/union-info/basic/.dirs/data 1055s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_union-info_LWV052/union-info/basic/.dirs/state 1055s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_union-info_LWV052/union-info/basic/.dirs/runtime 1055s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1055s # /union-info/basic summary: Test basic properties of GIUnionInfo 1055s ok 1 /union-info/basic 1055s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_union-info_LWV052/union-info/methods/.dirs/home 1055s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_union-info_LWV052/union-info/methods/.dirs/cache 1055s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_union-info_LWV052/union-info/methods/.dirs/system-config1:/tmp/test_union-info_LWV052/union-info/methods/.dirs/system-config2 1055s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_union-info_LWV052/union-info/methods/.dirs/config 1055s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_union-info_LWV052/union-info/methods/.dirs/system-data1:/tmp/test_union-info_LWV052/union-info/methods/.dirs/system-data2 1055s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_union-info_LWV052/union-info/methods/.dirs/data 1055s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_union-info_LWV052/union-info/methods/.dirs/state 1055s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_union-info_LWV052/union-info/methods/.dirs/runtime 1055s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1055s # /union-info/methods summary: Test retrieving methods from GIUnionInfo 1055s ok 2 /union-info/methods 1055s # End of union-info tests 1055s TAP version 14 1055s # random seed: R02Se9bcdb30bc1cc9e1f4ef2a8a437d297d 1055s 1..41 1055s # Start of utils tests 1055s ok 1 /utils/language-names 1055s ok 2 /utils/locale-variants 1055s ok 3 /utils/version 1055s ok 4 /utils/appname 1055s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1055s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1055s ok 5 /utils/prgname-thread-safety 1055s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1055s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1055s ok 6 /utils/tmpdir 1055s ok 7 /utils/basic_bits 1055s ok 8 /utils/bits 1055s ok 9 /utils/swap 1055s ok 10 /utils/find-program 1055s ok 11 /utils/find-program-for-path 1055s ok 12 /utils/debug 1055s ok 13 /utils/codeset 1055s ok 14 /utils/codeset2 1055s ok 15 /utils/console-charset 1055s ok 16 /utils/gettext 1055s ok 17 /utils/username 1055s ok 18 /utils/realname 1055s ok 19 /utils/hostname 1055s ok 20 /utils/xdgdirs 1055s ok 21 /utils/specialdir 1055s # NAME: Ubuntu 1055s ok 22 /utils/os-info 1055s ok 23 /utils/clear-pointer 1055s ok 24 /utils/clear-pointer-cast 1055s ok 25 /utils/take-pointer 1055s ok 26 /utils/clear-source 1055s ok 27 /utils/misc-mem 1055s # /utils/aligned-mem summary: Aligned memory allocator 1055s # Alignment must not be zero 1055s # Alignment must be a power of two 1055s # Alignment must be a multiple of sizeof(void*) 1055s ok 28 /utils/aligned-mem 1055s # /utils/free-sized summary: Check that g_free_sized() works 1055s ok 29 /utils/free-sized 1055s ok 30 /utils/nullify 1055s ok 31 /utils/atexit 1055s ok 32 /utils/check-setuid 1055s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1055s ok 33 /utils/int-limits 1055s ok 34 /utils/clear-list 1055s ok 35 /utils/clear-slist 1055s ok 36 /utils/steal-handle-id 1055s # Start of specialdir tests 1055s ok 37 /utils/specialdir/desktop 1055s # End of specialdir tests 1055s # Start of clear-pointer tests 1055s ok 38 /utils/clear-pointer/side-effects 1055s # End of clear-pointer tests 1055s # Start of aligned-mem tests 1055s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1055s ok 39 /utils/aligned-mem/alignment 1055s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1055s ok 40 /utils/aligned-mem/zeroed 1055s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1055s ok 41 /utils/aligned-mem/free-sized 1055s # Start of subprocess tests 1055s # End of subprocess tests 1055s # End of aligned-mem tests 1055s # End of utils tests 1055s ok - glib/regex.test 1055s # Running test: glib/union-info.test 1055s ok - glib/union-info.test 1055s # Running test: glib/utils-c-89.test 1055s ok - glib/utils-c-89.test 1055s # Running test: glib/search-utils.test 1055s TAP version 14 1055s # random seed: R02S2798b47dd94451206d565e8fe8beda24 1055s # GLib-DEBUG: Current user locale: C.UTF-8 1055s 1..6 1055s # Start of search tests 1055s # GLib-DEBUG: Started 1055s # GLib-DEBUG: 'he' - 'Hello World' should match: OK 1055s # GLib-DEBUG: 'wo' - 'Hello World' should match: OK 1055s # GLib-DEBUG: 'lo' - 'Hello World' should NOT match: OK 1055s # GLib-DEBUG: 'ld' - 'Hello World' should NOT match: OK 1055s # GLib-DEBUG: 'wo' - 'Hello-World' should match: OK 1055s # GLib-DEBUG: 'wo' - 'HelloWorld' should NOT match: OK 1055s ok 1 /search/basic 1055s # GLib-DEBUG: Started 1055s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 1055s # GLib-DEBUG: 'gaetan' - 'Gaëtan' should match: OK 1055s # GLib-DEBUG: 'ele' - 'élève' should match: OK 1055s # GLib-DEBUG: 'AzaÃs' - 'Azais' should NOT match: OK 1055s # GLib-DEBUG: 'Azais' - 'AzaÃs' should match: OK 1055s ok 2 /search/composed 1055s # GLib-DEBUG: Started 1055s # GLib-DEBUG: 'Jör' - 'Jorgen' should NOT match: OK 1055s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 1055s ok 3 /search/decomposed 1055s # GLib-DEBUG: Started 1055s # GLib-DEBUG: 'ist' - 'İstanbul' should match: OK 1055s # GLib-DEBUG: 'diyarbakir' - 'Diyarbakır' should match: OK 1055s ok 4 /search/turkish 1055s # GLib-DEBUG: Started 1055s # GLib-DEBUG: 'jor' - 'J?rgen' should match: OK 1055s # GLib-DEBUG: 'Jo?r' - 'Jorgen' should NOT match: OK 1055s # GLib-DEBUG: 'jor' - 'Jo?rgen' should match: OK 1055s ok 5 /search/c_locale_unicode 1055s # GLib-DEBUG: Started 1055s # GLib-DEBUG: 'Xav Cla' - 'Xavier Claessens' should match: OK 1055s # GLib-DEBUG: 'Cla Xav' - 'Xavier Claessens' should match: OK 1055s # GLib-DEBUG: ' b ' - 'Foo Bar Baz' should match: OK 1055s # GLib-DEBUG: 'bar bazz' - 'Foo Bar Baz' should NOT match: OK 1055s ok 6 /search/multi_words 1055s # End of search tests 1055s ok - glib/search-utils.test 1055s # Running test: glib/tls-database.test 1055s TAP version 14 1055s # random seed: R02S6af8623607aaacfaa2b1b81ad4a8a6ee 1055s 1..1 1055s # Start of tls-backend tests 1055s ok - glib/tls-database.test 1055s # Running test: glib/gsocketclient-slow.test 1055s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ?gio-tls-backend? 1055s ok 1 /tls-backend/set-default-database 1055s # End of tls-backend tests 1055s TAP version 14 1055s # random seed: R02Se42068c27029a9e699c41f2def93ef57 1055s 1..4 1055s # Start of socket-client tests 1055s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3184 1055s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ?gio-proxy-resolver? 1055s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xbe2994585af0 and GSocketClientAsyncConnectData 0xbe29945800e0 1055s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1055s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1055s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xbe2994589600 for GSocketClientAsyncConnectData 0xbe29945800e0 1055s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1055s # GLib-GIO-DEBUG: GSocketClient: Connection attempt delay reached, trying another enumeration 1055s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1055s # GLib-GIO-DEBUG: GSocketClient: Connection attempt failed: Connection refused 1055s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1055s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1055s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xbe2994589600 for GSocketClientAsyncConnectData 0xbe29945800e0 1055s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1056s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1056s # GLib-GIO-DEBUG: GSocketClient: Connection attempt failed: Connection refused 1056s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Could not connect to localhost: Connection refused 1056s ok 1 /socket-client/connection-fail 1056s # slow test /socket-client/connection-fail executed in 1.20 secs 1056s # Start of happy-eyeballs tests 1056s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xbe2994588360 and GSocketClientAsyncConnectData 0xbe2994588f70 1056s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1056s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1056s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xbe299458c580 for GSocketClientAsyncConnectData 0xbe2994588f70 1056s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1057s # Executing: glib/gsocketclient-slow.test 1057s # GLib-GIO-DEBUG: GSocketClient: Connection attempt delay reached, trying another enumeration 1057s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1057s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1057s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1057s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1057s ok 2 /socket-client/happy-eyeballs/slow 1057s # slow test /socket-client/happy-eyeballs/slow executed in 0.60 secs 1057s # Start of cancellation tests 1057s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xbe2994588c50 and GSocketClientAsyncConnectData 0xbe299458ca00 1057s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1057s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Operation was cancelled 1057s ok 3 /socket-client/happy-eyeballs/cancellation/instant 1057s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xbe29945881b0 and GSocketClientAsyncConnectData 0xbe299458c710 1057s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1057s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1057s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xbe299458c3c0 for GSocketClientAsyncConnectData 0xbe299458c710 1057s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1057s ok - glib/gsocketclient-slow.test 1057s # Running test: glib/pattern.test 1057s # GLib-GIO-DEBUG: GSocketClient: Connection attempt delay reached, trying another enumeration 1057s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1057s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1057s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1057s # GLib-GIO-DEBUG: GSocketClient: Connection cancelled! 1057s ok 4 /socket-client/happy-eyeballs/cancellation/delayed 1057s # slow test /socket-client/happy-eyeballs/cancellation/delayed executed in 0.60 secs 1057s # End of cancellation tests 1057s # End of happy-eyeballs tests 1057s # End of socket-client tests 1057s TAP version 14 1057s # random seed: R02S98004cfbc0f7ff865918af6716ed1cf1 1057s 1..90 1057s # Start of pattern tests 1057s # Start of compile tests 1057s ok 1 /pattern/compile/0 1057s ok 2 /pattern/compile/1 1057s ok 3 /pattern/compile/2 1057s ok 4 /pattern/compile/3 1057s ok 5 /pattern/compile/4 1057s ok 6 /pattern/compile/5 1057s ok 7 /pattern/compile/6 1057s ok 8 /pattern/compile/7 1057s ok 9 /pattern/compile/8 1057s ok 10 /pattern/compile/9 1057s ok 11 /pattern/compile/10 1057s ok 12 /pattern/compile/11 1057s ok 13 /pattern/compile/12 1057s ok 14 /pattern/compile/13 1057s # End of compile tests 1057s # Start of copy tests 1057s ok 15 /pattern/copy/0 1057s ok 16 /pattern/copy/1 1057s ok 17 /pattern/copy/2 1057s ok 18 /pattern/copy/3 1057s ok 19 /pattern/copy/4 1057s ok 20 /pattern/copy/5 1057s ok 21 /pattern/copy/6 1057s ok 22 /pattern/copy/7 1057s ok 23 /pattern/copy/8 1057s ok 24 /pattern/copy/9 1057s ok 25 /pattern/copy/10 1057s ok 26 /pattern/copy/11 1057s ok 27 /pattern/copy/12 1057s ok 28 /pattern/copy/13 1057s # End of copy tests 1057s # Start of match tests 1057s ok 29 /pattern/match/0 1057s ok 30 /pattern/match/1 1057s ok 31 /pattern/match/2 1057s ok 32 /pattern/match/3 1057s ok 33 /pattern/match/4 1057s ok 34 /pattern/match/5 1057s ok 35 /pattern/match/6 1057s ok 36 /pattern/match/7 1057s ok 37 /pattern/match/8 1057s ok 38 /pattern/match/9 1057s ok 39 /pattern/match/10 1057s ok 40 /pattern/match/11 1057s ok 41 /pattern/match/12 1057s ok 42 /pattern/match/13 1057s ok 43 /pattern/match/14 1057s ok 44 /pattern/match/15 1057s ok 45 /pattern/match/16 1057s ok 46 /pattern/match/17 1057s ok 47 /pattern/match/18 1057s ok 48 /pattern/match/19 1057s ok 49 /pattern/match/20 1057s ok 50 /pattern/match/21 1057s ok 51 /pattern/match/22 1057s ok 52 /pattern/match/23 1057s ok 53 /pattern/match/24 1057s ok 54 /pattern/match/25 1057s ok 55 /pattern/match/26 1057s ok 56 /pattern/match/27 1057s ok 57 /pattern/match/28 1057s ok 58 /pattern/match/29 1057s ok 59 /pattern/match/30 1057s ok 60 /pattern/match/31 1057s ok 61 /pattern/match/32 1057s ok 62 /pattern/match/33 1057s ok 63 /pattern/match/34 1057s ok 64 /pattern/match/35 1057s ok 65 /pattern/match/36 1057s ok 66 /pattern/match/37 1057s ok 67 /pattern/match/38 1057s ok 68 /pattern/match/39 1057s ok 69 /pattern/match/40 1057s ok 70 /pattern/match/41 1057s ok 71 /pattern/match/42 1057s ok 72 /pattern/match/43 1057s ok 73 /pattern/match/44 1057s ok 74 /pattern/match/45 1057s ok 75 /pattern/match/46 1057s ok 76 /pattern/match/47 1057s ok 77 /pattern/match/48 1057s ok 78 /pattern/match/49 1057s ok 79 /pattern/match/50 1057s # End of match tests 1057s # Start of equal tests 1057s ok 80 /pattern/equal/0 1057s ok 81 /pattern/equal/1 1057s ok 82 /pattern/equal/2 1057s ok 83 /pattern/equal/3 1057s ok 84 /pattern/equal/4 1057s ok 85 /pattern/equal/5 1057s ok 86 /pattern/equal/6 1057s ok 87 /pattern/equal/7 1057s ok 88 /pattern/equal/8 1057s ok 89 /pattern/equal/9 1057s ok 90 /pattern/equal/10 1057s # End of equal tests 1057s # End of pattern tests 1057s TAP version 14 1057s # random seed: R02Sc6ef8a952b7dd2afe04620fd847ab349 1057s 1..4 1057s # Start of unix-mounts tests 1057s ok 1 /unix-mounts/is-system-fs-type 1057s ok 2 /unix-mounts/is-system-device-path 1057s # /unix-mounts/get-mount-points summary: Basic test of g_unix_mount_points_get_from_file() 1057s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 1057s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 1057s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 1057s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 1057s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 1057s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 1057s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 1057s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 1057s ok 3 /unix-mounts/get-mount-points 1057s # /unix-mounts/get-mount-entries summary: Basic test of g_unix_mounts_get_from_file() 1057s ok 4 /unix-mounts/get-mount-entries 1057s # End of unix-mounts tests 1057s TAP version 14 1057s # random seed: R02S8d4be0f01d89c28fc4eecd34cf2d34e5 1057s 1..51 1057s # Start of shell tests 1057s # Start of cmdline tests 1057s test cmdline: foo bar 1057s ok 1 /shell/cmdline/0 1057s test cmdline: foo 'bar' 1057s ok 2 /shell/cmdline/1 1057s test cmdline: foo "bar" 1057s ok 3 /shell/cmdline/2 1057s test cmdline: foo '' 'bar' 1057s ok 4 /shell/cmdline/3 1057s test cmdline: foo "bar"'baz'blah'foo'\''blah'"boo" 1057s ok 5 /shell/cmdline/4 1057s test cmdline: foo blah foo bar baz 1057s ok 6 /shell/cmdline/5 1057s test cmdline: foo ' spaces more spaces lots of spaces in this ' 1057s ok 7 /shell/cmdline/6 1057s test cmdline: foo \ 1057s bar 1057s ok 8 /shell/cmdline/7 1057s test cmdline: foo '' '' 1057s ok 9 /shell/cmdline/8 1057s test cmdline: foo \" la la la 1057s ok 10 /shell/cmdline/9 1057s test cmdline: foo \ foo woo woo\ 1057s ok 11 /shell/cmdline/10 1057s test cmdline: foo "yada yada \$\"" 1057s ok 12 /shell/cmdline/11 1057s test cmdline: foo "c:\\" 1057s ok 13 /shell/cmdline/12 1057s test cmdline: foo # bla bla bla 1057s bar 1057s ok 14 /shell/cmdline/13 1057s test cmdline: foo a#b 1057s ok 15 /shell/cmdline/14 1057s test cmdline: #foo 1057s ok 16 /shell/cmdline/15 1057s test cmdline: foo bar \ 1057s ok 17 /shell/cmdline/16 1057s test cmdline: foo 'bar baz 1057s ok 18 /shell/cmdline/17 1057s test cmdline: foo '"bar" baz 1057s ok 19 /shell/cmdline/18 1057s test cmdline: 1057s ok 20 /shell/cmdline/19 1057s test cmdline: 1057s ok 21 /shell/cmdline/20 1057s test cmdline: # foo bar 1057s ok 22 /shell/cmdline/21 1057s test cmdline: foo '/bar/summer'\''09 tours.pdf' 1057s ok 23 /shell/cmdline/22 1057s # End of cmdline tests 1057s # Start of quote tests 1057s ok 24 /shell/quote/0 1057s ok 25 /shell/quote/1 1057s ok 26 /shell/quote/2 1057s ok 27 /shell/quote/3 1057s ok 28 /shell/quote/4 1057s ok 29 /shell/quote/5 1057s ok 30 /shell/quote/6 1057s # End of quote tests 1057s # Start of unquote tests 1057s ok 31 /shell/unquote/0 1057s ok 32 /shell/unquote/1 1057s ok 33 /shell/unquote/2 1057s ok 34 /shell/unquote/3 1057s ok 35 /shell/unquote/4 1057s ok 36 /shell/unquote/5 1057s ok 37 /shell/unquote/6 1057s ok 38 /shell/unquote/7 1057s ok 39 /shell/unquote/8 1057s ok 40 /shell/unquote/9 1057s ok 41 /shell/unquote/10 1057s ok 42 /shell/unquote/11 1057s ok 43 /shell/unquote/12 1057s ok 44 /shell/unquote/13 1057s ok 45 /shell/unquote/14 1057s ok 46 /shell/unquote/15 1057s ok 47 /shell/unquote/16 1057s ok 48 /shell/unquote/17 1057s ok 49 /shell/unquote/18 1057s ok 50 /shell/unquote/19 1057s ok 51 /shell/unquote/20 1057s # End of unquote tests 1057s # End of shell tests 1057s TAP version 14 1057s # random seed: R02Sbae4dd42c08c257558a94c8cea540e56 1057s 1..27 1057s # Start of boxed tests 1057s ok 1 /boxed/define 1057s ok 2 /boxed/ownership 1057s ok 3 /boxed/closure 1057s ok 4 /boxed/date 1057s ok 5 /boxed/value 1057s ok 6 /boxed/string 1057s ok 7 /boxed/hashtable 1057s ok 8 /boxed/array 1057s ok 9 /boxed/ptrarray 1057s ok 10 /boxed/regex 1057s ok 11 /boxed/varianttype 1057s ok 12 /boxed/error 1057s ok 13 /boxed/datetime 1057s ok 14 /boxed/matchinfo 1057s ok 15 /boxed/keyfile 1057s ok 16 /boxed/mainloop 1057s ok 17 /boxed/maincontext 1057s ok 18 /boxed/source 1057s ok 19 /boxed/variantbuilder 1057s ok 20 /boxed/timezone 1057s ok 21 /boxed/pollfd 1057s ok 22 /boxed/markup 1057s ok 23 /boxed/thread 1057s ok 24 /boxed/checksum 1057s ok 25 /boxed/tree 1057s ok 26 /boxed/patternspec 1057s ok 27 /boxed/rand 1057s # End of boxed tests 1057s TAP version 14 1057s ok - glib/pattern.test 1057s # Running test: glib/unix-mounts.test 1057s ok - glib/unix-mounts.test 1057s # Running test: glib/shell.test 1057s ok - glib/shell.test 1057s # Running test: glib/boxed.test 1057s ok - glib/boxed.test 1057s # Running test: glib/gdbus-exit-on-close.test 1057s # random seed: R02S13d41013036a8e216180f61e7394f490 1057s 1..4 1057s # Start of gdbus tests 1057s # Start of exit-on-close tests 1057s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_U9YB62/gdbus/exit-on-close/default/.dirs/home 1057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_U9YB62/gdbus/exit-on-close/default/.dirs/cache 1057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_U9YB62/gdbus/exit-on-close/default/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_U9YB62/gdbus/exit-on-close/default/.dirs/system-config2 1057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_U9YB62/gdbus/exit-on-close/default/.dirs/config 1057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_U9YB62/gdbus/exit-on-close/default/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_U9YB62/gdbus/exit-on-close/default/.dirs/system-data2 1057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_U9YB62/gdbus/exit-on-close/default/.dirs/data 1057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_U9YB62/gdbus/exit-on-close/default/.dirs/state 1057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_U9YB62/gdbus/exit-on-close/default/.dirs/runtime 1057s ok 1 /gdbus/exit-on-close/default 1057s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_U9YB62/gdbus/exit-on-close/true/.dirs/home 1057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_U9YB62/gdbus/exit-on-close/true/.dirs/cache 1057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_U9YB62/gdbus/exit-on-close/true/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_U9YB62/gdbus/exit-on-close/true/.dirs/system-config2 1057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_U9YB62/gdbus/exit-on-close/true/.dirs/config 1057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_U9YB62/gdbus/exit-on-close/true/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_U9YB62/gdbus/exit-on-close/true/.dirs/system-data2 1057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_U9YB62/gdbus/exit-on-close/true/.dirs/data 1057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_U9YB62/gdbus/exit-on-close/true/.dirs/state 1057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_U9YB62/gdbus/exit-on-close/true/.dirs/runtime 1057s ok 2 /gdbus/exit-on-close/true 1057s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_U9YB62/gdbus/exit-on-close/false/.dirs/home 1057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_U9YB62/gdbus/exit-on-close/false/.dirs/cache 1057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_U9YB62/gdbus/exit-on-close/false/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_U9YB62/gdbus/exit-on-close/false/.dirs/system-config2 1057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_U9YB62/gdbus/exit-on-close/false/.dirs/config 1057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_U9YB62/gdbus/exit-on-close/false/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_U9YB62/gdbus/exit-on-close/false/.dirs/system-data2 1057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_U9YB62/gdbus/exit-on-close/false/.dirs/data 1057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_U9YB62/gdbus/exit-on-close/false/.dirs/state 1057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_U9YB62/gdbus/exit-on-close/false/.dirs/runtime 1058s ok 3 /gdbus/exit-on-close/false 1058s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_U9YB62/gdbus/exit-on-close/we-close/.dirs/home 1058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_U9YB62/gdbus/exit-on-close/we-close/.dirs/cache 1058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_U9YB62/gdbus/exit-on-close/we-close/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_U9YB62/gdbus/exit-on-close/we-close/.dirs/system-config2 1058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_U9YB62/gdbus/exit-on-close/we-close/.dirs/config 1058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_U9YB62/gdbus/exit-on-close/we-close/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_U9YB62/gdbus/exit-on-close/we-close/.dirs/system-data2 1058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_U9YB62/gdbus/exit-on-close/we-close/.dirs/data 1058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_U9YB62/gdbus/exit-on-close/we-close/.dirs/state 1058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_U9YB62/gdbus/exit-on-close/we-close/.dirs/runtime 1058s ok 4 /gdbus/exit-on-close/we-close 1058s # Start of default tests 1058s # End of default tests 1058s # Start of true tests 1058s # End of true tests 1058s # Start of false tests 1058s # End of false tests 1058s # Start of we-close tests 1058s # End of we-close tests 1058s # End of exit-on-close tests 1058s # End of gdbus tests 1058s ok - glib/gdbus-exit-on-close.test 1058s # Running test: glib/gdbus-non-socket.test 1058s TAP version 14 1058s # random seed: R02S56e7a219545e023b1b160005cec8be2f 1058s 1..1 1058s # Start of gdbus tests 1058s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-non-socket_XPOZ52/gdbus/non-socket/.dirs/home 1058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-non-socket_XPOZ52/gdbus/non-socket/.dirs/cache 1058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-non-socket_XPOZ52/gdbus/non-socket/.dirs/system-config1:/tmp/test_gdbus-non-socket_XPOZ52/gdbus/non-socket/.dirs/system-config2 1058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-non-socket_XPOZ52/gdbus/non-socket/.dirs/config 1058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-non-socket_XPOZ52/gdbus/non-socket/.dirs/system-data1:/tmp/test_gdbus-non-socket_XPOZ52/gdbus/non-socket/.dirs/system-data2 1058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-non-socket_XPOZ52/gdbus/non-socket/.dirs/data 1058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-non-socket_XPOZ52/gdbus/non-socket/.dirs/state 1058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-non-socket_XPOZ52/gdbus/non-socket/.dirs/runtime 1058s ok 1 /gdbus/non-socket 1058s # End of gdbus tests 1058s ok - glib/gdbus-non-socket.test 1058s # Running test: glib/genmarshal.py.test 1058s TAP version 13 1058s ok 1 __main__.TestGenmarshal.test_empty_list 1058s # glib-genmarshal: /usr/bin/glib-genmarshal 1058s # tmpdir: /tmp/tmpv4uldrcg 1058s # /tmp/tmpv4uldrcg/tmpvpyv5ay9.list: 1058s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpv4uldrcg/tmpvpyv5ay9.list', '--header', '--quiet'] 1058s # Return code: 0 1058s # Output: 1058s # /* 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. */ 1058s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1058s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1058s # 1058s # #include 1058s # 1058s # G_BEGIN_DECLS 1058s # 1058s # 1058s # G_END_DECLS 1058s # 1058s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1058s # Error: 1058s # 1058s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpv4uldrcg/tmpvpyv5ay9.list', '--body', '--quiet'] 1058s # Return code: 0 1058s # Output: 1058s # /* 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. */ 1058s # #include 1058s # 1058s # #ifdef G_ENABLE_DEBUG 1058s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1058s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1058s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1058s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1058s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1058s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1058s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1058s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1058s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1058s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1058s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1058s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1058s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1058s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1058s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1058s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1058s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1058s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1058s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1058s # #else /* !G_ENABLE_DEBUG */ 1058s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1058s # * Do not access GValues directly in your code. Instead, use the 1058s # * g_value_get_*() functions 1058s # */ 1058s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1058s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1058s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1058s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1058s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1058s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1058s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1058s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1058s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1058s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1058s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1058s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1058s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1058s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1058s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1058s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1058s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1058s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1058s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1058s # #endif /* !G_ENABLE_DEBUG */ 1058s # Error: 1058s ok 2 __main__.TestGenmarshal.test_help 1058s # glib-genmarshal: /usr/bin/glib-genmarshal 1058s # tmpdir: /tmp/tmp6l4rem8l 1058s # Running: ['/usr/bin/glib-genmarshal', '--help'] 1058s # Return code: 0 1058s # Output: 1058s # usage: glib-genmarshal [-h] [--prefix STRING] [--output FILE] [--skip-source] 1058s # [--internal] [--valist-marshallers] [-v] 1058s # [--g-fatal-warnings] [--include-header [HEADER]] 1058s # [--pragma-once] [-D CPP_DEFINES] [-U CPP_UNDEFINES] 1058s # [--prototypes] [--header] [--body] [--stdinc | 1058s # --nostdinc] [--quiet | --verbose] 1058s # [FILE ...] 1058s # 1058s # Generate signal marshallers for GObject 1058s # 1058s # positional arguments: 1058s # FILE Files with lists of marshallers to generate, or "-" 1058s # for standard input 1058s # 1058s # options: 1058s # -h, --help show this help message and exit 1058s # --prefix STRING Specify marshaller prefix 1058s # --output FILE Write output into the specified file 1058s # --skip-source Skip source location comments 1058s # --internal Mark generated functions as internal 1058s # --valist-marshallers Generate va_list marshallers 1058s # -v, --version Print version information, and exit 1058s # --g-fatal-warnings Make warnings fatal 1058s # --include-header [HEADER] 1058s # Include the specified header in the body 1058s # --pragma-once Use "pragma once" as the inclusion guard 1058s # -D CPP_DEFINES Pre-processor define 1058s # -U CPP_UNDEFINES Pre-processor undefine 1058s # --prototypes Generate the marshallers prototype in the C code 1058s # --header Generate C headers 1058s # --body Generate C code 1058s # --stdinc Include standard marshallers 1058s # --nostdinc Use standard marshallers 1058s # --quiet Only print warnings and errors 1058s # --verbose Be verbose, and include debugging information 1058s # Error: 1058s ok 3 __main__.TestGenmarshal.test_no_args 1058s # glib-genmarshal: /usr/bin/glib-genmarshal 1058s # tmpdir: /tmp/tmprst4votm 1058s # Running: ['/usr/bin/glib-genmarshal'] 1058s # Return code: 0 1058s # Output: 1058s # 1058s # Error: 1058s ok 4 __main__.TestGenmarshal.test_void_boolean 1058s # glib-genmarshal: /usr/bin/glib-genmarshal 1058s # tmpdir: /tmp/tmplhbsoi9j 1058s # /tmp/tmplhbsoi9j/tmp5xp2ezwc.list: VOID:BOOLEAN 1058s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmplhbsoi9j/tmp5xp2ezwc.list', '--header', '--quiet'] 1058s # Return code: 0 1058s # Output: 1058s # /* 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. */ 1058s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1058s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1058s # 1058s # #include 1058s # 1058s # G_BEGIN_DECLS 1058s # 1058s # /* VOID:BOOLEAN (/tmp/tmplhbsoi9j/tmp5xp2ezwc.list:1) */ 1058s # #define g_cclosure_user_marshal_VOID__BOOLEAN g_cclosure_marshal_VOID__BOOLEAN 1058s # 1058s # 1058s # G_END_DECLS 1058s # 1058s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1058s # Error: 1058s # 1058s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmplhbsoi9j/tmp5xp2ezwc.list', '--body', '--quiet'] 1058s # Return code: 0 1058s # Output: 1058s # /* 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. */ 1058s # #include 1058s # 1058s # #ifdef G_ENABLE_DEBUG 1058s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1058s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1058s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1058s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1058s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1058s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1058s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1058s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1058s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1058s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1058s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1058s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1058s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1058s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1058s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1058s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1058s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1058s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1058s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1058s # #else /* !G_ENABLE_DEBUG */ 1058s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1058s # * Do not access GValues directly in your code. Instead, use the 1058s # * g_value_get_*() functions 1058s # */ 1058s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1058s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1058s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1058s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1058s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1058s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1058s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1058s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1058s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1058s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1058s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1058s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1058s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1058s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1058s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1058s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1058s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1058s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1058s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1058s # #endif /* !G_ENABLE_DEBUG */ 1058s # Error: 1058s ok 5 __main__.TestGenmarshal.test_void_boolean_int64 1058s # glib-genmarshal: /usr/bin/glib-genmarshal 1058s # tmpdir: /tmp/tmplnam9bf9 1058s # /tmp/tmplnam9bf9/tmps3higk_c.list: VOID:BOOLEAN,INT64 1058s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmplnam9bf9/tmps3higk_c.list', '--header', '--quiet'] 1058s # Return code: 0 1058s # Output: 1058s # /* 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. */ 1058s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1058s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1058s # 1058s # #include 1058s # 1058s # G_BEGIN_DECLS 1058s # 1058s # /* VOID:BOOLEAN,INT64 (/tmp/tmplnam9bf9/tmps3higk_c.list:1) */ 1058s # extern 1058s # void g_cclosure_user_marshal_VOID__BOOLEAN_INT64 (GClosure *closure, 1058s # GValue *return_value, 1058s # guint n_param_values, 1058s # const GValue *param_values, 1058s # gpointer invocation_hint, 1058s # gpointer marshal_data); 1058s # 1058s # 1058s # G_END_DECLS 1058s # 1058s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1058s # Error: 1058s # 1058s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmplnam9bf9/tmps3higk_c.list', '--body', '--quiet'] 1058s # Return code: 0 1058s # Output: 1058s # /* 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. */ 1058s # #include 1058s # 1058s # #ifdef G_ENABLE_DEBUG 1058s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1058s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1058s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1058s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1058s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1058s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1058s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1058s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1058s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1058s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1058s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1058s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1058s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1058s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1058s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1058s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1058s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1058s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1058s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1058s # #else /* !G_ENABLE_DEBUG */ 1058s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1058s # * Do not access GValues directly in your code. Instead, use the 1058s # * g_value_get_*() functions 1058s # */ 1058s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1058s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1058s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1058s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1058s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1058s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1058s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1058s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1058s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1058s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1058s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1058s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1058s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1058s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1058s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1058s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1058s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1058s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1058s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1058s # #endif /* !G_ENABLE_DEBUG */ 1058s # 1058s # /* VOID:BOOLEAN,INT64 (/tmp/tmplnam9bf9/tmps3higk_c.list:1) */ 1058s # void 1058s # g_cclosure_user_marshal_VOID__BOOLEAN_INT64 (GClosure *closure, 1058s # GValue *return_value G_GNUC_UNUSED, 1058s # guint n_param_values, 1058s # const GValue *param_values, 1058s # gpointer invocation_hint G_GNUC_UNUSED, 1058s # gpointer marshal_data) 1058s # { 1058s # typedef void (*GMarshalFunc_VOID__BOOLEAN_INT64) (gpointer data1, 1058s # gboolean arg1, 1058s # gint64 arg2, 1058s # gpointer data2); 1058s # GCClosure *cc = (GCClosure *) closure; 1058s # gpointer data1, data2; 1058s # GMarshalFunc_VOID__BOOLEAN_INT64 callback; 1058s # 1058s # g_return_if_fail (n_param_values == 3); 1058s # 1058s # if (G_CCLOSURE_SWAP_DATA (closure)) 1058s # { 1058s # data1 = closure->data; 1058s # data2 = g_value_peek_pointer (param_values + 0); 1058s # } 1058s # else 1058s # { 1058s # data1 = g_value_peek_pointer (param_values + 0); 1058s # data2 = closure->data; 1058s # } 1058s # callback = (GMarshalFunc_VOID__BOOLEAN_INT64) (marshal_data ? marshal_data : cc->callback); 1058s # 1058s # callback (data1, 1058s # g_marshal_value_peek_boolean (param_values + 1), 1058s # g_marshal_value_peek_int64 (param_values + 2), 1058s # data2); 1058s # } 1058s # Error: 1058s ok 6 __main__.TestGenmarshal.test_void_param_nostdinc 1058s # glib-genmarshal: /usr/bin/glib-genmarshal 1058s # tmpdir: /tmp/tmp5eu_t009 1058s # /tmp/tmp5eu_t009/tmpjr4lpj0r.list: VOID:PARAM 1058s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp5eu_t009/tmpjr4lpj0r.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 1058s # Return code: 0 1058s # Output: 1058s # /* 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. */ 1058s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1058s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1058s # 1058s # G_BEGIN_DECLS 1058s # 1058s # /* VOID:PARAM (/tmp/tmp5eu_t009/tmpjr4lpj0r.list:1) */ 1058s # extern 1058s # void g_cclosure_user_marshal_VOID__PARAM (GClosure *closure, 1058s # GValue *return_value, 1058s # guint n_param_values, 1058s # const GValue *param_values, 1058s # gpointer invocation_hint, 1058s # gpointer marshal_data); 1058s # extern 1058s # void g_cclosure_user_marshal_VOID__PARAMv (GClosure *closure, 1058s # GValue *return_value, 1058s # gpointer instance, 1058s # va_list args, 1058s # gpointer marshal_data, 1058s # int n_params, 1058s # GType *param_types); 1058s # 1058s # 1058s # G_END_DECLS 1058s # 1058s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1058s # Error: 1058s # 1058s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp5eu_t009/tmpjr4lpj0r.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 1058s # Return code: 0 1058s # Output: 1058s # /* 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. */ 1058s # #ifdef G_ENABLE_DEBUG 1058s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1058s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1058s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1058s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1058s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1058s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1058s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1058s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1058s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1058s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1058s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1058s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1058s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1058s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1058s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1058s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1058s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1058s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1058s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1058s # #else /* !G_ENABLE_DEBUG */ 1058s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1058s # * Do not access GValues directly in your code. Instead, use the 1058s # * g_value_get_*() functions 1058s # */ 1058s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1058s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1058s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1058s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1058s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1058s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1058s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1058s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1058s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1058s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1058s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1058s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1058s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1058s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1058s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1058s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1058s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1058s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1058s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1058s # #endif /* !G_ENABLE_DEBUG */ 1058s # 1058s # /* VOID:PARAM (/tmp/tmp5eu_t009/tmpjr4lpj0r.list:1) */ 1058s # void 1058s # g_cclosure_user_marshal_VOID__PARAM (GClosure *closure, 1058s # GValue *return_value G_GNUC_UNUSED, 1058s # guint n_param_values, 1058s # const GValue *param_values, 1058s # gpointer invocation_hint G_GNUC_UNUSED, 1058s # gpointer marshal_data) 1058s # { 1058s # typedef void (*GMarshalFunc_VOID__PARAM) (gpointer data1, 1058s # gpointer arg1, 1058s # gpointer data2); 1058s # GCClosure *cc = (GCClosure *) closure; 1058s # gpointer data1, data2; 1058s # GMarshalFunc_VOID__PARAM callback; 1058s # 1058s # g_return_if_fail (n_param_values == 2); 1058s # 1058s # if (G_CCLOSURE_SWAP_DATA (closure)) 1058s # { 1058s # data1 = closure->data; 1058s # data2 = g_value_peek_pointer (param_values + 0); 1058s # } 1058s # else 1058s # { 1058s # data1 = g_value_peek_pointer (param_values + 0); 1058s # data2 = closure->data; 1058s # } 1058s # callback = (GMarshalFunc_VOID__PARAM) (marshal_data ? marshal_data : cc->callback); 1058s # 1058s # callback (data1, 1058s # g_marshal_value_peek_param (param_values + 1), 1058s # data2); 1058s # } 1058s # 1058s # void 1058s # g_cclosure_user_marshal_VOID__PARAMv (GClosure *closure, 1058s # GValue *return_value G_GNUC_UNUSED, 1058s # gpointer instance, 1058s # va_list args, 1058s # gpointer marshal_data, 1058s # int n_params, 1058s # GType *param_types) 1058s # { 1058s # typedef void (*GMarshalFunc_VOID__PARAM) (gpointer data1, 1058s # gpointer arg1, 1058s # gpointer data2); 1058s # GCClosure *cc = (GCClosure *) closure; 1058s # gpointer data1, data2; 1058s # GMarshalFunc_VOID__PARAM callback; 1058s # gpointer arg0; 1058s # va_list args_copy; 1058s # 1058s # va_copy (args_copy, args); 1058s # arg0 = (gpointer) va_arg (args_copy, gpointer); 1058s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1058s # arg0 = g_param_spec_ref (arg0); 1058s # va_end (args_copy); 1058s # 1058s # 1058s # if (G_CCLOSURE_SWAP_DATA (closure)) 1058s # { 1058s # data1 = closure->data; 1058s # data2 = instance; 1058s # } 1058s # else 1058s # { 1058s # data1 = instance; 1058s # data2 = closure->data; 1058s # } 1058s # callback = (GMarshalFunc_VOID__PARAM) (marshal_data ? marshal_data : cc->callback); 1058s # 1058s # callback (data1, 1058s # arg0, 1058s # data2); 1058s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1058s # g_param_spec_unref (arg0); 1058s # } 1058s # Error: 1058s ok 7 __main__.TestGenmarshal.test_void_string_nostdinc 1058s # glib-genmarshal: /usr/bin/glib-genmarshal 1058s # tmpdir: /tmp/tmp_ah7lqsz 1058s # /tmp/tmp_ah7lqsz/tmpdhpedih2.list: VOID:STRING 1058s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp_ah7lqsz/tmpdhpedih2.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 1058s # Return code: 0 1058s # Output: 1058s # /* 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. */ 1058s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1058s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1058s # 1058s # G_BEGIN_DECLS 1058s # 1058s # /* VOID:STRING (/tmp/tmp_ah7lqsz/tmpdhpedih2.list:1) */ 1058s # extern 1058s # void g_cclosure_user_marshal_VOID__STRING (GClosure *closure, 1058s # GValue *return_value, 1058s # guint n_param_values, 1058s # const GValue *param_values, 1058s # gpointer invocation_hint, 1058s # gpointer marshal_data); 1058s # extern 1058s # void g_cclosure_user_marshal_VOID__STRINGv (GClosure *closure, 1058s # GValue *return_value, 1058s # gpointer instance, 1058s # va_list args, 1058s # gpointer marshal_data, 1058s # int n_params, 1058s # GType *param_types); 1058s # 1058s # 1058s # G_END_DECLS 1058s # 1058s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1058s # Error: 1058s # 1058s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp_ah7lqsz/tmpdhpedih2.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 1058s # Return code: 0 1058s # Output: 1058s # /* 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. */ 1058s # #ifdef G_ENABLE_DEBUG 1058s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1058s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1058s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1058s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1058s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1058s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1058s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1058s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1058s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1058s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1058s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1058s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1058s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1058s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1058s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1058s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1058s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1058s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1058s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1058s # #else /* !G_ENABLE_DEBUG */ 1058s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1058s # * Do not access GValues directly in your code. Instead, use the 1058s # * g_value_get_*() functions 1058s # */ 1058s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1058s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1058s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1058s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1058s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1058s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1058s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1058s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1058s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1058s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1058s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1058s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1058s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1058s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1058s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1058s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1058s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1058s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1058s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1058s # #endif /* !G_ENABLE_DEBUG */ 1058s # 1058s # /* VOID:STRING (/tmp/tmp_ah7lqsz/tmpdhpedih2.list:1) */ 1058s # void 1058s # g_cclosure_user_marshal_VOID__STRING (GClosure *closure, 1058s # GValue *return_value G_GNUC_UNUSED, 1058s # guint n_param_values, 1058s # const GValue *param_values, 1058s # gpointer invocation_hint G_GNUC_UNUSED, 1058s # gpointer marshal_data) 1058s # { 1058s # typedef void (*GMarshalFunc_VOID__STRING) (gpointer data1, 1058s # gpointer arg1, 1058s # gpointer data2); 1058s # GCClosure *cc = (GCClosure *) closure; 1058s # gpointer data1, data2; 1058s # GMarshalFunc_VOID__STRING callback; 1058s # 1058s # g_return_if_fail (n_param_values == 2); 1058s # 1058s # if (G_CCLOSURE_SWAP_DATA (closure)) 1058s # { 1058s # data1 = closure->data; 1058s # data2 = g_value_peek_pointer (param_values + 0); 1058s # } 1058s # else 1058s # { 1058s # data1 = g_value_peek_pointer (param_values + 0); 1058s # data2 = closure->data; 1058s # } 1058s # callback = (GMarshalFunc_VOID__STRING) (marshal_data ? marshal_data : cc->callback); 1058s # 1058s # callback (data1, 1058s # g_marshal_value_peek_string (param_values + 1), 1058s # data2); 1058s # } 1058s # 1058s # void 1058s # g_cclosure_user_marshal_VOID__STRINGv (GClosure *closure, 1058s # GValue *return_value G_GNUC_UNUSED, 1058s # gpointer instance, 1058s # va_list args, 1058s # gpointer marshal_data, 1058s # int n_params, 1058s # GType *param_types) 1058s # { 1058s # typedef void (*GMarshalFunc_VOID__STRING) (gpointer data1, 1058s # gpointer arg1, 1058s # gpointer data2); 1058s # GCClosure *cc = (GCClosure *) closure; 1058s # gpointer data1, data2; 1058s # GMarshalFunc_VOID__STRING callback; 1058s # gpointer arg0; 1058s # va_list args_copy; 1058s # 1058s # va_copy (args_copy, args); 1058s # arg0 = (gpointer) va_arg (args_copy, gpointer); 1058s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1058s # arg0 = g_strdup (arg0); 1058s # va_end (args_copy); 1058s # 1058s # 1058s # if (G_CCLOSURE_SWAP_DATA (closure)) 1058s # { 1058s # data1 = closure->data; 1058s # data2 = instance; 1058s # } 1058s # else 1058s # { 1058s # data1 = instance; 1058s # data2 = closure->data; 1058s # } 1058s # callback = (GMarshalFunc_VOID__STRING) (marshal_data ? marshal_data : cc->callback); 1058s # 1058s # callback (data1, 1058s # arg0, 1058s # data2); 1058s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1058s # g_free (arg0); 1058s # } 1058s # Error: 1058s ok 8 __main__.TestGenmarshal.test_void_variant_nostdinc_valist_marshaller 1058s # glib-genmarshal: /usr/bin/glib-genmarshal 1058s # tmpdir: /tmp/tmpro70wd3s 1058s # /tmp/tmpro70wd3s/tmpc7i5aphi.list: VOID:VARIANT 1058s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpro70wd3s/tmpc7i5aphi.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 1058s # Return code: 0 1058s # Output: 1058s # /* 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. */ 1058s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1058s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1058s # 1058s # G_BEGIN_DECLS 1058s # 1058s # /* VOID:VARIANT (/tmp/tmpro70wd3s/tmpc7i5aphi.list:1) */ 1058s # extern 1058s # void g_cclosure_user_marshal_VOID__VARIANT (GClosure *closure, 1058s # GValue *return_value, 1058s # guint n_param_values, 1058s # const GValue *param_values, 1058s # gpointer invocation_hint, 1058s # gpointer marshal_data); 1058s # extern 1058s # void g_cclosure_user_marshal_VOID__VARIANTv (GClosure *closure, 1058s # GValue *return_value, 1058s # gpointer instance, 1058s # va_list args, 1058s # gpointer marshal_data, 1058s # int n_params, 1058s # GType *param_types); 1058s # 1058s # 1058s # G_END_DECLS 1058s # 1058s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1058s # Error: 1058s # 1058s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpro70wd3s/tmpc7i5aphi.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 1058s # Return code: 0 1058s # Output: 1058s # /* 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. */ 1058s # #ifdef G_ENABLE_DEBUG 1058s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1058s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1058s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1058s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1058s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1058s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1058s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1058s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1058s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1058s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1058s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1058s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1058s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1058s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1058s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1058s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1058s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1058s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1058s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1058s # #else /* !G_ENABLE_DEBUG */ 1058s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1058s # * Do not access GValues directly in your code. Instead, use the 1058s # * g_value_get_*() functions 1058s # */ 1058s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1058s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1058s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1058s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1058s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1058s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1058s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1058s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1058s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1058s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1058s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1058s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1058s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1058s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1058s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1058s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1058s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1058s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1058s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1058s # #endif /* !G_ENABLE_DEBUG */ 1058s # 1058s # /* VOID:VARIANT (/tmp/tmpro70wd3s/tmpc7i5aphi.list:1) */ 1058s # void 1058s # g_cclosure_user_marshal_VOID__VARIANT (GClosure *closure, 1058s # GValue *return_value G_GNUC_UNUSED, 1058s # guint n_param_values, 1058s # const GValue *param_values, 1058s # gpointer invocation_hint G_GNUC_UNUSED, 1058s # gpointer marshal_data) 1058s # { 1058s # typedef void (*GMarshalFunc_VOID__VARIANT) (gpointer data1, 1058s # gpointer arg1, 1058s # gpointer data2); 1058s # GCClosure *cc = (GCClosure *) closure; 1058s # gpointer data1, data2; 1058s # GMarshalFunc_VOID__VARIANT callback; 1058s # 1058s # g_return_if_fail (n_param_values == 2); 1058s # 1058s # if (G_CCLOSURE_SWAP_DATA (closure)) 1058s # { 1058s # data1 = closure->data; 1058s # data2 = g_value_peek_pointer (param_values + 0); 1058s # } 1058s # else 1058s # { 1058s # data1 = g_value_peek_pointer (param_values + 0); 1058s # data2 = closure->data; 1058s # } 1058s # callback = (GMarshalFunc_VOID__VARIANT) (marshal_data ? marshal_data : cc->callback); 1058s # 1058s # callback (data1, 1058s # g_marshal_value_peek_variant (param_values + 1), 1058s # data2); 1058s # } 1058s # 1058s # void 1058s # g_cclosure_user_marshal_VOID__VARIANTv (GClosure *closure, 1058s # GValue *return_value G_GNUC_UNUSED, 1058s # gpointer instance, 1058s # va_list args, 1058s # gpointer marshal_data, 1058s # int n_params, 1058s # GType *param_types) 1058s # { 1058s # typedef void (*GMarshalFunc_VOID__VARIANT) (gpointer data1, 1058s # gpointer arg1, 1058s # gpointer data2); 1058s # GCClosure *cc = (GCClosure *) closure; 1058s # gpointer data1, data2; 1058s # GMarshalFunc_VOID__VARIANT callback; 1058s # gpointer arg0; 1058s # va_list args_copy; 1058s # 1058s # va_copy (args_copy, args); 1058s # arg0 = (gpointer) va_arg (args_copy, gpointer); 1058s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1058s # arg0 = g_variant_ref_sink (arg0); 1058s # va_end (args_copy); 1058s # 1058s # 1058s # if (G_CCLOSURE_SWAP_DATA (closure)) 1058s # { 1058s # data1 = closure->data; 1058s # data2 = instance; 1058s # } 1058s # else 1058s # { 1058s # data1 = instance; 1058s # data2 = closure->data; 1058s # } 1058s # callback = (GMarshalFunc_VOID__VARIANT) (marshal_data ? marshal_data : cc->callback); 1058s # 1058s # callback (data1, 1058s # arg0, 1058s # data2); 1058s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1058s # g_variant_unref (arg0); 1058s # } 1058s # Error: 1058s 1..8 1058s ok - glib/genmarshal.py.test 1058s # Running test: glib/tls-certificate.test 1058s TAP version 14 1058s # random seed: R02See105016adc59aa48d9a0cc8ab7faa47 1058s 1..19 1058s # Start of tls-certificate tests 1058s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ?gio-tls-backend? 1058s ok 1 /tls-certificate/pem-parser 1058s ok 2 /tls-certificate/pem-parser-handles-chain 1058s ok 3 /tls-certificate/from_file 1058s ok 4 /tls-certificate/from_files 1058s ok 5 /tls-certificate/from_files_crlf 1058s ok 6 /tls-certificate/from_files_pkcs8 1058s ok 7 /tls-certificate/from_files_pkcs8enc 1058s ok 8 /tls-certificate/list_from_file 1058s ok 9 /tls-certificate/pkcs11-uri 1058s ok 10 /tls-certificate/pkcs11-uri-unsupported 1058s ok 11 /tls-certificate/from_pkcs12 1058s ok 12 /tls-certificate/from_pkcs12_file 1058s ok 13 /tls-certificate/not-valid-before 1058s ok 14 /tls-certificate/not-valid-after 1058s ok 15 /tls-certificate/subject-name 1058s ok 16 /tls-certificate/issuer-name 1058s ok 17 /tls-certificate/dns-names 1058s ok 18 /tls-certificate/ip-addresses 1058s ok 19 /tls-certificate/pem-parser-no-sentinel 1058s # End of tls-certificate tests 1058s ok - glib/tls-certificate.test 1058s # Running test: glib/properties.test 1058s TAP version 14 1058s # random seed: R02S94706a4d96809489cc4c80aefa65cffd 1058s 1..14 1058s # Start of properties tests 1058s ok 1 /properties/install 1058s ok 2 /properties/install-many 1058s ok 3 /properties/notify 1058s ok 4 /properties/notify-queue 1058s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=630357 1058s ok 5 /properties/construct 1058s # /properties/get-property summary: g_object_get_property() accepts uninitialized, initialized, and transformable values 1058s # Test g_object_get_property with an initialized value 1058s # Test g_object_get_property with an uninitialized value 1058s # Test g_object_get_property with a transformable value 1058s ok 6 /properties/get-property 1058s ok 7 /properties/testv_with_no_properties 1058s ok 8 /properties/testv_with_valid_properties 1058s ok 9 /properties/testv_with_invalid_property_type 1058s ok 10 /properties/testv_with_invalid_property_names 1058s ok 11 /properties/testv_getv 1058s ok 12 /properties/testv_notify_queue 1058s # Start of notify tests 1058s ok - glib/properties.test 1058s ok 13 /properties/notify/too-many-freezes 1058s # End of notify tests 1058s # Start of set-property tests 1058s # Start of variant tests 1058s # /properties/set-property/variant/floating summary: Test that setting a property to a floating variant consumes the reference 1058s ok 14 /properties/set-property/variant/floating 1058s # End of variant tests 1058s # End of set-property tests 1058s # End of properties tests 1058s # Running test: glib/properties-refcount3.test 1058s TAP version 14 1058s # random seed: R02S7d9347a22ac4d0448d2418e715863ae0 1058s 1..1 1058s # Start of gobject tests 1058s # Start of refcount tests 1062s # Executing: glib/properties-refcount3.test 1067s # Executing: glib/properties-refcount3.test 1072s # Executing: glib/properties-refcount3.test 1077s # Executing: glib/properties-refcount3.test 1082s # Executing: glib/properties-refcount3.test 1087s # Executing: glib/properties-refcount3.test 1089s ok - glib/properties-refcount3.test 1089s # 1089s # stopping 1089s # 1089s # stopped 1089s # 1089s # 28384627 569652 1089s # 1089s ok 1 /gobject/refcount/properties-3 1089s # slow test /gobject/refcount/properties-3 executed in 30.00 secs 1089s # End of refcount tests 1089s # End of gobject tests 1089s TAP version 13 1089s ok 1 __main__.TestMessagesLowMemory.test_message_memory_allocation_failure 1089s # messages-low-memory: /usr/libexec/installed-tests/glib/messages-low-memory 1089s # tmpdir: /tmp/tmpxbm18xhn 1089s # Running: ['/usr/libexec/installed-tests/glib/messages-low-memory'] 1089s # Return code: -6 1089s # Output: 1089s # 1089s # Error: 1089s # GLib-Message: 08:52:46.008: Simulates a situation in which we were crashing because of low-memory, leading malloc to fail instead of aborting 1089s # GLib-Message: 08:52:46.008: bug: https://gitlab.gnome.org/GNOME/glib/-/issues/2753 1089s # ../../../glib/gprintf.c:350: failed to allocate memory 1089s 1..1 1089s # Running test: glib/messages-low-memory.py.test 1089s ok - glib/messages-low-memory.py.test 1089s # Running test: glib/inet-address.test 1089s ok - glib/inet-address.test 1089s # Running test: glib/assert-msg-test.py.test 1089s ok - glib/assert-msg-test.py.test 1089s # Running test: glib/gi-compile-repository.py.test 1089s TAP version 14 1089s # random seed: R02S58a4c4dd9ee2f8002f8a8eb449487859 1089s 1..11 1089s # Start of inet-address tests 1089s ok 1 /inet-address/parse 1089s ok 2 /inet-address/any 1089s ok 3 /inet-address/loopback 1089s ok 4 /inet-address/bytes 1089s ok 5 /inet-address/property 1089s # End of inet-address tests 1089s # Start of socket-address tests 1089s ok 6 /socket-address/basic 1089s ok 7 /socket-address/to-string 1089s # End of socket-address tests 1089s # Start of address-mask tests 1089s ok 8 /address-mask/parse 1089s ok 9 /address-mask/property 1089s ok 10 /address-mask/equal 1089s ok 11 /address-mask/match 1089s # End of address-mask tests 1089s TAP version 13 1089s ok 1 __main__.TestAssertMessage.test_gassert 1089s # assert-msg-test: /usr/libexec/installed-tests/glib/assert-msg-test 1089s # tmpdir: /tmp/tmpax2eyqsa 1089s # Running: ['/usr/libexec/installed-tests/glib/assert-msg-test'] 1089s # Return code: -6 1089s # Output: 1089s # Bail out! GLib:ERROR:../../../glib/tests/assert-msg-test.c:31:main: assertion failed: (42 < 0) 1089s # Error: 1089s # ** 1089s # GLib:ERROR:../../../glib/tests/assert-msg-test.c:31:main: assertion failed: (42 < 0) 1089s ok 2 __main__.TestAssertMessage.test_gdb_gassert # SKIP GDB is not installed, skipping this test! 1089s # assert-msg-test: /usr/libexec/installed-tests/glib/assert-msg-test 1089s # tmpdir: /tmp/tmpabs3u_rj 1089s 1..2 1089s TAP version 13 1089s ok 1 __main__.TestGICompileRepository.test_open_failure 1089s # gir path set to [PosixPath('/usr/lib/aarch64-linux-gnu/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 1089s # gi-compile-repository: /usr/bin/gi-compile-repository 1089s # tmpdir: /tmp/tmpzlwpffej 1089s # Running: ['/usr/bin/gi-compile-repository', 'this-is/not/a-file.gir', '--output', '/tmp/tmpzlwpffej/invalid.typelib'] 1089s # Return code: 1 1089s # Output: 1089s # 1089s # Error: 1089s # Error parsing file ‘this-is/not/a-file.gir’: Failed to open file “this-is/not/a-file.girâ€: No such file or directory 1089s ok 2 __main__.TestGICompileRepositoryForGLib.test_compile 1089s # gir path set to [PosixPath('/usr/lib/aarch64-linux-gnu/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 1089s # gi-compile-repository: /usr/bin/gi-compile-repository 1089s # tmpdir: /tmp/tmp9papt4h_ 1089s # Running: ['/usr/bin/gi-compile-repository', '/usr/lib/aarch64-linux-gnu/gir-1.0/GLib-2.0.gir', '--output', '/tmp/tmp9papt4h_/GLib-2.typelib'] 1089s # Return code: 0 1089s # Output: 1089s # 1089s # Error: 1089s ok 3 __main__.TestGICompileRepositoryForGLib.test_write_failure 1089s # gi-compile-repository: /usr/bin/gi-compile-repository 1089s # tmpdir: /tmp/tmp7ui119vr 1089s # Running: ['/usr/bin/gi-compile-repository', '/usr/lib/aarch64-linux-gnu/gir-1.0/GLib-2.0.gir', '--output', 'this-is/not/a-good-output/invalid.typelib'] 1089s # Return code: 1 1089s # Output: 1089s # 1089s # Error: 1089s # Failed to open ‘this-is/not/a-good-output/invalid.typelib.tmp’: No such file or directory 1089s ok 4 __main__.TestGICompileRepositoryForGObject.test_compile 1089s # gir path set to [PosixPath('/usr/lib/aarch64-linux-gnu/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 1089s # gi-compile-repository: /usr/bin/gi-compile-repository 1089s # tmpdir: /tmp/tmpp3ze5dzb 1089s # Running: ['/usr/bin/gi-compile-repository', '/usr/share/gir-1.0/GObject-2.0.gir', '--output', '/tmp/tmpp3ze5dzb/GObject-2.typelib', '--includedir', '/usr/lib/aarch64-linux-gnu/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 1089s # Return code: 0 1089s # Output: 1089s # 1089s # Error: 1089s ok 5 __main__.TestGICompileRepositoryForGObject.test_write_failure 1089s # gi-compile-repository: /usr/bin/gi-compile-repository 1089s # tmpdir: /tmp/tmpg6m8h3ty 1089s # 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/aarch64-linux-gnu/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 1089s # Return code: 1 1089s # Output: 1089s # 1089s # Error: 1089s # Failed to open ‘this-is/not/a-good-output/invalid.typelib.tmp’: No such file or directory 1090s ok 6 __main__.TestGICompileRepositoryForGio.test_compile 1090s # gir path set to [PosixPath('/usr/lib/aarch64-linux-gnu/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 1090s # gi-compile-repository: /usr/bin/gi-compile-repository 1090s # tmpdir: /tmp/tmpbrt5t7cc 1090s # Running: ['/usr/bin/gi-compile-repository', '/usr/share/gir-1.0/Gio-2.0.gir', '--output', '/tmp/tmpbrt5t7cc/Gio-2.typelib', '--includedir', '/usr/lib/aarch64-linux-gnu/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 1090s # Return code: 0 1090s # Output: 1090s # 1090s # Error: 1090s ok 7 __main__.TestGICompileRepositoryForGio.test_write_failure 1090s # gi-compile-repository: /usr/bin/gi-compile-repository 1090s # tmpdir: /tmp/tmpo60cdvw4 1090s # 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/aarch64-linux-gnu/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 1090s # Return code: 1 1090s # Output: 1090s # 1090s # Error: 1090s # Failed to open ‘this-is/not/a-good-output/invalid.typelib.tmp’: No such file or directory 1090s 1..7 1090s ok - glib/gi-compile-repository.py.test 1090s # Running test: glib/closure-refcount.test 1090s TAP version 14 1090s # random seed: R02S71c0b803a83f2044d91ffa2886af4c41 1090s 1..1 1090s # Start of closure tests 1090s # Init 0xb9ad6af5fd40 1090s # Yielding from main thread 1090s # Yielding from main thread 1090s # Yielding from main thread 1090s # Yielding from thread1 1090s # Yielding from main thread 1090s # Yielding from main thread 1090s # Yielding from main thread 1090s # Yielding from thread2 1090s # Yielding from main thread 1090s # Yielding from main thread 1091s # Yielding from main thread 1091s # Stopping 1091s # Stopped 1091s ok 1 /closure/refcount 1091s # End of closure tests 1091s ok - glib/closure-refcount.test 1091s # Running test: glib/once.test 1091s TAP version 14 1091s # random seed: R02S98856a8be527790fd6379c401430bf73 1091s 1..5 1091s # Start of once tests 1091s # /once/single-threaded summary: Test g_once() usage from a single thread 1091s ok 1 /once/single-threaded 1091s # /once/multi-threaded summary: Test g_once() usage from multiple threads 1091s ok 2 /once/multi-threaded 1091s # End of once tests 1091s # Start of once-init tests 1091s # /once-init/single-threaded summary: Test g_once_init_{enter,leave}() usage from a single thread 1091s ok 3 /once-init/single-threaded 1091s # /once-init/multi-threaded summary: Test g_once_init_{enter,leave}() usage from multiple threads 1091s ok 4 /once-init/multi-threaded 1091s # /once-init/string summary: Test g_once_init_{enter,leave}() usage with a string 1091s ok 5 /once-init/string 1091s ok - glib/once.test 1091s # End of once-init tests 1091s # Running test: glib/thread-deprecated.test 1091s TAP version 14 1091s # random seed: R02S8e14bec850654711df98ae0b5268d39c 1091s 1..6 1091s # Start of thread tests 1091s ok 1 /thread/mutex 1091s ok 2 /thread/static-rec-mutex 1092s # Executing: glib/thread-deprecated.test 1096s ok 3 /thread/static-private 1096s # slow test /thread/static-private executed in 4.40 secs 1097s # Executing: glib/thread-deprecated.test 1101s ok 4 /thread/static-rw-lock 1101s # slow test /thread/static-rw-lock executed in 5.00 secs 1101s ok 5 /thread/once 1102s # Executing: glib/thread-deprecated.test 1107s # Executing: glib/thread-deprecated.test 1111s ok 6 /thread/rerun-all 1111s # slow test /thread/rerun-all executed in 10.04 secs 1111s # End of thread tests 1111s ok - glib/thread-deprecated.test 1111s # Running test: glib/cxx-11.test 1111s TAP version 14 1111s # random seed: R02S77e6123223cbecbfaaf9d328f6e3242d 1111s 1..2 1111s # Start of gtask tests 1111s # 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. 1111s ok 1 /gtask/name 1111s # Start of name tests 1111s # 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. 1111s ok 2 /gtask/name/macro-wrapper 1111s # End of name tests 1111s # End of gtask tests 1111s ok - glib/cxx-11.test 1111s # Running test: glib/atomic-c-11.test 1111s TAP version 14 1111s # random seed: R02Sdb451ffd793d5599d6f47a2925739262 1111s 1..2 1111s # Start of atomic tests 1111s ok 1 /atomic/types 1111s ok 2 /atomic/threaded 1111s # End of atomic tests 1111s ok - glib/atomic-c-11.test 1111s # Running test: glib/fileattributematcher.test 1111s ok - glib/fileattributematcher.test 1111s TAP version 14 1111s # random seed: R02S5e8a1520cb7c7be5eb700f7f87521035 1111s 1..3 1111s # Start of fileattributematcher tests 1111s ok 1 /fileattributematcher/exact 1111s ok 2 /fileattributematcher/equality 1111s ok 3 /fileattributematcher/subtract 1111s # End of fileattributematcher tests 1111s # Running test: glib/mainloop.test 1111s TAP version 14 1111s # random seed: R02S4aea7b1d3dd486bb01fc55a18a228b2c 1111s 1..45 1111s # Start of maincontext tests 1111s ok 1 /maincontext/basic 1111s # Add same-priority sources: 17 1111s # Find each source: 2 1111s # Remove in random order: 46 1111s ok 2 /maincontext/nsources_same_priority 1111s # Add different-priority sources: 19 1111s # Find each source: 2 1111s # Remove in random order: 42 1111s ok 3 /maincontext/nsources_different_priority 1111s # Add sources from threads: 261 1111s # Remove sources from threads: 28 1111s ok 4 /maincontext/nsources_threadpool 1111s ok 5 /maincontext/source_finalization 1111s # /maincontext/idle-once summary: Test g_idle_add_once() works 1111s ok 6 /maincontext/idle-once 1111s # /maincontext/timeout-once summary: Test g_timeout_add_once() works 1111s ok 7 /maincontext/timeout-once 1111s # Start of source_finalization_from_source tests 1111s # /maincontext/source_finalization_from_source/0 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1111s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1111s ok 8 /maincontext/source_finalization_from_source/0 1111s # /maincontext/source_finalization_from_source/1 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1111s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1111s ok 9 /maincontext/source_finalization_from_source/1 1111s # /maincontext/source_finalization_from_source/2 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1111s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1111s ok 10 /maincontext/source_finalization_from_source/2 1111s # /maincontext/source_finalization_from_source/3 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1111s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1111s ok 11 /maincontext/source_finalization_from_source/3 1111s # /maincontext/source_finalization_from_source/4 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1111s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1111s ok 12 /maincontext/source_finalization_from_source/4 1111s # /maincontext/source_finalization_from_source/5 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1111s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1111s ok 13 /maincontext/source_finalization_from_source/5 1111s # /maincontext/source_finalization_from_source/6 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1111s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1111s ok 14 /maincontext/source_finalization_from_source/6 1111s # /maincontext/source_finalization_from_source/7 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1111s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1111s ok 15 /maincontext/source_finalization_from_source/7 1111s # /maincontext/source_finalization_from_source/8 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1111s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1111s ok 16 /maincontext/source_finalization_from_source/8 1111s # /maincontext/source_finalization_from_source/9 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1111s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1111s ok 17 /maincontext/source_finalization_from_source/9 1111s # End of source_finalization_from_source tests 1111s # Start of source_finalization_from_dispatch tests 1111s # /maincontext/source_finalization_from_dispatch/0 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1111s ok 18 /maincontext/source_finalization_from_dispatch/0 1111s # /maincontext/source_finalization_from_dispatch/1 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1111s ok 19 /maincontext/source_finalization_from_dispatch/1 1111s # /maincontext/source_finalization_from_dispatch/2 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1111s ok 20 /maincontext/source_finalization_from_dispatch/2 1111s # End of source_finalization_from_dispatch tests 1111s # End of maincontext tests 1111s # Start of mainloop tests 1111s ok 21 /mainloop/basic 1111s ok 22 /mainloop/timeouts # SKIP Not running timing heavy test 1111s ok 23 /mainloop/priorities 1112s # Executing: glib/mainloop.test 1112s ok 24 /mainloop/invoke 1112s # slow test /mainloop/invoke executed in 0.50 secs 1113s ok 25 /mainloop/child_sources 1113s # slow test /mainloop/child_sources executed in 1.20 secs 1115s ok 26 /mainloop/recursive_child_sources 1115s # slow test /mainloop/recursive_child_sources executed in 2.23 secs 1115s ok 27 /mainloop/recursive_loop_child_sources 1115s ok 28 /mainloop/swapping_child_sources 1115s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=701283 1115s ok 29 /mainloop/blocked_child_sources 1116s ok 30 /mainloop/source_time 1116s # slow test /mainloop/source_time executed in 1.00 secs 1116s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=687098 1116s ok 31 /mainloop/overflow 1117s # Executing: glib/mainloop.test 1117s ok 32 /mainloop/ready-time 1117s # slow test /mainloop/ready-time executed in 0.50 secs 1117s ok 33 /mainloop/wakeup 1117s ok 34 /mainloop/remove-invalid 1117s ok 35 /mainloop/unref-while-pending 1117s ok 36 /mainloop/unix-fd 1117s # slow test /mainloop/unix-fd executed in 0.61 secs 1117s ok 37 /mainloop/unix-fd-source 1117s ok 38 /mainloop/source-unix-fd-api 1118s ok 39 /mainloop/wait 1118s ok 40 /mainloop/unix-file-poll 1118s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1592 1118s ok 41 /mainloop/unix-fd-priority 1118s ok 42 /mainloop/nfds 1118s ok 43 /mainloop/steal-fd 1118s # Start of ownerless-polling tests 1118s ok 44 /mainloop/ownerless-polling/attach-first 1118s ok 45 /mainloop/ownerless-polling/pop-first 1118s # End of ownerless-polling tests 1118s # End of mainloop tests 1118s ok - glib/mainloop.test 1118s # Running test: glib/function-info.test 1118s TAP version 14 1118s # random seed: R02S0b67d36537f5955ff77c2eeef7114938 1118s 1..1 1118s # Start of function-info tests 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_function-info_2SKX52/function-info/invoker/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_function-info_2SKX52/function-info/invoker/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_function-info_2SKX52/function-info/invoker/.dirs/system-config1:/tmp/test_function-info_2SKX52/function-info/invoker/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_function-info_2SKX52/function-info/invoker/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_function-info_2SKX52/function-info/invoker/.dirs/system-data1:/tmp/test_function-info_2SKX52/function-info/invoker/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_function-info_2SKX52/function-info/invoker/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_function-info_2SKX52/function-info/invoker/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_function-info_2SKX52/function-info/invoker/.dirs/runtime 1118s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1118s # /function-info/invoker summary: Test preparing a function invoker 1118s ok 1 /function-info/invoker 1118s # End of function-info tests 1118s ok - glib/function-info.test 1118s # Running test: glib/protocol.test 1118s ok - glib/protocol.test 1118s # Running test: glib/option-argv0.test 1118s ok - glib/option-argv0.test 1118s # Running test: glib/slice.test 1118s TAP version 14 1118s # random seed: R02S99e3a799306dc7c42320d924040dcdc0 1118s 1..9 1118s # Start of glib tests 1118s # Start of testing tests 1118s # Start of protocol tests 1118s ok 1 /glib/testing/protocol/debug 1118s ok 2 /glib/testing/protocol/info 1118s ok 3 /glib/testing/protocol/message 1118s ok 4 /glib/testing/protocol/warning 1118s ok 5 /glib/testing/protocol/critical 1118s ok 6 /glib/testing/protocol/error 1118s ok 7 /glib/testing/protocol/gtest-message 1118s ok 8 /glib/testing/protocol/test-message 1118s ok 9 /glib/testing/protocol/test-error 1118s # End of protocol tests 1118s # End of testing tests 1118s # End of glib tests 1118s TAP version 14 1118s # random seed: R02S4340dfeb5ef303e2f16c1e154dc43e53 1118s 1..1 1118s # Start of option tests 1118s ok 1 /option/argv0 1118s # End of option tests 1118s TAP version 14 1118s # random seed: R02S1e6459537fe2dad90a55ed7bf5a93e2e 1118s 1..3 1118s # Start of slice tests 1118s ok 1 /slice/copy 1118s ok 2 /slice/chain 1118s ok 3 /slice/allocate 1118s # End of slice tests 1118s ok - glib/slice.test 1118s # Running test: glib/reference.test 1118s TAP version 14 1118s # random seed: R02S5d77fabdee5a472173ed101a81e2047d 1118s 1..29 1118s # Start of type tests 1118s ok 1 /type/fundamentals 1118s ok 2 /type/qdata 1118s ok 3 /type/query 1118s ok 4 /type/class-private 1118s # End of type tests 1118s # Start of object tests 1118s ok 5 /object/clear 1118s ok 6 /object/clear-function 1118s ok 7 /object/set 1118s ok 8 /object/set-function 1118s ok 9 /object/value 1118s ok 10 /object/initially-unowned 1118s ok 11 /object/weak-pointer 1118s ok 12 /object/weak-ref 1118s ok 13 /object/toggle-ref 1118s ok 14 /object/qdata 1118s ok 15 /object/qdata2 1118s # Start of set tests 1118s # /object/set/derived-type summary: Check that g_set_object() doesn?t give strict aliasing warnings when used on types derived from GObject 1118s ok 16 /object/set/derived-type 1118s # End of set tests 1118s # Start of weak-pointer tests 1118s ok 17 /object/weak-pointer/clear 1118s ok 18 /object/weak-pointer/clear-function 1118s ok 19 /object/weak-pointer/set 1118s ok 20 /object/weak-pointer/set-function 1118s # End of weak-pointer tests 1118s # Start of weak-ref tests 1118s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 1118s # /object/weak-ref/on-dispose summary: Test that a weak ref set during dispose vfunc is cleared 1118s ok 21 /object/weak-ref/on-dispose 1118s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/865 1118s # /object/weak-ref/on-run-dispose summary: Test that a weak ref is cleared on g_object_run_dispose() 1118s ok 22 /object/weak-ref/on-run-dispose 1118s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 1118s # /object/weak-ref/on-toggle-notify summary: Test that a weak ref set on toggle notify is cleared 1118s ok 23 /object/weak-ref/on-toggle-notify 1118s ok 24 /object/weak-ref/in-toggle-notify 1118s ok 25 /object/weak-ref/many 1118s # Start of concurrent tests 1118s ok 26 /object/weak-ref/concurrent/0 1118s ok 27 /object/weak-ref/concurrent/1 1118s # End of concurrent tests 1118s # End of weak-ref tests 1118s # Start of toggle-ref tests 1118s ok 28 /object/toggle-ref/ref-on-dispose 1118s ok 29 /object/toggle-ref/ref-and-notify-on-dispose 1118s # End of toggle-ref tests 1118s # End of object tests 1118s ok - glib/reference.test 1118s # Running test: glib/mem-overflow.test 1118s TAP version 14 1118s # random seed: R02S6a7473aca3d8b264b1a2975304fff71f 1118s 1..2 1118s # Start of mem tests 1118s ok 1 /mem/overflow 1118s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=615379 1118s ok 2 /mem/empty-alloc 1118s # Start of overflow tests 1118s # Start of subprocess tests 1118s # End of subprocess tests 1118s # End of overflow tests 1118s # Start of empty-alloc tests 1118s # End of empty-alloc tests 1118s # End of mem tests 1118s ok - glib/mem-overflow.test 1118s # Running test: glib/cxx-2b.test 1118s TAP version 14 1118s # random seed: R02S132938ff5c3dc01bdba4b763be6104a9 1118s 1..2 1118s # Start of gtask tests 1118s # 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. 1118s ok 1 /gtask/name 1118s # Start of name tests 1118s # 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. 1118s ok 2 /gtask/name/macro-wrapper 1118s # End of name tests 1118s # End of gtask tests 1118s ok - glib/cxx-2b.test 1118s # Running test: glib/gdbus-message.test 1118s TAP version 14 1118s # random seed: R02Sfd693607d1b6442dccb98d54c6502948 1118s 1..3 1118s # Start of gdbus tests 1118s # Start of message tests 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-message_NBRV52/gdbus/message/lock/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-message_NBRV52/gdbus/message/lock/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-message_NBRV52/gdbus/message/lock/.dirs/system-config1:/tmp/test_gdbus-message_NBRV52/gdbus/message/lock/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-message_NBRV52/gdbus/message/lock/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-message_NBRV52/gdbus/message/lock/.dirs/system-data1:/tmp/test_gdbus-message_NBRV52/gdbus/message/lock/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-message_NBRV52/gdbus/message/lock/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-message_NBRV52/gdbus/message/lock/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-message_NBRV52/gdbus/message/lock/.dirs/runtime 1118s ok 1 /gdbus/message/lock 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-message_NBRV52/gdbus/message/copy/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-message_NBRV52/gdbus/message/copy/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-message_NBRV52/gdbus/message/copy/.dirs/system-config1:/tmp/test_gdbus-message_NBRV52/gdbus/message/copy/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-message_NBRV52/gdbus/message/copy/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-message_NBRV52/gdbus/message/copy/.dirs/system-data1:/tmp/test_gdbus-message_NBRV52/gdbus/message/copy/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-message_NBRV52/gdbus/message/copy/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-message_NBRV52/gdbus/message/copy/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-message_NBRV52/gdbus/message/copy/.dirs/runtime 1118s ok 2 /gdbus/message/copy 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-message_NBRV52/gdbus/message/bytes-needed/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-message_NBRV52/gdbus/message/bytes-needed/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-message_NBRV52/gdbus/message/bytes-needed/.dirs/system-config1:/tmp/test_gdbus-message_NBRV52/gdbus/message/bytes-needed/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-message_NBRV52/gdbus/message/bytes-needed/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-message_NBRV52/gdbus/message/bytes-needed/.dirs/system-data1:/tmp/test_gdbus-message_NBRV52/gdbus/message/bytes-needed/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-message_NBRV52/gdbus/message/bytes-needed/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-message_NBRV52/gdbus/message/bytes-needed/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-message_NBRV52/gdbus/message/bytes-needed/.dirs/runtime 1118s # Vector: 0 1118s # Vector: 1 1118s # Vector: 2 1118s # Vector: 3 1118s # Vector: 4 1118s # Vector: 5 1118s ok 3 /gdbus/message/bytes-needed 1118s # End of message tests 1118s # End of gdbus tests 1118s ok - glib/gdbus-message.test 1118s # Running test: glib/repository.test 1118s TAP version 14 1118s # random seed: R02S97ca02120983648d1025e2574a02795b 1118s 1..23 1118s # Start of repository tests 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_OD0V52/repository/basic/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_OD0V52/repository/basic/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_OD0V52/repository/basic/.dirs/system-config1:/tmp/test_repository_OD0V52/repository/basic/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_OD0V52/repository/basic/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_OD0V52/repository/basic/.dirs/system-data1:/tmp/test_repository_OD0V52/repository/basic/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_OD0V52/repository/basic/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_OD0V52/repository/basic/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_OD0V52/repository/basic/.dirs/runtime 1118s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1118s # /repository/basic summary: Test basic opening of a repository and requiring a typelib 1118s ok 1 /repository/basic 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_OD0V52/repository/info/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_OD0V52/repository/info/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_OD0V52/repository/info/.dirs/system-config1:/tmp/test_repository_OD0V52/repository/info/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_OD0V52/repository/info/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_OD0V52/repository/info/.dirs/system-data1:/tmp/test_repository_OD0V52/repository/info/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_OD0V52/repository/info/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_OD0V52/repository/info/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_OD0V52/repository/info/.dirs/runtime 1118s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1118s # /repository/info summary: Test retrieving some basic info blobs from a typelib 1118s ok 2 /repository/info 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_OD0V52/repository/dependencies/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_OD0V52/repository/dependencies/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_OD0V52/repository/dependencies/.dirs/system-config1:/tmp/test_repository_OD0V52/repository/dependencies/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_OD0V52/repository/dependencies/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_OD0V52/repository/dependencies/.dirs/system-data1:/tmp/test_repository_OD0V52/repository/dependencies/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_OD0V52/repository/dependencies/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_OD0V52/repository/dependencies/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_OD0V52/repository/dependencies/.dirs/runtime 1118s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1118s # /repository/dependencies summary: Test ensures namespace dependencies are correctly exposed 1118s ok 3 /repository/dependencies 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_OD0V52/repository/arg-info/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_OD0V52/repository/arg-info/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_OD0V52/repository/arg-info/.dirs/system-config1:/tmp/test_repository_OD0V52/repository/arg-info/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_OD0V52/repository/arg-info/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_OD0V52/repository/arg-info/.dirs/system-data1:/tmp/test_repository_OD0V52/repository/arg-info/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_OD0V52/repository/arg-info/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_OD0V52/repository/arg-info/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_OD0V52/repository/arg-info/.dirs/runtime 1118s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1118s # /repository/arg-info summary: Test retrieving GIArgInfos from a typelib 1118s ok 4 /repository/arg-info 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_OD0V52/repository/callable-info/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_OD0V52/repository/callable-info/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_OD0V52/repository/callable-info/.dirs/system-config1:/tmp/test_repository_OD0V52/repository/callable-info/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_OD0V52/repository/callable-info/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_OD0V52/repository/callable-info/.dirs/system-data1:/tmp/test_repository_OD0V52/repository/callable-info/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_OD0V52/repository/callable-info/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_OD0V52/repository/callable-info/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_OD0V52/repository/callable-info/.dirs/runtime 1118s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1118s # /repository/callable-info summary: Test retrieving GICallableInfos from a typelib 1118s ok 5 /repository/callable-info 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_OD0V52/repository/callback-info/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_OD0V52/repository/callback-info/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_OD0V52/repository/callback-info/.dirs/system-config1:/tmp/test_repository_OD0V52/repository/callback-info/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_OD0V52/repository/callback-info/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_OD0V52/repository/callback-info/.dirs/system-data1:/tmp/test_repository_OD0V52/repository/callback-info/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_OD0V52/repository/callback-info/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_OD0V52/repository/callback-info/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_OD0V52/repository/callback-info/.dirs/runtime 1118s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1118s # /repository/callback-info summary: Test retrieving GICallbackInfos from a typelib 1118s ok 6 /repository/callback-info 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_OD0V52/repository/char-types/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_OD0V52/repository/char-types/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_OD0V52/repository/char-types/.dirs/system-config1:/tmp/test_repository_OD0V52/repository/char-types/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_OD0V52/repository/char-types/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_OD0V52/repository/char-types/.dirs/system-data1:/tmp/test_repository_OD0V52/repository/char-types/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_OD0V52/repository/char-types/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_OD0V52/repository/char-types/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_OD0V52/repository/char-types/.dirs/runtime 1118s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1118s # /repository/char-types summary: Test that signed and unsigned char GITypeInfo have GITypeTag of INT8 and UINT8 respectively 1118s ok 7 /repository/char-types 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_OD0V52/repository/constructor-return-type/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_OD0V52/repository/constructor-return-type/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_OD0V52/repository/constructor-return-type/.dirs/system-config1:/tmp/test_repository_OD0V52/repository/constructor-return-type/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_OD0V52/repository/constructor-return-type/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_OD0V52/repository/constructor-return-type/.dirs/system-data1:/tmp/test_repository_OD0V52/repository/constructor-return-type/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_OD0V52/repository/constructor-return-type/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_OD0V52/repository/constructor-return-type/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_OD0V52/repository/constructor-return-type/.dirs/runtime 1118s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1118s # /repository/constructor-return-type summary: Test the return type of a constructor, g_object_newv() 1118s ok 8 /repository/constructor-return-type 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_OD0V52/repository/enum-info-c-identifier/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_OD0V52/repository/enum-info-c-identifier/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_OD0V52/repository/enum-info-c-identifier/.dirs/system-config1:/tmp/test_repository_OD0V52/repository/enum-info-c-identifier/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_OD0V52/repository/enum-info-c-identifier/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_OD0V52/repository/enum-info-c-identifier/.dirs/system-data1:/tmp/test_repository_OD0V52/repository/enum-info-c-identifier/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_OD0V52/repository/enum-info-c-identifier/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_OD0V52/repository/enum-info-c-identifier/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_OD0V52/repository/enum-info-c-identifier/.dirs/runtime 1118s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1118s # /repository/enum-info-c-identifier summary: Test that every enum member has a C identifier 1118s ok 9 /repository/enum-info-c-identifier 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_OD0V52/repository/enum-info-static-methods/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_OD0V52/repository/enum-info-static-methods/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_OD0V52/repository/enum-info-static-methods/.dirs/system-config1:/tmp/test_repository_OD0V52/repository/enum-info-static-methods/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_OD0V52/repository/enum-info-static-methods/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_OD0V52/repository/enum-info-static-methods/.dirs/system-data1:/tmp/test_repository_OD0V52/repository/enum-info-static-methods/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_OD0V52/repository/enum-info-static-methods/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_OD0V52/repository/enum-info-static-methods/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_OD0V52/repository/enum-info-static-methods/.dirs/runtime 1118s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1118s # /repository/enum-info-static-methods summary: Test an enum with methods 1118s ok 10 /repository/enum-info-static-methods 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_OD0V52/repository/error-quark/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_OD0V52/repository/error-quark/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_OD0V52/repository/error-quark/.dirs/system-config1:/tmp/test_repository_OD0V52/repository/error-quark/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_OD0V52/repository/error-quark/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_OD0V52/repository/error-quark/.dirs/system-data1:/tmp/test_repository_OD0V52/repository/error-quark/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_OD0V52/repository/error-quark/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_OD0V52/repository/error-quark/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_OD0V52/repository/error-quark/.dirs/runtime 1118s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1118s # /repository/error-quark summary: Test finding an error quark by error domain 1118s ok 11 /repository/error-quark 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_OD0V52/repository/flags-info-c-identifier/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_OD0V52/repository/flags-info-c-identifier/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_OD0V52/repository/flags-info-c-identifier/.dirs/system-config1:/tmp/test_repository_OD0V52/repository/flags-info-c-identifier/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_OD0V52/repository/flags-info-c-identifier/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_OD0V52/repository/flags-info-c-identifier/.dirs/system-data1:/tmp/test_repository_OD0V52/repository/flags-info-c-identifier/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_OD0V52/repository/flags-info-c-identifier/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_OD0V52/repository/flags-info-c-identifier/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_OD0V52/repository/flags-info-c-identifier/.dirs/runtime 1118s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1118s # /repository/flags-info-c-identifier summary: Test that every flags member has a C identifier 1118s ok 12 /repository/flags-info-c-identifier 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_OD0V52/repository/fundamental-ref-func/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_OD0V52/repository/fundamental-ref-func/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_OD0V52/repository/fundamental-ref-func/.dirs/system-config1:/tmp/test_repository_OD0V52/repository/fundamental-ref-func/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_OD0V52/repository/fundamental-ref-func/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_OD0V52/repository/fundamental-ref-func/.dirs/system-data1:/tmp/test_repository_OD0V52/repository/fundamental-ref-func/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_OD0V52/repository/fundamental-ref-func/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_OD0V52/repository/fundamental-ref-func/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_OD0V52/repository/fundamental-ref-func/.dirs/runtime 1118s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1118s # /repository/fundamental-ref-func summary: Test getting the ref func of a fundamental type 1118s ok 13 /repository/fundamental-ref-func 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_OD0V52/repository/instance-method-ownership-transfer/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_OD0V52/repository/instance-method-ownership-transfer/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_OD0V52/repository/instance-method-ownership-transfer/.dirs/system-config1:/tmp/test_repository_OD0V52/repository/instance-method-ownership-transfer/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_OD0V52/repository/instance-method-ownership-transfer/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_OD0V52/repository/instance-method-ownership-transfer/.dirs/system-data1:/tmp/test_repository_OD0V52/repository/instance-method-ownership-transfer/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_OD0V52/repository/instance-method-ownership-transfer/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_OD0V52/repository/instance-method-ownership-transfer/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_OD0V52/repository/instance-method-ownership-transfer/.dirs/runtime 1118s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1118s # /repository/instance-method-ownership-transfer summary: Test two methods of the same object having opposite ownership transfer of the instance parameter 1118s ok 14 /repository/instance-method-ownership-transfer 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_OD0V52/repository/object-gtype-interfaces/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_OD0V52/repository/object-gtype-interfaces/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_OD0V52/repository/object-gtype-interfaces/.dirs/system-config1:/tmp/test_repository_OD0V52/repository/object-gtype-interfaces/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_OD0V52/repository/object-gtype-interfaces/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_OD0V52/repository/object-gtype-interfaces/.dirs/system-data1:/tmp/test_repository_OD0V52/repository/object-gtype-interfaces/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_OD0V52/repository/object-gtype-interfaces/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_OD0V52/repository/object-gtype-interfaces/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_OD0V52/repository/object-gtype-interfaces/.dirs/runtime 1118s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1118s # /repository/object-gtype-interfaces summary: Test gi_repository_get_object_gtype_interfaces() 1118s ok 15 /repository/object-gtype-interfaces 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_OD0V52/repository/signal-info-with-array-length-arg/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_OD0V52/repository/signal-info-with-array-length-arg/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_OD0V52/repository/signal-info-with-array-length-arg/.dirs/system-config1:/tmp/test_repository_OD0V52/repository/signal-info-with-array-length-arg/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_OD0V52/repository/signal-info-with-array-length-arg/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_OD0V52/repository/signal-info-with-array-length-arg/.dirs/system-data1:/tmp/test_repository_OD0V52/repository/signal-info-with-array-length-arg/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_OD0V52/repository/signal-info-with-array-length-arg/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_OD0V52/repository/signal-info-with-array-length-arg/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_OD0V52/repository/signal-info-with-array-length-arg/.dirs/runtime 1118s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1118s # /repository/signal-info-with-array-length-arg summary: Test finding the associated array length argument of an array parameter of a signal 1118s ok 16 /repository/signal-info-with-array-length-arg 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_OD0V52/repository/type-info-name/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_OD0V52/repository/type-info-name/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_OD0V52/repository/type-info-name/.dirs/system-config1:/tmp/test_repository_OD0V52/repository/type-info-name/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_OD0V52/repository/type-info-name/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_OD0V52/repository/type-info-name/.dirs/system-data1:/tmp/test_repository_OD0V52/repository/type-info-name/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_OD0V52/repository/type-info-name/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_OD0V52/repository/type-info-name/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_OD0V52/repository/type-info-name/.dirs/runtime 1118s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1118s # /repository/type-info-name summary: Test that gi_base_info_get_name() returns null for GITypeInfo 1118s # Bug Reference: https://gitlab.gnome.org/GNOME/gobject-introspection/issues/96 1118s ok 17 /repository/type-info-name 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_OD0V52/repository/vfunc-info-with-no-invoker/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_OD0V52/repository/vfunc-info-with-no-invoker/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_OD0V52/repository/vfunc-info-with-no-invoker/.dirs/system-config1:/tmp/test_repository_OD0V52/repository/vfunc-info-with-no-invoker/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_OD0V52/repository/vfunc-info-with-no-invoker/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_OD0V52/repository/vfunc-info-with-no-invoker/.dirs/system-data1:/tmp/test_repository_OD0V52/repository/vfunc-info-with-no-invoker/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_OD0V52/repository/vfunc-info-with-no-invoker/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_OD0V52/repository/vfunc-info-with-no-invoker/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_OD0V52/repository/vfunc-info-with-no-invoker/.dirs/runtime 1118s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1118s # /repository/vfunc-info-with-no-invoker summary: Test vfunc with no known invoker on object, such as GObject.dispose 1118s ok 18 /repository/vfunc-info-with-no-invoker 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_OD0V52/repository/vfunc-info-with-invoker-on-interface/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_OD0V52/repository/vfunc-info-with-invoker-on-interface/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_OD0V52/repository/vfunc-info-with-invoker-on-interface/.dirs/system-config1:/tmp/test_repository_OD0V52/repository/vfunc-info-with-invoker-on-interface/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_OD0V52/repository/vfunc-info-with-invoker-on-interface/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_OD0V52/repository/vfunc-info-with-invoker-on-interface/.dirs/system-data1:/tmp/test_repository_OD0V52/repository/vfunc-info-with-invoker-on-interface/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_OD0V52/repository/vfunc-info-with-invoker-on-interface/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_OD0V52/repository/vfunc-info-with-invoker-on-interface/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_OD0V52/repository/vfunc-info-with-invoker-on-interface/.dirs/runtime 1118s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1118s # /repository/vfunc-info-with-invoker-on-interface summary: Test vfunc with invoker on interface, such as GFile.read_async 1118s ok 19 /repository/vfunc-info-with-invoker-on-interface 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_OD0V52/repository/vfunc-info-with-invoker-on-object/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_OD0V52/repository/vfunc-info-with-invoker-on-object/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_OD0V52/repository/vfunc-info-with-invoker-on-object/.dirs/system-config1:/tmp/test_repository_OD0V52/repository/vfunc-info-with-invoker-on-object/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_OD0V52/repository/vfunc-info-with-invoker-on-object/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_OD0V52/repository/vfunc-info-with-invoker-on-object/.dirs/system-data1:/tmp/test_repository_OD0V52/repository/vfunc-info-with-invoker-on-object/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_OD0V52/repository/vfunc-info-with-invoker-on-object/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_OD0V52/repository/vfunc-info-with-invoker-on-object/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_OD0V52/repository/vfunc-info-with-invoker-on-object/.dirs/runtime 1118s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1118s # /repository/vfunc-info-with-invoker-on-object summary: Test vfunc with invoker on object, such as GAppLaunchContext.get_display 1118s ok 20 /repository/vfunc-info-with-invoker-on-object 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_OD0V52/repository/find-by-gtype/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_OD0V52/repository/find-by-gtype/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_OD0V52/repository/find-by-gtype/.dirs/system-config1:/tmp/test_repository_OD0V52/repository/find-by-gtype/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_OD0V52/repository/find-by-gtype/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_OD0V52/repository/find-by-gtype/.dirs/system-data1:/tmp/test_repository_OD0V52/repository/find-by-gtype/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_OD0V52/repository/find-by-gtype/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_OD0V52/repository/find-by-gtype/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_OD0V52/repository/find-by-gtype/.dirs/runtime 1118s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1118s # /repository/find-by-gtype summary: Test finding a GType 1118s ok 21 /repository/find-by-gtype 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_OD0V52/repository/loaded-namespaces/.dirs/home 1118s ok - glib/repository.test 1118s # Running test: glib/accumulator.test 1118s ok - glib/accumulator.test 1118s # Running test: glib/portal-support-flatpak-none.test 1118s ok - glib/portal-support-flatpak-none.test 1118s # Running test: glib/file.test 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_OD0V52/repository/loaded-namespaces/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_OD0V52/repository/loaded-namespaces/.dirs/system-config1:/tmp/test_repository_OD0V52/repository/loaded-namespaces/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_OD0V52/repository/loaded-namespaces/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_OD0V52/repository/loaded-namespaces/.dirs/system-data1:/tmp/test_repository_OD0V52/repository/loaded-namespaces/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_OD0V52/repository/loaded-namespaces/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_OD0V52/repository/loaded-namespaces/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_OD0V52/repository/loaded-namespaces/.dirs/runtime 1118s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1118s # /repository/loaded-namespaces summary: Test listing loaded namespaces 1118s ok 22 /repository/loaded-namespaces 1118s # Start of base-info tests 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_OD0V52/repository/base-info/clear/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_OD0V52/repository/base-info/clear/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_OD0V52/repository/base-info/clear/.dirs/system-config1:/tmp/test_repository_OD0V52/repository/base-info/clear/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_OD0V52/repository/base-info/clear/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_OD0V52/repository/base-info/clear/.dirs/system-data1:/tmp/test_repository_OD0V52/repository/base-info/clear/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_OD0V52/repository/base-info/clear/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_OD0V52/repository/base-info/clear/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_OD0V52/repository/base-info/clear/.dirs/runtime 1118s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1118s # /repository/base-info/clear summary: Test calling gi_base_info_clear() on a zero-filled struct 1118s ok 23 /repository/base-info/clear 1118s # End of base-info tests 1118s # End of repository tests 1118s TAP version 14 1118s # random seed: R02S93ae73894a3dfe393c16db0986c68080 1118s 1..1 1118s # Start of gobject tests 1118s ok 1 /gobject/accumulator 1118s # End of gobject tests 1118s TAP version 14 1118s # random seed: R02S1c01d9409ad24c0dedacbd23164e1f3f 1118s 1..1 1118s # Start of portal-support tests 1118s # Start of flatpak tests 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-none_KM3U52/portal-support/flatpak/none/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-none_KM3U52/portal-support/flatpak/none/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-none_KM3U52/portal-support/flatpak/none/.dirs/system-config1:/tmp/test_portal-support-flatpak-none_KM3U52/portal-support/flatpak/none/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-none_KM3U52/portal-support/flatpak/none/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-none_KM3U52/portal-support/flatpak/none/.dirs/system-data1:/tmp/test_portal-support-flatpak-none_KM3U52/portal-support/flatpak/none/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-none_KM3U52/portal-support/flatpak/none/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-none_KM3U52/portal-support/flatpak/none/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-none_KM3U52/portal-support/flatpak/none/.dirs/runtime 1118s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-none_KM3U52/portal-support/flatpak/none/.dirs/runtime/.flatpak-info 1118s ok 1 /portal-support/flatpak/none 1118s # End of flatpak tests 1118s # End of portal-support tests 1118s TAP version 14 1118s # random seed: R02S48d9dfe81fbb88965d9e475f72f096df 1118s 1..55 1118s # Start of file tests 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/basic/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/basic/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/basic/.dirs/system-config1:/tmp/test_file_7PCV52/file/basic/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/basic/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/basic/.dirs/system-data1:/tmp/test_file_7PCV52/file/basic/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/basic/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/basic/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/basic/.dirs/runtime 1118s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1118s ok 1 /file/basic 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/build-filename/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/build-filename/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/build-filename/.dirs/system-config1:/tmp/test_file_7PCV52/file/build-filename/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/build-filename/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/build-filename/.dirs/system-data1:/tmp/test_file_7PCV52/file/build-filename/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/build-filename/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/build-filename/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/build-filename/.dirs/runtime 1118s ok 2 /file/build-filename 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/build-filenamev/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/build-filenamev/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/build-filenamev/.dirs/system-config1:/tmp/test_file_7PCV52/file/build-filenamev/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/build-filenamev/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/build-filenamev/.dirs/system-data1:/tmp/test_file_7PCV52/file/build-filenamev/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/build-filenamev/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/build-filenamev/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/build-filenamev/.dirs/runtime 1118s ok 3 /file/build-filenamev 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/parent/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/parent/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/parent/.dirs/system-config1:/tmp/test_file_7PCV52/file/parent/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/parent/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/parent/.dirs/system-data1:/tmp/test_file_7PCV52/file/parent/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/parent/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/parent/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/parent/.dirs/runtime 1118s ok 4 /file/parent 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/child/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/child/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/child/.dirs/system-config1:/tmp/test_file_7PCV52/file/child/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/child/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/child/.dirs/system-data1:/tmp/test_file_7PCV52/file/child/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/child/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/child/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/child/.dirs/runtime 1118s ok 5 /file/child 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/empty-path/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/empty-path/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/empty-path/.dirs/system-config1:/tmp/test_file_7PCV52/file/empty-path/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/empty-path/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/empty-path/.dirs/system-data1:/tmp/test_file_7PCV52/file/empty-path/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/empty-path/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/empty-path/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/empty-path/.dirs/runtime 1118s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2328 1118s # /file/empty-path summary: Check that creating a file with an empty path results in errors 1118s ok 6 /file/empty-path 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/type/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/type/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/type/.dirs/system-config1:/tmp/test_file_7PCV52/file/type/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/type/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/type/.dirs/system-data1:/tmp/test_file_7PCV52/file/type/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/type/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/type/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/type/.dirs/runtime 1118s ok 7 /file/type 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/parse-name/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/parse-name/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/parse-name/.dirs/system-config1:/tmp/test_file_7PCV52/file/parse-name/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/parse-name/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/parse-name/.dirs/system-data1:/tmp/test_file_7PCV52/file/parse-name/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/parse-name/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/parse-name/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/parse-name/.dirs/runtime 1118s ok 8 /file/parse-name 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/replace-load/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/replace-load/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/replace-load/.dirs/system-config1:/tmp/test_file_7PCV52/file/replace-load/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/replace-load/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/replace-load/.dirs/system-data1:/tmp/test_file_7PCV52/file/replace-load/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/replace-load/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/replace-load/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/replace-load/.dirs/runtime 1118s ok 9 /file/replace-load 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/replace-cancel/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/replace-cancel/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/replace-cancel/.dirs/system-config1:/tmp/test_file_7PCV52/file/replace-cancel/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/replace-cancel/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/replace-cancel/.dirs/system-data1:/tmp/test_file_7PCV52/file/replace-cancel/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/replace-cancel/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/replace-cancel/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/replace-cancel/.dirs/runtime 1118s # Bug Reference: https://bugzilla.gnome.org/629301 1118s ok 10 /file/replace-cancel 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/replace-symlink/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/replace-symlink/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/replace-symlink/.dirs/system-config1:/tmp/test_file_7PCV52/file/replace-symlink/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/replace-symlink/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/replace-symlink/.dirs/system-data1:/tmp/test_file_7PCV52/file/replace-symlink/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/replace-symlink/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/replace-symlink/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/replace-symlink/.dirs/runtime 1118s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2325 1118s # /file/replace-symlink summary: Test that G_FILE_CREATE_REPLACE_DESTINATION doesn’t follow symlinks 1118s # Using temporary directory /tmp/test_file_7PCV52/g_file_replace_symlink_IAF852 1118s ok 11 /file/replace-symlink 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/async-new-tmp/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/async-new-tmp/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/async-new-tmp/.dirs/system-config1:/tmp/test_file_7PCV52/file/async-new-tmp/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/async-new-tmp/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/async-new-tmp/.dirs/system-data1:/tmp/test_file_7PCV52/file/async-new-tmp/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/async-new-tmp/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/async-new-tmp/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/async-new-tmp/.dirs/runtime 1118s ok 12 /file/async-new-tmp 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/async-new-tmp-dir/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/async-new-tmp-dir/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/async-new-tmp-dir/.dirs/system-config1:/tmp/test_file_7PCV52/file/async-new-tmp-dir/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/async-new-tmp-dir/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/async-new-tmp-dir/.dirs/system-data1:/tmp/test_file_7PCV52/file/async-new-tmp-dir/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/async-new-tmp-dir/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/async-new-tmp-dir/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/async-new-tmp-dir/.dirs/runtime 1118s ok 13 /file/async-new-tmp-dir 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/async-delete/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/async-delete/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/async-delete/.dirs/system-config1:/tmp/test_file_7PCV52/file/async-delete/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/async-delete/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/async-delete/.dirs/system-data1:/tmp/test_file_7PCV52/file/async-delete/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/async-delete/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/async-delete/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/async-delete/.dirs/runtime 1118s ok 14 /file/async-delete 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/async-make-symlink/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/async-make-symlink/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/async-make-symlink/.dirs/system-config1:/tmp/test_file_7PCV52/file/async-make-symlink/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/async-make-symlink/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/async-make-symlink/.dirs/system-data1:/tmp/test_file_7PCV52/file/async-make-symlink/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/async-make-symlink/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/async-make-symlink/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/async-make-symlink/.dirs/runtime 1118s ok 15 /file/async-make-symlink 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/copy-preserve-mode/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/copy-preserve-mode/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/copy-preserve-mode/.dirs/system-config1:/tmp/test_file_7PCV52/file/copy-preserve-mode/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/copy-preserve-mode/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/copy-preserve-mode/.dirs/system-data1:/tmp/test_file_7PCV52/file/copy-preserve-mode/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/copy-preserve-mode/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/copy-preserve-mode/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/copy-preserve-mode/.dirs/runtime 1118s # Current umask: 2 1118s # Vector 0 1118s # Vector 1 1118s # Vector 2 1118s # Vector 3 1118s # Vector 4 1118s # Vector 5 1118s # Vector 6 1118s # Vector 7 1118s # Vector 8 1118s # Vector 9 1118s # Vector 10 1118s ok 16 /file/copy-preserve-mode 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/copy-async-with-closures/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/copy-async-with-closures/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/copy-async-with-closures/.dirs/system-config1:/tmp/test_file_7PCV52/file/copy-async-with-closures/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/copy-async-with-closures/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/copy-async-with-closures/.dirs/system-data1:/tmp/test_file_7PCV52/file/copy-async-with-closures/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/copy-async-with-closures/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/copy-async-with-closures/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/copy-async-with-closures/.dirs/runtime 1118s ok 17 /file/copy-async-with-closures 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/measure/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/measure/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/measure/.dirs/system-config1:/tmp/test_file_7PCV52/file/measure/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/measure/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/measure/.dirs/system-data1:/tmp/test_file_7PCV52/file/measure/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/measure/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/measure/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/measure/.dirs/runtime 1118s ok 18 /file/measure 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/measure-async/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/measure-async/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/measure-async/.dirs/system-config1:/tmp/test_file_7PCV52/file/measure-async/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/measure-async/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/measure-async/.dirs/system-data1:/tmp/test_file_7PCV52/file/measure-async/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/measure-async/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/measure-async/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/measure-async/.dirs/runtime 1118s ok 19 /file/measure-async 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/load-bytes/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/load-bytes/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/load-bytes/.dirs/system-config1:/tmp/test_file_7PCV52/file/load-bytes/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/load-bytes/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/load-bytes/.dirs/system-data1:/tmp/test_file_7PCV52/file/load-bytes/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/load-bytes/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/load-bytes/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/load-bytes/.dirs/runtime 1118s ok 20 /file/load-bytes 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/load-bytes-async/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/load-bytes-async/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/load-bytes-async/.dirs/system-config1:/tmp/test_file_7PCV52/file/load-bytes-async/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/load-bytes-async/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/load-bytes-async/.dirs/system-data1:/tmp/test_file_7PCV52/file/load-bytes-async/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/load-bytes-async/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/load-bytes-async/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/load-bytes-async/.dirs/runtime 1118s ok 21 /file/load-bytes-async 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/load-bytes-4gb/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/load-bytes-4gb/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/load-bytes-4gb/.dirs/system-config1:/tmp/test_file_7PCV52/file/load-bytes-4gb/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/load-bytes-4gb/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/load-bytes-4gb/.dirs/system-data1:/tmp/test_file_7PCV52/file/load-bytes-4gb/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/load-bytes-4gb/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/load-bytes-4gb/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/load-bytes-4gb/.dirs/runtime 1118s ok 22 /file/load-bytes-4gb # SKIP Skipping slow >4GB file test 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/load-contents-4gb/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/load-contents-4gb/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/load-contents-4gb/.dirs/system-config1:/tmp/test_file_7PCV52/file/load-contents-4gb/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/load-contents-4gb/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/load-contents-4gb/.dirs/system-data1:/tmp/test_file_7PCV52/file/load-contents-4gb/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/load-contents-4gb/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/load-contents-4gb/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/load-contents-4gb/.dirs/runtime 1118s ok 23 /file/load-contents-4gb # SKIP Skipping slow >4GB file test 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/load-contents-4gb-async/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/load-contents-4gb-async/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/load-contents-4gb-async/.dirs/system-config1:/tmp/test_file_7PCV52/file/load-contents-4gb-async/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/load-contents-4gb-async/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/load-contents-4gb-async/.dirs/system-data1:/tmp/test_file_7PCV52/file/load-contents-4gb-async/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/load-contents-4gb-async/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/load-contents-4gb-async/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/load-contents-4gb-async/.dirs/runtime 1118s ok 24 /file/load-contents-4gb-async # SKIP Skipping slow >4GB file test 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/writev/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/writev/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/writev/.dirs/system-config1:/tmp/test_file_7PCV52/file/writev/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/writev/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/writev/.dirs/system-data1:/tmp/test_file_7PCV52/file/writev/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/writev/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/writev/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/writev/.dirs/runtime 1118s ok 25 /file/writev 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/build-attribute-list-for-copy/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/build-attribute-list-for-copy/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/build-attribute-list-for-copy/.dirs/system-config1:/tmp/test_file_7PCV52/file/build-attribute-list-for-copy/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/build-attribute-list-for-copy/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/build-attribute-list-for-copy/.dirs/system-data1:/tmp/test_file_7PCV52/file/build-attribute-list-for-copy/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/build-attribute-list-for-copy/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/build-attribute-list-for-copy/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/build-attribute-list-for-copy/.dirs/runtime 1118s # Attributes for copy: standard::size,time::modified,time::modified-nsec,time::modified-usec,unix::mode,xattr::* 1118s # Attributes for copy: standard::size,time::modified,time::modified-nsec,time::modified-usec,xattr::* 1118s # 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::* 1118s # 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::* 1118s # Attributes for copy: standard::size,time::access,time::access-nsec,time::access-usec,unix::gid,unix::mode,unix::uid,xattr::*,xattr-sys::* 1118s # Attributes for copy: standard::size,xattr::* 1118s # Attributes for copy: standard::size,unix::mode,xattr::* 1118s ok 26 /file/build-attribute-list-for-copy 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/move_async/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/move_async/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/move_async/.dirs/system-config1:/tmp/test_file_7PCV52/file/move_async/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/move_async/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/move_async/.dirs/system-data1:/tmp/test_file_7PCV52/file/move_async/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/move_async/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/move_async/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/move_async/.dirs/runtime 1118s ok 27 /file/move_async 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/move-async-with-closures/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/move-async-with-closures/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/move-async-with-closures/.dirs/system-config1:/tmp/test_file_7PCV52/file/move-async-with-closures/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/move-async-with-closures/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/move-async-with-closures/.dirs/system-data1:/tmp/test_file_7PCV52/file/move-async-with-closures/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/move-async-with-closures/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/move-async-with-closures/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/move-async-with-closures/.dirs/runtime 1118s ok 28 /file/move-async-with-closures 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/query-zero-length-content-type/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/query-zero-length-content-type/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/query-zero-length-content-type/.dirs/system-config1:/tmp/test_file_7PCV52/file/query-zero-length-content-type/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/query-zero-length-content-type/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/query-zero-length-content-type/.dirs/system-data1:/tmp/test_file_7PCV52/file/query-zero-length-content-type/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/query-zero-length-content-type/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/query-zero-length-content-type/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/query-zero-length-content-type/.dirs/runtime 1118s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=755795 1118s # /file/query-zero-length-content-type summary: empty files should always be considered application/x-zerosize 1118s ok 29 /file/query-zero-length-content-type 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/query-default-handler-file/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/query-default-handler-file/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/query-default-handler-file/.dirs/system-config1:/tmp/test_file_7PCV52/file/query-default-handler-file/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/query-default-handler-file/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/query-default-handler-file/.dirs/system-data1:/tmp/test_file_7PCV52/file/query-default-handler-file/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/query-default-handler-file/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/query-default-handler-file/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/query-default-handler-file/.dirs/runtime 1118s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_7PCV52/file/query-default-handler-file/.dirs/data/applications 1118s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_7PCV52/file/query-default-handler-file/.dirs/config 1118s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_7PCV52/file/query-default-handler-file/.dirs/config 1118s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_7PCV52/file/query-default-handler-file/.dirs/config 1118s ok 30 /file/query-default-handler-file 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/query-default-handler-file-async/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/query-default-handler-file-async/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/query-default-handler-file-async/.dirs/system-config1:/tmp/test_file_7PCV52/file/query-default-handler-file-async/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/query-default-handler-file-async/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/query-default-handler-file-async/.dirs/system-data1:/tmp/test_file_7PCV52/file/query-default-handler-file-async/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/query-default-handler-file-async/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/query-default-handler-file-async/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/query-default-handler-file-async/.dirs/runtime 1118s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_7PCV52/file/query-default-handler-file-async/.dirs/data/applications 1118s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_7PCV52/file/query-default-handler-file-async/.dirs/config 1118s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_7PCV52/file/query-default-handler-file/.dirs/config to /tmp/test_file_7PCV52/file/query-default-handler-file-async/.dirs/config 1118s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_7PCV52/file/query-default-handler-file-async/.dirs/config 1118s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_7PCV52/file/query-default-handler-file-async/.dirs/config 1118s ok 31 /file/query-default-handler-file-async 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/query-default-handler-uri/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/query-default-handler-uri/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/query-default-handler-uri/.dirs/system-config1:/tmp/test_file_7PCV52/file/query-default-handler-uri/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/query-default-handler-uri/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/query-default-handler-uri/.dirs/system-data1:/tmp/test_file_7PCV52/file/query-default-handler-uri/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/query-default-handler-uri/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/query-default-handler-uri/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/query-default-handler-uri/.dirs/runtime 1118s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_7PCV52/file/query-default-handler-uri/.dirs/data/applications 1118s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_7PCV52/file/query-default-handler-uri/.dirs/config 1118s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_7PCV52/file/query-default-handler-file-async/.dirs/config to /tmp/test_file_7PCV52/file/query-default-handler-uri/.dirs/config 1118s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_7PCV52/file/query-default-handler-uri/.dirs/config 1118s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_7PCV52/file/query-default-handler-uri/.dirs/config 1118s ok 32 /file/query-default-handler-uri 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/query-default-handler-uri-async/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/query-default-handler-uri-async/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/query-default-handler-uri-async/.dirs/system-config1:/tmp/test_file_7PCV52/file/query-default-handler-uri-async/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/query-default-handler-uri-async/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/query-default-handler-uri-async/.dirs/system-data1:/tmp/test_file_7PCV52/file/query-default-handler-uri-async/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/query-default-handler-uri-async/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/query-default-handler-uri-async/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/query-default-handler-uri-async/.dirs/runtime 1118s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_7PCV52/file/query-default-handler-uri-async/.dirs/data/applications 1118s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_7PCV52/file/query-default-handler-uri-async/.dirs/config 1118s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_7PCV52/file/query-default-handler-uri/.dirs/config to /tmp/test_file_7PCV52/file/query-default-handler-uri-async/.dirs/config 1118s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_7PCV52/file/query-default-handler-uri-async/.dirs/config 1118s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_7PCV52/file/query-default-handler-uri-async/.dirs/config 1118s ok 33 /file/query-default-handler-uri-async 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/enumerator-cancellation/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/enumerator-cancellation/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/enumerator-cancellation/.dirs/system-config1:/tmp/test_file_7PCV52/file/enumerator-cancellation/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/enumerator-cancellation/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/enumerator-cancellation/.dirs/system-data1:/tmp/test_file_7PCV52/file/enumerator-cancellation/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/enumerator-cancellation/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/enumerator-cancellation/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/enumerator-cancellation/.dirs/runtime 1118s ok 34 /file/enumerator-cancellation 1118s # Start of async-create-delete tests 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/async-create-delete/0/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/async-create-delete/0/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/async-create-delete/0/.dirs/system-config1:/tmp/test_file_7PCV52/file/async-create-delete/0/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/async-create-delete/0/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/async-create-delete/0/.dirs/system-data1:/tmp/test_file_7PCV52/file/async-create-delete/0/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/async-create-delete/0/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/async-create-delete/0/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/async-create-delete/0/.dirs/runtime 1118s ok 35 /file/async-create-delete/0 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/async-create-delete/1/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/async-create-delete/1/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/async-create-delete/1/.dirs/system-config1:/tmp/test_file_7PCV52/file/async-create-delete/1/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/async-create-delete/1/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/async-create-delete/1/.dirs/system-data1:/tmp/test_file_7PCV52/file/async-create-delete/1/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/async-create-delete/1/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/async-create-delete/1/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/async-create-delete/1/.dirs/runtime 1118s ok 36 /file/async-create-delete/1 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/async-create-delete/10/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/async-create-delete/10/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/async-create-delete/10/.dirs/system-config1:/tmp/test_file_7PCV52/file/async-create-delete/10/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/async-create-delete/10/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/async-create-delete/10/.dirs/system-data1:/tmp/test_file_7PCV52/file/async-create-delete/10/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/async-create-delete/10/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/async-create-delete/10/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/async-create-delete/10/.dirs/runtime 1118s ok 37 /file/async-create-delete/10 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/async-create-delete/25/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/async-create-delete/25/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/async-create-delete/25/.dirs/system-config1:/tmp/test_file_7PCV52/file/async-create-delete/25/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/async-create-delete/25/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/async-create-delete/25/.dirs/system-data1:/tmp/test_file_7PCV52/file/async-create-delete/25/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/async-create-delete/25/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/async-create-delete/25/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/async-create-delete/25/.dirs/runtime 1118s ok 38 /file/async-create-delete/25 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/async-create-delete/4096/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/async-create-delete/4096/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/async-create-delete/4096/.dirs/system-config1:/tmp/test_file_7PCV52/file/async-create-delete/4096/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/async-create-delete/4096/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/async-create-delete/4096/.dirs/system-data1:/tmp/test_file_7PCV52/file/async-create-delete/4096/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/async-create-delete/4096/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/async-create-delete/4096/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/async-create-delete/4096/.dirs/runtime 1118s ok 39 /file/async-create-delete/4096 1118s # End of async-create-delete tests 1118s # Start of replace-symlink tests 1118s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/replace-symlink/using-etag/.dirs/home 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/replace-symlink/using-etag/.dirs/cache 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/replace-symlink/using-etag/.dirs/system-config1:/tmp/test_file_7PCV52/file/replace-symlink/using-etag/.dirs/system-config2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/replace-symlink/using-etag/.dirs/config 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/replace-symlink/using-etag/.dirs/system-data1:/tmp/test_file_7PCV52/file/replace-symlink/using-etag/.dirs/system-data2 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/replace-symlink/using-etag/.dirs/data 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/replace-symlink/using-etag/.dirs/state 1118s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/replace-symlink/using-etag/.dirs/runtime 1118s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2417 1118s # /file/replace-symlink/using-etag summary: Test that ETag checks work when replacing a file through a symlink 1118s # Using temporary directory /tmp/test_file_7PCV52/g_file_replace_symlink_using_etag_VUM552 1120s ok 40 /file/replace-symlink/using-etag 1120s # slow test /file/replace-symlink/using-etag executed in 2.01 secs 1120s # End of replace-symlink tests 1120s # Start of replace tests 1120s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/replace/write-only/.dirs/home 1120s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/replace/write-only/.dirs/cache 1120s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/replace/write-only/.dirs/system-config1:/tmp/test_file_7PCV52/file/replace/write-only/.dirs/system-config2 1120s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/replace/write-only/.dirs/config 1120s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/replace/write-only/.dirs/system-data1:/tmp/test_file_7PCV52/file/replace/write-only/.dirs/system-data2 1120s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/replace/write-only/.dirs/data 1120s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/replace/write-only/.dirs/state 1120s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/replace/write-only/.dirs/runtime 1120s # /file/replace/write-only summary: Test various situations for g_file_replace() 1120s # Current umask: 2 1120s # Test 0, using temporary directory /tmp/test_file_7PCV52/g_file_replace_IOT552 1120s # Test 1, using temporary directory /tmp/test_file_7PCV52/g_file_replace_I8S552 1120s # Test 2, using temporary directory /tmp/test_file_7PCV52/g_file_replace_9AY552 1120s # Test 3, using temporary directory /tmp/test_file_7PCV52/g_file_replace_8LN452 1120s # Test 4, using temporary directory /tmp/test_file_7PCV52/g_file_replace_BYM452 1121s # Test 5, using temporary directory /tmp/test_file_7PCV52/g_file_replace_DIP452 1121s # Test 6, using temporary directory /tmp/test_file_7PCV52/g_file_replace_MDS452 1121s # Test 7, using temporary directory /tmp/test_file_7PCV52/g_file_replace_H1U452 1121s # Test 8, using temporary directory /tmp/test_file_7PCV52/g_file_replace_4EU452 1121s # Test 9, using temporary directory /tmp/test_file_7PCV52/g_file_replace_V5W452 1121s # Test 10, using temporary directory /tmp/test_file_7PCV52/g_file_replace_GKZ452 1121s # Test 11, using temporary directory /tmp/test_file_7PCV52/g_file_replace_V84452 1121s # Test 12, using temporary directory /tmp/test_file_7PCV52/g_file_replace_YO4452 1121s # Test 13, using temporary directory /tmp/test_file_7PCV52/g_file_replace_D53452 1121s # Test 14, using temporary directory /tmp/test_file_7PCV52/g_file_replace_CB8452 1121s # Test 15, using temporary directory /tmp/test_file_7PCV52/g_file_replace_DXP652 1121s # Test 16, using temporary directory /tmp/test_file_7PCV52/g_file_replace_LAS652 1121s # Test 17, using temporary directory /tmp/test_file_7PCV52/g_file_replace_K7X652 1121s # Test 18, using temporary directory /tmp/test_file_7PCV52/g_file_replace_9E1652 1121s # Test 19, using temporary directory /tmp/test_file_7PCV52/g_file_replace_6YUW52 1121s # Test 20, using temporary directory /tmp/test_file_7PCV52/g_file_replace_IGWW52 1121s # Test 21, using temporary directory /tmp/test_file_7PCV52/g_file_replace_OWZW52 1121s # Test 22, using temporary directory /tmp/test_file_7PCV52/g_file_replace_692W52 1121s # Test 23, using temporary directory /tmp/test_file_7PCV52/g_file_replace_P32W52 1121s # Test 24, using temporary directory /tmp/test_file_7PCV52/g_file_replace_V75W52 1121s # Test 25, using temporary directory /tmp/test_file_7PCV52/g_file_replace_CJ9W52 1121s # Test 26, using temporary directory /tmp/test_file_7PCV52/g_file_replace_W7BX52 1121s # Test 27, using temporary directory /tmp/test_file_7PCV52/g_file_replace_5UBX52 1121s # Test 28, using temporary directory /tmp/test_file_7PCV52/g_file_replace_ABFX52 1121s # Test 29, using temporary directory /tmp/test_file_7PCV52/g_file_replace_4LGX52 1121s # Test 30, using temporary directory /tmp/test_file_7PCV52/g_file_replace_X5FX52 1121s # Test 31, using temporary directory /tmp/test_file_7PCV52/g_file_replace_U0FX52 1121s # Test 32, using temporary directory /tmp/test_file_7PCV52/g_file_replace_BEJX52 1121s # Test 33, using temporary directory /tmp/test_file_7PCV52/g_file_replace_A87V52 1121s # Test 34, using temporary directory /tmp/test_file_7PCV52/g_file_replace_9Z7V52 1121s # Test 35, using temporary directory /tmp/test_file_7PCV52/g_file_replace_FS7V52 1121s # Test 36, using temporary directory /tmp/test_file_7PCV52/g_file_replace_YSAW52 1121s # Test 37, using temporary directory /tmp/test_file_7PCV52/g_file_replace_MJEW52 1121s # Test 38, using temporary directory /tmp/test_file_7PCV52/g_file_replace_BMHW52 1121s # Test 39, using temporary directory /tmp/test_file_7PCV52/g_file_replace_33KW52 1121s # Test 40, using temporary directory /tmp/test_file_7PCV52/g_file_replace_UNLW52 1121s # Test 41, using temporary directory /tmp/test_file_7PCV52/g_file_replace_LNRW52 1121s # Test 42, using temporary directory /tmp/test_file_7PCV52/g_file_replace_R3TW52 1121s # Test 43, using temporary directory /tmp/test_file_7PCV52/g_file_replace_UNBY52 1121s # Test 44, using temporary directory /tmp/test_file_7PCV52/g_file_replace_T3EY52 1121s # Test 45, using temporary directory /tmp/test_file_7PCV52/g_file_replace_MWEY52 1121s # Test 46, using temporary directory /tmp/test_file_7PCV52/g_file_replace_ADIY52 1121s # Test 47, using temporary directory /tmp/test_file_7PCV52/g_file_replace_A6HY52 1121s # Test 48, using temporary directory /tmp/test_file_7PCV52/g_file_replace_UOJY52 1121s # We do not have CAP_DAC_OVERRIDE or equivalent 1121s ok 41 /file/replace/write-only 1121s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/replace/read-write/.dirs/home 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/replace/read-write/.dirs/cache 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/replace/read-write/.dirs/system-config1:/tmp/test_file_7PCV52/file/replace/read-write/.dirs/system-config2 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/replace/read-write/.dirs/config 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/replace/read-write/.dirs/system-data1:/tmp/test_file_7PCV52/file/replace/read-write/.dirs/system-data2 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/replace/read-write/.dirs/data 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/replace/read-write/.dirs/state 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/replace/read-write/.dirs/runtime 1121s # /file/replace/read-write summary: Test various situations for g_file_replace() 1121s # Current umask: 2 1121s # Test 0, using temporary directory /tmp/test_file_7PCV52/g_file_replace_H4IY52 1121s # Test 1, using temporary directory /tmp/test_file_7PCV52/g_file_replace_Z2LY52 1121s # Test 2, using temporary directory /tmp/test_file_7PCV52/g_file_replace_X3NY52 1121s # Test 3, using temporary directory /tmp/test_file_7PCV52/g_file_replace_QSPY52 1121s # Test 4, using temporary directory /tmp/test_file_7PCV52/g_file_replace_ZIPY52 1121s # Test 5, using temporary directory /tmp/test_file_7PCV52/g_file_replace_HBPY52 1121s # Test 6, using temporary directory /tmp/test_file_7PCV52/g_file_replace_EJSY52 1121s # Test 7, using temporary directory /tmp/test_file_7PCV52/g_file_replace_A2VY52 1121s # Test 8, using temporary directory /tmp/test_file_7PCV52/g_file_replace_RTVY52 1121s # Test 9, using temporary directory /tmp/test_file_7PCV52/g_file_replace_WMVY52 1121s # Test 10, using temporary directory /tmp/test_file_7PCV52/g_file_replace_SIKX52 1121s # Test 11, using temporary directory /tmp/test_file_7PCV52/g_file_replace_M1NX52 1121s # Test 12, using temporary directory /tmp/test_file_7PCV52/g_file_replace_WTNX52 1121s # Test 13, using temporary directory /tmp/test_file_7PCV52/g_file_replace_CNNX52 1121s # Test 14, using temporary directory /tmp/test_file_7PCV52/g_file_replace_Q7OX52 1121s # Test 15, using temporary directory /tmp/test_file_7PCV52/g_file_replace_ZDSX52 1121s # Test 16, using temporary directory /tmp/test_file_7PCV52/g_file_replace_G5VX52 1121s # Test 17, using temporary directory /tmp/test_file_7PCV52/g_file_replace_HEZX52 1121s # Test 18, using temporary directory /tmp/test_file_7PCV52/g_file_replace_NV2X52 1121s # Test 19, using temporary directory /tmp/test_file_7PCV52/g_file_replace_I14X52 1121s # Test 20, using temporary directory /tmp/test_file_7PCV52/g_file_replace_OP6X52 1121s # Test 21, using temporary directory /tmp/test_file_7PCV52/g_file_replace_64OZ52 1121s # Test 22, using temporary directory /tmp/test_file_7PCV52/g_file_replace_SOSZ52 1121s # Test 23, using temporary directory /tmp/test_file_7PCV52/g_file_replace_3HSZ52 1121s # Test 24, using temporary directory /tmp/test_file_7PCV52/g_file_replace_FXSZ52 1121s # Test 25, using temporary directory /tmp/test_file_7PCV52/g_file_replace_LHYZ52 1121s # Test 26, using temporary directory /tmp/test_file_7PCV52/g_file_replace_OYXZ52 1121s # Test 27, using temporary directory /tmp/test_file_7PCV52/g_file_replace_6P0Z52 1121s # Test 28, using temporary directory /tmp/test_file_7PCV52/g_file_replace_TT2Z52 1121s # Test 29, using temporary directory /tmp/test_file_7PCV52/g_file_replace_XN7Z52 1121s # Test 30, using temporary directory /tmp/test_file_7PCV52/g_file_replace_L09Z52 1121s # Test 31, using temporary directory /tmp/test_file_7PCV52/g_file_replace_QK9Z52 1121s # Test 32, using temporary directory /tmp/test_file_7PCV52/g_file_replace_WQC052 1121s # Test 33, using temporary directory /tmp/test_file_7PCV52/g_file_replace_980Y52 1121s # Test 34, using temporary directory /tmp/test_file_7PCV52/g_file_replace_VO0Y52 1121s # Test 35, using temporary directory /tmp/test_file_7PCV52/g_file_replace_QG3Y52 1121s # Test 36, using temporary directory /tmp/test_file_7PCV52/g_file_replace_6M5Y52 1121s # Test 37, using temporary directory /tmp/test_file_7PCV52/g_file_replace_JJ8Y52 1121s # Test 38, using temporary directory /tmp/test_file_7PCV52/g_file_replace_GGDZ52 1121s # Test 39, using temporary directory /tmp/test_file_7PCV52/g_file_replace_37IZ52 1121s # Test 40, using temporary directory /tmp/test_file_7PCV52/g_file_replace_I9JZ52 1121s # Test 41, using temporary directory /tmp/test_file_7PCV52/g_file_replace_YU3052 1121s # Test 42, using temporary directory /tmp/test_file_7PCV52/g_file_replace_FK6052 1121s # Test 43, using temporary directory /tmp/test_file_7PCV52/g_file_replace_SIB152 1121s # Test 44, using temporary directory /tmp/test_file_7PCV52/g_file_replace_R8D152 1121s # Test 45, using temporary directory /tmp/test_file_7PCV52/g_file_replace_NSD152 1121s # Test 46, using temporary directory /tmp/test_file_7PCV52/g_file_replace_U1G152 1121s # Test 47, using temporary directory /tmp/test_file_7PCV52/g_file_replace_COJ152 1121s # Test 48, using temporary directory /tmp/test_file_7PCV52/g_file_replace_N8K152 1121s # We do not have CAP_DAC_OVERRIDE or equivalent 1121s ok 42 /file/replace/read-write 1121s # End of replace tests 1121s # Start of copy tests 1121s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/copy/progress/.dirs/home 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/copy/progress/.dirs/cache 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/copy/progress/.dirs/system-config1:/tmp/test_file_7PCV52/file/copy/progress/.dirs/system-config2 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/copy/progress/.dirs/config 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/copy/progress/.dirs/system-data1:/tmp/test_file_7PCV52/file/copy/progress/.dirs/system-data2 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/copy/progress/.dirs/data 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/copy/progress/.dirs/state 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/copy/progress/.dirs/runtime 1121s ok 43 /file/copy/progress 1121s # End of copy tests 1121s # Start of writev tests 1121s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/writev/no-bytes-written/.dirs/home 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/writev/no-bytes-written/.dirs/cache 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/writev/no-bytes-written/.dirs/system-config1:/tmp/test_file_7PCV52/file/writev/no-bytes-written/.dirs/system-config2 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/writev/no-bytes-written/.dirs/config 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/writev/no-bytes-written/.dirs/system-data1:/tmp/test_file_7PCV52/file/writev/no-bytes-written/.dirs/system-data2 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/writev/no-bytes-written/.dirs/data 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/writev/no-bytes-written/.dirs/state 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/writev/no-bytes-written/.dirs/runtime 1121s ok 44 /file/writev/no-bytes-written 1121s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/writev/no-vectors/.dirs/home 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/writev/no-vectors/.dirs/cache 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/writev/no-vectors/.dirs/system-config1:/tmp/test_file_7PCV52/file/writev/no-vectors/.dirs/system-config2 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/writev/no-vectors/.dirs/config 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/writev/no-vectors/.dirs/system-data1:/tmp/test_file_7PCV52/file/writev/no-vectors/.dirs/system-data2 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/writev/no-vectors/.dirs/data 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/writev/no-vectors/.dirs/state 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/writev/no-vectors/.dirs/runtime 1121s ok 45 /file/writev/no-vectors 1121s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/writev/empty-vectors/.dirs/home 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/writev/empty-vectors/.dirs/cache 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/writev/empty-vectors/.dirs/system-config1:/tmp/test_file_7PCV52/file/writev/empty-vectors/.dirs/system-config2 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/writev/empty-vectors/.dirs/config 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/writev/empty-vectors/.dirs/system-data1:/tmp/test_file_7PCV52/file/writev/empty-vectors/.dirs/system-data2 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/writev/empty-vectors/.dirs/data 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/writev/empty-vectors/.dirs/state 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/writev/empty-vectors/.dirs/runtime 1121s ok 46 /file/writev/empty-vectors 1121s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/writev/too-big-vectors/.dirs/home 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/writev/too-big-vectors/.dirs/cache 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/writev/too-big-vectors/.dirs/system-config1:/tmp/test_file_7PCV52/file/writev/too-big-vectors/.dirs/system-config2 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/writev/too-big-vectors/.dirs/config 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/writev/too-big-vectors/.dirs/system-data1:/tmp/test_file_7PCV52/file/writev/too-big-vectors/.dirs/system-data2 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/writev/too-big-vectors/.dirs/data 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/writev/too-big-vectors/.dirs/state 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/writev/too-big-vectors/.dirs/runtime 1121s ok 47 /file/writev/too-big-vectors 1121s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/writev/async/.dirs/home 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/writev/async/.dirs/cache 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/writev/async/.dirs/system-config1:/tmp/test_file_7PCV52/file/writev/async/.dirs/system-config2 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/writev/async/.dirs/config 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/writev/async/.dirs/system-data1:/tmp/test_file_7PCV52/file/writev/async/.dirs/system-data2 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/writev/async/.dirs/data 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/writev/async/.dirs/state 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/writev/async/.dirs/runtime 1121s ok 48 /file/writev/async 1121s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/writev/async_all/.dirs/home 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/writev/async_all/.dirs/cache 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/writev/async_all/.dirs/system-config1:/tmp/test_file_7PCV52/file/writev/async_all/.dirs/system-config2 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/writev/async_all/.dirs/config 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/writev/async_all/.dirs/system-data1:/tmp/test_file_7PCV52/file/writev/async_all/.dirs/system-data2 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/writev/async_all/.dirs/data 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/writev/async_all/.dirs/state 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/writev/async_all/.dirs/runtime 1121s ok 49 /file/writev/async_all 1121s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/writev/async_all-empty-vectors/.dirs/home 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/writev/async_all-empty-vectors/.dirs/cache 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/writev/async_all-empty-vectors/.dirs/system-config1:/tmp/test_file_7PCV52/file/writev/async_all-empty-vectors/.dirs/system-config2 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/writev/async_all-empty-vectors/.dirs/config 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/writev/async_all-empty-vectors/.dirs/system-data1:/tmp/test_file_7PCV52/file/writev/async_all-empty-vectors/.dirs/system-data2 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/writev/async_all-empty-vectors/.dirs/data 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/writev/async_all-empty-vectors/.dirs/state 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/writev/async_all-empty-vectors/.dirs/runtime 1121s ok 50 /file/writev/async_all-empty-vectors 1121s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/writev/async_all-no-vectors/.dirs/home 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/writev/async_all-no-vectors/.dirs/cache 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/writev/async_all-no-vectors/.dirs/system-config1:/tmp/test_file_7PCV52/file/writev/async_all-no-vectors/.dirs/system-config2 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/writev/async_all-no-vectors/.dirs/config 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/writev/async_all-no-vectors/.dirs/system-data1:/tmp/test_file_7PCV52/file/writev/async_all-no-vectors/.dirs/system-data2 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/writev/async_all-no-vectors/.dirs/data 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/writev/async_all-no-vectors/.dirs/state 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/writev/async_all-no-vectors/.dirs/runtime 1121s ok 51 /file/writev/async_all-no-vectors 1121s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/writev/async_all-to-big-vectors/.dirs/home 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/writev/async_all-to-big-vectors/.dirs/cache 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/writev/async_all-to-big-vectors/.dirs/system-config1:/tmp/test_file_7PCV52/file/writev/async_all-to-big-vectors/.dirs/system-config2 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/writev/async_all-to-big-vectors/.dirs/config 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/writev/async_all-to-big-vectors/.dirs/system-data1:/tmp/test_file_7PCV52/file/writev/async_all-to-big-vectors/.dirs/system-data2 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/writev/async_all-to-big-vectors/.dirs/data 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/writev/async_all-to-big-vectors/.dirs/state 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/writev/async_all-to-big-vectors/.dirs/runtime 1121s ok 52 /file/writev/async_all-to-big-vectors 1121s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/writev/async_all-cancellation/.dirs/home 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/writev/async_all-cancellation/.dirs/cache 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/writev/async_all-cancellation/.dirs/system-config1:/tmp/test_file_7PCV52/file/writev/async_all-cancellation/.dirs/system-config2 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/writev/async_all-cancellation/.dirs/config 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/writev/async_all-cancellation/.dirs/system-data1:/tmp/test_file_7PCV52/file/writev/async_all-cancellation/.dirs/system-data2 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/writev/async_all-cancellation/.dirs/data 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/writev/async_all-cancellation/.dirs/state 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/writev/async_all-cancellation/.dirs/runtime 1121s ok 53 /file/writev/async_all-cancellation 1121s # End of writev tests 1121s # Start of from-uri tests 1121s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/from-uri/ignores-query-string/.dirs/home 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/from-uri/ignores-query-string/.dirs/cache 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/from-uri/ignores-query-string/.dirs/system-config1:/tmp/test_file_7PCV52/file/from-uri/ignores-query-string/.dirs/system-config2 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/from-uri/ignores-query-string/.dirs/config 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/from-uri/ignores-query-string/.dirs/system-data1:/tmp/test_file_7PCV52/file/from-uri/ignores-query-string/.dirs/system-data2 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/from-uri/ignores-query-string/.dirs/data 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/from-uri/ignores-query-string/.dirs/state 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/from-uri/ignores-query-string/.dirs/runtime 1121s ok 54 /file/from-uri/ignores-query-string 1121s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_7PCV52/file/from-uri/ignores-fragment/.dirs/home 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_7PCV52/file/from-uri/ignores-fragment/.dirs/cache 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_7PCV52/file/from-uri/ignores-fragment/.dirs/system-config1:/tmp/test_file_7PCV52/file/from-uri/ignores-fragment/.dirs/system-config2 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_7PCV52/file/from-uri/ignores-fragment/.dirs/config 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_7PCV52/file/from-uri/ignores-fragment/.dirs/system-data1:/tmp/test_file_7PCV52/file/from-uri/ignores-fragment/.dirs/system-data2 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_7PCV52/file/from-uri/ignores-fragment/.dirs/data 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_7PCV52/file/from-uri/ignores-fragment/.dirs/state 1121s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_7PCV52/file/from-uri/ignores-fragment/.dirs/runtime 1121s ok 55 /file/from-uri/ignores-fragment 1121s # End of from-uri tests 1121s # End of file tests 1121s ok - glib/file.test 1121s # Running test: glib/tls-interaction.test 1121s TAP version 14 1121s # random seed: R02S908ce995fc4cdb1bec1da4a753af86ed 1121s 1..42 1121s # Start of tls-interaction tests 1121s # Start of ask-password tests 1121s # Start of invoke-with-loop tests 1121s ok 1 /tls-interaction/ask-password/invoke-with-loop/unhandled-implementation 1121s ok 2 /tls-interaction/ask-password/invoke-with-loop/async-implementation-success 1121s ok 3 /tls-interaction/ask-password/invoke-with-loop/async-implementation-failure 1121s ok 4 /tls-interaction/ask-password/invoke-with-loop/sync-implementation-success 1121s ok 5 /tls-interaction/ask-password/invoke-with-loop/sync-implementation-failure 1121s # End of invoke-with-loop tests 1121s # Start of invoke-without-loop tests 1121s ok 6 /tls-interaction/ask-password/invoke-without-loop/unhandled-implementation 1121s ok 7 /tls-interaction/ask-password/invoke-without-loop/async-implementation-success 1121s ok 8 /tls-interaction/ask-password/invoke-without-loop/async-implementation-failure 1121s ok 9 /tls-interaction/ask-password/invoke-without-loop/sync-implementation-success 1121s ok 10 /tls-interaction/ask-password/invoke-without-loop/sync-implementation-failure 1121s # End of invoke-without-loop tests 1121s # Start of invoke-in-loop tests 1121s ok 11 /tls-interaction/ask-password/invoke-in-loop/unhandled-implementation 1121s ok 12 /tls-interaction/ask-password/invoke-in-loop/async-implementation-success 1121s ok 13 /tls-interaction/ask-password/invoke-in-loop/async-implementation-failure 1121s ok 14 /tls-interaction/ask-password/invoke-in-loop/sync-implementation-success 1121s ok 15 /tls-interaction/ask-password/invoke-in-loop/sync-implementation-failure 1121s # End of invoke-in-loop tests 1121s # Start of sync tests 1121s ok 16 /tls-interaction/ask-password/sync/unhandled-implementation 1121s ok 17 /tls-interaction/ask-password/sync/sync-implementation-success 1121s ok 18 /tls-interaction/ask-password/sync/sync-implementation-failure 1121s # End of sync tests 1121s # Start of async tests 1121s ok 19 /tls-interaction/ask-password/async/unhandled-implementation 1121s ok 20 /tls-interaction/ask-password/async/async-implementation-success 1121s ok 21 /tls-interaction/ask-password/async/async-implementation-failure 1121s # End of async tests 1121s # End of ask-password tests 1121s # Start of request-certificate tests 1121s # Start of invoke-with-loop tests 1121s ok 22 /tls-interaction/request-certificate/invoke-with-loop/unhandled-implementation 1121s ok 23 /tls-interaction/request-certificate/invoke-with-loop/async-implementation-success 1121s ok 24 /tls-interaction/request-certificate/invoke-with-loop/async-implementation-failure 1121s ok - glib/tls-interaction.test 1121s ok 25 /tls-interaction/request-certificate/invoke-with-loop/sync-implementation-success 1121s ok 26 /tls-interaction/request-certificate/invoke-with-loop/sync-implementation-failure 1121s # End of invoke-with-loop tests 1121s # Start of invoke-without-loop tests 1121s ok 27 /tls-interaction/request-certificate/invoke-without-loop/unhandled-implementation 1121s ok 28 /tls-interaction/request-certificate/invoke-without-loop/async-implementation-success 1121s ok 29 /tls-interaction/request-certificate/invoke-without-loop/async-implementation-failure 1121s ok 30 /tls-interaction/request-certificate/invoke-without-loop/sync-implementation-success 1121s ok 31 /tls-interaction/request-certificate/invoke-without-loop/sync-implementation-failure 1121s # End of invoke-without-loop tests 1121s # Start of invoke-in-loop tests 1121s ok 32 /tls-interaction/request-certificate/invoke-in-loop/unhandled-implementation 1121s ok 33 /tls-interaction/request-certificate/invoke-in-loop/async-implementation-success 1121s ok 34 /tls-interaction/request-certificate/invoke-in-loop/async-implementation-failure 1121s ok 35 /tls-interaction/request-certificate/invoke-in-loop/sync-implementation-success 1121s ok 36 /tls-interaction/request-certificate/invoke-in-loop/sync-implementation-failure 1121s # End of invoke-in-loop tests 1121s # Start of sync tests 1121s ok 37 /tls-interaction/request-certificate/sync/unhandled-implementation 1121s ok 38 /tls-interaction/request-certificate/sync/sync-implementation-success 1121s ok 39 /tls-interaction/request-certificate/sync/sync-implementation-failure 1121s # End of sync tests 1121s # Start of async tests 1121s ok 40 /tls-interaction/request-certificate/async/unhandled-implementation 1121s ok 41 /tls-interaction/request-certificate/async/async-implementation-success 1121s ok 42 /tls-interaction/request-certificate/async/async-implementation-failure 1121s # End of async tests 1121s # End of request-certificate tests 1121s # End of tls-interaction tests 1121s # Running test: glib/gsubprocess.test 1121s TAP version 14 1121s # random seed: R02S52bb907c0a147c423218bd5ca63adb49 1121s 1..84 1121s # Start of gsubprocess tests 1121s ok 1 /gsubprocess/noop 1121s ok 2 /gsubprocess/noop-all-to-null 1121s ok 3 /gsubprocess/noop-no-wait 1121s ok 4 /gsubprocess/noop-stdin-inherit 1121s ok 5 /gsubprocess/search-path 1121s ok 6 /gsubprocess/search-path-from-envp 1122s # Executing: glib/gsubprocess.test 1125s ok 7 /gsubprocess/signal 1125s # slow test /gsubprocess/signal executed in 3.70 secs 1125s ok 8 /gsubprocess/exit1 1125s ok 9 /gsubprocess/echo1 1125s ok 10 /gsubprocess/echo-merged 1125s ok 11 /gsubprocess/cat-utf8 1126s ok 12 /gsubprocess/cat-eof 1126s # slow test /gsubprocess/cat-eof executed in 1.00 secs 1127s # Executing: glib/gsubprocess.test 1129s ok 13 /gsubprocess/multi1 1129s # slow test /gsubprocess/multi1 executed in 3.01 secs 1129s ok 14 /gsubprocess/communicate 1132s # Executing: glib/gsubprocess.test 1132s ok 15 /gsubprocess/terminate 1132s # slow test /gsubprocess/terminate executed in 2.95 secs 1132s ok 16 /gsubprocess/fail-initialization 1132s ok 17 /gsubprocess/env 1132s ok 18 /gsubprocess/cwd 1132s ok 19 /gsubprocess/launcher-close 1132s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1132s ok 20 /gsubprocess/stdout-file 1132s ok 21 /gsubprocess/stdout-fd 1132s ok 22 /gsubprocess/child-setup 1132s # GLib-DEBUG: setenv()/putenv() are 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 ok 23 /gsubprocess/launcher-environment 1132s # Start of exit1 tests 1132s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=786456 1132s ok 24 /gsubprocess/exit1/cancel 1132s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=786456 1132s ok 25 /gsubprocess/exit1/cancel_in_cb 1132s # End of exit1 tests 1132s # Start of communicate tests 1132s ok 26 /gsubprocess/communicate/cancelled 1132s ok 27 /gsubprocess/communicate/async 1132s ok 28 /gsubprocess/communicate/utf8 1132s # hello world 1132s ok 29 /gsubprocess/communicate/no-pipes 1132s ok 30 /gsubprocess/communicate/separate-stderr 1132s ok 31 /gsubprocess/communicate/stdout-only 1132s # hello world 1132s ok 32 /gsubprocess/communicate/stderr-only 1132s ok 33 /gsubprocess/communicate/stdout-silence 1132s ok 34 /gsubprocess/communicate/nothing 1132s # Start of async tests 1132s ok 35 /gsubprocess/communicate/async/cancelled 1132s # hello world 1132s ok 36 /gsubprocess/communicate/async/no-pipes 1132s ok 37 /gsubprocess/communicate/async/separate-stderr 1132s ok 38 /gsubprocess/communicate/async/stdout-only 1132s # hello world 1132s ok 39 /gsubprocess/communicate/async/stderr-only 1132s ok 40 /gsubprocess/communicate/async/stdout-silence 1132s # Start of cancelled tests 1132s ok 41 /gsubprocess/communicate/async/cancelled/no-pipes 1132s ok 42 /gsubprocess/communicate/async/cancelled/separate-stderr 1132s ok 43 /gsubprocess/communicate/async/cancelled/stdout-only 1132s ok 44 /gsubprocess/communicate/async/cancelled/stderr-only 1132s ok 45 /gsubprocess/communicate/async/cancelled/stdout-silence 1132s # End of cancelled tests 1132s # End of async tests 1132s # Start of utf8 tests 1132s ok 46 /gsubprocess/communicate/utf8/cancelled 1132s ok 47 /gsubprocess/communicate/utf8/async 1132s # hello world 1132s ok 48 /gsubprocess/communicate/utf8/no-pipes 1132s ok 49 /gsubprocess/communicate/utf8/separate-stderr 1132s ok 50 /gsubprocess/communicate/utf8/stdout-only 1132s # hello world 1132s ok 51 /gsubprocess/communicate/utf8/stderr-only 1132s ok 52 /gsubprocess/communicate/utf8/stdout-silence 1132s ok 53 /gsubprocess/communicate/utf8/invalid 1132s # Start of async tests 1132s ok 54 /gsubprocess/communicate/utf8/async/cancelled 1132s # hello world 1132s ok 55 /gsubprocess/communicate/utf8/async/no-pipes 1132s ok 56 /gsubprocess/communicate/utf8/async/separate-stderr 1132s ok 57 /gsubprocess/communicate/utf8/async/stdout-only 1132s # hello world 1132s ok 58 /gsubprocess/communicate/utf8/async/stderr-only 1132s ok 59 /gsubprocess/communicate/utf8/async/stdout-silence 1132s ok 60 /gsubprocess/communicate/utf8/async/invalid 1132s # Start of cancelled tests 1132s ok 61 /gsubprocess/communicate/utf8/async/cancelled/no-pipes 1132s ok 62 /gsubprocess/communicate/utf8/async/cancelled/separate-stderr 1132s ok 63 /gsubprocess/communicate/utf8/async/cancelled/stdout-only 1132s ok 64 /gsubprocess/communicate/utf8/async/cancelled/stderr-only 1132s ok 65 /gsubprocess/communicate/utf8/async/cancelled/stdout-silence 1132s # End of cancelled tests 1132s # End of async tests 1132s # Start of cancelled tests 1132s ok 66 /gsubprocess/communicate/utf8/cancelled/no-pipes 1132s ok 67 /gsubprocess/communicate/utf8/cancelled/separate-stderr 1132s ok 68 /gsubprocess/communicate/utf8/cancelled/stdout-only 1132s ok 69 /gsubprocess/communicate/utf8/cancelled/stderr-only 1132s ok 70 /gsubprocess/communicate/utf8/cancelled/stdout-silence 1132s # End of cancelled tests 1132s # End of utf8 tests 1132s # Start of cancelled tests 1132s ok 71 /gsubprocess/communicate/cancelled/no-pipes 1132s ok 72 /gsubprocess/communicate/cancelled/separate-stderr 1132s ok 73 /gsubprocess/communicate/cancelled/stdout-only 1132s ok 74 /gsubprocess/communicate/cancelled/stderr-only 1132s ok 75 /gsubprocess/communicate/cancelled/stdout-silence 1132s # End of cancelled tests 1132s # End of communicate tests 1132s # Start of env tests 1132s # GLib-DEBUG: setenv()/putenv() are 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 ok 76 /gsubprocess/env/inherit 1132s # End of env tests 1132s # Start of pass-fd tests 1132s ok 77 /gsubprocess/pass-fd/basic 1132s ok 78 /gsubprocess/pass-fd/empty-child-setup 1132s ok 79 /gsubprocess/pass-fd/inherit-fds 1132s # End of pass-fd tests 1132s # Start of fd-conflation tests 1132s ok 80 /gsubprocess/fd-conflation/basic 1132s ok 81 /gsubprocess/fd-conflation/empty-child-setup 1132s ok 82 /gsubprocess/fd-conflation/inherit-fds 1132s ok 83 /gsubprocess/fd-conflation/child-err-report-fd 1132s # End of fd-conflation tests 1132s # Start of exit-status tests 1132s # /gsubprocess/exit-status/trapped summary: Test that exit status is reported correctly for ptrace()d child processes 1132s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3433 1132s ok 84 /gsubprocess/exit-status/trapped 1132s # End of exit-status tests 1132s # End of gsubprocess tests 1132s ok - glib/gsubprocess.test 1132s # Running test: glib/param.test 1132s TAP version 14 1132s # random seed: R02S343ff9b7099e0dd5c43c57ae73d98f50 1132s 1..32 1132s # Start of param tests 1132s ok 1 /param/value 1132s ok 2 /param/strings 1132s ok 3 /param/qdata 1132s ok 4 /param/validate 1132s ok 5 /param/convert 1132s ok 6 /param/implement # SKIP Skipping slow /param/implement test 1132s ok 7 /param/default 1132s ok 8 /param/is-valid-name 1132s # Start of invalid-name tests 1132s # /param/invalid-name/colon summary: Test that properties cannot be created with invalid names 1132s ok 9 /param/invalid-name/colon 1132s # /param/invalid-name/first-char summary: Test that properties cannot be created with invalid names 1132s ok 10 /param/invalid-name/first-char 1132s # /param/invalid-name/empty summary: Test that properties cannot be created with invalid names 1132s ok 11 /param/invalid-name/empty 1132s # End of invalid-name tests 1132s # Start of implement tests 1132s # Start of subprocess tests 1132s # End of subprocess tests 1132s # End of implement tests 1132s # End of param tests 1132s # Start of value tests 1132s ok 12 /value/transform 1132s # End of value tests 1132s # Start of paramspec tests 1132s ok 13 /paramspec/char 1132s ok 14 /paramspec/uchar 1132s ok 15 /paramspec/int 1132s ok 16 /paramspec/uint 1132s ok 17 /paramspec/long 1132s ok 18 /paramspec/ulong 1132s ok 19 /paramspec/int64 1132s ok 20 /paramspec/uint64 1132s ok 21 /paramspec/float 1132s ok 22 /paramspec/double 1132s ok 23 /paramspec/unichar 1132s ok 24 /paramspec/param 1132s ok 25 /paramspec/null-param 1132s ok 26 /paramspec/string 1132s ok 27 /paramspec/override 1132s ok 28 /paramspec/gtype 1132s ok 29 /paramspec/variant 1132s ok 30 /paramspec/custom 1132s ok 31 /paramspec/pool 1132s # Start of variant tests 1132s ok 32 /paramspec/variant/cmp 1132s # End of variant tests 1132s # End of paramspec tests 1132s ok - glib/param.test 1132s # Running test: glib/environment.test 1132s TAP version 14 1132s # random seed: R02S063dd88ec40b3a4261ecbe43dc0abe15 1132s 1..6 1132s # Start of environ tests 1132s # /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. 1132s ok 1 /environ/listenv 1132s # /environ/getenv summary: Test setting an environment variable using g_setenv(), and that the updated value is queryable using g_getenv(). 1132s ok 2 /environ/getenv 1132s ok 3 /environ/setenv 1132s # /environ/array summary: Test getting and setting variables on a local envp array (rather than the global envp). 1132s ok 4 /environ/array 1132s # /environ/null summary: Test getting and setting variables on a NULL envp array. 1132s ok 5 /environ/null 1132s # /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. 1132s ok 6 /environ/case 1132s # End of environ tests 1132s ok - glib/environment.test 1132s # Running test: glib/strvbuilder.test 1132s TAP version 14 1132s # random seed: R02S9e6b46143d5927185137eadbc41bfbda 1132s 1..7 1132s # Start of strvbuilder tests 1132s ok 1 /strvbuilder/empty 1132s ok 2 /strvbuilder/add 1132s ok 3 /strvbuilder/addv 1132s ok 4 /strvbuilder/add_many 1132s ok 5 /strvbuilder/take 1132s ok 6 /strvbuilder/ref 1132s ok 7 /strvbuilder/unref_to_strv 1132s # End of strvbuilder tests 1132s ok - glib/strvbuilder.test 1132s # Running test: glib/refcount.test 1132s TAP version 14 1132s # random seed: R02Sd754ae2b92e8ac2dc6de8af18e301014 1132s 1..4 1132s # Start of refcount tests 1132s ok 1 /refcount/grefcount 1132s ok 2 /refcount/gatomicrefcount 1132s # Start of grefcount tests 1132s ok 3 /refcount/grefcount/saturation 1132s # End of grefcount tests 1132s # Start of gatomicrefcount tests 1132s ok 4 /refcount/gatomicrefcount/saturation 1132s # End of gatomicrefcount tests 1132s # End of refcount tests 1132s ok - glib/refcount.test 1132s # Running test: glib/singleton.test 1132s TAP version 14 1132s ok - glib/singleton.test 1132s # Running test: glib/cmph-bdz.test 1132s # random seed: R02S12571d1e45bb5058378f9ef00ff508cb 1132s 1..2 1132s # Start of gobject tests 1132s # Start of singleton tests 1132s ok 1 /gobject/singleton/construction 1132s # /gobject/singleton/construct-property summary: Test that creating a singleton with a construct-time property works 1132s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2666 1132s ok 2 /gobject/singleton/construct-property 1132s # End of singleton tests 1132s # End of gobject tests 1132s TAP version 14 1132s ok - glib/cmph-bdz.test 1132s # Running test: glib/task.test 1132s # random seed: R02S03796e4a35f2fbfb9202927944da3e0a 1132s 1..2 1132s # Start of cmph-bdz tests 1132s ok 1 /cmph-bdz/search 1132s ok 2 /cmph-bdz/search-packed 1132s # End of cmph-bdz tests 1132s TAP version 14 1132s # random seed: R02S195a1b5fe82c02e061192301eb66b1a5 1132s 1..36 1132s # Start of gtask tests 1132s ok 1 /gtask/basic 1132s ok 2 /gtask/error 1132s ok 3 /gtask/error-literal 1132s ok 4 /gtask/error-literal-from-variable 1132s ok 5 /gtask/return-from-same-iteration 1132s ok 6 /gtask/return-from-toplevel 1132s ok 7 /gtask/return-from-anon-thread 1132s ok 8 /gtask/return-from-wrong-thread 1132s ok 9 /gtask/no-callback 1132s ok 10 /gtask/report-error 1132s ok 11 /gtask/priority 1132s ok 12 /gtask/name 1132s ok 13 /gtask/static-name 1132s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1608 1132s ok 14 /gtask/asynchronous-cancellation 1132s ok 15 /gtask/check-cancellable 1132s ok 16 /gtask/return-if-cancelled 1132s ok 17 /gtask/run-in-thread 1132s ok 18 /gtask/run-in-thread-sync 1132s ok 19 /gtask/run-in-thread-priority 1132s ok 20 /gtask/run-in-thread-nested 1133s ok 21 /gtask/run-in-thread-overflow 1133s # slow test /gtask/run-in-thread-overflow executed in 0.51 secs 1133s # GLib-GIO-DEBUG: GTask 0xabb8730379f0 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1133s # GLib-GIO-DEBUG: GTask 0xabb873037eb0 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1133s ok 22 /gtask/return-on-cancel 1133s # GLib-GIO-DEBUG: GTask 0xabb873037fb0 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1133s ok 23 /gtask/return-on-cancel-sync 1133s # GLib-GIO-DEBUG: GTask 0xabb873037ab0 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1133s ok 24 /gtask/return-on-cancel-atomic 1133s ok 25 /gtask/return-pointer 1133s ok 26 /gtask/return-value 1133s ok 27 /gtask/return-prefixed-error 1133s ok 28 /gtask/object-keepalive 1133s ok 29 /gtask/legacy-error 1133s ok 30 /gtask/finalize-without-return 1133s # Start of name tests 1133s ok 31 /gtask/name/macro-wrapper 1133s # End of name tests 1133s # Start of return tests 1133s ok 32 /gtask/return/error-first 1133s ok 33 /gtask/return/value-first 1133s # Start of in-idle tests 1133s ok 34 /gtask/return/in-idle/error-first 1133s ok 35 /gtask/return/in-idle/value-first 1133s # End of in-idle tests 1133s # End of return tests 1133s # Start of attach-source tests 1133s # /gtask/attach-source/set-name summary: Test that attaching a source to a task will set the source?s name if unset 1133s ok 36 /gtask/attach-source/set-name 1133s # End of attach-source tests 1133s # End of gtask tests 1133s ok - glib/task.test 1133s # Running test: glib/signals.test 1133s TAP version 14 1133s # random seed: R02S8e01cacd564d1eed4701e79dd0065943 1133s 1..31 1133s # Start of gobject tests 1133s # Start of signals tests 1133s ok 1 /gobject/signals/all-types 1133s ok 2 /gobject/signals/variant 1133s ok 3 /gobject/signals/destroy-target-object 1133s ok 4 /gobject/signals/generic-marshaller-1 1133s ok 5 /gobject/signals/generic-marshaller-2 1133s ok 6 /gobject/signals/generic-marshaller-enum-return-signed 1133s ok 7 /gobject/signals/generic-marshaller-enum-return-unsigned 1133s ok 8 /gobject/signals/generic-marshaller-int-return 1133s ok 9 /gobject/signals/generic-marshaller-uint-return 1133s ok 10 /gobject/signals/generic-marshaller-interface-return 1133s ok 11 /gobject/signals/custom-marshaller 1133s ok 12 /gobject/signals/connect 1133s ok 13 /gobject/signals/emission-hook 1133s ok 14 /gobject/signals/emitv 1133s ok 15 /gobject/signals/accumulator 1133s # Signal: accumulator-class-first 1133s # Signal: accumulator-class-last 1133s # Signal: accumulator-class-cleanup 1133s # Signal: accumulator-class-first-last 1133s # Signal: accumulator-class-first-last-cleanup 1133s # Signal: accumulator-class-last-cleanup 1133s ok 16 /gobject/signals/accumulator-class 1133s ok 17 /gobject/signals/introspection 1133s ok 18 /gobject/signals/block-handler 1133s ok 19 /gobject/signals/stop-emission 1133s ok 20 /gobject/signals/invocation-hint 1133s ok 21 /gobject/signals/test-disconnection-wrong-object 1133s ok 22 /gobject/signals/clear-signal-handler 1133s # /gobject/signals/lookup summary: Test that g_signal_lookup() works with a variety of inputs. 1133s ok 23 /gobject/signals/lookup 1133s # /gobject/signals/parse-name summary: Test that g_signal_parse_name() works with a variety of inputs. 1133s ok 24 /gobject/signals/parse-name 1133s ok 25 /gobject/signals/is-valid-name 1133s ok 26 /gobject/signals/weak-ref-disconnect 1133s # Start of lookup tests 1133s # /gobject/signals/lookup/invalid summary: Test that g_signal_lookup() emits a warning if looking up an invalid signal name. 1133s ok 27 /gobject/signals/lookup/invalid 1133s # End of lookup tests 1133s # Start of parse-name tests 1133s # /gobject/signals/parse-name/invalid summary: Test that g_signal_parse_name() ignores a variety of invalid inputs. 1133s # Parser input: 1133s # Parser input: 7zip 1133s # Parser input: invalid:signal 1133s # Parser input: simple-detailed:: 1133s # Parser input: simple-detailed: 1133s # Parser input: : 1133s # Parser input: :: 1133s # Parser input: :valid-detail 1133s # Parser input: ::valid-detail 1133s ok 28 /gobject/signals/parse-name/invalid 1133s # End of parse-name tests 1133s # Start of invalid-name tests 1133s # /gobject/signals/invalid-name/colon summary: Check that g_signal_new() rejects invalid signal names. 1133s ok - glib/signals.test 1133s ok 29 /gobject/signals/invalid-name/colon 1133s # /gobject/signals/invalid-name/first-char summary: Check that g_signal_new() rejects invalid signal names. 1133s ok 30 /gobject/signals/invalid-name/first-char 1133s # /gobject/signals/invalid-name/empty summary: Check that g_signal_new() rejects invalid signal names. 1133s ok 31 /gobject/signals/invalid-name/empty 1133s # End of invalid-name tests 1133s # End of signals tests 1133s # End of gobject tests 1133s # Running test: glib/gdbus-peer.test 1133s TAP version 14 1133s # random seed: R02S4f3e2665180da0fa59600fd30679b59c 1133s 1..12 1133s # Start of gdbus tests 1133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/.dirs/home 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/.dirs/cache 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/.dirs/system-config1:/tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/.dirs/system-config2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/.dirs/config 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/.dirs/system-data1:/tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/.dirs/system-data2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/.dirs/data 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/.dirs/state 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/.dirs/runtime 1133s # Testing with unix:dir address 1133s # Testing with unix:tmpdir address 1133s # Testing with unix:path address 1133s ok 1 /gdbus/peer-to-peer 1133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/delayed-message-processing/.dirs/home 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/delayed-message-processing/.dirs/cache 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_FNSU52/gdbus/delayed-message-processing/.dirs/system-config1:/tmp/test_gdbus-peer_FNSU52/gdbus/delayed-message-processing/.dirs/system-config2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/delayed-message-processing/.dirs/config 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_FNSU52/gdbus/delayed-message-processing/.dirs/system-data1:/tmp/test_gdbus-peer_FNSU52/gdbus/delayed-message-processing/.dirs/system-data2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/delayed-message-processing/.dirs/data 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/delayed-message-processing/.dirs/state 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_FNSU52/gdbus/delayed-message-processing/.dirs/runtime 1133s # Testing with unix:dir address 1134s ok 2 /gdbus/delayed-message-processing 1134s # slow test /gdbus/delayed-message-processing executed in 0.51 secs 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/nonce-tcp/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/nonce-tcp/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_FNSU52/gdbus/nonce-tcp/.dirs/system-config1:/tmp/test_gdbus-peer_FNSU52/gdbus/nonce-tcp/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/nonce-tcp/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_FNSU52/gdbus/nonce-tcp/.dirs/system-data1:/tmp/test_gdbus-peer_FNSU52/gdbus/nonce-tcp/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/nonce-tcp/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/nonce-tcp/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_FNSU52/gdbus/nonce-tcp/.dirs/runtime 1134s ok 3 /gdbus/nonce-tcp 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/tcp-anonymous/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/tcp-anonymous/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_FNSU52/gdbus/tcp-anonymous/.dirs/system-config1:/tmp/test_gdbus-peer_FNSU52/gdbus/tcp-anonymous/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/tcp-anonymous/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_FNSU52/gdbus/tcp-anonymous/.dirs/system-data1:/tmp/test_gdbus-peer_FNSU52/gdbus/tcp-anonymous/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/tcp-anonymous/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/tcp-anonymous/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_FNSU52/gdbus/tcp-anonymous/.dirs/runtime 1134s ok 4 /gdbus/tcp-anonymous 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/credentials/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/credentials/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_FNSU52/gdbus/credentials/.dirs/system-config1:/tmp/test_gdbus-peer_FNSU52/gdbus/credentials/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/credentials/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_FNSU52/gdbus/credentials/.dirs/system-data1:/tmp/test_gdbus-peer_FNSU52/gdbus/credentials/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/credentials/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/credentials/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_FNSU52/gdbus/credentials/.dirs/runtime 1134s ok 5 /gdbus/credentials 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/codegen-peer-to-peer/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/codegen-peer-to-peer/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_FNSU52/gdbus/codegen-peer-to-peer/.dirs/system-config1:/tmp/test_gdbus-peer_FNSU52/gdbus/codegen-peer-to-peer/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/codegen-peer-to-peer/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_FNSU52/gdbus/codegen-peer-to-peer/.dirs/system-data1:/tmp/test_gdbus-peer_FNSU52/gdbus/codegen-peer-to-peer/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/codegen-peer-to-peer/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/codegen-peer-to-peer/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_FNSU52/gdbus/codegen-peer-to-peer/.dirs/runtime 1134s # Testing with unix:dir address 1134s # Machine ID: 72118526aab14691a78e9455296936f9 1135s ok 6 /gdbus/codegen-peer-to-peer 1135s # slow test /gdbus/codegen-peer-to-peer executed in 1.11 secs 1135s # Start of peer-to-peer tests 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/signals/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/signals/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/signals/.dirs/system-config1:/tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/signals/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/signals/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/signals/.dirs/system-data1:/tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/signals/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/signals/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/signals/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/signals/.dirs/runtime 1135s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1620 1135s # Testing with unix:dir address 1135s ok 7 /gdbus/peer-to-peer/signals 1135s # Start of invalid tests 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/server/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/server/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/server/.dirs/system-config1:/tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/server/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/server/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/server/.dirs/system-data1:/tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/server/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/server/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/server/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/server/.dirs/runtime 1135s ok 8 /gdbus/peer-to-peer/invalid/server 1135s # Start of conn tests 1135s # Start of stream tests 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-config1:/tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-data1:/tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/runtime 1135s ok 9 /gdbus/peer-to-peer/invalid/conn/stream/async 1135s ok - glib/gdbus-peer.test 1135s # Running test: glib/stream-rw_all.test 1135s ok - glib/stream-rw_all.test 1135s # Running test: glib/refcount-macro.test 1135s ok - glib/refcount-macro.test 1135s # Running test: glib/async-splice-output-stream.test 1135s ok - glib/async-splice-output-stream.test 1135s # Running test: glib/qdata.test 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-config1:/tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-data1:/tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/runtime 1135s ok 10 /gdbus/peer-to-peer/invalid/conn/stream/sync 1135s # End of stream tests 1135s # Start of addr tests 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-config1:/tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-data1:/tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/runtime 1135s ok 11 /gdbus/peer-to-peer/invalid/conn/addr/async 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-config1:/tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-data1:/tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_FNSU52/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/runtime 1135s ok 12 /gdbus/peer-to-peer/invalid/conn/addr/sync 1135s # End of addr tests 1135s # End of conn tests 1135s # End of invalid tests 1135s # End of peer-to-peer tests 1135s # End of gdbus tests 1135s TAP version 14 1135s # random seed: R02S2ed95f08308b8131deefcd3838749c63 1135s 1..3 1135s # Start of stream tests 1135s # Start of read_all_async tests 1135s ok 1 /stream/read_all_async/memory 1135s # End of read_all_async tests 1135s # Start of write_all_async tests 1135s ok 2 /stream/write_all_async/memory 1135s # End of write_all_async tests 1135s # Start of read_write_all_async tests 1135s ok 3 /stream/read_write_all_async/pipe 1135s # End of read_write_all_async tests 1135s # End of stream tests 1135s TAP version 14 1135s # random seed: R02Sfd414cccb0a800cdf2fc4df8687c4886 1135s 1..4 1135s # Start of refcount tests 1135s ok 1 /refcount/grefcount 1135s ok 2 /refcount/gatomicrefcount 1135s # Start of grefcount tests 1135s ok 3 /refcount/grefcount/saturation 1135s # End of grefcount tests 1135s # Start of gatomicrefcount tests 1135s ok 4 /refcount/gatomicrefcount/saturation 1135s # End of gatomicrefcount tests 1135s # End of refcount tests 1135s TAP version 14 1135s # random seed: R02Sa81bdd0c1a6e76180c90fac3f8ba16d9 1135s 1..5 1135s # Start of async-splice tests 1135s ok 1 /async-splice/copy-chunks 1135s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1135s ok 2 /async-splice/copy-chunks-threaded-input 1135s ok 3 /async-splice/copy-chunks-threaded-output 1135s ok 4 /async-splice/copy-chunks-threaded 1135s ok 5 /async-splice/cancelled 1135s # End of async-splice tests 1135s TAP version 14 1135s # random seed: R02S836a619e34cd065ccfdd3ae9cb0ad7c8 1135s 1..2 1135s # Start of qdata tests 1135s ok 1 /qdata/threaded 1135s ok 2 /qdata/dup 1135s # End of qdata tests 1135s ok - glib/qdata.test 1135s # Running test: glib/atomic-c-99.test 1135s TAP version 14 1135s # random seed: R02S47dc671ac42f22d2fc1efc3131c88a8b 1135s 1..2 1135s # Start of atomic tests 1135s ok 1 /atomic/types 1135s ok 2 /atomic/threaded 1135s # End of atomic tests 1135s ok - glib/atomic-c-99.test 1135s # Running test: glib/defaultvalue.test 1135s TAP version 14 1135s # random seed: R02S9fa16adc0c95b847ca16dde757443200 1135s 1..84 1135s # Start of Default Values tests 1135s ok 1 /Default Values/GAppInfoMonitor # SKIP singleton 1135s ok 2 /Default Values/GAppLaunchContext 1135s ok 3 /Default Values/GApplicationCommandLine 1135s # skipping GApplication:is-remote 1135s ok 4 /Default Values/GApplication 1135s ok 5 /Default Values/GBinding # SKIP mandatory construct params 1135s ok 6 /Default Values/GBindingGroup 1135s ok 7 /Default Values/GBufferedInputStream # SKIP mandatory construct params 1135s ok 8 /Default Values/GBufferedOutputStream # SKIP mandatory construct params 1135s ok 9 /Default Values/GBytesIcon 1135s ok 10 /Default Values/GCancellable 1135s ok 11 /Default Values/GCharsetConverter # SKIP mandatory construct params 1135s ok 12 /Default Values/GConverterInputStream # SKIP mandatory construct params 1135s ok 13 /Default Values/GConverterOutputStream # SKIP mandatory construct params 1135s ok 14 /Default Values/GCredentials 1135s ok 15 /Default Values/GDataInputStream # SKIP mandatory construct params 1135s ok 16 /Default Values/GDataOutputStream # SKIP mandatory construct params 1135s ok 17 /Default Values/GDBusActionGroup # SKIP mandatory construct params 1135s ok 18 /Default Values/GDBusAuthObserver 1135s ok 19 /Default Values/GDBusConnection # SKIP mandatory construct params 1135s ok 20 /Default Values/GDBusMenuModel # SKIP crash in finalize 1135s ok 21 /Default Values/GDBusMessage 1135s ok 22 /Default Values/GDBusMethodInvocation # SKIP crash in finalize 1135s ok 23 /Default Values/GDBusObjectManagerClient # SKIP mandatory construct params 1135s ok 24 /Default Values/GDBusObjectManagerServer # SKIP mandatory construct params 1135s ok 25 /Default Values/GDBusObjectProxy 1135s ok 26 /Default Values/GDBusObjectSkeleton 1135s ok 27 /Default Values/GDBusProxy # SKIP mandatory construct params 1135s ok 28 /Default Values/GDBusServer # SKIP mandatory construct params 1135s ok 29 /Default Values/GEmblem 1135s ok 30 /Default Values/GEmblemedIcon 1135s ok 31 /Default Values/GFileEnumerator # SKIP should be abstract 1135s ok 32 /Default Values/GFileInfo 1135s ok 33 /Default Values/GFileInputStream 1135s ok 34 /Default Values/GFileIOStream # SKIP should be abstract 1135s ok 35 /Default Values/GFileOutputStream 1135s ok 36 /Default Values/GFilenameCompleter 1135s ok 37 /Default Values/GInetAddress # SKIP mandatory construct params 1135s ok 38 /Default Values/GInetAddressMask # SKIP initialization failed 1135s ok 39 /Default Values/GInetSocketAddress # SKIP mandatory construct params 1135s ok 40 /Default Values/GInitiallyUnowned 1135s ok 41 /Default Values/GIOModule 1135s ok 42 /Default Values/GListStore 1135s ok 43 /Default Values/GMemoryInputStream 1135s ok 44 /Default Values/GMemoryOutputStream 1135s ok 45 /Default Values/GMenu 1135s ok 46 /Default Values/GMenuItem 1135s ok 47 /Default Values/GMountOperation 1135s ok 48 /Default Values/GNativeSocketAddress 1135s ok 49 /Default Values/GNetworkAddress 1135s ok 50 /Default Values/GNetworkService 1135s ok 51 /Default Values/GNotification 1135s ok 52 /Default Values/GObject 1135s ok 53 /Default Values/GPropertyAction # SKIP mandatory construct params 1135s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ?gio-proxy-resolver? 1135s # skipping GProxyAddressEnumerator:proxy-resolver 1135s ok 54 /Default Values/GProxyAddressEnumerator 1135s ok 55 /Default Values/GProxyAddress # SKIP mandatory construct params 1135s ok 56 /Default Values/GSettings # SKIP mandatory construct params 1135s ok 57 /Default Values/GSignalGroup 1135s ok 58 /Default Values/GSimpleAction 1135s ok 59 /Default Values/GSimpleActionGroup 1135s ok 60 /Default Values/GSimpleAsyncResult 1135s ok 61 /Default Values/GSimpleIOStream # SKIP mandatory construct params 1135s ok - glib/defaultvalue.test 1135s # Running test: glib/simple-proxy.test 1135s ok - glib/simple-proxy.test 1135s # Running test: glib/module-test-library.test 1135s ok - glib/module-test-library.test 1135s # Running test: glib/sandbox.test 1135s ok 62 /Default Values/GSimplePermission 1135s ok 63 /Default Values/GSimpleProxyResolver 1135s # skipping GSocketClient:proxy-resolver 1135s ok 64 /Default Values/GSocketClient 1135s ok 65 /Default Values/GSocketConnection # SKIP mandatory construct params 1135s ok 66 /Default Values/GSocket # SKIP initialization failed 1135s ok 67 /Default Values/GSocketListener 1135s ok 68 /Default Values/GSocketService 1135s ok 69 /Default Values/GSubprocess # SKIP initialization failed 1135s ok 70 /Default Values/GSubprocessLauncher 1135s # GLib-GIO-DEBUG: GTask 0xc8982786df40 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1135s ok 71 /Default Values/GTask 1135s ok 72 /Default Values/GTcpConnection # SKIP mandatory construct params 1135s ok 73 /Default Values/GTcpWrapperConnection # SKIP mandatory construct params 1135s ok 74 /Default Values/GTestDBus 1135s ok 75 /Default Values/GThemedIcon # SKIP mandatory construct params 1135s ok 76 /Default Values/GThreadedSocketService 1135s ok 77 /Default Values/GTlsInteraction 1135s ok 78 /Default Values/GTlsPassword 1135s ok 79 /Default Values/GUnixConnection # SKIP mandatory construct params 1135s ok 80 /Default Values/GUnixFDList 1135s ok 81 /Default Values/GVfs 1135s ok 82 /Default Values/GVolumeMonitor 1135s ok 83 /Default Values/GZlibCompressor 1135s ok 84 /Default Values/GZlibDecompressor 1135s # End of Default Values tests 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s TAP version 14 1135s # random seed: R02S035f4957a98fbf0b49318b14e5140f08 1135s 1..3 1135s # Start of static-proxy tests 1135s ok 1 /static-proxy/uri 1135s ok 2 /static-proxy/socks 1135s ok 3 /static-proxy/ignore 1135s # End of static-proxy tests 1135s TAP version 14 1135s # random seed: R02Sd5bd10499c5d07165de3319a2871d85e 1135s 1..3 1135s # Start of module tests 1135s ok 1 /module/basics 1135s # /module/invalid-libtool-archive summary: Test that opening an invalid .la file fails 1135s ok 2 /module/invalid-libtool-archive 1135s # /module/local-binding summary: Test that binding a library's symbols locally does not add them globally 1135s ok 3 /module/local-binding 1135s # End of module tests 1135s TAP version 14 1135s # random seed: R02Se55648dec4cea303b794f2963e6aaa24 1135s 1..4 1135s # Start of sandbox tests 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_BWOU52/sandbox/none/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_BWOU52/sandbox/none/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_BWOU52/sandbox/none/.dirs/system-config1:/tmp/test_sandbox_BWOU52/sandbox/none/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_BWOU52/sandbox/none/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_BWOU52/sandbox/none/.dirs/system-data1:/tmp/test_sandbox_BWOU52/sandbox/none/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_BWOU52/sandbox/none/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_BWOU52/sandbox/none/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_BWOU52/sandbox/none/.dirs/runtime 1135s ok 1 /sandbox/none 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_BWOU52/sandbox/snap/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_BWOU52/sandbox/snap/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_BWOU52/sandbox/snap/.dirs/system-config1:/tmp/test_sandbox_BWOU52/sandbox/snap/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_BWOU52/sandbox/snap/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_BWOU52/sandbox/snap/.dirs/system-data1:/tmp/test_sandbox_BWOU52/sandbox/snap/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_BWOU52/sandbox/snap/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_BWOU52/sandbox/snap/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_BWOU52/sandbox/snap/.dirs/runtime 1135s # Created snap.yaml in /tmp/test_sandbox_BWOU52/snap/current/meta/snap.yaml 1135s ok 2 /sandbox/snap 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_BWOU52/sandbox/classic-snap/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_BWOU52/sandbox/classic-snap/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_BWOU52/sandbox/classic-snap/.dirs/system-config1:/tmp/test_sandbox_BWOU52/sandbox/classic-snap/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_BWOU52/sandbox/classic-snap/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_BWOU52/sandbox/classic-snap/.dirs/system-data1:/tmp/test_sandbox_BWOU52/sandbox/classic-snap/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_BWOU52/sandbox/classic-snap/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_BWOU52/sandbox/classic-snap/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_BWOU52/sandbox/classic-snap/.dirs/runtime 1135s # Created snap.yaml in /tmp/test_sandbox_BWOU52/snap/current/meta/snap.yaml 1135s ok 3 /sandbox/classic-snap 1135s ok - glib/sandbox.test 1135s # Running test: glib/gdbus-peer-object-manager.test 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_BWOU52/sandbox/flatpak/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_BWOU52/sandbox/flatpak/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_BWOU52/sandbox/flatpak/.dirs/system-config1:/tmp/test_sandbox_BWOU52/sandbox/flatpak/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_BWOU52/sandbox/flatpak/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_BWOU52/sandbox/flatpak/.dirs/system-data1:/tmp/test_sandbox_BWOU52/sandbox/flatpak/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_BWOU52/sandbox/flatpak/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_BWOU52/sandbox/flatpak/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_BWOU52/sandbox/flatpak/.dirs/runtime 1135s # Creating .flatpak-info in /tmp/test_sandbox_BWOU52/sandbox/flatpak/.dirs/runtime/.flatpak-info 1135s ok 4 /sandbox/flatpak 1135s # End of sandbox tests 1135s TAP version 14 1135s # random seed: R02Sb810cbcaa1337ca2b39c7777ed278811 1135s 1..2 1135s # Start of gdbus tests 1135s # Start of peer-object-manager tests 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer-object-manager_D7LT52/gdbus/peer-object-manager/normal/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer-object-manager_D7LT52/gdbus/peer-object-manager/normal/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer-object-manager_D7LT52/gdbus/peer-object-manager/normal/.dirs/system-config1:/tmp/test_gdbus-peer-object-manager_D7LT52/gdbus/peer-object-manager/normal/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer-object-manager_D7LT52/gdbus/peer-object-manager/normal/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer-object-manager_D7LT52/gdbus/peer-object-manager/normal/.dirs/system-data1:/tmp/test_gdbus-peer-object-manager_D7LT52/gdbus/peer-object-manager/normal/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer-object-manager_D7LT52/gdbus/peer-object-manager/normal/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer-object-manager_D7LT52/gdbus/peer-object-manager/normal/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer-object-manager_D7LT52/gdbus/peer-object-manager/normal/.dirs/runtime 1135s ok - glib/gdbus-peer-object-manager.test 1135s # Running test: glib/objects-refcount2.test 1135s ok 1 /gdbus/peer-object-manager/normal 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer-object-manager_D7LT52/gdbus/peer-object-manager/root/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer-object-manager_D7LT52/gdbus/peer-object-manager/root/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer-object-manager_D7LT52/gdbus/peer-object-manager/root/.dirs/system-config1:/tmp/test_gdbus-peer-object-manager_D7LT52/gdbus/peer-object-manager/root/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer-object-manager_D7LT52/gdbus/peer-object-manager/root/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer-object-manager_D7LT52/gdbus/peer-object-manager/root/.dirs/system-data1:/tmp/test_gdbus-peer-object-manager_D7LT52/gdbus/peer-object-manager/root/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer-object-manager_D7LT52/gdbus/peer-object-manager/root/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer-object-manager_D7LT52/gdbus/peer-object-manager/root/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer-object-manager_D7LT52/gdbus/peer-object-manager/root/.dirs/runtime 1135s ok 2 /gdbus/peer-object-manager/root 1135s # End of peer-object-manager tests 1135s # End of gdbus tests 1135s TAP version 14 1135s # random seed: R02S5a1582854387a823b34300f994c237a5 1135s 1..1 1135s # Start of gobject tests 1135s # Start of refcount tests 1135s # init 0xbe8473075410 1135s # 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1137s # . 1137s # . 1137s # . 1137s # Executing: glib/objects-refcount2.test 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1138s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1139s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1140s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # . 1141s # dispose 0xbe8473075410! 1141s # 1141s ok 1 /gobject/refcount/object-advanced 1141s # slow test /gobject/refcount/object-advanced executed in 6.20 secs 1141s # End of refcount tests 1141s # End of gobject tests 1141s ok - glib/objects-refcount2.test 1141s # Running test: glib/gdbus-serialization.test 1141s TAP version 14 1141s # random seed: R02S59a1196b9284f647b511ae742f2ff70d 1141s 1..18 1141s # Start of gdbus tests 1141s # Start of message-serialize tests 1141s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/basic/.dirs/home 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/basic/.dirs/cache 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/basic/.dirs/system-config1:/tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/basic/.dirs/system-config2 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/basic/.dirs/config 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/basic/.dirs/system-data1:/tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/basic/.dirs/system-data2 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/basic/.dirs/data 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/basic/.dirs/state 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/basic/.dirs/runtime 1141s ok 1 /gdbus/message-serialize/basic 1141s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/complex/.dirs/home 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/complex/.dirs/cache 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/complex/.dirs/system-config1:/tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/complex/.dirs/system-config2 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/complex/.dirs/config 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/complex/.dirs/system-data1:/tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/complex/.dirs/system-data2 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/complex/.dirs/data 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/complex/.dirs/state 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/complex/.dirs/runtime 1141s ok 2 /gdbus/message-serialize/complex 1141s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/invalid/.dirs/home 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/invalid/.dirs/cache 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/invalid/.dirs/system-config1:/tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/invalid/.dirs/system-config2 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/invalid/.dirs/config 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/invalid/.dirs/system-data1:/tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/invalid/.dirs/system-data2 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/invalid/.dirs/data 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/invalid/.dirs/state 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/invalid/.dirs/runtime 1141s ok 3 /gdbus/message-serialize/invalid 1141s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/header-checks/.dirs/home 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/header-checks/.dirs/cache 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/header-checks/.dirs/system-config1:/tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/header-checks/.dirs/system-config2 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/header-checks/.dirs/config 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/header-checks/.dirs/system-data1:/tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/header-checks/.dirs/system-data2 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/header-checks/.dirs/data 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/header-checks/.dirs/state 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/header-checks/.dirs/runtime 1141s ok 4 /gdbus/message-serialize/header-checks 1141s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/double-array/.dirs/home 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/double-array/.dirs/cache 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/double-array/.dirs/system-config1:/tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/double-array/.dirs/system-config2 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/double-array/.dirs/config 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/double-array/.dirs/system-data1:/tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/double-array/.dirs/system-data2 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/double-array/.dirs/data 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/double-array/.dirs/state 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/double-array/.dirs/runtime 1141s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=732754 1141s ok 5 /gdbus/message-serialize/double-array 1141s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/empty-structure/.dirs/home 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/empty-structure/.dirs/cache 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/empty-structure/.dirs/system-config1:/tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/empty-structure/.dirs/system-config2 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/empty-structure/.dirs/config 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/empty-structure/.dirs/system-data1:/tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/empty-structure/.dirs/system-data2 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/empty-structure/.dirs/data 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/empty-structure/.dirs/state 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/empty-structure/.dirs/runtime 1141s # /gdbus/message-serialize/empty-structure summary: Test that empty structures are rejected when serializing. 1141s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2557 1141s ok 6 /gdbus/message-serialize/empty-structure 1141s # Start of header-checks tests 1141s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/header-checks/valid/.dirs/home 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/header-checks/valid/.dirs/cache 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/header-checks/valid/.dirs/system-config1:/tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/header-checks/valid/.dirs/system-config2 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/header-checks/valid/.dirs/config 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/header-checks/valid/.dirs/system-data1:/tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/header-checks/valid/.dirs/system-data2 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/header-checks/valid/.dirs/data 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/header-checks/valid/.dirs/state 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-serialize/header-checks/valid/.dirs/runtime 1141s # /gdbus/message-serialize/header-checks/valid summary: Test that validation allows well-formed messages of all the different types 1141s ok 7 /gdbus/message-serialize/header-checks/valid 1141s # End of header-checks tests 1141s # End of message-serialize tests 1141s # Start of message-parse tests 1141s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/empty-arrays-of-arrays/.dirs/home 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/empty-arrays-of-arrays/.dirs/cache 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-config1:/tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-config2 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/empty-arrays-of-arrays/.dirs/config 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-data1:/tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-data2 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/empty-arrays-of-arrays/.dirs/data 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/empty-arrays-of-arrays/.dirs/state 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/empty-arrays-of-arrays/.dirs/runtime 1141s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=673612 1141s ok 8 /gdbus/message-parse/empty-arrays-of-arrays 1141s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/non-signature-header/.dirs/home 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/non-signature-header/.dirs/cache 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/non-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/non-signature-header/.dirs/system-config2 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/non-signature-header/.dirs/config 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/non-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/non-signature-header/.dirs/system-data2 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/non-signature-header/.dirs/data 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/non-signature-header/.dirs/state 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/non-signature-header/.dirs/runtime 1141s ok 9 /gdbus/message-parse/non-signature-header 1141s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/empty-signature-header/.dirs/home 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/empty-signature-header/.dirs/cache 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/empty-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/empty-signature-header/.dirs/system-config2 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/empty-signature-header/.dirs/config 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/empty-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/empty-signature-header/.dirs/system-data2 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/empty-signature-header/.dirs/data 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/empty-signature-header/.dirs/state 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/empty-signature-header/.dirs/runtime 1141s ok 10 /gdbus/message-parse/empty-signature-header 1141s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/multiple-signature-header/.dirs/home 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/multiple-signature-header/.dirs/cache 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/multiple-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/multiple-signature-header/.dirs/system-config2 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/multiple-signature-header/.dirs/config 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/multiple-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/multiple-signature-header/.dirs/system-data2 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/multiple-signature-header/.dirs/data 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/multiple-signature-header/.dirs/state 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/multiple-signature-header/.dirs/runtime 1141s ok 11 /gdbus/message-parse/multiple-signature-header 1141s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/over-long-signature-header/.dirs/home 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/over-long-signature-header/.dirs/cache 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/over-long-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/over-long-signature-header/.dirs/system-config2 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/over-long-signature-header/.dirs/config 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/over-long-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/over-long-signature-header/.dirs/system-data2 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/over-long-signature-header/.dirs/data 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/over-long-signature-header/.dirs/state 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/over-long-signature-header/.dirs/runtime 1141s ok 12 /gdbus/message-parse/over-long-signature-header 1141s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/deep-header-nesting/.dirs/home 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/deep-header-nesting/.dirs/cache 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/deep-header-nesting/.dirs/system-config1:/tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/deep-header-nesting/.dirs/system-config2 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/deep-header-nesting/.dirs/config 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/deep-header-nesting/.dirs/system-data1:/tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/deep-header-nesting/.dirs/system-data2 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/deep-header-nesting/.dirs/data 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/deep-header-nesting/.dirs/state 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/deep-header-nesting/.dirs/runtime 1141s ok 13 /gdbus/message-parse/deep-header-nesting 1141s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/deep-body-nesting/.dirs/home 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/deep-body-nesting/.dirs/cache 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/deep-body-nesting/.dirs/system-config1:/tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/deep-body-nesting/.dirs/system-config2 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/deep-body-nesting/.dirs/config 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/deep-body-nesting/.dirs/system-data1:/tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/deep-body-nesting/.dirs/system-data2 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/deep-body-nesting/.dirs/data 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/deep-body-nesting/.dirs/state 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/deep-body-nesting/.dirs/runtime 1141s ok 14 /gdbus/message-parse/deep-body-nesting 1141s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/truncated/.dirs/home 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/truncated/.dirs/cache 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/truncated/.dirs/system-config1:/tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/truncated/.dirs/system-config2 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/truncated/.dirs/config 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/truncated/.dirs/system-data1:/tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/truncated/.dirs/system-data2 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/truncated/.dirs/data 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/truncated/.dirs/state 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/truncated/.dirs/runtime 1141s # /gdbus/message-parse/truncated summary: Test that truncated messages are properly rejected. 1141s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2528 1141s ok 15 /gdbus/message-parse/truncated 1141s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/empty-structure/.dirs/home 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/empty-structure/.dirs/cache 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/empty-structure/.dirs/system-config1:/tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/empty-structure/.dirs/system-config2 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/empty-structure/.dirs/config 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/empty-structure/.dirs/system-data1:/tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/empty-structure/.dirs/system-data2 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/empty-structure/.dirs/data 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/empty-structure/.dirs/state 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/empty-structure/.dirs/runtime 1141s # /gdbus/message-parse/empty-structure summary: Test that empty structures are rejected when parsing. 1141s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2557 1141s ok 16 /gdbus/message-parse/empty-structure 1141s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/missing-header/.dirs/home 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/missing-header/.dirs/cache 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/missing-header/.dirs/system-config1:/tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/missing-header/.dirs/system-config2 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/missing-header/.dirs/config 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/missing-header/.dirs/system-data1:/tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/missing-header/.dirs/system-data2 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/missing-header/.dirs/data 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/missing-header/.dirs/state 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/missing-header/.dirs/runtime 1141s # /gdbus/message-parse/missing-header summary: Test that missing (required) headers prompt an error. 1141s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3061 1141s ok 17 /gdbus/message-parse/missing-header 1141s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/invalid-header-type/.dirs/home 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/invalid-header-type/.dirs/cache 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/invalid-header-type/.dirs/system-config1:/tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/invalid-header-type/.dirs/system-config2 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/invalid-header-type/.dirs/config 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/invalid-header-type/.dirs/system-data1:/tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/invalid-header-type/.dirs/system-data2 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/invalid-header-type/.dirs/data 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/invalid-header-type/.dirs/state 1141s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_3XWA62/gdbus/message-parse/invalid-header-type/.dirs/runtime 1141s # /gdbus/message-parse/invalid-header-type summary: Test that the type of well-known headers is checked. 1141s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3061 1141s ok 18 /gdbus/message-parse/invalid-header-type 1141s # End of message-parse tests 1141s # End of gdbus tests 1141s TAP version 14 1141s # random seed: R02S5d6f16498655489016fe0517ed5d0e80 1141s 1..1 1141s # Start of gobject tests 1141s # Start of refcount tests 1141s ok - glib/gdbus-serialization.test 1141s # Running test: glib/properties-refcount1.test 1141s # .f 1141s # .b 1141s # .e 1141s # .c 1141s # .d 1141s # .f 1141s # .b 1141s # .e 1141s # .d 1141s # .c 1141s # .f 1141s # .b 1141s # .f 1141s # .d 1141s # .b 1141s # .c 1141s # .e 1141s # .d 1141s # .c 1141s # .b 1141s # .f 1141s # .e 1142s # .d 1142s # .b 1142s # .f 1142s # Executing: glib/properties-refcount1.test 1142s # .c 1142s # .e 1142s # .d 1142s # .c 1142s # .f 1142s # .b 1142s # .e 1142s # .f 1142s # .d 1142s # .b 1142s # .c 1142s # .e 1142s # .d 1142s # .f 1142s # .b 1142s # .c 1142s # .e 1142s # .d 1142s # .b 1142s # .f 1142s # .b 1142s # .c 1142s # .e 1142s # .b 1142s # .f 1142s # .d 1142s # .c 1142s # .b 1142s # .e 1142s # .d 1142s # .c 1142s # .f 1142s # .b 1142s # .e 1142s # .c 1142s # .f 1142s # .d 1142s # .b 1142s # .c 1142s # .e 1142s # .b 1142s # .f 1142s # .d 1142s # .c 1142s # .b 1142s # .e 1142s # .f 1142s # .b 1142s # .c 1142s # .d 1142s # .e 1142s # .b 1142s # .f 1142s # .c 1142s # .b 1142s # .e 1142s # .c 1142s # .d 1142s # .f 1142s # .b 1142s # .c 1142s # .d 1142s # .e 1142s # .b 1142s # .f 1142s # .c 1142s # .d 1142s # .f 1142s # .b 1142s # .e 1142s # .c 1142s # .f 1142s # .b 1142s # .d 1142s # .e 1142s # .f 1142s # .c 1143s # .b 1143s # .d 1143s # .e 1143s # .f 1143s # .b 1143s # .c 1143s # .e 1143s # .d 1143s # .f 1143s # .b 1143s # .e 1143s # .c 1143s # .b 1143s # .d 1143s # .e 1143s # .f 1143s # .c 1143s # .b 1143s # .e 1143s # .d 1143s # .f 1143s # .b 1143s # .c 1143s # .e 1143s # .f 1143s # .c 1143s # .b 1143s # .d 1143s # .c 1143s # .e 1143s # .f 1143s # .b 1143s # .d 1143s # .c 1143s # .e 1143s # .f 1143s # .b 1143s # .d 1143s # .c 1143s # .f 1143s # .e 1143s # .b 1143s # .d 1143s # .c 1143s # .f 1143s # .b 1143s # .e 1143s # .e 1143s # .c 1143s # .f 1143s # .b 1143s # .d 1143s # .e 1143s # .c 1143s # .d 1143s # .f 1143s # .b 1143s # .c 1143s # .e 1143s # .f 1143s # .d 1143s # .e 1143s # .c 1143s # .b 1143s # .f 1143s # .d 1143s # .e 1143s # .b 1143s # .c 1143s # .f 1143s # .b 1143s # .e 1143s # .d 1143s # .c 1144s # .f 1144s # .e 1144s # .d 1144s # .b 1144s # .d 1144s # .c 1144s # .d 1144s # .d 1144s # .f 1144s # .e 1144s # .d 1144s # .b 1144s # .c 1144s # .f 1144s # .b 1144s # .d 1144s # .e 1144s # .b 1144s # .d 1144s # .c 1144s # .f 1144s # .b 1144s # .e 1144s # .d 1144s # .c 1144s # .f 1144s # .e 1144s # .b 1144s # .c 1144s # .d 1144s # .f 1144s # .e 1144s # .b 1144s # .f 1144s # .d 1144s # .c 1144s # .e 1144s # .b 1144s # .f 1144s # .d 1144s # .c 1144s # .e 1144s # .b 1144s # .f 1144s # .d 1144s # .c 1144s # .b 1144s # .e 1144s # .f 1144s # .d 1144s # .c 1144s ok - glib/properties-refcount1.test 1144s ok 1 /gobject/refcount/properties-1 1144s # slow test /gobject/refcount/properties-1 executed in 3.00 secs 1144s # End of refcount tests 1144s # End of gobject tests 1144s # Running test: glib/utils-c-99.test 1144s TAP version 14 1144s # random seed: R02S2b18707c2d21f7350bbc58602e3391c3 1144s 1..41 1144s # Start of utils tests 1144s ok 1 /utils/language-names 1144s ok 2 /utils/locale-variants 1144s ok 3 /utils/version 1144s ok 4 /utils/appname 1144s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1144s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1144s ok 5 /utils/prgname-thread-safety 1144s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1144s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1144s ok 6 /utils/tmpdir 1144s ok 7 /utils/basic_bits 1144s ok 8 /utils/bits 1144s ok 9 /utils/swap 1144s ok 10 /utils/find-program 1144s ok 11 /utils/find-program-for-path 1144s ok 12 /utils/debug 1144s ok 13 /utils/codeset 1144s ok 14 /utils/codeset2 1144s ok 15 /utils/console-charset 1144s ok 16 /utils/gettext 1144s ok 17 /utils/username 1144s ok 18 /utils/realname 1144s ok 19 /utils/hostname 1144s ok 20 /utils/xdgdirs 1144s ok 21 /utils/specialdir 1144s # NAME: Ubuntu 1144s ok 22 /utils/os-info 1144s ok 23 /utils/clear-pointer 1144s ok 24 /utils/clear-pointer-cast 1144s ok 25 /utils/take-pointer 1144s ok 26 /utils/clear-source 1144s ok 27 /utils/misc-mem 1144s # /utils/aligned-mem summary: Aligned memory allocator 1144s # Alignment must not be zero 1144s # Alignment must be a power of two 1144s # Alignment must be a multiple of sizeof(void*) 1144s ok 28 /utils/aligned-mem 1144s # /utils/free-sized summary: Check that g_free_sized() works 1144s ok 29 /utils/free-sized 1144s ok 30 /utils/nullify 1144s ok 31 /utils/atexit 1144s ok 32 /utils/check-setuid 1144s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1144s ok 33 /utils/int-limits 1144s ok 34 /utils/clear-list 1144s ok 35 /utils/clear-slist 1144s ok 36 /utils/steal-handle-id 1144s # Start of specialdir tests 1144s ok 37 /utils/specialdir/desktop 1144s # End of specialdir tests 1144s # Start of clear-pointer tests 1144s ok 38 /utils/clear-pointer/side-effects 1144s # End of clear-pointer tests 1144s # Start of aligned-mem tests 1144s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1144s ok 39 /utils/aligned-mem/alignment 1144s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1144s ok 40 /utils/aligned-mem/zeroed 1144s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1144s ok 41 /utils/aligned-mem/free-sized 1144s # Start of subprocess tests 1144s # End of subprocess tests 1144s # End of aligned-mem tests 1144s # End of utils tests 1144s ok - glib/utils-c-99.test 1144s # Running test: glib/g-file.test 1144s TAP version 14 1144s # random seed: R02Sf7e3f787244f0fc89a9c4e98e64f967a 1144s 1..8 1144s # Start of g-file tests 1144s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1144s ok 1 /g-file/test_g_file_new_null 1144s ok 2 /g-file/test_g_file_new_for_path 1144s ok 3 /g-file/test_g_file_new_for_uri 1144s ok 4 /g-file/test_g_file_dup 1144s ok 5 /g-file/test_g_file_get_parse_name_utf8 1144s file:///tmp/test-tmp-glib_g-file.test-STDC62 1144s file:///tmp 1144s file:///tmp 1144s file:////UTF-8%20p%C5%99%C3%ADli%C5%A1%20%C5%BElu%C5%A5ou%C4%8Dk%C3%BD%20k%C5%AF%C5%88 1144s file:///UTF-8%20p%C5%99%C3%ADli%C5%A1%20%C5%BElu%C5%A5ou%C4%8Dk%C3%BD%20k%C5%AF%C5%88 1144s ok 6 /g-file/test_g_file_new_for_commandline_arg 1144s /dir1 /dir1/dir2/dir3/ 1144s /dir1/ /dir1/dir2/dir3/ 1144s /dir1 /dir1/dir2/dir3 1144s /dir1/ /dir1/dir2/dir3 1144s /tmp/ /something/ 1144s /dir1/dir2 /dir1/ 1144s //dir1/new //dir1/new/dir2/dir3 1144s /dir/UTF-8 p??li? ?lu?ou?k? k?? /dir/UTF-8 p??li? ?lu?ou?k? k??/dir2 1144s file:///dir1 file:///dir1/dir2/dir3/ 1144s file:///dir1/ file:///dir1/dir2/dir3/ 1144s file:///dir1 file:///dir1/dir2/dir3 1144s file:///dir1/ file:///dir1/dir2/dir3 1144s file:///tmp/ file:///something/ 1144s file:///dir1/dir2 file:///dir1/ 1144s file:////dir1/new file:////dir1/new/dir2/dir3 1144s 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 1144s ok 7 /g-file/test_g_file_has_prefix 1144s ok - glib/g-file.test 1144s ok 8 /g-file/test_g_file_get_parent_child 1144s # End of g-file tests 1144s # Running test: glib/gdbus-connection-slow.test 1144s TAP version 14 1144s # random seed: R02S291d07b7889adb94b7c9f41a69d108e1 1144s 1..2 1144s # Start of gdbus tests 1144s # Start of connection tests 1144s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-slow_MTIC62/gdbus/connection/flush/.dirs/home 1144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-slow_MTIC62/gdbus/connection/flush/.dirs/cache 1144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-slow_MTIC62/gdbus/connection/flush/.dirs/system-config1:/tmp/test_gdbus-connection-slow_MTIC62/gdbus/connection/flush/.dirs/system-config2 1144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-slow_MTIC62/gdbus/connection/flush/.dirs/config 1144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-slow_MTIC62/gdbus/connection/flush/.dirs/system-data1:/tmp/test_gdbus-connection-slow_MTIC62/gdbus/connection/flush/.dirs/system-data2 1144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-slow_MTIC62/gdbus/connection/flush/.dirs/data 1144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-slow_MTIC62/gdbus/connection/flush/.dirs/state 1144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-slow_MTIC62/gdbus/connection/flush/.dirs/runtime 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s ok 1 /gdbus/connection/flush 1145s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-slow_MTIC62/gdbus/connection/large_message/.dirs/home 1145s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-slow_MTIC62/gdbus/connection/large_message/.dirs/cache 1145s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-slow_MTIC62/gdbus/connection/large_message/.dirs/system-config1:/tmp/test_gdbus-connection-slow_MTIC62/gdbus/connection/large_message/.dirs/system-config2 1145s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-slow_MTIC62/gdbus/connection/large_message/.dirs/config 1145s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-slow_MTIC62/gdbus/connection/large_message/.dirs/system-data1:/tmp/test_gdbus-connection-slow_MTIC62/gdbus/connection/large_message/.dirs/system-data2 1145s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-slow_MTIC62/gdbus/connection/large_message/.dirs/data 1145s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-slow_MTIC62/gdbus/connection/large_message/.dirs/state 1145s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-slow_MTIC62/gdbus/connection/large_message/.dirs/runtime 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s ok 2 /gdbus/connection/large_message 1145s # End of connection tests 1145s # End of gdbus tests 1145s ok - glib/gdbus-connection-slow.test 1145s # Running test: glib/atomic.test 1145s TAP version 14 1145s # random seed: R02Sfd251b21106bad290bb721e64224ea7a 1145s 1..2 1145s # Start of atomic tests 1145s ok 1 /atomic/types 1145s ok - glib/atomic.test 1145s ok 2 /atomic/threaded 1145s # End of atomic tests 1145s # Running test: glib/gdbus-auth.test 1145s TAP version 14 1145s # random seed: R02Sacdf29097c8275d2b9afe1318ae65b0c 1145s 1..5 1145s # Start of gdbus tests 1145s # Start of auth tests 1145s # Start of client tests 1145s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_RFIV52/gdbus/auth/client/EXTERNAL/.dirs/home 1145s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_RFIV52/gdbus/auth/client/EXTERNAL/.dirs/cache 1145s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_RFIV52/gdbus/auth/client/EXTERNAL/.dirs/system-config1:/tmp/test_gdbus-auth_RFIV52/gdbus/auth/client/EXTERNAL/.dirs/system-config2 1145s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_RFIV52/gdbus/auth/client/EXTERNAL/.dirs/config 1145s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_RFIV52/gdbus/auth/client/EXTERNAL/.dirs/system-data1:/tmp/test_gdbus-auth_RFIV52/gdbus/auth/client/EXTERNAL/.dirs/system-data2 1145s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_RFIV52/gdbus/auth/client/EXTERNAL/.dirs/data 1145s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_RFIV52/gdbus/auth/client/EXTERNAL/.dirs/state 1145s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_RFIV52/gdbus/auth/client/EXTERNAL/.dirs/runtime 1145s ok 1 /gdbus/auth/client/EXTERNAL 1145s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_RFIV52/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/home 1145s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_RFIV52/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/cache 1145s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_RFIV52/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-config1:/tmp/test_gdbus-auth_RFIV52/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-config2 1145s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_RFIV52/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/config 1145s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_RFIV52/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-data1:/tmp/test_gdbus-auth_RFIV52/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-data2 1145s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_RFIV52/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/data 1145s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_RFIV52/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/state 1145s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_RFIV52/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/runtime 1145s ok 2 /gdbus/auth/client/DBUS_COOKIE_SHA1 1145s # End of client tests 1145s # Start of server tests 1145s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_RFIV52/gdbus/auth/server/ANONYMOUS/.dirs/home 1145s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_RFIV52/gdbus/auth/server/ANONYMOUS/.dirs/cache 1145s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_RFIV52/gdbus/auth/server/ANONYMOUS/.dirs/system-config1:/tmp/test_gdbus-auth_RFIV52/gdbus/auth/server/ANONYMOUS/.dirs/system-config2 1145s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_RFIV52/gdbus/auth/server/ANONYMOUS/.dirs/config 1145s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_RFIV52/gdbus/auth/server/ANONYMOUS/.dirs/system-data1:/tmp/test_gdbus-auth_RFIV52/gdbus/auth/server/ANONYMOUS/.dirs/system-data2 1145s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_RFIV52/gdbus/auth/server/ANONYMOUS/.dirs/data 1145s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_RFIV52/gdbus/auth/server/ANONYMOUS/.dirs/state 1145s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_RFIV52/gdbus/auth/server/ANONYMOUS/.dirs/runtime 1145s ok 3 /gdbus/auth/server/ANONYMOUS 1145s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_RFIV52/gdbus/auth/server/EXTERNAL/.dirs/home 1145s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_RFIV52/gdbus/auth/server/EXTERNAL/.dirs/cache 1145s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_RFIV52/gdbus/auth/server/EXTERNAL/.dirs/system-config1:/tmp/test_gdbus-auth_RFIV52/gdbus/auth/server/EXTERNAL/.dirs/system-config2 1145s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_RFIV52/gdbus/auth/server/EXTERNAL/.dirs/config 1145s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_RFIV52/gdbus/auth/server/EXTERNAL/.dirs/system-data1:/tmp/test_gdbus-auth_RFIV52/gdbus/auth/server/EXTERNAL/.dirs/system-data2 1145s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_RFIV52/gdbus/auth/server/EXTERNAL/.dirs/data 1145s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_RFIV52/gdbus/auth/server/EXTERNAL/.dirs/state 1145s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_RFIV52/gdbus/auth/server/EXTERNAL/.dirs/runtime 1145s ok 4 /gdbus/auth/server/EXTERNAL 1145s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_RFIV52/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/home 1145s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_RFIV52/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/cache 1145s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_RFIV52/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-config1:/tmp/test_gdbus-auth_RFIV52/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-config2 1145s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_RFIV52/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/config 1145s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_RFIV52/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-data1:/tmp/test_gdbus-auth_RFIV52/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-data2 1145s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_RFIV52/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/data 1145s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_RFIV52/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/state 1145s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_RFIV52/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/runtime 1145s ok 5 /gdbus/auth/server/DBUS_COOKIE_SHA1 1145s # End of server tests 1145s # End of auth tests 1145s # End of gdbus tests 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s ok - glib/gdbus-auth.test 1145s # Running test: glib/bytes.test 1145s ok - glib/bytes.test 1145s # Running test: glib/gapplication.test 1145s TAP version 14 1145s # random seed: R02Sf224c4b6f6737696e454d89d992842ec 1145s 1..21 1145s # Start of bytes tests 1145s ok 1 /bytes/new 1145s ok 2 /bytes/new-take 1145s ok 3 /bytes/new-static 1145s ok 4 /bytes/new-with-free-func 1145s ok 5 /bytes/new-from-bytes 1145s ok 6 /bytes/new-from-bytes-slice 1145s ok 7 /bytes/new-from-bytes-shared-ref 1145s ok 8 /bytes/hash 1145s ok 9 /bytes/equal 1145s ok 10 /bytes/compare 1145s ok 11 /bytes/null 1145s ok 12 /bytes/get-region 1145s # /bytes/unref-null summary: Test that calling g_bytes_unref() on NULL is a no-op 1145s ok 13 /bytes/unref-null 1145s # Start of to-data tests 1145s ok 14 /bytes/to-data/transferred 1145s ok 15 /bytes/to-data/two-refs 1145s ok 16 /bytes/to-data/non-malloc 1145s ok 17 /bytes/to-data/different-free-func 1145s # End of to-data tests 1145s # Start of to-array tests 1145s ok 18 /bytes/to-array/transferred 1145s ok 19 /bytes/to-array/two-refs 1145s ok 20 /bytes/to-array/non-malloc 1145s # Start of transferred tests 1145s # g_bytes_unref_to_array() can only take GBytes up to G_MAXUINT in length; test that longer ones are rejected 1145s ok 21 /bytes/to-array/transferred/oversize 1145s # End of transferred tests 1145s # End of to-array tests 1145s # End of bytes tests 1145s TAP version 14 1145s # random seed: R02S958b8ed16162331c596259ede3e5d1c2 1145s 1..24 1145s # Start of gapplication tests 1145s ok 1 /gapplication/no-dbus 1145s ok 2 /gapplication/no-appid 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s ok 3 /gapplication/properties 1145s ok 4 /gapplication/app-id 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s ok 5 /gapplication/quit 1145s ok 6 /gapplication/registered 1145s ok 7 /gapplication/local-actions 1145s ok 8 /gapplication/local-command-line 1145s ok 9 /gapplication/resource-path 1145s ok 10 /gapplication/test-help 1145s ok 11 /gapplication/command-line-done 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s ok 12 /gapplication/test-busy 1145s ok 13 /gapplication/test-handle-local-options1 1145s ok 14 /gapplication/test-handle-local-options2 1145s ok 15 /gapplication/test-handle-local-options3 1145s ok 16 /gapplication/api 1145s ok 17 /gapplication/version 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1145s # launching subprocess 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s ok 18 /gapplication/replace 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1145s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1145s # launching subprocess 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s ok 19 /gapplication/no-replace 1146s # slow test /gapplication/no-replace executed in 0.51 secs 1146s # Start of dbus tests 1146s # /gapplication/dbus/activate summary: Test that calling the Activate D-Bus method works 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1146s # Message 0 1146s # Message 1 1146s # Message 2 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s ok 20 /gapplication/dbus/activate 1146s # /gapplication/dbus/open summary: Test that calling the Open D-Bus method works 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1146s # Message 0 1146s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1146s # Message 1 1146s # Message 2 1146s # Message 3 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s ok 21 /gapplication/dbus/open 1146s # /gapplication/dbus/command-line summary: Test that calling the CommandLine D-Bus method works 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1146s # Message 0 1146s # Message 1 1146s # Message 2 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s ok 22 /gapplication/dbus/command-line 1146s # /gapplication/dbus/command-line-done summary: Test that GDBusCommandLine.done() works 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s ok - glib/gapplication.test 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s ok 23 /gapplication/dbus/command-line-done 1146s # /gapplication/dbus/activate-action summary: Test that calling the ActivateAction D-Bus method works 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1146s # Message 0 1146s # Message 1 1146s # Message 2 1146s # Message 3 1146s # Message 4 1146s # Message 5 1146s # Message 6 1146s # Message 7 1146s # Message 8 1146s # Message 9 1146s # Message 10 1146s # Message 11 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1146s ok 24 /gapplication/dbus/activate-action 1146s # End of dbus tests 1146s # End of gapplication tests 1146s # Running test: glib/resources.test 1146s TAP version 14 1146s # random seed: R02S550ba392a214b017e80b1f0c725212d5 1146s 1..19 1146s # Start of resource tests 1146s ok 1 /resource/file 1146s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1146s ok 2 /resource/file-path 1146s ok 3 /resource/data 1146s ok 4 /resource/data_unaligned 1146s ok 5 /resource/data-corrupt 1146s # /resource/data-corrupt-compression summary: Test error handling for corrupt GResource files (specifically, corrupt zlib compression). 1146s ok 6 /resource/data-corrupt-compression 1146s ok 7 /resource/data-empty 1146s ok 8 /resource/registered 1146s ok 9 /resource/manual 1146s ok 10 /resource/manual2 1146s ok 11 /resource/automatic 1146s ok 12 /resource/module 1146s ok 13 /resource/binary-linked 1146s ok 14 /resource/64k 1146s GLib-GIO-Message: 08:53:43.125: Adding GResources overlay '/auto_loaded/test1.txt=/usr/libexec/installed-tests/glib/test1.overlay' 1146s GLib-GIO-Message: 08:53:43.126: Opened file '/usr/libexec/installed-tests/glib/test1.overlay' as a resource overlay 1146s GLib-GIO-Message: 08:53:43.126: Mapped file '/usr/libexec/installed-tests/glib/test1.overlay' as a resource overlay 1146s ok 15 /resource/overlay 1146s ok 16 /resource/digits 1146s ok 17 /resource/has-children 1146s # Start of uri tests 1146s ok 18 /resource/uri/query-info 1146s ok 19 /resource/uri/file 1146s # End of uri tests 1146s # End of resource tests 1146s ok - glib/resources.test 1146s # Running test: glib/portal-support-snap.test 1146s TAP version 14 1146s # random seed: R02Sd3790abf051f9da91ff54a97b5a28638 1146s 1..7 1146s # Start of portal-support tests 1146s # Start of snap tests 1146s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/no-snapctl/.dirs/home 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/no-snapctl/.dirs/cache 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/no-snapctl/.dirs/system-config1:/tmp/test_portal-support-snap_FTOZ52/portal-support/snap/no-snapctl/.dirs/system-config2 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/no-snapctl/.dirs/config 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/no-snapctl/.dirs/system-data1:/tmp/test_portal-support-snap_FTOZ52/portal-support/snap/no-snapctl/.dirs/system-data2 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/no-snapctl/.dirs/data 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/no-snapctl/.dirs/state 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/no-snapctl/.dirs/runtime 1146s # Created snap.yaml in /tmp/test_portal-support-snap_FTOZ52/meta/snap.yaml 1146s Unable to clean up temporary directory /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/no-snapctl: No such file or directory 1146s ok 1 /portal-support/snap/no-snapctl 1146s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/none/.dirs/home 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/none/.dirs/cache 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/none/.dirs/system-config1:/tmp/test_portal-support-snap_FTOZ52/portal-support/snap/none/.dirs/system-config2 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/none/.dirs/config 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/none/.dirs/system-data1:/tmp/test_portal-support-snap_FTOZ52/portal-support/snap/none/.dirs/system-data2 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/none/.dirs/data 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/none/.dirs/state 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/none/.dirs/runtime 1146s # Created snap.yaml in /tmp/test_portal-support-snap_FTOZ52/meta/snap.yaml 1146s # Created snapctl in /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/none/.dirs/runtime/snapctl 1146s Unable to clean up temporary directory /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/none: No such file or directory 1146s ok 2 /portal-support/snap/none 1146s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/all/.dirs/home 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/all/.dirs/cache 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/all/.dirs/system-config1:/tmp/test_portal-support-snap_FTOZ52/portal-support/snap/all/.dirs/system-config2 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/all/.dirs/config 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/all/.dirs/system-data1:/tmp/test_portal-support-snap_FTOZ52/portal-support/snap/all/.dirs/system-data2 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/all/.dirs/data 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/all/.dirs/state 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/all/.dirs/runtime 1146s # Created snap.yaml in /tmp/test_portal-support-snap_FTOZ52/meta/snap.yaml 1146s # Created snapctl in /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/all/.dirs/runtime/snapctl 1146s Unable to clean up temporary directory /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/all: No such file or directory 1146s ok 3 /portal-support/snap/all 1146s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/desktop-only/.dirs/home 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/desktop-only/.dirs/cache 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/desktop-only/.dirs/system-config1:/tmp/test_portal-support-snap_FTOZ52/portal-support/snap/desktop-only/.dirs/system-config2 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/desktop-only/.dirs/config 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/desktop-only/.dirs/system-data1:/tmp/test_portal-support-snap_FTOZ52/portal-support/snap/desktop-only/.dirs/system-data2 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/desktop-only/.dirs/data 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/desktop-only/.dirs/state 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/desktop-only/.dirs/runtime 1146s # Created snap.yaml in /tmp/test_portal-support-snap_FTOZ52/meta/snap.yaml 1146s # Created snapctl in /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/desktop-only/.dirs/runtime/snapctl 1146s Unable to clean up temporary directory /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/desktop-only: No such file or directory 1146s ok 4 /portal-support/snap/desktop-only 1146s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/network-only/.dirs/home 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/network-only/.dirs/cache 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/network-only/.dirs/system-config1:/tmp/test_portal-support-snap_FTOZ52/portal-support/snap/network-only/.dirs/system-config2 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/network-only/.dirs/config 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/network-only/.dirs/system-data1:/tmp/test_portal-support-snap_FTOZ52/portal-support/snap/network-only/.dirs/system-data2 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/network-only/.dirs/data 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/network-only/.dirs/state 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/network-only/.dirs/runtime 1146s # Created snap.yaml in /tmp/test_portal-support-snap_FTOZ52/meta/snap.yaml 1146s # Created snapctl in /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/network-only/.dirs/runtime/snapctl 1146s Unable to clean up temporary directory /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/network-only: No such file or directory 1146s ok 5 /portal-support/snap/network-only 1146s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/gsettings-only/.dirs/home 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/gsettings-only/.dirs/cache 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/gsettings-only/.dirs/system-config1:/tmp/test_portal-support-snap_FTOZ52/portal-support/snap/gsettings-only/.dirs/system-config2 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/gsettings-only/.dirs/config 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/gsettings-only/.dirs/system-data1:/tmp/test_portal-support-snap_FTOZ52/portal-support/snap/gsettings-only/.dirs/system-data2 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/gsettings-only/.dirs/data 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/gsettings-only/.dirs/state 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/gsettings-only/.dirs/runtime 1146s # Created snap.yaml in /tmp/test_portal-support-snap_FTOZ52/meta/snap.yaml 1146s # Created snapctl in /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/gsettings-only/.dirs/runtime/snapctl 1146s Unable to clean up temporary directory /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/gsettings-only: No such file or directory 1146s ok 6 /portal-support/snap/gsettings-only 1146s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/updates-dynamically/.dirs/home 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/updates-dynamically/.dirs/cache 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/updates-dynamically/.dirs/system-config1:/tmp/test_portal-support-snap_FTOZ52/portal-support/snap/updates-dynamically/.dirs/system-config2 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/updates-dynamically/.dirs/config 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/updates-dynamically/.dirs/system-data1:/tmp/test_portal-support-snap_FTOZ52/portal-support/snap/updates-dynamically/.dirs/system-data2 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/updates-dynamically/.dirs/data 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/updates-dynamically/.dirs/state 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/updates-dynamically/.dirs/runtime 1146s # Created snap.yaml in /tmp/test_portal-support-snap_FTOZ52/meta/snap.yaml 1146s # Created snapctl in /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1146s # Created snapctl in /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1146s # Created snapctl in /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1146s # Created snapctl in /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1146s # Created snapctl in /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1146s # Created snapctl in /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1146s # Created snapctl in /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1146s Unable to clean up temporary directory /tmp/test_portal-support-snap_FTOZ52/portal-support/snap/updates-dynamically: No such file or directory 1146s ok 7 /portal-support/snap/updates-dynamically 1146s # End of snap tests 1146s # End of portal-support tests 1146s Unable to clean up temporary directory /tmp/test_portal-support-snap_FTOZ52: No such file or directory 1146s ok - glib/portal-support-snap.test 1146s # Running test: glib/portal-support-flatpak-network-only.test 1146s TAP version 14 1146s # random seed: R02Sf24b12ab16975dbe772449fb25b004c6 1146s 1..1 1146s # Start of portal-support tests 1146s # Start of flatpak tests 1146s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-network-only_GGQ052/portal-support/flatpak/network/.dirs/home 1146s ok - glib/portal-support-flatpak-network-only.test 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-network-only_GGQ052/portal-support/flatpak/network/.dirs/cache 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-network-only_GGQ052/portal-support/flatpak/network/.dirs/system-config1:/tmp/test_portal-support-flatpak-network-only_GGQ052/portal-support/flatpak/network/.dirs/system-config2 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-network-only_GGQ052/portal-support/flatpak/network/.dirs/config 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-network-only_GGQ052/portal-support/flatpak/network/.dirs/system-data1:/tmp/test_portal-support-flatpak-network-only_GGQ052/portal-support/flatpak/network/.dirs/system-data2 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-network-only_GGQ052/portal-support/flatpak/network/.dirs/data 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-network-only_GGQ052/portal-support/flatpak/network/.dirs/state 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-network-only_GGQ052/portal-support/flatpak/network/.dirs/runtime 1146s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-network-only_GGQ052/portal-support/flatpak/network/.dirs/runtime/.flatpak-info 1146s ok 1 /portal-support/flatpak/network 1146s # End of flatpak tests 1146s # End of portal-support tests 1146s # Running test: glib/thread-pool.test 1146s TAP version 14 1146s # random seed: R02S3dc3983d4d6aee4478f10f6ca173cfa2 1146s 1..5 1146s # Start of thread_pool tests 1146s # /thread_pool/shared summary: Tests that a shared, non-exclusive thread pool generally works. 1146s ok 1 /thread_pool/shared 1146s # /thread_pool/exclusive summary: Tests that an exclusive thread pool generally works. 1146s ok 2 /thread_pool/exclusive 1146s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2012 1146s # /thread_pool/create_shared_after_exclusive summary: Tests that creating a shared pool after an exclusive one works. 1146s ok 3 /thread_pool/create_shared_after_exclusive 1146s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/121 1146s ok 4 /thread_pool/create_full 1146s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2012 1146s # /thread_pool/create_exclusive_after_shared summary: Tests that creating an exclusive pool after a shared one works. 1146s ok - glib/thread-pool.test 1146s # Running test: glib/network-address.test 1146s ok 5 /thread_pool/create_exclusive_after_shared 1146s # End of thread_pool tests 1146s TAP version 14 1146s # random seed: R02S9ec8f4b48e724b221bb80180a9e92f3b 1146s 1..72 1146s # Start of network-address tests 1146s ok 1 /network-address/basic 1146s ok 2 /network-address/scope-id 1146s ok 3 /network-address/uri-scope-id 1146s ok 4 /network-address/to-string 1146s # Start of parse-host tests 1146s ok 5 /network-address/parse-host/0 1146s ok 6 /network-address/parse-host/1 1146s ok 7 /network-address/parse-host/2 1146s ok 8 /network-address/parse-host/3 1146s ok 9 /network-address/parse-host/4 1146s ok 10 /network-address/parse-host/5 1146s ok 11 /network-address/parse-host/6 1146s ok 12 /network-address/parse-host/7 1146s ok 13 /network-address/parse-host/8 1146s ok 14 /network-address/parse-host/9 1146s ok 15 /network-address/parse-host/10 1146s ok 16 /network-address/parse-host/11 1146s ok 17 /network-address/parse-host/12 1146s ok 18 /network-address/parse-host/13 1146s # End of parse-host tests 1146s # Start of parse-uri tests 1146s ok 19 /network-address/parse-uri/0 1146s ok 20 /network-address/parse-uri/1 1146s ok 21 /network-address/parse-uri/2 1146s ok 22 /network-address/parse-uri/3 1146s ok 23 /network-address/parse-uri/4 1146s ok 24 /network-address/parse-uri/5 1146s ok 25 /network-address/parse-uri/6 1146s ok 26 /network-address/parse-uri/7 1146s ok 27 /network-address/parse-uri/8 1146s ok 28 /network-address/parse-uri/9 1146s # End of parse-uri tests 1146s # Start of resolve-address tests 1146s # Input: 192.168.1.2 1146s ok 29 /network-address/resolve-address/0 1146s # Input: fe80::42 1146s ok 30 /network-address/resolve-address/1 1146s # Input: 192.168.1.2:80 1146s ok 31 /network-address/resolve-address/2 1146s # Input: [fe80::42] 1146s ok 32 /network-address/resolve-address/3 1146s # Input: [fe80::42]:80 1146s ok 33 /network-address/resolve-address/4 1146s # Input: 192.168.258 1146s ok 34 /network-address/resolve-address/5 1146s # Input: 192.11010306 1146s ok 35 /network-address/resolve-address/6 1146s # Input: 3232235778 1146s ok 36 /network-address/resolve-address/7 1146s # Input: 0300.0250.0001.0001 1146s ok 37 /network-address/resolve-address/8 1146s # Input: 0xC0.0xA8.0x01.0x02 1146s ok 38 /network-address/resolve-address/9 1146s # Input: 0xc0.0xa8.0x01.0x02 1146s ok 39 /network-address/resolve-address/10 1146s # Input: 0xc0a80102 1146s ok 40 /network-address/resolve-address/11 1146s # End of resolve-address tests 1146s # Start of loopback tests 1146s ok 41 /network-address/loopback/basic 1146s ok 42 /network-address/loopback/sync 1146s ok 43 /network-address/loopback/async 1146s # End of loopback tests 1146s # Start of localhost tests 1146s ok 44 /network-address/localhost/async 1146s ok 45 /network-address/localhost/sync 1146s # End of localhost tests 1146s # Start of happy-eyeballs tests 1146s ok 46 /network-address/happy-eyeballs/basic 1146s ok 47 /network-address/happy-eyeballs/parallel 1146s ok 48 /network-address/happy-eyeballs/slow-ipv4 1146s ok 49 /network-address/happy-eyeballs/slow-ipv6 1146s ok 50 /network-address/happy-eyeballs/very-slow-ipv6 1147s # Executing: glib/network-address.test 1147s ok 51 /network-address/happy-eyeballs/slow-connection-and-ipv4 1147s # slow test /network-address/happy-eyeballs/slow-connection-and-ipv4 executed in 0.80 secs 1147s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1147s ok 52 /network-address/happy-eyeballs/ipv6-error-ipv4-first 1147s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1147s ok 53 /network-address/happy-eyeballs/ipv6-error-ipv6-first 1147s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/865 1147s # /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. 1147s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1147s ok 54 /network-address/happy-eyeballs/ipv6-error-ipv4-very-slow 1147s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1147s ok 55 /network-address/happy-eyeballs/ipv4-error-ipv6-first 1147s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1147s ok 56 /network-address/happy-eyeballs/ipv4-error-ipv4-first 1147s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1147s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1147s ok 57 /network-address/happy-eyeballs/both-error 1147s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1147s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1147s ok 58 /network-address/happy-eyeballs/both-error-delays-1 1147s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1147s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1147s ok 59 /network-address/happy-eyeballs/both-error-delays-2 1147s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1147s ok 60 /network-address/happy-eyeballs/both-error-delays-3 1147s # End of happy-eyeballs tests 1147s # End of network-address tests 1147s # Start of gresolver tests 1147s # Start of resolve-address tests 1147s # Input: 192.168.1.2 1147s ok 61 /gresolver/resolve-address/0 1147s # Input: fe80::42 1147s ok 62 /gresolver/resolve-address/1 1147s # Input: 192.168.1.2:80 1147s # Error: Error resolving ?192.168.1.2:80?: Name or service not known 1147s ok 63 /gresolver/resolve-address/2 1147s # Input: [fe80::42] 1147s # Error: Error resolving ?[fe80::42]?: Name or service not known 1147s ok 64 /gresolver/resolve-address/3 1147s # Input: [fe80::42]:80 1147s # Error: Error resolving ?[fe80::42]:80?: Name or service not known 1147s ok 65 /gresolver/resolve-address/4 1147s # Input: 192.168.258 1147s # Error: Error resolving ?192.168.258?: Name or service not known 1147s ok 66 /gresolver/resolve-address/5 1147s # Input: 192.11010306 1147s # Error: Error resolving ?192.11010306?: Name or service not known 1147s ok 67 /gresolver/resolve-address/6 1147s # Input: 3232235778 1147s # Error: Error resolving ?3232235778?: Name or service not known 1147s ok 68 /gresolver/resolve-address/7 1147s # Input: 0300.0250.0001.0001 1147s # Error: Error resolving ?0300.0250.0001.0001?: Name or service not known 1147s ok 69 /gresolver/resolve-address/8 1147s # Input: 0xC0.0xA8.0x01.0x02 1147s # Error: Error resolving ?0xC0.0xA8.0x01.0x02?: Name or service not known 1147s ok 70 /gresolver/resolve-address/9 1147s # Input: 0xc0.0xa8.0x01.0x02 1147s # Error: Error resolving ?0xc0.0xa8.0x01.0x02?: Name or service not known 1147s ok 71 /gresolver/resolve-address/10 1147s # Input: 0xc0a80102 1147s # Error: Error resolving ?0xc0a80102?: Name or service not known 1147s ok 72 /gresolver/resolve-address/11 1147s # End of resolve-address tests 1147s # End of gresolver tests 1147s ok - glib/network-address.test 1147s # Running test: glib/unix-streams.test 1147s TAP version 14 1147s # random seed: R02S8d7f25db372edbff2f3edff2f8706ac2 1147s 1..9 1147s # Start of unix-streams tests 1147s ok 1 /unix-streams/basic 1148s ok 2 /unix-streams/pipe-io-test 1148s # slow test /unix-streams/pipe-io-test executed in 0.50 secs 1148s ok 3 /unix-streams/nonblocking-io-test 1148s # slow test /unix-streams/nonblocking-io-test executed in 0.50 secs 1148s ok 4 /unix-streams/read_write 1148s ok 5 /unix-streams/read_writev 1148s ok 6 /unix-streams/write-wouldblock 1148s ok 7 /unix-streams/writev-wouldblock 1148s ok 8 /unix-streams/write-async-wouldblock 1148s ok 9 /unix-streams/writev-async-wouldblock 1148s # End of unix-streams tests 1148s ok - glib/unix-streams.test 1148s # Running test: glib/cxx.test 1148s TAP version 14 1148s # random seed: R02Sb13d211bc7c4e0cc9fa1b7763a91fb3b 1148s 1..2 1148s # Start of gtask tests 1148s # 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. 1148s ok 1 /gtask/name 1148s # Start of name tests 1148s # 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. 1148s ok 2 /gtask/name/macro-wrapper 1148s # End of name tests 1148s # End of gtask tests 1148s ok - glib/cxx.test 1148s # Running test: glib/test-printf.test 1148s ok - glib/test-printf.test 1148s # Running test: glib/fdo-notification-backend.test 1148s ok - glib/fdo-notification-backend.test 1148s # Running test: glib/converter.test 1148s ok - glib/converter.test 1148s # Running test: glib/signals-refcount3.test 1148s TAP version 14 1148s # random seed: R02S3e1174e121958fb821264ef62ef1192a 1148s 1..22 1148s # Start of snprintf tests 1148s ok 1 /snprintf/retval-and-trunc 1148s ok 2 /snprintf/%d 1148s ok 3 /snprintf/%d-invalid 1148s ok 4 /snprintf/%o 1148s ok 5 /snprintf/%u 1148s ok 6 /snprintf/%x 1148s ok 7 /snprintf/%X 1148s ok 8 /snprintf/%f 1148s ok 9 /snprintf/%e 1148s ok 10 /snprintf/%c 1148s ok 11 /snprintf/%s 1148s ok 12 /snprintf/%n 1148s ok 13 /snprintf/test-percent 1148s ok 14 /snprintf/test-positional-params 1148s ok 15 /snprintf/test-64bit 1148s # End of snprintf tests 1148s # Start of printf tests 1148s ok 16 /printf/test-percent 1148s ok 17 /printf/test-positional-params 1148s ok 18 /printf/test-64bit 1148s # Start of test-64bit tests 1148s # Start of subprocess tests 1148s # End of subprocess tests 1148s # End of test-64bit tests 1148s # End of printf tests 1148s # Start of sprintf tests 1148s ok 19 /sprintf/test-positional-params 1148s ok 20 /sprintf/upper-bound 1148s # End of sprintf tests 1148s # Start of vasprintf tests 1148s # /vasprintf/invalid-format-placeholder summary: Test error handling for invalid format placeholder in g_vasprintf() 1148s ok 21 /vasprintf/invalid-format-placeholder 1148s # /vasprintf/invalid-wide-string summary: Test error handling for invalid wide strings in g_vasprintf() 1148s ok 22 /vasprintf/invalid-wide-string 1148s # End of vasprintf tests 1148s TAP version 14 1148s # random seed: R02Se158912f3ba5cd9455a6b730d4435c36 1148s 1..2 1148s # Start of fdo-notification-backend tests 1148s # Test constructing a GFdoNotificationBackend 1148s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1148s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1148s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1148s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1148s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1148s ok 1 /fdo-notification-backend/construction 1148s # Start of dbus tests 1148s # /fdo-notification-backend/dbus/activate-action summary: Test how the backend handles valid and invalid ActionInvoked signals from the daemon 1148s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1148s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1148s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1148s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1148s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1148s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1148s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1148s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1148s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1148s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1148s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1148s ok 2 /fdo-notification-backend/dbus/activate-action 1148s # End of dbus tests 1148s # End of fdo-notification-backend tests 1148s TAP version 14 1148s # random seed: R02Sf1cc320f70d6c483a3e1628cc9b703ae 1148s 1..2 1148s # Start of converter tests 1148s ok 1 /converter/bytes 1148s ok 2 /converter/extra-bytes-at-end 1148s # End of converter tests 1148s TAP version 14 1148s # random seed: R02See77f22d841490907c7499000e9b70f5 1148s 1..1 1148s # Start of gobject tests 1148s # Start of refcount tests 1148s # init 0xbf0201265de0 1148s # 1148s # init 0xbf020125c610 1148s # 1152s # Executing: glib/signals-refcount3.test 1153s ok - glib/signals-refcount3.test 1153s # Running test: glib/network-monitor.test 1153s # dispose 0xbf0201265de0! 1153s # 1153s # dispose 0xbf020125c610! 1153s # 1153s ok 1 /gobject/refcount/signals 1153s # slow test /gobject/refcount/signals executed in 5.00 secs 1153s # End of refcount tests 1153s # End of gobject tests 1153s TAP version 14 1153s # random seed: R02S6417cc3078d1651a910c9336792f3e9f 1153s 1..4 1153s # Start of network-monitor tests 1153s # GLib-GIO-DEBUG: Failed to initialize portal (GNetworkMonitorPortal) for gio-network-monitor: Not using portals 1153s # GLib-GIO-DEBUG: Failed to initialize networkmanager (GNetworkMonitorNM) for gio-network-monitor: NetworkManager not running 1153s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation netlink (GNetworkMonitorNetlink) for ?gio-network-monitor? 1153s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ?gio-proxy-resolver? 1153s ok 1 /network-monitor/default 1153s ok 2 /network-monitor/remove_default 1153s ok - glib/network-monitor.test 1153s # Running test: glib/timer.test 1153s ok - glib/timer.test 1153s # Running test: glib/uri.test 1153s ok 3 /network-monitor/add_networks 1153s ok 4 /network-monitor/remove_networks 1153s # End of network-monitor tests 1153s TAP version 14 1153s # random seed: R02S447f7465513c83b3d5a47a75ba6c7192 1153s 1..10 1153s # Start of timer tests 1153s ok 1 /timer/basic # SKIP Not reliable due to floating-point rounding (glib#820) 1153s ok 2 /timer/stop 1153s ok 3 /timer/continue 1153s ok 4 /timer/reset 1153s ok 5 /timer/is_active 1153s # End of timer tests 1153s # Start of timeval tests 1153s ok 6 /timeval/add 1153s ok 7 /timeval/from-iso8601 1153s ok 8 /timeval/to-iso8601 1153s # Start of to-iso8601 tests 1153s ok 9 /timeval/to-iso8601/overflow 1153s # End of to-iso8601 tests 1153s # End of timeval tests 1153s # Start of usleep tests 1153s ok 10 /usleep/with-zero-wait 1153s # End of usleep tests 1153s TAP version 14 1153s # random seed: R02Se5a64842ccd899b186ee761c6dd15507 1153s 1..24 1153s # Start of uri tests 1153s ok 1 /uri/file-to-uri 1153s ok 2 /uri/file-from-uri 1153s ok 3 /uri/file-roundtrip 1153s ok 4 /uri/list 1153s # Test 0: %2Babc %4F 1153s # Test 1: %2Babc %4F 1153s # Test 2: %00abc %4F 1153s # Test 3: /cursors/none.png 1153s # Test 4: /cursors%2fbad-subdir/none.png 1153s # Test 5: %0 1153s # Test 6: %ra 1153s # Test 7: %2r 1153s # Test 8: Timm B?der 1153s # Test 9: (null) 1153s ok 5 /uri/unescape-string 1153s ok 6 /uri/unescape-segment 1153s # Test 0: abcdefgABCDEFG._~ 1153s # Test 1: :+ \\?# 1153s # Test 2: a+b:c 1153s # Test 3: a+b:c\303\234 1153s # Test 4: \374;\322 1153s # Test 5: \303\261\303( 1153s ok 7 /uri/escape-string 1153s ok 8 /uri/escape-bytes 1153s ok 9 /uri/scheme 1153s ok 10 /uri/build 1153s ok 11 /uri/split 1153s ok 12 /uri/is_valid 1153s ok 13 /uri/to-string 1153s ok 14 /uri/join 1153s # /uri/join-split-round-trip summary: Test that joining different URI components survives a round trip 1153s # Combination 0 1153s # Combination 1 1153s # Combination 2 1153s # Combination 3 1153s # Combination 4 1153s # Combination 5 1153s # Combination 6 1153s # Combination 7 1153s # Combination 8 1153s # Combination 9 1153s # Combination 10 1153s # Combination 11 1153s # Combination 12 1153s # Combination 13 1153s # Combination 14 1153s # Combination 15 1153s # Combination 16 1153s # Combination 17 1153s # Combination 18 1153s # Combination 19 1153s # Combination 20 1153s # Combination 21 1153s # Combination 22 1153s # Combination 23 1153s # Combination 24 1153s # Combination 25 1153s # Combination 26 1153s # Combination 27 1153s # Combination 28 1153s # Combination 29 1153s # Combination 30 1153s # Combination 31 1153s # Combination 32 1153s # Combination 33 1153s # Combination 34 1153s # Combination 35 1153s # Combination 36 1153s # Combination 37 1153s # Combination 38 1153s # Combination 39 1153s # Combination 40 1153s # Combination 41 1153s # Combination 42 1153s # Combination 43 1153s # Combination 44 1153s # Combination 45 1153s # Combination 46 1153s # Combination 47 1153s # Combination 48 1153s # Combination 49 1153s # Combination 50 1153s # Combination 51 1153s # Combination 52 1153s # Combination 53 1153s # Combination 54 1153s # Combination 55 1153s # Combination 56 1153s # Combination 57 1153s # Combination 58 1153s # Combination 59 1153s # Combination 60 1153s # Combination 61 1153s # Combination 62 1153s # Combination 63 1153s # Combination 64 1153s # Combination 65 1153s # Combination 66 1153s # Combination 67 1153s # Combination 68 1153s # Combination 69 1153s # Combination 70 1153s # Combination 71 1153s # Combination 72 1153s # Combination 73 1153s # Combination 74 1153s # Combination 75 1153s # Combination 76 1153s # Combination 77 1153s # Combination 78 1153s # Combination 79 1153s # Combination 80 1153s # Combination 81 1153s # Combination 82 1153s # Combination 83 1153s # Combination 84 1153s # Combination 85 1153s # Combination 86 1153s # Combination 87 1153s # Combination 88 1153s # Combination 89 1153s # Combination 90 1153s # Combination 91 1153s # Combination 92 1153s # Combination 93 1153s # Combination 94 1153s # Combination 95 1153s # Combination 96 1153s # Combination 97 1153s # Combination 98 1153s # Combination 99 1153s # Combination 100 1153s # Combination 101 1153s # Combination 102 1153s # Combination 103 1153s # Combination 104 1153s # Combination 105 1153s # Combination 106 1153s # Combination 107 1153s # Combination 108 1153s # Combination 109 1153s # Combination 110 1153s # Combination 111 1153s # Combination 112 1153s # Combination 113 1153s # Combination 114 1153s # Combination 115 1153s # Combination 116 1153s # Combination 117 1153s # Combination 118 1153s # Combination 119 1153s # Combination 120 1153s # Combination 121 1153s # Combination 122 1153s # Combination 123 1153s # Combination 124 1153s # Combination 125 1153s # Combination 126 1153s # Combination 127 1153s # Combination 128 1153s # Combination 129 1153s # Combination 130 1153s # Combination 131 1153s # Combination 132 1153s # Combination 133 1153s # Combination 134 1153s # Combination 135 1153s # Combination 136 1153s # Combination 137 1153s # Combination 138 1153s # Combination 139 1153s # Combination 140 1153s # Combination 141 1153s # Combination 142 1153s # Combination 143 1153s # Combination 144 1153s # Combination 145 1153s # Combination 146 1153s # Combination 147 1153s # Combination 148 1153s # Combination 149 1153s # Combination 150 1153s # Combination 151 1153s # Combination 152 1153s # Combination 153 1153s # Combination 154 1153s # Combination 155 1153s # Combination 156 1153s # Combination 157 1153s # Combination 158 1153s # Combination 159 1153s # Combination 160 1153s # Combination 161 1153s # Combination 162 1153s # Combination 163 1153s # Combination 164 1153s # Combination 165 1153s # Combination 166 1153s # Combination 167 1153s # Combination 168 1153s # Combination 169 1153s # Combination 170 1153s # Combination 171 1153s # Combination 172 1153s # Combination 173 1153s # Combination 174 1153s # Combination 175 1153s # Combination 176 1153s # Combination 177 1153s # Combination 178 1153s # Combination 179 1153s # Combination 180 1153s # Combination 181 1153s # Combination 182 1153s # Combination 183 1153s # Combination 184 1153s # Combination 185 1154s # Combination 186 1154s # Combination 187 1154s # Combination 188 1154s # Combination 189 1154s # Combination 190 1154s # Combination 191 1154s # Combination 192 1154s # Combination 193 1154s # Combination 194 1154s # Combination 195 1154s # Combination 196 1154s # Combination 197 1154s # Combination 198 1154s # Combination 199 1154s # Combination 200 1154s # Combination 201 1154s # Combination 202 1154s # Combination 203 1154s # Combination 204 1154s # Combination 205 1154s # Combination 206 1154s # Combination 207 1154s # Combination 208 1154s # Combination 209 1154s # Combination 210 1154s # Combination 211 1154s # Combination 212 1154s # Combination 213 1154s # Combination 214 1154s # Combination 215 1154s # Combination 216 1154s # Combination 217 1154s # Combination 218 1154s # Combination 219 1154s # Combination 220 1154s # Combination 221 1154s # Combination 222 1154s # Combination 223 1154s # Combination 224 1154s # Combination 225 1154s # Combination 226 1154s # Combination 227 1154s # Combination 228 1154s # Combination 229 1154s # Combination 230 1154s # Combination 231 1154s # Combination 232 1154s # Combination 233 1154s # Combination 234 1154s # Combination 235 1154s # Combination 236 1154s # Combination 237 1154s # Combination 238 1154s # Combination 239 1154s # Combination 240 1154s # Combination 241 1154s # Combination 242 1154s # Combination 243 1154s # Combination 244 1154s # Combination 245 1154s # Combination 246 1154s # Combination 247 1154s # Combination 248 1154s # Combination 249 1154s # Combination 250 1154s # Combination 251 1154s # Combination 252 1154s # Combination 253 1154s # Combination 254 1154s # Combination 255 1154s ok 15 /uri/join-split-round-trip 1154s ok 16 /uri/normalize 1154s # Start of unescape-bytes tests 1154s # Test 0: %00%00 1154s # Test 1: /cursors/none.png 1154s # Test 2: /cursors%2fbad-subdir/none.png 1154s # Test 3: %% 1154s # Test 4: % 1154s ok 17 /uri/unescape-bytes/nul-terminated 1154s # Test 0: %00%00 1154s # Test 1: /cursors/none.png 1154s # Test 2: /cursors%2fbad-subdir/none.png 1154s # Test 3: %% 1154s # Test 4: % 1154s ok 18 /uri/unescape-bytes/length 1154s # End of unescape-bytes tests 1154s # Start of parsing tests 1154s # Test 0: foo: 1154s # Test 1: file:/dev/null 1154s # Test 2: file:///dev/null 1154s # Test 3: ftp://user@host/path 1154s # Test 4: ftp://user@host:9999/path 1154s # Test 5: ftp://user:password@host/path 1154s # Test 6: ftp://user:password@host:9999/path 1154s # Test 7: ftp://user:password@host 1154s # Test 8: http://us%65r@host 1154s # Test 9: http://us%40r@host 1154s # Test 10: http://us%3ar@host 1154s # Test 11: http://us%2fr@host 1154s # Test 12: http://us%3fr@host 1154s # Test 13: http://host?query 1154s # Test 14: http://host/path?query=http%3A%2F%2Fhost%2Fpath%3Fchildparam%3Dchildvalue¶m=value 1154s # Test 15: http://control-chars/%01%02%03%04%05%06%07%08%09%0A%0B%0C%0D%0E%0F%10%11%12%13%14%15%16%17%18%19%1A%1B%1C%1D%1E%1F%7F 1154s # Test 16: http://space/%20 1154s # Test 17: http://delims/%3C%3E%23%25%22 1154s # Test 18: http://unwise-chars/%7B%7D%7C%5C%5E%5B%5D%60 1154s # Test 19: http://[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:80/index.html 1154s # Test 20: http://[1080:0:0:0:8:800:200C:417A]/index.html 1154s # Test 21: http://[3ffe:2a00:100:7031::1] 1154s # Test 22: http://[1080::8:800:200C:417A]/foo 1154s # Test 23: http://[::192.9.5.5]/ipng 1154s # Test 24: http://[::FFFF:129.144.52.38]:80/index.html 1154s # Test 25: http://[2010:836B:4179::836B:4179] 1154s # Test 26: http://host/path with spaces 1154s # Test 27: http://host/path 1154s # Test 28: http://host/path 1154s # Test 29: http://host 1154s # Test 30: http://host:999 1154s # Test 31: http://host/pa 1154s # th 1154s # Test 32: http: 1154s # //host/path 1154s # Test 33: http:// host/path 1154s # Test 34: http://host/path? 1154s # Test 35: http://host/path# 1154s # Test 36: http://host/path% 1154s # Test 37: http://h%ost/path 1154s # Test 38: http://host/path%% 1154s # Test 39: http://host/path%%% 1154s # Test 40: http://host/path%/x/ 1154s # Test 41: http://host/path%0x/ 1154s # Test 42: http://host/path%ax 1154s # Test 43: http://host/p?th/ 1154s # Test 44: HTTP://////////////// 1154s # Test 45: http://@host 1154s # Test 46: http://:@host 1154s # Test 47: scheme://foo%3Abar._webdav._tcp.local 1154s # Test 48: http://example.com/.. 1154s # Test 49: foo0://host/path 1154s # Test 50: f0.o://host/path 1154s # Test 51: http++://host/path 1154s # Test 52: http-ish://host/path 1154s # Test 53: http://[fe80::dead:beef%]/ 1154s # Test 54: http://[fe80::dead:beef%em1]/ 1154s # Test 55: http://[fe80::dead:beef%em1]/ 1154s # Test 56: http://[fe80::dead:beef%25em1]/ 1154s # Test 57: http://[fe80::dead:beef%25em1%20]/ 1154s # Test 58: http://[fe80::dead:beef%25em%31]/ 1154s # Test 59: http://[fe80::dead:beef%10]/ 1154s # Test 60: http://[fe80::dead:beef%10]/ 1154s # Test 61: http://[fe80::dead:beef%25]/ 1154s # Test 62: http://[fe80::dead:beef%25]/ 1154s # Test 63: http://[192.168.0.1%25em1]/ 1154s # Test 64: http://[fe80::dead:beef%2em1]/ 1154s # Test 65: http://[fe80::dead:beef%2em1]/ 1154s # Test 66: http://[fe80::dead:beef%25em1%00]/ 1154s # Test 67: http://[fe80::dead:beef%25em1%00]/ 1154s # Test 68: http://xn--mixed-?p/ 1154s # Test 69: data:./// 1154s # Test 70: data:/.// 1154s ok 19 /uri/parsing/absolute 1154s ok 20 /uri/parsing/relative 1154s # End of parsing tests 1154s # Start of iter-params tests 1154s # URI 0: p1=foo&p2=bar;p3=baz 1154s # URI 1: p1=foo&p2=bar 1154s # URI 2: p1=foo&&P1=bar 1154s # URI 3: %00=foo 1154s # URI 4: p1=%00 1154s # URI 5: p1=foo&p1=bar 1154s # URI 6: p1=foo&P1=bar 1154s # URI 7: =% 1154s # URI 8: = 1154s # URI 9: foo 1154s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1154s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1154s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 1154s ok 21 /uri/iter-params/nul-terminated 1154s # URI 0: p1=foo&p2=bar;p3=baz 1154s # URI 1: p1=foo&p2=bar 1154s # URI 2: p1=foo&&P1=bar 1154s # URI 3: %00=foo 1154s # URI 4: p1=%00 1154s # URI 5: p1=foo&p1=bar 1154s # URI 6: p1=foo&P1=bar 1154s # URI 7: =% 1154s # URI 8: = 1154s # URI 9: foo 1154s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1154s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1154s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 1154s ok 22 /uri/iter-params/length 1154s # End of iter-params tests 1154s # Start of parse-params tests 1154s # URI 0: p1=foo&p2=bar;p3=baz 1154s # URI 1: p1=foo&p2=bar 1154s # URI 2: p1=foo&&P1=bar 1154s # URI 3: %00=foo 1154s # URI 4: p1=%00 1154s # URI 5: p1=foo&p1=bar 1154s # URI 6: p1=foo&P1=bar 1154s # URI 7: =% 1154s # URI 8: = 1154s # URI 9: foo 1154s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1154s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1154s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 1154s ok 23 /uri/parse-params/nul-terminated 1154s # URI 0: p1=foo&p2=bar;p3=baz 1154s # URI 1: p1=foo&p2=bar 1154s # URI 2: p1=foo&&P1=bar 1154s # URI 3: %00=foo 1154s # URI 4: p1=%00 1154s # URI 5: p1=foo&p1=bar 1154s # URI 6: p1=foo&P1=bar 1154s # URI 7: =% 1154s # URI 8: = 1154s # URI 9: foo 1154s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1154s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1154s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 1154s ok 24 /uri/parse-params/length 1154s # End of parse-params tests 1154s # End of uri tests 1154s TAP version 14 1154s # random seed: R02S3a7ba203f81292730154c6f652dbf974 1154s 1..37 1154s # Start of hmac tests 1154s ok 1 /hmac/sha1-1 1154s ok 2 /hmac/sha1-2 1154s ok 3 /hmac/sha1-3 1154s ok 4 /hmac/sha1-4 1154s ok 5 /hmac/sha1-5 1154s ok 6 /hmac/sha1-6 1154s ok 7 /hmac/sha1-7 1154s ok 8 /hmac/sha256-1 1154s ok 9 /hmac/sha256-2 1154s ok 10 /hmac/sha256-3 1154s ok 11 /hmac/sha256-4 1154s ok 12 /hmac/sha256-5 1154s ok 13 /hmac/sha256-6 1154s ok 14 /hmac/sha384-1 1154s ok 15 /hmac/sha384-2 1154s ok 16 /hmac/sha384-3 1154s ok 17 /hmac/sha384-4 1154s ok 18 /hmac/sha384-5 1154s ok 19 /hmac/sha384-6 1154s ok 20 /hmac/sha512-1 1154s ok 21 /hmac/sha512-2 1154s ok 22 /hmac/sha512-3 1154s ok 23 /hmac/sha512-4 1154s ok 24 /hmac/sha512-5 1154s ok 25 /hmac/sha512-6 1154s ok 26 /hmac/md5-1 1154s ok 27 /hmac/md5-2 1154s ok 28 /hmac/md5-3 1154s ok 29 /hmac/md5-4 1154s ok 30 /hmac/md5-5 1154s ok 31 /hmac/md5-6 1154s ok 32 /hmac/md5-7 1154s ok 33 /hmac/ref-unref 1154s ok 34 /hmac/copy 1154s ok 35 /hmac/for-data 1154s ok 36 /hmac/for-string 1154s ok 37 /hmac/for-bytes 1154s # End of hmac tests 1154s TAP version 14 1154s ok - glib/uri.test 1154s # Running test: glib/hmac.test 1154s ok - glib/hmac.test 1154s # Running test: glib/throws.test 1154s # random seed: R02S5d5c09765d7710b2bdfbbfe1338be99b 1154s 1..3 1154s # Start of throws tests 1154s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_throws_SUV552/throws/invoke-gerror/.dirs/home 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_throws_SUV552/throws/invoke-gerror/.dirs/cache 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_throws_SUV552/throws/invoke-gerror/.dirs/system-config1:/tmp/test_throws_SUV552/throws/invoke-gerror/.dirs/system-config2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_throws_SUV552/throws/invoke-gerror/.dirs/config 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_throws_SUV552/throws/invoke-gerror/.dirs/system-data1:/tmp/test_throws_SUV552/throws/invoke-gerror/.dirs/system-data2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_throws_SUV552/throws/invoke-gerror/.dirs/data 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_throws_SUV552/throws/invoke-gerror/.dirs/state 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_throws_SUV552/throws/invoke-gerror/.dirs/runtime 1154s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1154s # /throws/invoke-gerror summary: Test invoking a function that throws a GError 1154s ok 1 /throws/invoke-gerror 1154s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_throws_SUV552/throws/vfunc-can-throw-gerror/.dirs/home 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_throws_SUV552/throws/vfunc-can-throw-gerror/.dirs/cache 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_throws_SUV552/throws/vfunc-can-throw-gerror/.dirs/system-config1:/tmp/test_throws_SUV552/throws/vfunc-can-throw-gerror/.dirs/system-config2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_throws_SUV552/throws/vfunc-can-throw-gerror/.dirs/config 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_throws_SUV552/throws/vfunc-can-throw-gerror/.dirs/system-data1:/tmp/test_throws_SUV552/throws/vfunc-can-throw-gerror/.dirs/system-data2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_throws_SUV552/throws/vfunc-can-throw-gerror/.dirs/data 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_throws_SUV552/throws/vfunc-can-throw-gerror/.dirs/state 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_throws_SUV552/throws/vfunc-can-throw-gerror/.dirs/runtime 1154s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1154s # /throws/vfunc-can-throw-gerror summary: Test gi_callable_info_can_throw_gerror() on a vfunc 1154s ok 2 /throws/vfunc-can-throw-gerror 1154s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_throws_SUV552/throws/callback-can-throw-gerror/.dirs/home 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_throws_SUV552/throws/callback-can-throw-gerror/.dirs/cache 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_throws_SUV552/throws/callback-can-throw-gerror/.dirs/system-config1:/tmp/test_throws_SUV552/throws/callback-can-throw-gerror/.dirs/system-config2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_throws_SUV552/throws/callback-can-throw-gerror/.dirs/config 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_throws_SUV552/throws/callback-can-throw-gerror/.dirs/system-data1:/tmp/test_throws_SUV552/throws/callback-can-throw-gerror/.dirs/system-data2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_throws_SUV552/throws/callback-can-throw-gerror/.dirs/data 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_throws_SUV552/throws/callback-can-throw-gerror/.dirs/state 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_throws_SUV552/throws/callback-can-throw-gerror/.dirs/runtime 1154s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1154s # /throws/callback-can-throw-gerror summary: Test gi_callable_info_can_throw_gerror() on a callback 1154s ok 3 /throws/callback-can-throw-gerror 1154s # End of throws tests 1154s TAP version 14 1154s # random seed: R02S39bf369a9eb6bd77fb667cc298dea85f 1154s 1..9 1154s # Start of gthread tests 1154s ok 1 /gthread/spawn-single-sync 1154s # /gthread/spawn-stderr-socket summary: Test calling g_spawn_sync() with its stderr FD set to a socket 1154s ok 2 /gthread/spawn-stderr-socket 1154s ok 3 /gthread/spawn-single-async 1154s # thread 1 1154s # thread 1 1154s ok 4 /gthread/spawn-single-async-with-fds 1154s ok 5 /gthread/spawn-async-with-invalid-fds 1154s ok 6 /gthread/spawn-script 1154s ok 7 /gthread/spawn-posix-spawn 1154s # Start of spawn tests 1154s ok 8 /gthread/spawn/nonexistent 1154s # FD map: 1154s # • 5 → 15 1154s # • 6 → 16 1154s # • 7 → 17 1154s # • 8 → 18 1154s # • 9 → 19 1154s # • 10 → 20 1154s # • 11 → 21 1154s # • 12 → 22 1154s # • 13 → 23 1154s # • 3 → 13 1154s ok 9 /gthread/spawn/fd-assignment-clash 1154s # End of spawn tests 1154s # End of gthread tests 1154s ok - glib/throws.test 1154s # Running test: glib/spawn-singlethread.test 1154s ok - glib/spawn-singlethread.test 1154s # Running test: glib/giomodule.test 1154s TAP version 14 1154s # random seed: R02Sb27bde2671d5cbd8e42f6906bfb5ccbe 1154s 1..3 1154s # Start of giomodule tests 1154s ok 1 /giomodule/extension-point 1154s ok 2 /giomodule/module-scan-all 1154s ok 3 /giomodule/module-scan-all-with-scope 1154s # End of giomodule tests 1154s ok - glib/giomodule.test 1154s # Running test: glib/types.test 1154s ok - glib/types.test 1154s # Running test: glib/win32-appinfo.test 1154s ok - glib/win32-appinfo.test 1154s # Running test: glib/gdbus-proxy-threads.test 1154s TAP version 14 1154s # random seed: R02S9f2ada89e163202ed78056fc2965befb 1154s 1..1 1154s # Start of types tests 1154s ok 1 /types/basic_types 1154s # End of types tests 1154s TAP version 14 1154s # random seed: R02Sbe7e8d0f99e4e61b45d561ae88a33f0a 1154s 1..5 1154s # Start of appinfo tests 1154s ok 1 /appinfo/utf16-strfuncs 1154s ok 2 /appinfo/win32-extract-executable 1154s ok 3 /appinfo/win32-rundll32-fixup 1154s ok 4 /appinfo/win32-parse-filename 1154s ok 5 /appinfo/win32-utf16-conversion-fail 1154s # Start of subprocess tests 1154s # End of subprocess tests 1154s # End of appinfo tests 1154s TAP version 14 1154s # random seed: R02Sb47cfa4073aeb220a5bb007c5cc589f8 1154s 1..1 1154s # Start of gdbus tests 1154s # Start of proxy tests 1154s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy-threads_AX3W52/gdbus/proxy/vs-threads/.dirs/home 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy-threads_AX3W52/gdbus/proxy/vs-threads/.dirs/cache 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy-threads_AX3W52/gdbus/proxy/vs-threads/.dirs/system-config1:/tmp/test_gdbus-proxy-threads_AX3W52/gdbus/proxy/vs-threads/.dirs/system-config2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy-threads_AX3W52/gdbus/proxy/vs-threads/.dirs/config 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy-threads_AX3W52/gdbus/proxy/vs-threads/.dirs/system-data1:/tmp/test_gdbus-proxy-threads_AX3W52/gdbus/proxy/vs-threads/.dirs/system-data2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy-threads_AX3W52/gdbus/proxy/vs-threads/.dirs/data 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy-threads_AX3W52/gdbus/proxy/vs-threads/.dirs/state 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy-threads_AX3W52/gdbus/proxy/vs-threads/.dirs/runtime 1155s ok 1 /gdbus/proxy/vs-threads 1155s # slow test /gdbus/proxy/vs-threads executed in 1.05 secs 1155s # End of proxy tests 1155s # End of gdbus tests 1155s ok - glib/gdbus-proxy-threads.test 1155s cleaning up pid 9141 1155s # Running test: glib/srvtarget.test 1155s TAP version 14 1155s # random seed: R02Sa9e05ec010b2231e2b9515ca20dfb442 1155s 1..1 1155s # Start of srvtarget tests 1155s ok 1 /srvtarget/srv-target-ordering 1155s # End of srvtarget tests 1155s ok - glib/srvtarget.test 1155s # Running test: glib/trash.test 1155s TAP version 14 1155s # random seed: R02Safb4cd6876afd1af54a26bebcc974517 1155s 1..3 1155s # Start of trash tests 1155s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/251 1155s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1155s # File: /tmp/test-trash1A4752 (parent st_dev: 64769) 1155s # Home: /home/ubuntu (st_dev: 64769) 1155s ok 1 /trash/not-supported # SKIP The file has to be on another filesystem than the home trash to run this test 1155s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1522 1155s ok 2 /trash/symlinks # SKIP Directory '/home/ubuntu/.local' does not exist 1155s ok - glib/trash.test 1155s ok 3 /trash/long-filename 1155s # End of trash tests 1155s # Running test: glib/power-profile-monitor.test 1155s TAP version 14 1155s # random seed: R02S5009f6b15c1e00104cecd4383d4fc9be 1155s 1..1 1155s # Start of power-profile-monitor tests 1155s # GLib-GIO-DEBUG: Failed to initialize portal (GPowerProfileMonitorPortal) for gio-power-profile-monitor: Not using portals 1155s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dbus (GPowerProfileMonitorDBus) for ?gio-power-profile-monitor? 1155s ok 1 /power-profile-monitor/default 1155s # End of power-profile-monitor tests 1155s ok - glib/power-profile-monitor.test 1155s # Running test: glib/debugcontroller.test 1155s ok - glib/debugcontroller.test 1155s # Running test: glib/charset.test 1155s ok - glib/charset.test 1155s # Running test: glib/portal-support-flatpak-full.test 1155s ok - glib/portal-support-flatpak-full.test 1155s # Running test: glib/bookmarkfile.test 1155s TAP version 14 1155s # random seed: R02Sf55e6b227e74d804048a913f6e7800a6 1155s 1..3 1155s # Start of debug-controller tests 1155s # Start of dbus tests 1155s # /debug-controller/dbus/basic summary: Smoketest for construction and setting of a #GDebugControllerDBus. 1155s # GLib-GIO-DEBUG: Debug output enabled 1155s # GLib-GIO-DEBUG: Debug output disabled 1155s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1155s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1155s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1155s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1155s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1155s ok 1 /debug-controller/dbus/basic 1155s # /debug-controller/dbus/duplicate summary: Test that creating a second #GDebugControllerDBus on the same D-Bus connection fails. 1155s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1155s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1155s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1155s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1155s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1155s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1155s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1155s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1155s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1155s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1155s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1155s ok 2 /debug-controller/dbus/duplicate 1155s # /debug-controller/dbus/properties summary: Test getting and setting properties on a #GDebugControllerDBus. 1155s ok 3 /debug-controller/dbus/properties # SKIP https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2486#note_1384102 1155s # End of dbus tests 1155s # End of debug-controller tests 1155s TAP version 14 1155s # random seed: R02S3a909cf1685a64519c4420905cfedba1 1155s 1..2 1155s # Start of charset tests 1155s # Test 0 1155s # Test 1 1155s # Test 2 1155s # Test 3 1155s ok 1 /charset/language_names_with_category 1155s ok 2 /charset/language_names_with_category_async 1155s # End of charset tests 1155s TAP version 14 1155s # random seed: R02Se915d80d2bdd371d6663f4338194f90a 1155s 1..1 1155s # Start of portal-support tests 1155s # Start of flatpak tests 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-full_U9K752/portal-support/flatpak/full/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-full_U9K752/portal-support/flatpak/full/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-full_U9K752/portal-support/flatpak/full/.dirs/system-config1:/tmp/test_portal-support-flatpak-full_U9K752/portal-support/flatpak/full/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-full_U9K752/portal-support/flatpak/full/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-full_U9K752/portal-support/flatpak/full/.dirs/system-data1:/tmp/test_portal-support-flatpak-full_U9K752/portal-support/flatpak/full/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-full_U9K752/portal-support/flatpak/full/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-full_U9K752/portal-support/flatpak/full/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-full_U9K752/portal-support/flatpak/full/.dirs/runtime 1155s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-full_U9K752/portal-support/flatpak/full/.dirs/runtime/.flatpak-info 1155s ok 1 /portal-support/flatpak/full 1155s # End of flatpak tests 1155s # End of portal-support tests 1155s TAP version 14 1155s # random seed: R02S0db381fe89893f71737435c4fb7ea6b7 1155s 1..96 1155s # Start of bookmarks tests 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/load-from-data-dirs/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/load-from-data-dirs/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/load-from-data-dirs/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/load-from-data-dirs/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/load-from-data-dirs/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/load-from-data-dirs/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/load-from-data-dirs/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/load-from-data-dirs/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/load-from-data-dirs/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/load-from-data-dirs/.dirs/runtime 1155s ok 1 /bookmarks/load-from-data-dirs 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/to-file/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/to-file/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/to-file/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/to-file/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/to-file/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/to-file/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/to-file/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/to-file/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/to-file/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/to-file/.dirs/runtime 1155s # Roundtrip from newly created bookmark file /tmp/test_bookmarkfile_3ZS752/bookmarkfile-test-8NT752.xbel 1155s # Roundtrip from a valid bookmark file 1155s ok 2 /bookmarks/to-file 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/move-item/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/move-item/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/move-item/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/move-item/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/move-item/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/move-item/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/move-item/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/move-item/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/move-item/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/move-item/.dirs/runtime 1155s ok 3 /bookmarks/move-item 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/corner-cases/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/corner-cases/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/corner-cases/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/corner-cases/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/corner-cases/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/corner-cases/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/corner-cases/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/corner-cases/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/corner-cases/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/corner-cases/.dirs/runtime 1155s ok 4 /bookmarks/corner-cases 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/misc/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/misc/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/misc/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/misc/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/misc/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/misc/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/misc/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/misc/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/misc/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/misc/.dirs/runtime 1155s ok 5 /bookmarks/misc 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/deprecated/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/deprecated/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/deprecated/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/deprecated/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/deprecated/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/deprecated/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/deprecated/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/deprecated/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/deprecated/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/deprecated/.dirs/runtime 1155s ok 6 /bookmarks/deprecated 1155s # Start of parse tests 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-36.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-36.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-36.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-36.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-36.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-36.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-36.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-36.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-36.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-36.xbel/.dirs/runtime 1155s ok 7 /bookmarks/parse/fail-36.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-42.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-42.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-42.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-42.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-42.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-42.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-42.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-42.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-42.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-42.xbel/.dirs/runtime 1155s ok 8 /bookmarks/parse/fail-42.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-38.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-38.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-38.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-38.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-38.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-38.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-38.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-38.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-38.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-38.xbel/.dirs/runtime 1155s ok 9 /bookmarks/parse/fail-38.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-18.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-18.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-18.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-18.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-18.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-18.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-18.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-18.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-18.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-18.xbel/.dirs/runtime 1155s ok 10 /bookmarks/parse/fail-18.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-09.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-09.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-09.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-09.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-09.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-09.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-09.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-09.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-09.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-09.xbel/.dirs/runtime 1155s ok 11 /bookmarks/parse/fail-09.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-20.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-20.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-20.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-20.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-20.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-20.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-20.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-20.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-20.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-20.xbel/.dirs/runtime 1155s ok 12 /bookmarks/parse/fail-20.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-19.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-19.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-19.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-19.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-19.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-19.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-19.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-19.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-19.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-19.xbel/.dirs/runtime 1155s ok 13 /bookmarks/parse/fail-19.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-12.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-12.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-12.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-12.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-12.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-12.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-12.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-12.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-12.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-12.xbel/.dirs/runtime 1155s ok 14 /bookmarks/parse/fail-12.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-16.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-16.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-16.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-16.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-16.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-16.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-16.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-16.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-16.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-16.xbel/.dirs/runtime 1155s ok 15 /bookmarks/parse/fail-16.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-03.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-03.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-03.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-03.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-03.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-03.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-03.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-03.xbel/.dirs/runtime 1155s ok 16 /bookmarks/parse/fail-03.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-22.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-22.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-22.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-22.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-22.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-22.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-22.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-22.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-22.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-22.xbel/.dirs/runtime 1155s ok 17 /bookmarks/parse/fail-22.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-27.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-27.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-27.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-27.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-27.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-27.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-27.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-27.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-27.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-27.xbel/.dirs/runtime 1155s ok 18 /bookmarks/parse/fail-27.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-39.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-39.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-39.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-39.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-39.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-39.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-39.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-39.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-39.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-39.xbel/.dirs/runtime 1155s ok 19 /bookmarks/parse/fail-39.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-41.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-41.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-41.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-41.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-41.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-41.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-41.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-41.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-41.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-41.xbel/.dirs/runtime 1155s ok 20 /bookmarks/parse/fail-41.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-35.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-35.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-35.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-35.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-35.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-35.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-35.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-35.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-35.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-35.xbel/.dirs/runtime 1155s ok 21 /bookmarks/parse/fail-35.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-30.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-30.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-30.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-30.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-30.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-30.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-30.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-30.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-30.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-30.xbel/.dirs/runtime 1155s ok 22 /bookmarks/parse/fail-30.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-21.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-21.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-21.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-21.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-21.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-21.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-21.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-21.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-21.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-21.xbel/.dirs/runtime 1155s ok 23 /bookmarks/parse/fail-21.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/valid-01.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/valid-01.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/valid-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/valid-01.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/valid-01.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/valid-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/valid-01.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/valid-01.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/valid-01.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/valid-01.xbel/.dirs/runtime 1155s ok 24 /bookmarks/parse/valid-01.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-14.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-14.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-14.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-14.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-14.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-14.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-14.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-14.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-14.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-14.xbel/.dirs/runtime 1155s ok 25 /bookmarks/parse/fail-14.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-24.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-24.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-24.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-24.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-24.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-24.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-24.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-24.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-24.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-24.xbel/.dirs/runtime 1155s ok 26 /bookmarks/parse/fail-24.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-01.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-01.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-01.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-01.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-01.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-01.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-01.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-01.xbel/.dirs/runtime 1155s ok 27 /bookmarks/parse/fail-01.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-10.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-10.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-10.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-10.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-10.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-10.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-10.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-10.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-10.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-10.xbel/.dirs/runtime 1155s ok 28 /bookmarks/parse/fail-10.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-40.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-40.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-40.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-40.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-40.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-40.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-40.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-40.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-40.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-40.xbel/.dirs/runtime 1155s ok 29 /bookmarks/parse/fail-40.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-32.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-32.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-32.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-32.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-32.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-32.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-32.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-32.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-32.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-32.xbel/.dirs/runtime 1155s ok 30 /bookmarks/parse/fail-32.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-17.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-17.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-17.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-17.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-17.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-17.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-17.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-17.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-17.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-17.xbel/.dirs/runtime 1155s ok 31 /bookmarks/parse/fail-17.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-37.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-37.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-37.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-37.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-37.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-37.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-37.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-37.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-37.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-37.xbel/.dirs/runtime 1155s ok 32 /bookmarks/parse/fail-37.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-28.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-28.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-28.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-28.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-28.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-28.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-28.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-28.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-28.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-28.xbel/.dirs/runtime 1155s ok 33 /bookmarks/parse/fail-28.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-29.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-29.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-29.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-29.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-29.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-29.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-29.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-29.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-29.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-29.xbel/.dirs/runtime 1155s ok 34 /bookmarks/parse/fail-29.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-34.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-34.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-34.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-34.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-34.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-34.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-34.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-34.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-34.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-34.xbel/.dirs/runtime 1155s ok 35 /bookmarks/parse/fail-34.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-33.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-33.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-33.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-33.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-33.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-33.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-33.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-33.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-33.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-33.xbel/.dirs/runtime 1155s ok 36 /bookmarks/parse/fail-33.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-13.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-13.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-13.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-13.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-13.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-13.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-13.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-13.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-13.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-13.xbel/.dirs/runtime 1155s ok 37 /bookmarks/parse/fail-13.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-25.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-25.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-25.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-25.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-25.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-25.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-25.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-25.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-25.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-25.xbel/.dirs/runtime 1155s ok 38 /bookmarks/parse/fail-25.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-06.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-06.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-06.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-06.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-06.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-06.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-06.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-06.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-06.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-06.xbel/.dirs/runtime 1155s ok 39 /bookmarks/parse/fail-06.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-26.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-26.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-26.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-26.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-26.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-26.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-26.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-26.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-26.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-26.xbel/.dirs/runtime 1155s ok 40 /bookmarks/parse/fail-26.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-23.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-23.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-23.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-23.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-23.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-23.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-23.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-23.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-23.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-23.xbel/.dirs/runtime 1155s ok 41 /bookmarks/parse/fail-23.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-15.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-15.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-15.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-15.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-15.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-15.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-15.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-15.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-15.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-15.xbel/.dirs/runtime 1155s ok 42 /bookmarks/parse/fail-15.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-04.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-04.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-04.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-04.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-04.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-04.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-04.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-04.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-04.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-04.xbel/.dirs/runtime 1155s ok 43 /bookmarks/parse/fail-04.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-02.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-02.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-02.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-02.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-02.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-02.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-02.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-02.xbel/.dirs/runtime 1155s ok 44 /bookmarks/parse/fail-02.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-31.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-31.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-31.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-31.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-31.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-31.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-31.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-31.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-31.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-31.xbel/.dirs/runtime 1155s ok 45 /bookmarks/parse/fail-31.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-11.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-11.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-11.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-11.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-11.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-11.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-11.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-11.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-11.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-11.xbel/.dirs/runtime 1155s ok 46 /bookmarks/parse/fail-11.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-07.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-07.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-07.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-07.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-07.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-07.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-07.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-07.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-07.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-07.xbel/.dirs/runtime 1155s ok 47 /bookmarks/parse/fail-07.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-08.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-08.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-08.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-08.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-08.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-08.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-08.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-08.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-08.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-08.xbel/.dirs/runtime 1155s ok 48 /bookmarks/parse/fail-08.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-05.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-05.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-05.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-05.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-05.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-05.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-05.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-05.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-05.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/fail-05.xbel/.dirs/runtime 1155s ok 49 /bookmarks/parse/fail-05.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/valid-03.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/valid-03.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/valid-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/valid-03.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/valid-03.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/valid-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/valid-03.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/valid-03.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/valid-03.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/valid-03.xbel/.dirs/runtime 1155s ok 50 /bookmarks/parse/valid-03.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/valid-02.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/valid-02.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/valid-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/valid-02.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/valid-02.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/valid-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/parse/valid-02.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/valid-02.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/valid-02.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/parse/valid-02.xbel/.dirs/runtime 1155s ok 51 /bookmarks/parse/valid-02.xbel 1155s # End of parse tests 1155s # Start of copy tests 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-36.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-36.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-36.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-36.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-36.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-36.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-36.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-36.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-36.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-36.xbel/.dirs/runtime 1155s ok 52 /bookmarks/copy/fail-36.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-42.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-42.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-42.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-42.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-42.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-42.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-42.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-42.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-42.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-42.xbel/.dirs/runtime 1155s ok 53 /bookmarks/copy/fail-42.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-38.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-38.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-38.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-38.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-38.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-38.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-38.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-38.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-38.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-38.xbel/.dirs/runtime 1155s ok 54 /bookmarks/copy/fail-38.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-18.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-18.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-18.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-18.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-18.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-18.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-18.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-18.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-18.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-18.xbel/.dirs/runtime 1155s ok 55 /bookmarks/copy/fail-18.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-09.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-09.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-09.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-09.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-09.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-09.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-09.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-09.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-09.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-09.xbel/.dirs/runtime 1155s ok 56 /bookmarks/copy/fail-09.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-20.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-20.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-20.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-20.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-20.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-20.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-20.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-20.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-20.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-20.xbel/.dirs/runtime 1155s ok 57 /bookmarks/copy/fail-20.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-19.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-19.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-19.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-19.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-19.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-19.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-19.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-19.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-19.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-19.xbel/.dirs/runtime 1155s ok 58 /bookmarks/copy/fail-19.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-12.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-12.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-12.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-12.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-12.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-12.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-12.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-12.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-12.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-12.xbel/.dirs/runtime 1155s ok 59 /bookmarks/copy/fail-12.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-16.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-16.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-16.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-16.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-16.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-16.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-16.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-16.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-16.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-16.xbel/.dirs/runtime 1155s ok 60 /bookmarks/copy/fail-16.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-03.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-03.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-03.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-03.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-03.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-03.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-03.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-03.xbel/.dirs/runtime 1155s ok 61 /bookmarks/copy/fail-03.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-22.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-22.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-22.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-22.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-22.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-22.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-22.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-22.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-22.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-22.xbel/.dirs/runtime 1155s ok 62 /bookmarks/copy/fail-22.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-27.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-27.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-27.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-27.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-27.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-27.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-27.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-27.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-27.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-27.xbel/.dirs/runtime 1155s ok 63 /bookmarks/copy/fail-27.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-39.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-39.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-39.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-39.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-39.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-39.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-39.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-39.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-39.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-39.xbel/.dirs/runtime 1155s ok 64 /bookmarks/copy/fail-39.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-41.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-41.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-41.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-41.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-41.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-41.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-41.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-41.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-41.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-41.xbel/.dirs/runtime 1155s ok 65 /bookmarks/copy/fail-41.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-35.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-35.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-35.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-35.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-35.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-35.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-35.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-35.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-35.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-35.xbel/.dirs/runtime 1155s ok 66 /bookmarks/copy/fail-35.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-30.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-30.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-30.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-30.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-30.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-30.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-30.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-30.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-30.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-30.xbel/.dirs/runtime 1155s ok 67 /bookmarks/copy/fail-30.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-21.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-21.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-21.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-21.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-21.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-21.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-21.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-21.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-21.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-21.xbel/.dirs/runtime 1155s ok 68 /bookmarks/copy/fail-21.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/valid-01.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/valid-01.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/valid-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/valid-01.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/valid-01.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/valid-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/valid-01.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/valid-01.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/valid-01.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/valid-01.xbel/.dirs/runtime 1155s ok 69 /bookmarks/copy/valid-01.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-14.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-14.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-14.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-14.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-14.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-14.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-14.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-14.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-14.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-14.xbel/.dirs/runtime 1155s ok 70 /bookmarks/copy/fail-14.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-24.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-24.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-24.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-24.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-24.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-24.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-24.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-24.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-24.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-24.xbel/.dirs/runtime 1155s ok 71 /bookmarks/copy/fail-24.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-01.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-01.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-01.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-01.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-01.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-01.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-01.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-01.xbel/.dirs/runtime 1155s ok 72 /bookmarks/copy/fail-01.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-10.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-10.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-10.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-10.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-10.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-10.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-10.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-10.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-10.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-10.xbel/.dirs/runtime 1155s ok 73 /bookmarks/copy/fail-10.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-40.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-40.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-40.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-40.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-40.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-40.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-40.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-40.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-40.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-40.xbel/.dirs/runtime 1155s ok 74 /bookmarks/copy/fail-40.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-32.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-32.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-32.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-32.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-32.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-32.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-32.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-32.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-32.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-32.xbel/.dirs/runtime 1155s ok 75 /bookmarks/copy/fail-32.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-17.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-17.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-17.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-17.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-17.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-17.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-17.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-17.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-17.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-17.xbel/.dirs/runtime 1155s ok 76 /bookmarks/copy/fail-17.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-37.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-37.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-37.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-37.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-37.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-37.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-37.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-37.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-37.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-37.xbel/.dirs/runtime 1155s ok 77 /bookmarks/copy/fail-37.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-28.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-28.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-28.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-28.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-28.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-28.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-28.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-28.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-28.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-28.xbel/.dirs/runtime 1155s ok 78 /bookmarks/copy/fail-28.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-29.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-29.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-29.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-29.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-29.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-29.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-29.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-29.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-29.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-29.xbel/.dirs/runtime 1155s ok 79 /bookmarks/copy/fail-29.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-34.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-34.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-34.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-34.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-34.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-34.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-34.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-34.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-34.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-34.xbel/.dirs/runtime 1155s ok 80 /bookmarks/copy/fail-34.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-33.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-33.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-33.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-33.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-33.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-33.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-33.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-33.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-33.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-33.xbel/.dirs/runtime 1155s ok 81 /bookmarks/copy/fail-33.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-13.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-13.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-13.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-13.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-13.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-13.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-13.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-13.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-13.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-13.xbel/.dirs/runtime 1155s ok 82 /bookmarks/copy/fail-13.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-25.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-25.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-25.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-25.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-25.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-25.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-25.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-25.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-25.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-25.xbel/.dirs/runtime 1155s ok 83 /bookmarks/copy/fail-25.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-06.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-06.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-06.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-06.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-06.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-06.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-06.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-06.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-06.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-06.xbel/.dirs/runtime 1155s ok 84 /bookmarks/copy/fail-06.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-26.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-26.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-26.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-26.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-26.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-26.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-26.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-26.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-26.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-26.xbel/.dirs/runtime 1155s ok 85 /bookmarks/copy/fail-26.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-23.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-23.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-23.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-23.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-23.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-23.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-23.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-23.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-23.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-23.xbel/.dirs/runtime 1155s ok 86 /bookmarks/copy/fail-23.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-15.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-15.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-15.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-15.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-15.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-15.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-15.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-15.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-15.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-15.xbel/.dirs/runtime 1155s ok 87 /bookmarks/copy/fail-15.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-04.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-04.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-04.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-04.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-04.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-04.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-04.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-04.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-04.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-04.xbel/.dirs/runtime 1155s ok 88 /bookmarks/copy/fail-04.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-02.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-02.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-02.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-02.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-02.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-02.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-02.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-02.xbel/.dirs/runtime 1155s ok 89 /bookmarks/copy/fail-02.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-31.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-31.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-31.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-31.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-31.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-31.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-31.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-31.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-31.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-31.xbel/.dirs/runtime 1155s ok 90 /bookmarks/copy/fail-31.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-11.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-11.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-11.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-11.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-11.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-11.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-11.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-11.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-11.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-11.xbel/.dirs/runtime 1155s ok 91 /bookmarks/copy/fail-11.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-07.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-07.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-07.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-07.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-07.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-07.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-07.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-07.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-07.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-07.xbel/.dirs/runtime 1155s ok 92 /bookmarks/copy/fail-07.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-08.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-08.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-08.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-08.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-08.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-08.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-08.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-08.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-08.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-08.xbel/.dirs/runtime 1155s ok 93 /bookmarks/copy/fail-08.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-05.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-05.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-05.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-05.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-05.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-05.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-05.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-05.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-05.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/fail-05.xbel/.dirs/runtime 1155s ok 94 /bookmarks/copy/fail-05.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/valid-03.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/valid-03.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/valid-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/valid-03.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/valid-03.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/valid-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/valid-03.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/valid-03.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/valid-03.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/valid-03.xbel/.dirs/runtime 1155s ok 95 /bookmarks/copy/valid-03.xbel 1155s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/valid-02.xbel/.dirs/home 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/valid-02.xbel/.dirs/cache 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/valid-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/valid-02.xbel/.dirs/system-config2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/valid-02.xbel/.dirs/config 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/valid-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_3ZS752/bookmarks/copy/valid-02.xbel/.dirs/system-data2 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/valid-02.xbel/.dirs/data 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/valid-02.xbel/.dirs/state 1155s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_3ZS752/bookmarks/copy/valid-02.xbel/.dirs/runtime 1155s ok 96 /bookmarks/copy/valid-02.xbel 1155s # End of copy tests 1155s # End of bookmarks tests 1155s TAP version 14 1155s # random seed: R02S51b134eff2896c17fb5a2f2c01c0d731 1155s 1..3 1155s # Start of readwrite tests 1155s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1155s ok 1 /readwrite/test_g_file_open_readwrite 1155s ok 2 /readwrite/test_g_file_create_readwrite 1155s ok 3 /readwrite/test_g_file_replace_readwrite 1155s # End of readwrite tests 1155s TAP version 14 1155s # random seed: R02S0d4536862d06efef4429e9039a07f8ad 1155s 1..1 1155s # Start of gobject tests 1155s # Start of flags tests 1155s ok 1 /gobject/flags/validate 1155s # End of flags tests 1155s # End of gobject tests 1155s TAP version 14 1155s # random seed: R02Se715718ad0d984476b8e28ba089c4a26 1155s 1..68 1155s # Start of GDateTime tests 1155s # Bug Reference: http://bugzilla.gnome.org/702674 1155s ok 1 /GDateTime/invalid 1155s ok 2 /GDateTime/add_days 1155s ok 3 /GDateTime/add_full 1155s ok 4 /GDateTime/add_hours 1155s ok 5 /GDateTime/add_minutes 1155s ok 6 /GDateTime/add_months 1155s ok 7 /GDateTime/add_seconds 1155s ok 8 /GDateTime/add_weeks 1155s ok 9 /GDateTime/add_years 1155s ok 10 /GDateTime/compare 1155s ok 11 /GDateTime/diff 1155s ok 12 /GDateTime/equal 1155s ok 13 /GDateTime/get_day_of_week 1155s ok 14 /GDateTime/get_day_of_month 1155s ok 15 /GDateTime/get_day_of_year 1155s ok 16 /GDateTime/get_hour 1155s ok 17 /GDateTime/get_microsecond 1155s ok 18 /GDateTime/get_minute 1155s ok 19 /GDateTime/get_month 1155s ok 20 /GDateTime/get_second 1155s ok 21 /GDateTime/get_utc_offset 1155s ok 22 /GDateTime/get_year 1155s ok 23 /GDateTime/hash 1155s ok 24 /GDateTime/new_from_unix 1155s ok 25 /GDateTime/new_from_unix_utc 1155s ok 26 /GDateTime/new_from_timeval 1155s ok 27 /GDateTime/new_from_timeval_utc 1155s ok 28 /GDateTime/new_from_iso8601 1155s ok 29 /GDateTime/new_full 1155s ok 30 /GDateTime/now 1155s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2215 1155s ok 31 /GDateTime/test-6-days-until-end-of-the-month 1155s # %a -> expected: Sat 1155s # %a -> actual: Sat 1155s # %A -> expected: Saturday 1155s # %A -> actual: Saturday 1155s # %b -> expected: Oct 1155s # %b -> actual: Oct 1155s # %B -> expected: October 1155s # %B -> actual: October 1155s # %d -> expected: 24 1155s # %d -> actual: 24 1155s # %d -> expected: 01 1155s # %d -> actual: 01 1155s # %e -> expected: 24 1155s # %e -> actual: 24 1155s # %e -> expected:  1 1155s # %e -> actual:  1 1155s # %f -> expected: 001000 1155s # %f -> actual: 001000 1155s # %h -> expected: Oct 1155s # %h -> actual: Oct 1155s # %H -> expected: 00 1155s # %H -> actual: 00 1155s # %H -> expected: 15 1155s # %H -> actual: 15 1155s # %I -> expected: 12 1155s # %I -> actual: 12 1155s # %I -> expected: 12 1155s # %I -> actual: 12 1155s # %I -> expected: 03 1155s # %I -> actual: 03 1155s # %j -> expected: 297 1155s # %j -> actual: 297 1155s # %k -> expected:  0 1155s # %k -> actual:  0 1155s # %k -> expected: 13 1155s # %k -> actual: 13 1155s # %l -> expected: 12 1155s # %l -> actual: 12 1155s # %I -> expected: 12 1155s # %I -> actual: 12 1155s # %l -> expected:  1 1155s # %l -> actual:  1 1155s # %l -> expected: 10 1155s # %l -> actual: 10 1155s # %m -> expected: 10 1155s # %m -> actual: 10 1155s # %M -> expected: 00 1155s # %M -> actual: 00 1155s # %p -> expected: AM 1155s # %p -> actual: AM 1155s # %p -> expected: PM 1155s # %p -> actual: PM 1155s # %P -> expected: am 1155s # %P -> actual: am 1155s # %P -> expected: pm 1155s # %P -> actual: pm 1155s # %r -> expected: 12:00:00 AM 1155s # %r -> actual: 12:00:00 AM 1155s # %r -> expected: 01:13:13 PM 1155s # %r -> actual: 01:13:13 PM 1155s # %R -> expected: 00:00 1155s # %R -> actual: 00:00 1155s # %R -> expected: 13:13 1155s # %R -> actual: 13:13 1155s # %S -> expected: 00 1155s # %S -> actual: 00 1155s # %t -> expected: 1155s # %t -> actual: 1155s # %u -> expected: 6 1155s # %u -> actual: 6 1155s # %x -> expected: 10/24/09 1155s # %x -> actual: 10/24/09 1155s # %X -> expected: 00:00:00 1155s # %X -> actual: 00:00:00 1155s # %X -> expected: 13:14:15 1155s # %X -> actual: 13:14:15 1155s # %y -> expected: 09 1155s # %y -> actual: 09 1155s # %Y -> expected: 2009 1155s # %Y -> actual: 2009 1155s # %% -> expected: % 1155s # %% -> actual: % 1155s # % -> expected: 1155s # % -> actual: 1155s # %9 -> expected: (null) 1155s # %9 -> actual: (null) 1155s # %Z -> expected: UTC 1155s # %Z -> actual: UTC 1155s # %#Z %Z -> expected: utc UTC 1155s # %#Z %Z -> actual: utc UTC 1155s ok 32 /GDateTime/printf 1155s # %a -> expected: ÅÚ 1155s # %a -> actual: ÅÚ 1155s # %A -> expected: ÅÚÍËÆü 1155s # %A -> actual: ÅÚÍËÆü 1155s # %b -> expected: 10·î 1155s # %b -> actual: 10·î 1155s # %B -> expected: 10·î 1155s # %B -> actual: 10·î 1155s # %c -> expected: 2009ǯ10·î24Æü 00»þ00ʬ00Éà 1155s # %c -> actual: 2009ǯ10·î24Æü 00»þ00ʬ00Éà 1155s # %C -> expected: 20 1155s # %C -> actual: 20 1155s # %d -> expected: 24 1155s # %d -> actual: 24 1155s # %d -> expected: 01 1155s # %d -> actual: 01 1155s # %e -> expected: 24 1155s # %e -> actual: 24 1155s # %h -> expected: 10·î 1155s # %h -> actual: 10·î 1155s # %H -> expected: 00 1155s # %H -> actual: 00 1155s # %H -> expected: 15 1155s # %H -> actual: 15 1155s # %I -> expected: 12 1155s # %I -> actual: 12 1155s # %I -> expected: 12 1155s # %I -> actual: 12 1155s # %I -> expected: 03 1155s # %I -> actual: 03 1155s # %j -> expected: 297 1155s # %j -> actual: 297 1155s # %k -> expected: ?0 1155s # %k -> actual: ?0 1155s # %k -> expected: 13 1155s # %k -> actual: 13 1155s # %l -> expected: 12 1155s # %l -> actual: 12 1155s # %I -> expected: 12 1155s # %I -> actual: 12 1155s # %l -> expected: ?1 1155s # %l -> actual: ?1 1155s # %l -> expected: 10 1155s # %l -> actual: 10 1155s # %m -> expected: 10 1155s # %m -> actual: 10 1155s # %M -> expected: 00 1155s # %M -> actual: 00 1155s # %p -> expected: ¸áÁ° 1155s # %p -> actual: ¸áÁ° 1155s # %p -> expected: ¸á¸å 1155s # %p -> actual: ¸á¸å 1155s # %P -> expected: ¸áÁ° 1155s # %P -> actual: ¸áÁ° 1155s # %P -> expected: ¸á¸å 1155s # %P -> actual: ¸á¸å 1155s # %r -> expected: ¸áÁ°12»þ00ʬ00Éà 1155s # %r -> actual: ¸áÁ°12»þ00ʬ00Éà 1155s # %r -> expected: ¸á¸å01»þ13ʬ13Éà 1155s # %r -> actual: ¸á¸å01»þ13ʬ13Éà 1155s # %R -> expected: 00:00 1155s # %R -> actual: 00:00 1155s # %R -> expected: 13:13 1155s # %R -> actual: 13:13 1155s # %S -> expected: 00 1155s # %S -> actual: 00 1155s # %t -> expected: 1155s # %t -> actual: 1155s # %u -> expected: 6 1155s # %u -> actual: 6 1155s # %x -> expected: 2009ǯ10·î24Æü 1155s # %x -> actual: 2009ǯ10·î24Æü 1155s # %X -> expected: 00»þ00ʬ00Éà 1155s # %X -> actual: 00»þ00ʬ00Éà 1155s # %X -> expected: 13»þ14ʬ15Éà 1155s # %X -> actual: 13»þ14ʬ15Éà 1155s # %y -> expected: 09 1155s # %y -> actual: 09 1155s # %Y -> expected: 2009 1155s # %Y -> actual: 2009 1155s # %% -> expected: % 1155s # %% -> actual: % 1155s # % -> expected: 1155s # % -> actual: 1155s # %9 -> expected: (null) 1155s # %9 -> actual: (null) 1155s # %Ec -> expected: Ê¿À®21ǯ10·î24Æü 00»þ00ʬ00Éà 1155s # %Ec -> actual: Ê¿À®21ǯ10·î24Æü 00»þ00ʬ00Éà 1155s # %EC -> expected: Ê¿À® 1155s # %EC -> actual: Ê¿À® 1155s # %Ex -> expected: Ê¿À®21ǯ10·î24Æü 1155s # %Ex -> actual: Ê¿À®21ǯ10·î24Æü 1155s # %EX -> expected: 00»þ00ʬ00Éà 1155s # %EX -> actual: 00»þ00ʬ00Éà 1155s # %Ey -> expected: 21 1155s # %Ey -> actual: 21 1155s # %EY -> expected: Ê¿À®21ǯ 1155s # %EY -> actual: Ê¿À®21ǯ 1155s ok 33 /GDateTime/non_utf8_printf 1155s # ???? -> expected: ???? 1155s # ???? -> actual: ???? 1155s # %H?%M -> expected: 23?15 1155s # %H?%M -> actual: 23?15 1155s # %H?%M -> expected: 23?15 1155s # %H?%M -> actual: 23?15 1155s ok 34 /GDateTime/format_unrepresentable 1155s ok 35 /GDateTime/format_iso8601 1155s ok - glib/bookmarkfile.test 1155s # Running test: glib/readwrite.test 1155s ok - glib/readwrite.test 1155s # Running test: glib/flags.test 1155s ok - glib/flags.test 1155s # Running test: glib/gdatetime.test 1155s ok 36 /GDateTime/strftime 1155s # %d -> expected: 01 1155s # %d -> actual: 01 1155s # %_d -> expected: 1 1155s # %_d -> actual: 1 1155s # %-d -> expected: 1 1155s # %-d -> actual: 1 1155s # %0d -> expected: 01 1155s # %0d -> actual: 01 1155s # %d -> expected: 21 1155s # %d -> actual: 21 1155s # %_d -> expected: 21 1155s # %_d -> actual: 21 1155s # %-d -> expected: 21 1155s # %-d -> actual: 21 1155s # %0d -> expected: 21 1155s # %0d -> actual: 21 1155s # %e -> expected:  1 1155s # %e -> actual:  1 1155s # %_e -> expected: 1 1155s # %_e -> actual: 1 1155s # %-e -> expected: 1 1155s # %-e -> actual: 1 1155s # %0e -> expected: 01 1155s # %0e -> actual: 01 1155s # %e -> expected: 21 1155s # %e -> actual: 21 1155s # %_e -> expected: 21 1155s # %_e -> actual: 21 1155s # %-e -> expected: 21 1155s # %-e -> actual: 21 1155s # %0e -> expected: 21 1155s # %0e -> actual: 21 1155s # %a -> expected: Thu 1155s # %a -> actual: Thu 1155s # %^a -> expected: THU 1155s # %^a -> actual: THU 1155s # %#a -> expected: THU 1155s # %#a -> actual: THU 1155s # %A -> expected: Thursday 1155s # %A -> actual: Thursday 1155s # %^A -> expected: THURSDAY 1155s # %^A -> actual: THURSDAY 1155s # %#A -> expected: THURSDAY 1155s # %#A -> actual: THURSDAY 1155s # %b -> expected: Jan 1155s # %b -> actual: Jan 1155s # %^b -> expected: JAN 1155s # %^b -> actual: JAN 1155s # %#b -> expected: JAN 1155s # %#b -> actual: JAN 1155s # %B -> expected: January 1155s # %B -> actual: January 1155s # %^B -> expected: JANUARY 1155s # %^B -> actual: JANUARY 1155s # %#B -> expected: JANUARY 1155s # %#B -> actual: JANUARY 1155s # %h -> expected: Jan 1155s # %h -> actual: Jan 1155s # %^h -> expected: JAN 1155s # %^h -> actual: JAN 1155s # %#h -> expected: JAN 1155s # %#h -> actual: JAN 1155s # %Z -> expected: UTC 1155s # %Z -> actual: UTC 1155s # %^Z -> expected: UTC 1155s # %^Z -> actual: UTC 1155s # %#Z -> expected: utc 1155s # %#Z -> actual: utc 1155s # %H -> expected: 01 1155s # %H -> actual: 01 1155s # %_H -> expected: 1 1155s # %_H -> actual: 1 1155s # %-H -> expected: 1 1155s # %-H -> actual: 1 1155s # %0H -> expected: 01 1155s # %0H -> actual: 01 1155s # %H -> expected: 21 1155s # %H -> actual: 21 1155s # %_H -> expected: 21 1155s # %_H -> actual: 21 1155s # %-H -> expected: 21 1155s # %-H -> actual: 21 1155s # %0H -> expected: 21 1155s # %0H -> actual: 21 1155s # %I -> expected: 01 1155s # %I -> actual: 01 1155s # %_I -> expected: 1 1155s # %_I -> actual: 1 1155s # %-I -> expected: 1 1155s # %-I -> actual: 1 1155s # %0I -> expected: 01 1155s # %0I -> actual: 01 1155s # %I -> expected: 11 1155s # %I -> actual: 11 1155s # %_I -> expected: 11 1155s # %_I -> actual: 11 1155s # %-I -> expected: 11 1155s # %-I -> actual: 11 1155s # %0I -> expected: 11 1155s # %0I -> actual: 11 1155s # %k -> expected:  1 1155s # %k -> actual:  1 1155s # %_k -> expected: 1 1155s # %_k -> actual: 1 1155s # %-k -> expected: 1 1155s # %-k -> actual: 1 1155s # %0k -> expected: 01 1155s # %0k -> actual: 01 1155s # %l -> expected:  1 1155s # %l -> actual:  1 1155s # %_l -> expected: 1 1155s # %_l -> actual: 1 1155s # %-l -> expected: 1 1155s # %-l -> actual: 1 1155s # %0l -> expected: 01 1155s # %0l -> actual: 01 1155s # %l -> expected: 11 1155s # %l -> actual: 11 1155s # %_l -> expected: 11 1155s # %_l -> actual: 11 1155s # %-l -> expected: 11 1155s # %-l -> actual: 11 1155s # %0l -> expected: 11 1155s # %0l -> actual: 11 1155s # %p -> expected: AM 1155s # %p -> actual: AM 1155s # %^p -> expected: AM 1155s # %^p -> actual: AM 1155s # %#p -> expected: am 1155s # %#p -> actual: am 1155s # %P -> expected: am 1155s # %P -> actual: am 1155s # %^P -> expected: AM 1155s # %^P -> actual: AM 1155s # %#P -> expected: am 1155s # %#P -> actual: am 1155s # %OH -> expected: Û²Û³ 1155s # %OH -> actual: Û²Û³ 1155s # %OI -> expected: Û±Û± 1155s # %OI -> actual: Û±Û± 1155s # %OM -> expected: Û°Û° 1155s # %OM -> actual: Û°Û° 1155s # %Om -> expected: Û°Û· 1155s # %Om -> actual: Û°Û· 1155s # %0Om -> expected: Û°Û· 1155s # %0Om -> actual: Û°Û· 1155s # %-Om -> expected: Û· 1155s # %-Om -> actual: Û· 1155s # %_Om -> expected: Û· 1155s # %_Om -> actual: Û· 1155s # %c -> expected: thu 01 jan 2009 00:00:00 utc 1155s # %c -> actual: Thu 01 Jan 2009 00:00:00 UTC 1155s # %Ec -> expected: thu 01 jan 2009 00:00:00 utc 1155s # %Ec -> actual: Thu 01 Jan 2009 00:00:00 UTC 1155s # %C -> expected: 20 1155s # %C -> actual: 20 1155s # %EC -> expected: 20 1155s # %EC -> actual: 20 1155s # %x -> expected: 02/01/09 1155s # %x -> actual: 02/01/09 1155s # %Ex -> expected: 02/01/09 1155s # %Ex -> actual: 02/01/09 1155s # %X -> expected: 01:02:03 1155s # %X -> actual: 01:02:03 1155s # %EX -> expected: 01:02:03 1155s # %EX -> actual: 01:02:03 1155s # %y -> expected: 09 1155s # %y -> actual: 09 1155s # %Ey -> expected: 09 1155s # %Ey -> actual: 09 1155s # %Y -> expected: 2009 1155s # %Y -> actual: 2009 1155s # %EY -> expected: 2009 1155s # %EY -> actual: 2009 1155s ok 37 /GDateTime/modifiers # SKIP locale gu_IN not available, skipping O modifier tests 1155s # Bug Reference: http://bugzilla.gnome.org/749206 1155s # %B -> expected: January 1155s # %B -> actual: January 1155s # %OB -> expected: February 1155s # %OB -> actual: February 1155s # %b -> expected: Mar 1155s # %b -> actual: Mar 1155s # %Ob -> expected: Apr 1155s # %Ob -> actual: Apr 1155s # %h -> expected: May 1155s # %h -> actual: May 1155s # %Oh -> expected: Jun 1155s # %Oh -> actual: Jun 1155s # %B -> expected: Juli 1155s # %B -> actual: Juli 1155s # %OB -> expected: August 1155s # %OB -> actual: August 1155s # %b -> expected: Sep 1155s # %b -> actual: Sep 1155s # %Ob -> expected: Okt 1155s # %Ob -> actual: Okt 1155s # %h -> expected: Nov 1155s # %h -> actual: Nov 1155s # %Oh -> expected: Dez 1155s # %Oh -> actual: Dez 1155s # %B -> expected: enero 1155s # %B -> actual: enero 1155s # %OB -> expected: febrero 1155s # %OB -> actual: febrero 1155s # %b -> expected: mar 1155s # %b -> actual: mar 1155s # %Ob -> expected: abr 1155s # %Ob -> actual: abr 1155s # %h -> expected: may 1155s # %h -> actual: may 1155s # %Oh -> expected: jun 1155s # %Oh -> actual: jun 1155s # %B -> expected: juillet 1155s # %B -> actual: juillet 1155s # %OB -> expected: août 1155s # %OB -> actual: août 1155s # %b -> expected: sept. 1155s # %b -> actual: sept. 1155s # %Ob -> expected: oct. 1155s # %Ob -> actual: oct. 1155s # %h -> expected: nov. 1155s # %h -> actual: nov. 1155s # %Oh -> expected: déc. 1155s # %Oh -> actual: déc. 1155s # %B -> expected: ΙανουαÏίου 1155s # %B -> actual: ΙανουαÏίου 1155s # %B -> expected: ΦεβÏουαÏίου 1155s # %B -> actual: ΦεβÏουαÏίου 1155s # %B -> expected: ΜαÏτίου 1155s # %B -> actual: ΜαÏτίου 1155s # %OB -> expected: ΑπÏίλιος 1155s # %OB -> actual: ΑπÏίλιος 1155s # %OB -> expected: Μάιος 1155s # %OB -> actual: Μάιος 1155s # %OB -> expected: ΙοÏνιος 1155s # %OB -> actual: ΙοÏνιος 1155s # %b -> expected: Ιουλ 1155s # %b -> actual: Ιουλ 1155s # %Ob -> expected: ΑÏγ 1155s # %Ob -> actual: ΑÏγ 1155s # %B -> expected: svibnja 1155s # %B -> actual: svibnja 1155s # %B -> expected: lipnja 1155s # %B -> actual: lipnja 1155s # %B -> expected: srpnja 1155s # %B -> actual: srpnja 1155s # %OB -> expected: Kolovoz 1155s # %OB -> actual: kolovoz 1155s # %OB -> expected: Rujan 1155s # %OB -> actual: rujan 1155s # %OB -> expected: Listopad 1155s # %OB -> actual: listopad 1155s # %b -> expected: Stu 1155s # %b -> actual: stu 1155s # %Ob -> expected: Pro 1155s # %Ob -> actual: pro 1155s # %B -> expected: sausio 1155s # %B -> actual: sausio 1155s # %B -> expected: vasario 1155s # %B -> actual: vasario 1155s # %B -> expected: kovo 1155s # %B -> actual: kovo 1155s # %OB -> expected: balandis 1155s # %OB -> actual: balandis 1155s # %OB -> expected: gegužė 1155s # %OB -> actual: gegužė 1155s # %OB -> expected: birželis 1155s # %OB -> actual: birželis 1155s # %b -> expected: liep. 1155s # %b -> actual: liep. 1155s # %Ob -> expected: rugp. 1155s # %Ob -> actual: rugp. 1155s # %B -> expected: maja 1155s # %B -> actual: maja 1155s # %B -> expected: czerwca 1155s # %B -> actual: czerwca 1155s # %B -> expected: lipca 1155s # %B -> actual: lipca 1155s # %OB -> expected: sierpieÅ„ 1155s # %OB -> actual: sierpieÅ„ 1155s # %OB -> expected: wrzesieÅ„ 1155s # %OB -> actual: wrzesieÅ„ 1155s # %OB -> expected: październik 1155s # %OB -> actual: październik 1155s # %b -> expected: lis 1155s # %b -> actual: lis 1155s # %Ob -> expected: gru 1155s # %Ob -> actual: gru 1155s # %B -> expected: ÑÐ½Ð²Ð°Ñ€Ñ 1155s # %B -> actual: ÑÐ½Ð²Ð°Ñ€Ñ 1155s # %B -> expected: Ñ„ÐµÐ²Ñ€Ð°Ð»Ñ 1155s # %B -> actual: Ñ„ÐµÐ²Ñ€Ð°Ð»Ñ 1155s # %B -> expected: марта 1155s # %B -> actual: марта 1155s # %OB -> expected: Ðпрель 1155s # %OB -> actual: Ðпрель 1155s # %OB -> expected: Май 1155s # %OB -> actual: Май 1155s # %OB -> expected: Июнь 1155s # %OB -> actual: Июнь 1155s # %b -> expected: июл 1155s # %b -> actual: июл 1155s # %Ob -> expected: авг 1155s # %Ob -> actual: авг 1155s # %b -> expected: Ð¼Ð°Ñ 1155s # %b -> actual: Ð¼Ð°Ñ 1155s # %Ob -> expected: май 1155s # %Ob -> actual: май 1155s ok 38 /GDateTime/month_names 1155s ok 39 /GDateTime/to_local 1155s ok 40 /GDateTime/to_unix 1155s ok 41 /GDateTime/to_timeval 1155s ok 42 /GDateTime/to_utc 1155s ok 43 /GDateTime/now_utc 1155s ok 44 /GDateTime/dst 1155s # Bug Reference: http://bugzilla.gnome.org/642935 1155s ok 45 /GDateTime/test_z 1156s ok 46 /GDateTime/test-all-dates 1156s # slow test /GDateTime/test-all-dates executed in 0.94 secs 1156s ok 47 /GDateTime/unix_usec 1156s # Start of new_from_unix tests 1156s # Bug Reference: http://bugzilla.gnome.org/782089 1156s ok 48 /GDateTime/new_from_unix/overflow 1156s # End of new_from_unix tests 1156s # Start of new_from_timeval tests 1156s # Bug Reference: http://bugzilla.gnome.org/782089 1156s # Maximum supported GTimeVal.tv_sec = 253402300799 1156s ok 49 /GDateTime/new_from_timeval/overflow 1156s # End of new_from_timeval tests 1156s # Start of new_from_iso8601 tests 1156s # /GDateTime/new_from_iso8601/2 summary: Further parser tests for g_date_time_new_from_iso8601(), checking success and failure using test vectors. 1156s # Vector 0: 1990-11-01T10:21:17Z 1156s # Vector 1: 19901101T102117Z 1156s # Vector 2: 1970-01-01T00:00:17.12Z 1156s # Vector 3: 1970-01-01T00:00:17.1234Z 1156s # Vector 4: 1970-01-01T00:00:17.123456Z 1156s # Vector 5: 1980-02-22T12:36:00+02:00 1156s # Vector 6: 1990-12-31T15:59:60-08:00 1156s # Vector 7: 1156s # Vector 8: x 1156s # Vector 9: 123x 1156s # Vector 10: 2001-10+x 1156s # Vector 11: 1980-02-22T 1156s # Vector 12: 2001-10-08Tx 1156s # Vector 13: 2001-10-08T10:11x 1156s # Vector 14: Wed Dec 19 17:20:20 GMT 2007 1156s # Vector 15: 1980-02-22T10:36:00Zulu 1156s # Vector 16: 2T0+819855292164632335 1156s # Vector 17: 2018-08-03T14:08:05.446178377+01:00 1156s # Vector 18: 2147483648-08-03T14:08:05.446178377+01:00 1156s # Vector 19: 2018-13-03T14:08:05.446178377+01:00 1156s # Vector 20: 2018-00-03T14:08:05.446178377+01:00 1156s # Vector 21: 2018-08-00T14:08:05.446178377+01:00 1156s # Vector 22: 2018-08-32T14:08:05.446178377+01:00 1156s # Vector 23: 2018-08-03T24:08:05.446178377+01:00 1156s # Vector 24: 2018-08-03T14:60:05.446178377+01:00 1156s # Vector 25: 2018-08-03T14:08:63.446178377+01:00 1156s # Vector 26: 2018-08-03T14:08:05.446178377+100:00 1156s # Vector 27: 20180803T140805.446178377+0100 1156s # Vector 28: 21474836480803T140805.446178377+0100 1156s # Vector 29: 20181303T140805.446178377+0100 1156s # Vector 30: 20180003T140805.446178377+0100 1156s # Vector 31: 20180800T140805.446178377+0100 1156s # Vector 32: 20180832T140805.446178377+0100 1156s # Vector 33: 20180803T240805.446178377+0100 1156s # Vector 34: 20180803T146005.446178377+0100 1156s # Vector 35: 20180803T140863.446178377+0100 1156s # Vector 36: 20180803T140805.446178377+10000 1156s # Vector 37: -0005-01-01T00:00:00Z 1156s # Vector 38: 2018-08-06 1156s # Vector 39: 20180803T140805,446178377+0100 1156s # Vector 40: 2018-08-03T14:08:05.446178377-01:00 1156s # Vector 41: 2018-08-03T14:08:05.446178377 01:00 1156s # Vector 42: 1990-11-01T10:21:17 1156s # Vector 43: 1719W462 407777-07 1156s # Vector 44: 4011090 260528Z 1156s # Vector 45: 0000W011 228214-22 1156s ok 50 /GDateTime/new_from_iso8601/2 1156s # End of new_from_iso8601 tests 1156s # Start of format_mixed tests 1156s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 1156s # %b -> expected: mar 1156s # %b -> actual: Mar 1156s # %B -> expected: march 1156s # %B -> actual: March 1156s ok 51 /GDateTime/format_mixed/utf8_time_non_utf8_messages 1156s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 1156s # %b -> expected: mar 1156s # %b -> actual: Mar 1156s # %B -> expected: march 1156s # %B -> actual: March 1156s ok 52 /GDateTime/format_mixed/utf8_time_utf8_messages 1156s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 1156s # %b -> expected: Mär 1156s # %b -> actual: Mär 1156s # %B -> expected: März 1156s # %B -> actual: März 1156s ok 53 /GDateTime/format_mixed/non_utf8_time_non_utf8_messages 1156s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 1156s # %b -> expected: Mär 1156s # %b -> actual: Mär 1156s # %B -> expected: März 1156s # %B -> actual: März 1156s ok 54 /GDateTime/format_mixed/non_utf8_time_utf8_messages 1156s # End of format_mixed tests 1156s # Start of strftime tests 1156s # %r -> expected: (null) 1156s # %r -> actual: (null) 1156s ok 55 /GDateTime/strftime/error_handling 1156s # End of strftime tests 1156s # Start of eras tests 1156s # %Ec -> expected: 令和05å¹´06月01æ—¥ 00時00分00ç§’ 1156s # %Ec -> actual: 令和05å¹´06月01æ—¥ 00時00分00ç§’ 1156s # %EC -> expected: 令和 1156s # %EC -> actual: 令和 1156s # %Ex -> expected: 令和05å¹´06月01æ—¥ 1156s # %Ex -> actual: 令和05å¹´06月01æ—¥ 1156s # %EX -> expected: 00時00分00ç§’ 1156s # %EX -> actual: 00時00分00ç§’ 1156s # %Ey -> expected: 05 1156s # %Ey -> actual: 05 1156s # %EY -> expected: 令和05å¹´ 1156s # %EY -> actual: 令和05å¹´ 1156s # %Ec -> expected: å¹³æˆ31å¹´04月30æ—¥ 00時00分00ç§’ 1156s # %Ec -> actual: å¹³æˆ31å¹´04月30æ—¥ 00時00分00ç§’ 1156s # %EC -> expected: å¹³æˆ 1156s # %EC -> actual: å¹³æˆ 1156s # %Ex -> expected: å¹³æˆ31å¹´04月30æ—¥ 1156s # %Ex -> actual: å¹³æˆ31å¹´04月30æ—¥ 1156s # %EX -> expected: 00時00分00ç§’ 1156s # %EX -> actual: 00時00分00ç§’ 1156s # %Ey -> expected: 31 1156s # %Ey -> actual: 31 1156s # %EY -> expected: å¹³æˆ31å¹´ 1156s # %EY -> actual: å¹³æˆ31å¹´ 1156s # %Ec -> expected: 昭和元年12月25æ—¥ 00時00分00ç§’ 1156s # %Ec -> actual: 昭和元年12月25æ—¥ 00時00分00ç§’ 1156s # %EC -> expected: 昭和 1156s # %EC -> actual: 昭和 1156s # %Ex -> expected: 昭和元年12月25æ—¥ 1156s # %Ex -> actual: 昭和元年12月25æ—¥ 1156s # %EX -> expected: 00時00分00ç§’ 1156s # %EX -> actual: 00時00分00ç§’ 1156s # %Ey -> expected: 01 1156s # %Ey -> actual: 01 1156s # %EY -> expected: 昭和元年 1156s # %EY -> actual: 昭和元年 1156s ok 56 /GDateTime/eras/japan 1156s ok 57 /GDateTime/eras/thailand # SKIP locale th_TH.utf-8 not available, skipping Thai era tests 1156s # Vector 0: 1156s # Vector 1: +:1:-543/01/01:+*:พ.ศ.:%EC %Ey 1156s # 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å¹´ 1156s # Vector 3: -:2:2020/01/01:-*:令和:%EC%Eyå¹´ 1156s # Vector 4: +:2:2020/01/01:2020/01/01:令和:%EC%Eyå¹´ 1156s # Vector 5: +:2:+2020/01/01:+*:令和:%EC%Eyå¹´ 1156s # Vector 6: .:2:2020/01/01:+*:令和:%EC%Eyå¹´ 1156s # Vector 7: +.2:2020/01/01:+*:令和:%EC%Eyå¹´ 1156s # Vector 8: + 1156s # Vector 9: +: 1156s # Vector 10: +:: 1156s # Vector 11: +:200 1156s # Vector 12: +:2nonsense 1156s # Vector 13: +:2nonsense: 1156s # Vector 14: +:2: 1156s # Vector 15: +:2:: 1156s # Vector 16: +:2:2020-01/01:+*:令和:%EC%Eyå¹´ 1156s # Vector 17: +:2:2020nonsense/01/01:+*:令和:%EC%Eyå¹´ 1156s # Vector 18: +:2:2020:+*:令和:%EC%Eyå¹´ 1156s # Vector 19: +:2:18446744073709551615/01/01:+*:令和:%EC%Eyå¹´ 1156s # Vector 20: +:2:2020/01-01:+*:令和:%EC%Eyå¹´ 1156s # Vector 21: +:2:2020/01nonsense/01:+*:令和:%EC%Eyå¹´ 1156s # Vector 22: +:2:2020/01:+*:令和:%EC%Eyå¹´ 1156s # Vector 23: +:2:2020/00/01:+*:令和:%EC%Eyå¹´ 1156s # Vector 24: +:2:2020/13/01:+*:令和:%EC%Eyå¹´ 1156s # Vector 25: +:2:2020/01/00:+*:令和:%EC%Eyå¹´ 1156s # Vector 26: +:2:2020/01/32:+*:令和:%EC%Eyå¹´ 1156s # Vector 27: +:2:2020/01/01nonsense:+*:令和:%EC%Eyå¹´ 1156s # Vector 28: +:2:2020/01/01 1156s # Vector 29: +:2:2020/01/01: 1156s # Vector 30: +:2:2020/01/01:: 1156s # Vector 31: +:2:2020/01/01:2021-01-01:令和:%EC%Eyå¹´ 1156s # Vector 32: +:2:2020/01/01:+* 1156s # Vector 33: +:2:2020/01/01:+*: 1156s # Vector 34: +:2:2020/01/01:+*:: 1156s # Vector 35: +:2:2020/01/01:+*:令和 1156s # Vector 36: +:2:2020/01/01:+*:令和: 1156s # Vector 37: +:2:2020/01/01:+*:令和:; 1156s ok 58 /GDateTime/eras/parsing 1156s # End of eras tests 1156s # End of GDateTime tests 1156s # Start of GTimeZone tests 1156s ok 59 /GTimeZone/find-interval 1156s ok - glib/gdatetime.test 1156s # Running test: glib/utf8-performance.test 1156s ok - glib/utf8-performance.test 1156s # Running test: glib/signalgroup.test 1156s ok 60 /GTimeZone/adjust-time 1156s ok 61 /GTimeZone/no-header 1156s ok 62 /GTimeZone/no-header-identifier 1156s ok 63 /GTimeZone/posix-parse 1156s # Bug Reference: http://bugzilla.gnome.org/697715 1156s ok 64 /GTimeZone/floating-point 1156s # System time zone identifier: Etc/UTC 1156s ok 65 /GTimeZone/identifier 1156s # Vector 0: -158400 1156s # Vector 1: -10000 1156s # Vector 2: -3600 1156s # Vector 3: -61 1156s # Vector 4: -60 1156s # Vector 5: -59 1156s # Vector 6: 0 1156s # Vector 7: 59 1156s # Vector 8: 60 1156s # Vector 9: 61 1156s # Vector 10: 3600 1156s # Vector 11: 10000 1156s # Vector 12: 158400 1156s ok 66 /GTimeZone/new-offset 1156s # /GTimeZone/parse-rfc8536 summary: Test parsing time zone files in RFC 8536 version 3 format 1156s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2129 1156s ok 67 /GTimeZone/parse-rfc8536 1156s # /GTimeZone/caching summary: GTimeZone instances are cached 1156s ok 68 /GTimeZone/caching 1156s # End of GTimeZone tests 1156s TAP version 14 1156s # random seed: R02S99b284a55323adbcdf3f26726ce72c9c 1156s 1..36 1156s # Start of utf8 tests 1156s # Start of perf tests 1156s # Start of get_char tests 1156s # max perf: 43.0 MB/s 1156s ok 1 /utf8/perf/get_char/ascii 1156s # max perf: inf MB/s 1156s ok 2 /utf8/perf/get_char/latin1 1156s # max perf: inf MB/s 1156s ok 3 /utf8/perf/get_char/cyrillic 1156s # max perf: inf MB/s 1156s ok 4 /utf8/perf/get_char/han 1156s # End of get_char tests 1156s # Start of get_char-backwards tests 1156s # max perf: inf MB/s 1156s ok 5 /utf8/perf/get_char-backwards/ascii 1156s # max perf: 67.0 MB/s 1156s ok 6 /utf8/perf/get_char-backwards/latin1 1156s # max perf: 160.0 MB/s 1156s ok 7 /utf8/perf/get_char-backwards/cyrillic 1156s # max perf: 156.0 MB/s 1156s ok 8 /utf8/perf/get_char-backwards/han 1156s # End of get_char-backwards tests 1156s # Start of get_char_validated tests 1156s # max perf: 43.0 MB/s 1156s ok 9 /utf8/perf/get_char_validated/ascii 1156s # max perf: inf MB/s 1156s ok 10 /utf8/perf/get_char_validated/latin1 1156s # max perf: 160.0 MB/s 1156s ok 11 /utf8/perf/get_char_validated/cyrillic 1156s # max perf: 156.0 MB/s 1156s ok 12 /utf8/perf/get_char_validated/han 1156s # End of get_char_validated tests 1156s # Start of utf8_to_ucs4 tests 1156s # max perf: 43.0 MB/s 1156s ok 13 /utf8/perf/utf8_to_ucs4/ascii 1156s # max perf: 67.0 MB/s 1156s ok 14 /utf8/perf/utf8_to_ucs4/latin1 1156s # max perf: 80.0 MB/s 1156s ok 15 /utf8/perf/utf8_to_ucs4/cyrillic 1156s # max perf: 156.0 MB/s 1156s ok 16 /utf8/perf/utf8_to_ucs4/han 1156s # End of utf8_to_ucs4 tests 1156s # Start of utf8_to_ucs4-sized tests 1156s # max perf: inf MB/s 1156s ok 17 /utf8/perf/utf8_to_ucs4-sized/ascii 1156s # max perf: 67.0 MB/s 1156s ok 18 /utf8/perf/utf8_to_ucs4-sized/latin1 1156s # max perf: 160.0 MB/s 1156s ok 19 /utf8/perf/utf8_to_ucs4-sized/cyrillic 1156s # max perf: 156.0 MB/s 1156s ok 20 /utf8/perf/utf8_to_ucs4-sized/han 1156s # End of utf8_to_ucs4-sized tests 1156s # Start of utf8_to_ucs4_fast tests 1156s # max perf: 43.0 MB/s 1156s ok 21 /utf8/perf/utf8_to_ucs4_fast/ascii 1156s # max perf: 67.0 MB/s 1156s ok 22 /utf8/perf/utf8_to_ucs4_fast/latin1 1156s # max perf: 160.0 MB/s 1156s ok 23 /utf8/perf/utf8_to_ucs4_fast/cyrillic 1156s # max perf: 156.0 MB/s 1156s ok 24 /utf8/perf/utf8_to_ucs4_fast/han 1156s # End of utf8_to_ucs4_fast tests 1156s # Start of utf8_to_ucs4_fast-sized tests 1156s # max perf: inf MB/s 1156s ok 25 /utf8/perf/utf8_to_ucs4_fast-sized/ascii 1156s # max perf: 67.0 MB/s 1156s ok 26 /utf8/perf/utf8_to_ucs4_fast-sized/latin1 1156s # max perf: 160.0 MB/s 1156s ok 27 /utf8/perf/utf8_to_ucs4_fast-sized/cyrillic 1156s # max perf: inf MB/s 1156s ok 28 /utf8/perf/utf8_to_ucs4_fast-sized/han 1156s # End of utf8_to_ucs4_fast-sized tests 1156s # Start of utf8_validate tests 1156s # max perf: inf MB/s 1156s ok 29 /utf8/perf/utf8_validate/ascii 1156s # max perf: 67.0 MB/s 1156s ok 30 /utf8/perf/utf8_validate/latin1 1156s # max perf: inf MB/s 1156s ok 31 /utf8/perf/utf8_validate/cyrillic 1156s # max perf: inf MB/s 1156s ok 32 /utf8/perf/utf8_validate/han 1156s # End of utf8_validate tests 1156s # Start of utf8_validate-sized tests 1156s # max perf: inf MB/s 1156s ok 33 /utf8/perf/utf8_validate-sized/ascii 1156s # max perf: inf MB/s 1156s ok 34 /utf8/perf/utf8_validate-sized/latin1 1156s # max perf: inf MB/s 1156s ok 35 /utf8/perf/utf8_validate-sized/cyrillic 1156s # max perf: 156.0 MB/s 1156s ok 36 /utf8/perf/utf8_validate-sized/han 1156s # End of utf8_validate-sized tests 1156s # End of perf tests 1156s # End of utf8 tests 1156s TAP version 14 1156s # random seed: R02Seabe908cd4986a693a7ce6d5ab28aafc 1156s 1..9 1156s # Start of GObject tests 1156s # Start of SignalGroup tests 1156s ok 1 /GObject/SignalGroup/invalid 1156s ok 2 /GObject/SignalGroup/simple 1156s ok 3 /GObject/SignalGroup/changing-target 1156s ok 4 /GObject/SignalGroup/blocking 1156s ok 5 /GObject/SignalGroup/weak-ref-target 1156s ok 6 /GObject/SignalGroup/connect-object 1156s ok 7 /GObject/SignalGroup/signal-parsing 1156s ok 8 /GObject/SignalGroup/properties 1156s ok 9 /GObject/SignalGroup/interface 1156s # Start of signal-parsing tests 1156s # End of signal-parsing tests 1156s # End of SignalGroup tests 1156s # End of GObject tests 1156s TAP version 14 1156s # random seed: R02S9e454dc240e9b5007bc19a332c88e746 1156s 1..2 1156s # Start of io-channel tests 1156s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_io-channel_OBSB62/io-channel/read-write/.dirs/home 1156s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_io-channel_OBSB62/io-channel/read-write/.dirs/cache 1156s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_io-channel_OBSB62/io-channel/read-write/.dirs/system-config1:/tmp/test_io-channel_OBSB62/io-channel/read-write/.dirs/system-config2 1156s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_io-channel_OBSB62/io-channel/read-write/.dirs/config 1156s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_io-channel_OBSB62/io-channel/read-write/.dirs/system-data1:/tmp/test_io-channel_OBSB62/io-channel/read-write/.dirs/system-data2 1156s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_io-channel_OBSB62/io-channel/read-write/.dirs/data 1156s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_io-channel_OBSB62/io-channel/read-write/.dirs/state 1156s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_io-channel_OBSB62/io-channel/read-write/.dirs/runtime 1156s # Line one 1156s # 1156s # Line two 1156s # 1156s # Line three 1156s # 1156s # /* Hello */ 1156s # 1156s # \x1234\x567890\x6666 1156s # 1156s # read 62 bytes, wrote 62 bytes 1156s ok 1 /io-channel/read-write 1156s # Start of read-line tests 1156s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_io-channel_OBSB62/io-channel/read-line/embedded-nuls/.dirs/home 1156s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_io-channel_OBSB62/io-channel/read-line/embedded-nuls/.dirs/cache 1156s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_io-channel_OBSB62/io-channel/read-line/embedded-nuls/.dirs/system-config1:/tmp/test_io-channel_OBSB62/io-channel/read-line/embedded-nuls/.dirs/system-config2 1156s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_io-channel_OBSB62/io-channel/read-line/embedded-nuls/.dirs/config 1156s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_io-channel_OBSB62/io-channel/read-line/embedded-nuls/.dirs/system-data1:/tmp/test_io-channel_OBSB62/io-channel/read-line/embedded-nuls/.dirs/system-data2 1156s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_io-channel_OBSB62/io-channel/read-line/embedded-nuls/.dirs/data 1156s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_io-channel_OBSB62/io-channel/read-line/embedded-nuls/.dirs/state 1156s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_io-channel_OBSB62/io-channel/read-line/embedded-nuls/.dirs/runtime 1156s # /io-channel/read-line/embedded-nuls summary: Test that reading a line containing embedded nuls works when using non-standard line terminators. 1156s ok 2 /io-channel/read-line/embedded-nuls 1156s # End of read-line tests 1156s # End of io-channel tests 1156s TAP version 14 1156s # random seed: R02Scb31d5fdf473c4167cdd94306f952301 1156s 1..4 1156s # Start of scanner tests 1156s ok 1 /scanner/warn 1156s ok 2 /scanner/error 1156s ok 3 /scanner/symbols 1156s ok 4 /scanner/tokens 1156s # End of scanner tests 1156s ok - glib/signalgroup.test 1156s # Running test: glib/io-channel.test 1156s ok - glib/io-channel.test 1156s # Running test: glib/scannerapi.test 1156s ok - glib/scannerapi.test 1156s # Running test: glib/gi-inspect-typelib.py.test 1156s TAP version 13 1156s ok 1 __main__.TestGIInspectTypelibCommandLine.test_help 1156s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1156s # tmpdir: /tmp/tmp6twyowr4 1156s # Running: ['/usr/bin/gi-inspect-typelib', '--help'] 1156s # Return code: 0 1156s # Output: 1156s # Usage: 1156s # gi-inspect-typelib [OPTION…] NAMESPACE - Inspect GI typelib 1156s # 1156s # Help Options: 1156s # -h, --help Show help options 1156s # 1156s # Application Options: 1156s # --typelib-version=VERSION Typelib version to inspect 1156s # --print-shlibs List the shared libraries the typelib requires 1156s # --print-typelibs List other typelibs the inspected typelib requires 1156s # Error: 1156s ok 2 __main__.TestGIInspectTypelibCommandLine.test_invalid_typelib 1156s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1156s # tmpdir: /tmp/tmpmw_vr2ms 1156s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'AnInvalidNameSpace'] 1156s # Return code: 1 1156s # Output: 1156s # 1156s # Error: 1156s # Failed to load typelib: Typelib file for namespace 'AnInvalidNameSpace' (any version) not found 1156s ok 3 __main__.TestGIInspectTypelibCommandLine.test_no_args 1156s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1156s # tmpdir: /tmp/tmpgaavqqpa 1156s # Running: ['/usr/bin/gi-inspect-typelib'] 1156s # Return code: 1 1156s # Output: 1156s # 1156s # Error: 1156s # Please specify exactly one namespace 1156s ok 4 __main__.TestGIInspectTypelibForGLibTypelib.test_print_shlibs 1156s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1156s # tmpdir: /tmp/tmpu3nuoufs 1156s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'GLib', '--typelib-version=2.0'] 1156s # Return code: 0 1156s # Output: 1156s # shlib: libgobject-2.0.so.0 1156s # shlib: libglib-2.0.so.0 1156s # Error: 1156s ok 5 __main__.TestGIInspectTypelibForGLibTypelib.test_print_typelibs 1156s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1156s # tmpdir: /tmp/tmps4er2d_d 1156s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'GLib', '--typelib-version=2.0'] 1156s # Return code: 0 1156s # Output: 1156s # 1156s # Error: 1156s ok 6 __main__.TestGIInspectTypelibForGLibTypelib.test_print_typelibs_and_shlibs 1156s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1156s # tmpdir: /tmp/tmp2vxumnp9 1156s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'GLib', '--typelib-version=2.0'] 1156s # Return code: 0 1156s # Output: 1156s # shlib: libgobject-2.0.so.0 1156s # shlib: libglib-2.0.so.0 1156s # Error: 1156s ok 7 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_shlibs 1156s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1156s # tmpdir: /tmp/tmphatssw0n 1156s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'GObject', '--typelib-version=2.0'] 1156s # Return code: 0 1156s # Output: 1156s # shlib: libgobject-2.0.so.0 1156s # Error: 1156s ok 8 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_typelibs 1156s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1156s # tmpdir: /tmp/tmpocvapo8p 1156s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'GObject', '--typelib-version=2.0'] 1156s # Return code: 0 1156s # Output: 1156s # typelib: GLib-2.0 1156s # Error: 1156s ok 9 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_typelibs_and_shlibs 1156s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1156s # tmpdir: /tmp/tmpo8mgne5b 1156s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'GObject', '--typelib-version=2.0'] 1156s # Return code: 0 1156s # Output: 1156s # shlib: libgobject-2.0.so.0 1156s # typelib: GLib-2.0 1156s # Error: 1156s ok 10 __main__.TestGIInspectTypelibForGioTypelib.test_print_shlibs 1156s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1156s # tmpdir: /tmp/tmpl_ek3tyh 1156s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'Gio', '--typelib-version=2.0'] 1156s # Return code: 0 1156s # Output: 1156s # shlib: libgio-2.0.so.0 1156s # Error: 1156s ok 11 __main__.TestGIInspectTypelibForGioTypelib.test_print_typelibs 1156s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1156s # tmpdir: /tmp/tmpobw2yjfd 1156s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'Gio', '--typelib-version=2.0'] 1156s # Return code: 0 1156s # Output: 1156s # typelib: GObject-2.0 1156s # typelib: GLib-2.0 1156s # typelib: GModule-2.0 1156s # Error: 1156s ok 12 __main__.TestGIInspectTypelibForGioTypelib.test_print_typelibs_and_shlibs 1156s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1156s # tmpdir: /tmp/tmpncpm7_zy 1156s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'Gio', '--typelib-version=2.0'] 1156s # Return code: 0 1156s # Output: 1156s # shlib: libgio-2.0.so.0 1156s # typelib: GObject-2.0 1156s # typelib: GLib-2.0 1156s # typelib: GModule-2.0 1156s # Error: 1156s 1..12 1156s ok - glib/gi-inspect-typelib.py.test 1156s # Running test: glib/socket-service.test 1156s TAP version 14 1156s # random seed: R02S3532d0f1362402b824788c7769cf102d 1156s 1..4 1156s # Start of socket-service tests 1156s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ?gio-proxy-resolver? 1156s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xb5ca4a97d130 and GSocketClientAsyncConnectData 0xb5ca4a977bd0 1156s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1156s ok 1 /socket-service/start-stop 1156s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xb5ca4a981110 and GSocketClientAsyncConnectData 0xb5ca4a980db0 1156s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1156s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1156s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xb5ca4a981090 for GSocketClientAsyncConnectData 0xb5ca4a977bd0 1156s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1156s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1156s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1156s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1156s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1156s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xb5ca4a981090 for GSocketClientAsyncConnectData 0xb5ca4a980db0 1156s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1156s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1156s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1156s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1156s ok 2 /socket-service/read_write_async 1156s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xb5ca4a981110 and GSocketClientAsyncConnectData 0xb5ca4a9850e0 1156s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1156s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1156s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xb5ca4a982cf0 for GSocketClientAsyncConnectData 0xb5ca4a9850e0 1156s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1156s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1156s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1156s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1156s ok 3 /socket-service/read_writev_async 1156s # Start of threaded tests 1156s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=712570 1156s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xb5ca4a982760 and GSocketClientAsyncConnectData 0xb5ca4a980db0 1156s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1156s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1156s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xb5ca4a9809e0 for GSocketClientAsyncConnectData 0xb5ca4a980db0 1156s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1156s ok - glib/socket-service.test 1156s # Running test: glib/gutils-user-database.test 1156s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1156s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1156s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1156s ok 4 /socket-service/threaded/712570 1156s # End of threaded tests 1156s # End of socket-service tests 1156s TAP version 14 1156s # random seed: R02S2db42f8725ff7c1b11505e146b54bbf1 1156s ok - glib/gutils-user-database.test 1156s # Running test: glib/type-flags.test 1156s ok - glib/type-flags.test 1156s 1..1 1156s # Start of gutils tests 1156s ok 1 /gutils/get_user_database_entry 1156s # End of gutils tests 1156s TAP version 14 1156s # random seed: R02Sc7487387c5b6f3f8726a0209cee42954 1156s 1..4 1156s # Start of type tests 1156s # Start of flags tests 1156s ok 1 /type/flags/interface 1156s ok 2 /type/flags/final 1156s # /type/flags/deprecated summary: Test that trying to instantiate a deprecated type results in a warning. 1156s ok 3 /type/flags/deprecated 1156s # Start of final tests 1156s ok 4 /type/flags/final/instance-check 1156s # End of final tests 1156s # End of flags tests 1156s # End of type tests 1156s # Running test: glib/glistmodel.test 1156s TAP version 14 1156s # random seed: R02Sbfe91b3c12d839a5ff00ff7603197c56 1156s 1..18 1156s # Start of glistmodel tests 1156s # Start of store tests 1156s ok 1 /glistmodel/store/properties 1156s ok 2 /glistmodel/store/non-gobjects 1156s ok 3 /glistmodel/store/boundaries 1156s ok 4 /glistmodel/store/refcounts 1156s ok 5 /glistmodel/store/sorted 1156s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=795307 1156s ok - glib/glistmodel.test 1156s # Running test: glib/rec-mutex.test 1156s ok 6 /glistmodel/store/splice-replace-middle 1156s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=795307 1156s ok 7 /glistmodel/store/splice-replace-all 1156s ok 8 /glistmodel/store/splice-noop 1156s ok 9 /glistmodel/store/splice-remove-multiple 1156s ok 10 /glistmodel/store/splice-add-multiple 1156s ok 11 /glistmodel/store/splice-wrong-type 1156s ok 12 /glistmodel/store/item-type 1156s ok 13 /glistmodel/store/remove-all 1156s ok 14 /glistmodel/store/sort 1156s ok 15 /glistmodel/store/get-item-cache 1156s ok 16 /glistmodel/store/items-changed 1156s ok 17 /glistmodel/store/past-end 1156s ok 18 /glistmodel/store/find 1156s # End of store tests 1156s # End of glistmodel tests 1156s TAP version 14 1156s # random seed: R02S8992f284d7b47ded4a616a5586831a72 1156s 1..29 1156s # Start of thread tests 1156s ok 1 /thread/rec-mutex1 1156s ok 2 /thread/rec-mutex2 1156s ok 3 /thread/rec-mutex3 1157s # Executing: glib/rec-mutex.test 1157s ok 4 /thread/rec-mutex4 1157s # Start of rec-mutex tests 1157s # Start of perf tests 1157s # Start of uncontended tests 1157s # max perf: inf mips 1157s ok 5 /thread/rec-mutex/perf/uncontended/depth1 1157s # max perf: 1.000000 mips 1157s ok 6 /thread/rec-mutex/perf/uncontended/depth2 1157s # max perf: 0.333333 mips 1157s ok 7 /thread/rec-mutex/perf/uncontended/depth3 1157s # max perf: inf mips 1157s ok 8 /thread/rec-mutex/perf/uncontended/depth4 1157s # max perf: inf mips 1157s ok 9 /thread/rec-mutex/perf/uncontended/depth5 1157s # End of uncontended tests 1157s # Start of contended1 tests 1157s # max perf: inf mips 1157s ok 10 /thread/rec-mutex/perf/contended1/depth1 1157s # max perf: inf mips 1157s ok 11 /thread/rec-mutex/perf/contended1/depth2 1157s # max perf: inf mips 1157s ok 12 /thread/rec-mutex/perf/contended1/depth3 1157s # max perf: inf mips 1157s ok 13 /thread/rec-mutex/perf/contended1/depth4 1157s # max perf: 2.000000 mips 1157s ok 14 /thread/rec-mutex/perf/contended1/depth5 1157s # End of contended1 tests 1157s # Start of contended2 tests 1157s # max perf: 3.000000 mips 1157s ok 15 /thread/rec-mutex/perf/contended2/depth1 1157s # max perf: 3.000000 mips 1157s ok 16 /thread/rec-mutex/perf/contended2/depth2 1157s # max perf: inf mips 1157s ok 17 /thread/rec-mutex/perf/contended2/depth3 1157s # max perf: 3.000000 mips 1157s ok 18 /thread/rec-mutex/perf/contended2/depth4 1157s # max perf: inf mips 1157s ok 19 /thread/rec-mutex/perf/contended2/depth5 1157s # End of contended2 tests 1157s # Start of contended3 tests 1157s # max perf: inf mips 1157s ok 20 /thread/rec-mutex/perf/contended3/depth1 1157s # max perf: 4.000000 mips 1157s ok 21 /thread/rec-mutex/perf/contended3/depth2 1157s # max perf: inf mips 1157s ok 22 /thread/rec-mutex/perf/contended3/depth3 1157s # max perf: 4.000000 mips 1157s ok 23 /thread/rec-mutex/perf/contended3/depth4 1157s # max perf: inf mips 1157s ok 24 /thread/rec-mutex/perf/contended3/depth5 1157s # End of contended3 tests 1157s # Start of contended4 tests 1157s # max perf: 5.000000 mips 1157s ok 25 /thread/rec-mutex/perf/contended4/depth1 1157s # max perf: 5.000000 mips 1157s ok 26 /thread/rec-mutex/perf/contended4/depth2 1157s # max perf: 5.000000 mips 1157s ok 27 /thread/rec-mutex/perf/contended4/depth3 1157s # max perf: inf mips 1157s ok 28 /thread/rec-mutex/perf/contended4/depth4 1157s # max perf: 5.000000 mips 1157s ok 29 /thread/rec-mutex/perf/contended4/depth5 1157s # End of contended4 tests 1157s # End of perf tests 1157s # End of rec-mutex tests 1157s # End of thread tests 1157s ok - glib/rec-mutex.test 1157s # Running test: glib/resolver-parsing.test 1157s TAP version 14 1157s # random seed: R02S8b1dbf5b21d364ca4c9399778a75fb81 1157s 1..21 1157s # Start of gresolver tests 1157s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_447W52/gresolver/invalid-header/.dirs/home 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_447W52/gresolver/invalid-header/.dirs/cache 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_447W52/gresolver/invalid-header/.dirs/system-config1:/tmp/test_resolver-parsing_447W52/gresolver/invalid-header/.dirs/system-config2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_447W52/gresolver/invalid-header/.dirs/config 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_447W52/gresolver/invalid-header/.dirs/system-data1:/tmp/test_resolver-parsing_447W52/gresolver/invalid-header/.dirs/system-data2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_447W52/gresolver/invalid-header/.dirs/data 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_447W52/gresolver/invalid-header/.dirs/state 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_447W52/gresolver/invalid-header/.dirs/runtime 1157s ok 1 /gresolver/invalid-header 1157s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_447W52/gresolver/record-ownership/.dirs/home 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_447W52/gresolver/record-ownership/.dirs/cache 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_447W52/gresolver/record-ownership/.dirs/system-config1:/tmp/test_resolver-parsing_447W52/gresolver/record-ownership/.dirs/system-config2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_447W52/gresolver/record-ownership/.dirs/config 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_447W52/gresolver/record-ownership/.dirs/system-data1:/tmp/test_resolver-parsing_447W52/gresolver/record-ownership/.dirs/system-data2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_447W52/gresolver/record-ownership/.dirs/data 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_447W52/gresolver/record-ownership/.dirs/state 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_447W52/gresolver/record-ownership/.dirs/runtime 1157s ok 2 /gresolver/record-ownership 1157s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_447W52/gresolver/unknown-record-type/.dirs/home 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_447W52/gresolver/unknown-record-type/.dirs/cache 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_447W52/gresolver/unknown-record-type/.dirs/system-config1:/tmp/test_resolver-parsing_447W52/gresolver/unknown-record-type/.dirs/system-config2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_447W52/gresolver/unknown-record-type/.dirs/config 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_447W52/gresolver/unknown-record-type/.dirs/system-data1:/tmp/test_resolver-parsing_447W52/gresolver/unknown-record-type/.dirs/system-data2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_447W52/gresolver/unknown-record-type/.dirs/data 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_447W52/gresolver/unknown-record-type/.dirs/state 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_447W52/gresolver/unknown-record-type/.dirs/runtime 1157s # GLib-GIO-DEBUG: Unrecognized DNS record type 20 1157s ok 3 /gresolver/unknown-record-type 1157s # Start of mx tests 1157s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_447W52/gresolver/mx/valid/.dirs/home 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_447W52/gresolver/mx/valid/.dirs/cache 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_447W52/gresolver/mx/valid/.dirs/system-config1:/tmp/test_resolver-parsing_447W52/gresolver/mx/valid/.dirs/system-config2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_447W52/gresolver/mx/valid/.dirs/config 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_447W52/gresolver/mx/valid/.dirs/system-data1:/tmp/test_resolver-parsing_447W52/gresolver/mx/valid/.dirs/system-data2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_447W52/gresolver/mx/valid/.dirs/data 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_447W52/gresolver/mx/valid/.dirs/state 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_447W52/gresolver/mx/valid/.dirs/runtime 1157s ok 4 /gresolver/mx/valid 1157s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_447W52/gresolver/mx/invalid/.dirs/home 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_447W52/gresolver/mx/invalid/.dirs/cache 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_447W52/gresolver/mx/invalid/.dirs/system-config1:/tmp/test_resolver-parsing_447W52/gresolver/mx/invalid/.dirs/system-config2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_447W52/gresolver/mx/invalid/.dirs/config 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_447W52/gresolver/mx/invalid/.dirs/system-data1:/tmp/test_resolver-parsing_447W52/gresolver/mx/invalid/.dirs/system-data2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_447W52/gresolver/mx/invalid/.dirs/data 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_447W52/gresolver/mx/invalid/.dirs/state 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_447W52/gresolver/mx/invalid/.dirs/runtime 1157s ok 5 /gresolver/mx/invalid 1157s # Start of invalid tests 1157s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_447W52/gresolver/mx/invalid/too-short/.dirs/home 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_447W52/gresolver/mx/invalid/too-short/.dirs/cache 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_447W52/gresolver/mx/invalid/too-short/.dirs/system-config1:/tmp/test_resolver-parsing_447W52/gresolver/mx/invalid/too-short/.dirs/system-config2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_447W52/gresolver/mx/invalid/too-short/.dirs/config 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_447W52/gresolver/mx/invalid/too-short/.dirs/system-data1:/tmp/test_resolver-parsing_447W52/gresolver/mx/invalid/too-short/.dirs/system-data2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_447W52/gresolver/mx/invalid/too-short/.dirs/data 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_447W52/gresolver/mx/invalid/too-short/.dirs/state 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_447W52/gresolver/mx/invalid/too-short/.dirs/runtime 1157s ok 6 /gresolver/mx/invalid/too-short 1157s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_447W52/gresolver/mx/invalid/too-short2/.dirs/home 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_447W52/gresolver/mx/invalid/too-short2/.dirs/cache 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_447W52/gresolver/mx/invalid/too-short2/.dirs/system-config1:/tmp/test_resolver-parsing_447W52/gresolver/mx/invalid/too-short2/.dirs/system-config2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_447W52/gresolver/mx/invalid/too-short2/.dirs/config 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_447W52/gresolver/mx/invalid/too-short2/.dirs/system-data1:/tmp/test_resolver-parsing_447W52/gresolver/mx/invalid/too-short2/.dirs/system-data2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_447W52/gresolver/mx/invalid/too-short2/.dirs/data 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_447W52/gresolver/mx/invalid/too-short2/.dirs/state 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_447W52/gresolver/mx/invalid/too-short2/.dirs/runtime 1157s ok 7 /gresolver/mx/invalid/too-short2 1157s # End of invalid tests 1157s # End of mx tests 1157s # Start of ns tests 1157s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_447W52/gresolver/ns/valid/.dirs/home 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_447W52/gresolver/ns/valid/.dirs/cache 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_447W52/gresolver/ns/valid/.dirs/system-config1:/tmp/test_resolver-parsing_447W52/gresolver/ns/valid/.dirs/system-config2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_447W52/gresolver/ns/valid/.dirs/config 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_447W52/gresolver/ns/valid/.dirs/system-data1:/tmp/test_resolver-parsing_447W52/gresolver/ns/valid/.dirs/system-data2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_447W52/gresolver/ns/valid/.dirs/data 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_447W52/gresolver/ns/valid/.dirs/state 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_447W52/gresolver/ns/valid/.dirs/runtime 1157s ok 8 /gresolver/ns/valid 1157s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_447W52/gresolver/ns/invalid/.dirs/home 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_447W52/gresolver/ns/invalid/.dirs/cache 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_447W52/gresolver/ns/invalid/.dirs/system-config1:/tmp/test_resolver-parsing_447W52/gresolver/ns/invalid/.dirs/system-config2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_447W52/gresolver/ns/invalid/.dirs/config 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_447W52/gresolver/ns/invalid/.dirs/system-data1:/tmp/test_resolver-parsing_447W52/gresolver/ns/invalid/.dirs/system-data2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_447W52/gresolver/ns/invalid/.dirs/data 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_447W52/gresolver/ns/invalid/.dirs/state 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_447W52/gresolver/ns/invalid/.dirs/runtime 1157s ok 9 /gresolver/ns/invalid 1157s # End of ns tests 1157s # Start of soa tests 1157s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_447W52/gresolver/soa/valid/.dirs/home 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_447W52/gresolver/soa/valid/.dirs/cache 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_447W52/gresolver/soa/valid/.dirs/system-config1:/tmp/test_resolver-parsing_447W52/gresolver/soa/valid/.dirs/system-config2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_447W52/gresolver/soa/valid/.dirs/config 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_447W52/gresolver/soa/valid/.dirs/system-data1:/tmp/test_resolver-parsing_447W52/gresolver/soa/valid/.dirs/system-data2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_447W52/gresolver/soa/valid/.dirs/data 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_447W52/gresolver/soa/valid/.dirs/state 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_447W52/gresolver/soa/valid/.dirs/runtime 1157s ok 10 /gresolver/soa/valid 1157s # Start of invalid tests 1157s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_447W52/gresolver/soa/invalid/mname/.dirs/home 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_447W52/gresolver/soa/invalid/mname/.dirs/cache 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_447W52/gresolver/soa/invalid/mname/.dirs/system-config1:/tmp/test_resolver-parsing_447W52/gresolver/soa/invalid/mname/.dirs/system-config2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_447W52/gresolver/soa/invalid/mname/.dirs/config 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_447W52/gresolver/soa/invalid/mname/.dirs/system-data1:/tmp/test_resolver-parsing_447W52/gresolver/soa/invalid/mname/.dirs/system-data2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_447W52/gresolver/soa/invalid/mname/.dirs/data 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_447W52/gresolver/soa/invalid/mname/.dirs/state 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_447W52/gresolver/soa/invalid/mname/.dirs/runtime 1157s ok 11 /gresolver/soa/invalid/mname 1157s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_447W52/gresolver/soa/invalid/rname/.dirs/home 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_447W52/gresolver/soa/invalid/rname/.dirs/cache 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_447W52/gresolver/soa/invalid/rname/.dirs/system-config1:/tmp/test_resolver-parsing_447W52/gresolver/soa/invalid/rname/.dirs/system-config2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_447W52/gresolver/soa/invalid/rname/.dirs/config 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_447W52/gresolver/soa/invalid/rname/.dirs/system-data1:/tmp/test_resolver-parsing_447W52/gresolver/soa/invalid/rname/.dirs/system-data2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_447W52/gresolver/soa/invalid/rname/.dirs/data 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_447W52/gresolver/soa/invalid/rname/.dirs/state 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_447W52/gresolver/soa/invalid/rname/.dirs/runtime 1157s ok 12 /gresolver/soa/invalid/rname 1157s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_447W52/gresolver/soa/invalid/too-short/.dirs/home 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_447W52/gresolver/soa/invalid/too-short/.dirs/cache 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_447W52/gresolver/soa/invalid/too-short/.dirs/system-config1:/tmp/test_resolver-parsing_447W52/gresolver/soa/invalid/too-short/.dirs/system-config2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_447W52/gresolver/soa/invalid/too-short/.dirs/config 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_447W52/gresolver/soa/invalid/too-short/.dirs/system-data1:/tmp/test_resolver-parsing_447W52/gresolver/soa/invalid/too-short/.dirs/system-data2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_447W52/gresolver/soa/invalid/too-short/.dirs/data 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_447W52/gresolver/soa/invalid/too-short/.dirs/state 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_447W52/gresolver/soa/invalid/too-short/.dirs/runtime 1157s ok 13 /gresolver/soa/invalid/too-short 1157s # End of invalid tests 1157s # End of soa tests 1157s # Start of srv tests 1157s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_447W52/gresolver/srv/valid/.dirs/home 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_447W52/gresolver/srv/valid/.dirs/cache 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_447W52/gresolver/srv/valid/.dirs/system-config1:/tmp/test_resolver-parsing_447W52/gresolver/srv/valid/.dirs/system-config2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_447W52/gresolver/srv/valid/.dirs/config 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_447W52/gresolver/srv/valid/.dirs/system-data1:/tmp/test_resolver-parsing_447W52/gresolver/srv/valid/.dirs/system-data2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_447W52/gresolver/srv/valid/.dirs/data 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_447W52/gresolver/srv/valid/.dirs/state 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_447W52/gresolver/srv/valid/.dirs/runtime 1157s ok 14 /gresolver/srv/valid 1157s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_447W52/gresolver/srv/invalid/.dirs/home 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_447W52/gresolver/srv/invalid/.dirs/cache 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_447W52/gresolver/srv/invalid/.dirs/system-config1:/tmp/test_resolver-parsing_447W52/gresolver/srv/invalid/.dirs/system-config2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_447W52/gresolver/srv/invalid/.dirs/config 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_447W52/gresolver/srv/invalid/.dirs/system-data1:/tmp/test_resolver-parsing_447W52/gresolver/srv/invalid/.dirs/system-data2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_447W52/gresolver/srv/invalid/.dirs/data 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_447W52/gresolver/srv/invalid/.dirs/state 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_447W52/gresolver/srv/invalid/.dirs/runtime 1157s ok 15 /gresolver/srv/invalid 1157s # Start of invalid tests 1157s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_447W52/gresolver/srv/invalid/too-short/.dirs/home 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_447W52/gresolver/srv/invalid/too-short/.dirs/cache 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_447W52/gresolver/srv/invalid/too-short/.dirs/system-config1:/tmp/test_resolver-parsing_447W52/gresolver/srv/invalid/too-short/.dirs/system-config2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_447W52/gresolver/srv/invalid/too-short/.dirs/config 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_447W52/gresolver/srv/invalid/too-short/.dirs/system-data1:/tmp/test_resolver-parsing_447W52/gresolver/srv/invalid/too-short/.dirs/system-data2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_447W52/gresolver/srv/invalid/too-short/.dirs/data 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_447W52/gresolver/srv/invalid/too-short/.dirs/state 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_447W52/gresolver/srv/invalid/too-short/.dirs/runtime 1157s ok 16 /gresolver/srv/invalid/too-short 1157s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_447W52/gresolver/srv/invalid/too-short2/.dirs/home 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_447W52/gresolver/srv/invalid/too-short2/.dirs/cache 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_447W52/gresolver/srv/invalid/too-short2/.dirs/system-config1:/tmp/test_resolver-parsing_447W52/gresolver/srv/invalid/too-short2/.dirs/system-config2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_447W52/gresolver/srv/invalid/too-short2/.dirs/config 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_447W52/gresolver/srv/invalid/too-short2/.dirs/system-data1:/tmp/test_resolver-parsing_447W52/gresolver/srv/invalid/too-short2/.dirs/system-data2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_447W52/gresolver/srv/invalid/too-short2/.dirs/data 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_447W52/gresolver/srv/invalid/too-short2/.dirs/state 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_447W52/gresolver/srv/invalid/too-short2/.dirs/runtime 1157s ok 17 /gresolver/srv/invalid/too-short2 1157s # End of invalid tests 1157s # End of srv tests 1157s # Start of txt tests 1157s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_447W52/gresolver/txt/valid/.dirs/home 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_447W52/gresolver/txt/valid/.dirs/cache 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_447W52/gresolver/txt/valid/.dirs/system-config1:/tmp/test_resolver-parsing_447W52/gresolver/txt/valid/.dirs/system-config2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_447W52/gresolver/txt/valid/.dirs/config 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_447W52/gresolver/txt/valid/.dirs/system-data1:/tmp/test_resolver-parsing_447W52/gresolver/txt/valid/.dirs/system-data2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_447W52/gresolver/txt/valid/.dirs/data 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_447W52/gresolver/txt/valid/.dirs/state 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_447W52/gresolver/txt/valid/.dirs/runtime 1157s ok 18 /gresolver/txt/valid 1157s # Start of valid tests 1157s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_447W52/gresolver/txt/valid/multiple-strings/.dirs/home 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_447W52/gresolver/txt/valid/multiple-strings/.dirs/cache 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_447W52/gresolver/txt/valid/multiple-strings/.dirs/system-config1:/tmp/test_resolver-parsing_447W52/gresolver/txt/valid/multiple-strings/.dirs/system-config2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_447W52/gresolver/txt/valid/multiple-strings/.dirs/config 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_447W52/gresolver/txt/valid/multiple-strings/.dirs/system-data1:/tmp/test_resolver-parsing_447W52/gresolver/txt/valid/multiple-strings/.dirs/system-data2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_447W52/gresolver/txt/valid/multiple-strings/.dirs/data 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_447W52/gresolver/txt/valid/multiple-strings/.dirs/state 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_447W52/gresolver/txt/valid/multiple-strings/.dirs/runtime 1157s ok 19 /gresolver/txt/valid/multiple-strings 1157s # End of valid tests 1157s # Start of invalid tests 1157s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_447W52/gresolver/txt/invalid/empty/.dirs/home 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_447W52/gresolver/txt/invalid/empty/.dirs/cache 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_447W52/gresolver/txt/invalid/empty/.dirs/system-config1:/tmp/test_resolver-parsing_447W52/gresolver/txt/invalid/empty/.dirs/system-config2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_447W52/gresolver/txt/invalid/empty/.dirs/config 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_447W52/gresolver/txt/invalid/empty/.dirs/system-data1:/tmp/test_resolver-parsing_447W52/gresolver/txt/invalid/empty/.dirs/system-data2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_447W52/gresolver/txt/invalid/empty/.dirs/data 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_447W52/gresolver/txt/invalid/empty/.dirs/state 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_447W52/gresolver/txt/invalid/empty/.dirs/runtime 1157s ok 20 /gresolver/txt/invalid/empty 1157s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_447W52/gresolver/txt/invalid/overflow/.dirs/home 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_447W52/gresolver/txt/invalid/overflow/.dirs/cache 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_447W52/gresolver/txt/invalid/overflow/.dirs/system-config1:/tmp/test_resolver-parsing_447W52/gresolver/txt/invalid/overflow/.dirs/system-config2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_447W52/gresolver/txt/invalid/overflow/.dirs/config 1157s ok - glib/resolver-parsing.test 1157s # Running test: glib/power-profile-monitor-dbus.test 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_447W52/gresolver/txt/invalid/overflow/.dirs/system-data1:/tmp/test_resolver-parsing_447W52/gresolver/txt/invalid/overflow/.dirs/system-data2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_447W52/gresolver/txt/invalid/overflow/.dirs/data 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_447W52/gresolver/txt/invalid/overflow/.dirs/state 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_447W52/gresolver/txt/invalid/overflow/.dirs/runtime 1157s ok 21 /gresolver/txt/invalid/overflow 1157s # End of invalid tests 1157s # End of txt tests 1157s # End of gresolver tests 1157s TAP version 13 1157s ok 1 __main__.TestPowerProfileMonitor.test_power_profile_power_saver_enabled 1157s 1..1 1157s ok - glib/power-profile-monitor-dbus.test 1157s # Running test: glib/atomic-c-17.test 1157s TAP version 14 1157s # random seed: R02Sfd2135cb66b8a32fb126d8df46564df5 1157s 1..2 1157s # Start of atomic tests 1157s ok 1 /atomic/types 1157s ok - glib/atomic-c-17.test 1157s ok 2 /atomic/threaded 1157s # End of atomic tests 1157s # Running test: glib/simple-async-result.test 1157s TAP version 14 1157s # random seed: R02S5383a4d127cd359a00bebd9293fd5f5f 1157s 1..2 1157s # Start of gio tests 1157s # Start of simple-async-result tests 1157s ok 1 /gio/simple-async-result/test 1157s # GLib-GIO-DEBUG: GTask 0xabfbc52d4050 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1157s ok 2 /gio/simple-async-result/valid 1157s # End of simple-async-result tests 1157s # End of gio tests 1157s ok - glib/simple-async-result.test 1157s # Running test: glib/gdbus-test-codegen-old.test 1157s TAP version 14 1157s # random seed: R02S9695295272b18ae2a5b498f1d994fbd1 1157s 1..8 1157s # Start of gdbus tests 1157s # Start of codegen tests 1157s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/annotations/.dirs/home 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/annotations/.dirs/cache 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/annotations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/annotations/.dirs/system-config2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/annotations/.dirs/config 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/annotations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/annotations/.dirs/system-data2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/annotations/.dirs/data 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/annotations/.dirs/state 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/annotations/.dirs/runtime 1157s ok 1 /gdbus/codegen/annotations 1157s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/interface_stability/.dirs/home 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/interface_stability/.dirs/cache 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/interface_stability/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/interface_stability/.dirs/system-config2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/interface_stability/.dirs/config 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/interface_stability/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/interface_stability/.dirs/system-data2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/interface_stability/.dirs/data 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/interface_stability/.dirs/state 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/interface_stability/.dirs/runtime 1157s ok 2 /gdbus/codegen/interface_stability 1157s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/object-manager/.dirs/home 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/object-manager/.dirs/cache 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/object-manager/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/object-manager/.dirs/system-config2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/object-manager/.dirs/config 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/object-manager/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/object-manager/.dirs/system-data2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/object-manager/.dirs/data 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/object-manager/.dirs/state 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/object-manager/.dirs/runtime 1157s ok 3 /gdbus/codegen/object-manager 1157s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/property-naming/.dirs/home 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/property-naming/.dirs/cache 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/property-naming/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/property-naming/.dirs/system-config2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/property-naming/.dirs/config 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/property-naming/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/property-naming/.dirs/system-data2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/property-naming/.dirs/data 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/property-naming/.dirs/state 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/property-naming/.dirs/runtime 1157s ok 4 /gdbus/codegen/property-naming 1157s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/autocleanups/.dirs/home 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/autocleanups/.dirs/cache 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/autocleanups/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/autocleanups/.dirs/system-config2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/autocleanups/.dirs/config 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/autocleanups/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/autocleanups/.dirs/system-data2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/autocleanups/.dirs/data 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/autocleanups/.dirs/state 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/autocleanups/.dirs/runtime 1157s ok 5 /gdbus/codegen/autocleanups 1157s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/deprecations/.dirs/home 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/deprecations/.dirs/cache 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/deprecations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/deprecations/.dirs/system-config2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/deprecations/.dirs/config 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/deprecations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/deprecations/.dirs/system-data2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/deprecations/.dirs/data 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/deprecations/.dirs/state 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/deprecations/.dirs/runtime 1157s ok 6 /gdbus/codegen/deprecations 1157s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/standalone-interface-info/.dirs/home 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/standalone-interface-info/.dirs/cache 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/standalone-interface-info/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/standalone-interface-info/.dirs/system-config2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/standalone-interface-info/.dirs/config 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/standalone-interface-info/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/standalone-interface-info/.dirs/system-data2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/standalone-interface-info/.dirs/data 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/standalone-interface-info/.dirs/state 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/standalone-interface-info/.dirs/runtime 1157s ok 7 /gdbus/codegen/standalone-interface-info 1157s ok - glib/gdbus-test-codegen-old.test 1157s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/unix-fd-list/.dirs/home 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/unix-fd-list/.dirs/cache 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/unix-fd-list/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/unix-fd-list/.dirs/system-config2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/unix-fd-list/.dirs/config 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/unix-fd-list/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/unix-fd-list/.dirs/system-data2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/unix-fd-list/.dirs/data 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/unix-fd-list/.dirs/state 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_NVAV52/gdbus/codegen/unix-fd-list/.dirs/runtime 1157s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1726 1157s ok 8 /gdbus/codegen/unix-fd-list 1157s # End of codegen tests 1157s # End of gdbus tests 1157s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1157s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1157s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1157s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1157s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1157s # Running test: glib/guuid.test 1157s ok - glib/guuid.test 1157s TAP version 14 1157s # random seed: R02Sd0ab8d6aa131a63107a193588836edfd 1157s 1..2 1157s # Start of uuid tests 1157s ok 1 /uuid/string 1157s ok 2 /uuid/random 1157s # End of uuid tests 1157s # Running test: glib/base64.test 1157s TAP version 14 1157s # random seed: R02S1016d44c6eecee22420de9675ffee888 1157s 1..28 1157s # Start of base64 tests 1157s ok 1 /base64/encode 1157s ok 2 /base64/decode 1157s ok 3 /base64/decode-inplace 1157s ok 4 /base64/encode-decode 1157s # Start of full tests 1157s ok 5 /base64/full/1 1157s ok 6 /base64/full/2 1157s ok 7 /base64/full/3 1157s ok 8 /base64/full/4 1157s # End of full tests 1157s # Start of encode tests 1157s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1698 1157s ok 9 /base64/encode/empty 1157s # Start of incremental tests 1157s # Start of small-block tests 1157s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 1157s ok 10 /base64/encode/incremental/small-block/1 1157s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 1157s ok 11 /base64/encode/incremental/small-block/2 1157s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 1157s ok 12 /base64/encode/incremental/small-block/3 1157s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 1157s ok 13 /base64/encode/incremental/small-block/4 1157s # End of small-block tests 1157s # End of incremental tests 1157s # End of encode tests 1157s # Start of incremental tests 1157s # Start of nobreak tests 1157s ok 14 /base64/incremental/nobreak/1 1157s ok 15 /base64/incremental/nobreak/2 1157s ok 16 /base64/incremental/nobreak/3 1157s ok 17 /base64/incremental/nobreak/4-a 1157s ok 18 /base64/incremental/nobreak/4-b 1157s ok 19 /base64/incremental/nobreak/4-c 1157s # End of nobreak tests 1157s # Start of break tests 1157s ok 20 /base64/incremental/break/1 1157s ok 21 /base64/incremental/break/2 1157s ok 22 /base64/incremental/break/3 1157s # End of break tests 1157s # Start of smallblock tests 1157s ok 23 /base64/incremental/smallblock/1 1157s ok 24 /base64/incremental/smallblock/2 1157s ok 25 /base64/incremental/smallblock/3 1157s ok 26 /base64/incremental/smallblock/4 1157s # End of smallblock tests 1157s # End of incremental tests 1157s # Start of decode tests 1157s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1698 1157s ok 27 /base64/decode/empty 1157s # End of decode tests 1157s # Start of encode-decode tests 1157s # Vector 0: 1157s # Vector 1: f 1157s # Vector 2: fo 1157s # Vector 3: foo 1157s # Vector 4: foob 1157s # Vector 5: fooba 1157s # Vector 6: foobar 1157s ok 28 /base64/encode-decode/rfc4648 1157s # End of encode-decode tests 1157s # End of base64 tests 1157s ok - glib/base64.test 1157s # Running test: glib/references.test 1157s TAP version 14 1157s # random seed: R02S08a51c5320499d3d03a08295d0b5de36 1157s 1..1 1157s # Start of gobject tests 1157s ok 1 /gobject/references 1157s # End of gobject tests 1157s ok - glib/references.test 1157s # Running test: glib/gdbus-server-auth.test 1157s TAP version 14 1157s # random seed: R02S49cbfdba4a1cf5574fae3e497ffc2097 1157s 1..9 1157s # Start of gdbus tests 1157s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/.dirs/home 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/.dirs/cache 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/.dirs/system-config1:/tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/.dirs/system-config2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/.dirs/config 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/.dirs/system-data1:/tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/.dirs/system-data2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/.dirs/data 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/.dirs/state 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/.dirs/runtime 1157s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_KLJ952/gdbus-server-auth-PWJ952 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:false 1157s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_KLJ952/gdbus-server-auth-PWJ952/dbus-vAg7L5NJ 1157s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1157s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1157s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1157s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1157s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1157s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1157s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1157s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1157s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1157s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1157s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1157s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1157s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1157s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1157s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1157s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1157s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1157s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1157s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1157s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1157s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1157s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1157s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1157s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1157s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1157s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1157s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1157s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1157s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1157s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1157s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1157s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1157s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1157s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1157s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1157s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1157s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1157s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1157s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1157s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1157s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1157s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1157s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 9298 1157s ok 1 /gdbus/server-auth 1157s # Start of server-auth tests 1157s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/abstract/.dirs/home 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/abstract/.dirs/cache 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/abstract/.dirs/system-config1:/tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/abstract/.dirs/system-config2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/abstract/.dirs/config 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/abstract/.dirs/system-data1:/tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/abstract/.dirs/system-data2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/abstract/.dirs/data 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/abstract/.dirs/state 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/abstract/.dirs/runtime 1157s # Testing GDBus server at unix:tmpdir=/tmp/test_gdbus-server-auth_KLJ952/gdbus-server-auth-3IU952 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:true tcp:false 1157s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_KLJ952/gdbus-server-auth-3IU952/dbus-N2aeuT8A 1157s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1157s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1157s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1157s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1157s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1157s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1157s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1157s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1157s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1157s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1157s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1157s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1157s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1157s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1157s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1157s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1157s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1157s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1157s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1157s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1157s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1157s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1157s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1157s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1157s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1157s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1157s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1157s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1157s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1157s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1157s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1157s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1157s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1157s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1157s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1157s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1157s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1157s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1157s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1157s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1157s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1157s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1157s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 9298 1157s ok 2 /gdbus/server-auth/abstract 1157s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/tcp/.dirs/home 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/tcp/.dirs/cache 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/tcp/.dirs/system-config2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/tcp/.dirs/config 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/tcp/.dirs/system-data2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/tcp/.dirs/data 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/tcp/.dirs/state 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/tcp/.dirs/runtime 1157s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:true 1157s ok 3 /gdbus/server-auth/tcp # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 1157s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/anonymous/.dirs/home 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/anonymous/.dirs/cache 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/anonymous/.dirs/system-config1:/tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/anonymous/.dirs/system-config2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/anonymous/.dirs/config 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/anonymous/.dirs/system-data1:/tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/anonymous/.dirs/system-data2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/anonymous/.dirs/data 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/anonymous/.dirs/state 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/anonymous/.dirs/runtime 1157s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_KLJ952/gdbus-server-auth-AFU852 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:false 1157s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_KLJ952/gdbus-server-auth-AFU852/dbus-YAND2o0f 1157s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1157s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1157s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1157s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1157s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1157s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1157s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1157s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1157s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1157s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1157s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1157s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1157s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1157s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1157s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1157s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1157s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1157s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1157s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1157s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1157s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1157s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 9298 1157s ok 4 /gdbus/server-auth/anonymous 1157s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/external/.dirs/home 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/external/.dirs/cache 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/external/.dirs/system-config1:/tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/external/.dirs/system-config2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/external/.dirs/config 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/external/.dirs/system-data1:/tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/external/.dirs/system-data2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/external/.dirs/data 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/external/.dirs/state 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/external/.dirs/runtime 1157s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_KLJ952/gdbus-server-auth-OGC952 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 1157s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_KLJ952/gdbus-server-auth-OGC952/dbus-6YT3hh2a 1157s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 9298 1157s ok 5 /gdbus/server-auth/external 1157s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/sha1/.dirs/home 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/sha1/.dirs/cache 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/sha1/.dirs/system-config1:/tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/sha1/.dirs/system-config2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/sha1/.dirs/config 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/sha1/.dirs/system-data1:/tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/sha1/.dirs/system-data2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/sha1/.dirs/data 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/sha1/.dirs/state 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/sha1/.dirs/runtime 1157s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_KLJ952/gdbus-server-auth-1F8A62 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:false 1157s ok 6 /gdbus/server-auth/sha1 # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 1157s # Start of anonymous tests 1157s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/anonymous/tcp/.dirs/home 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/anonymous/tcp/.dirs/cache 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/anonymous/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/anonymous/tcp/.dirs/system-config2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/anonymous/tcp/.dirs/config 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/anonymous/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/anonymous/tcp/.dirs/system-data2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/anonymous/tcp/.dirs/data 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/anonymous/tcp/.dirs/state 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/anonymous/tcp/.dirs/runtime 1157s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:true 1157s ok 7 /gdbus/server-auth/anonymous/tcp # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 1157s # End of anonymous tests 1157s # Start of external tests 1157s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/external/require-same-user/.dirs/home 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/external/require-same-user/.dirs/cache 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/external/require-same-user/.dirs/system-config1:/tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/external/require-same-user/.dirs/system-config2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/external/require-same-user/.dirs/config 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/external/require-same-user/.dirs/system-data1:/tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/external/require-same-user/.dirs/system-data2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/external/require-same-user/.dirs/data 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/external/require-same-user/.dirs/state 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/external/require-same-user/.dirs/runtime 1157s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_KLJ952/gdbus-server-auth-RT8A62 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 1157s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_KLJ952/gdbus-server-auth-RT8A62/dbus-16b9bf8q 1157s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s ok - glib/gdbus-server-auth.test 1157s # Running test: glib/asyncqueue.test 1157s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 9298 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1157s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1157s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9298,uid=1000,gid=1000 1157s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 9298 1157s ok 8 /gdbus/server-auth/external/require-same-user 1157s # End of external tests 1157s # Start of sha1 tests 1157s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/sha1/tcp/.dirs/home 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/sha1/tcp/.dirs/cache 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/sha1/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/sha1/tcp/.dirs/system-config2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/sha1/tcp/.dirs/config 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/sha1/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/sha1/tcp/.dirs/system-data2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/sha1/tcp/.dirs/data 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/sha1/tcp/.dirs/state 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_KLJ952/gdbus/server-auth/sha1/tcp/.dirs/runtime 1157s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:true 1157s ok 9 /gdbus/server-auth/sha1/tcp # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 1157s # End of sha1 tests 1157s # End of server-auth tests 1157s # End of gdbus tests 1157s TAP version 14 1157s # random seed: R02S06657a45310bbd9d91bc982b2d006527 1157s 1..7 1157s # Start of asyncqueue tests 1157s ok 1 /asyncqueue/basics 1157s ok 2 /asyncqueue/sort 1157s ok 3 /asyncqueue/destroy 1157s ok 4 /asyncqueue/threads 1158s ok 5 /asyncqueue/timed 1158s ok - glib/asyncqueue.test 1158s ok 6 /asyncqueue/remove 1158s ok 7 /asyncqueue/push_front 1158s # End of asyncqueue tests 1158s # Running test: glib/testing.test 1158s TAP version 14 1158s # random seed: R02S3153f21f275deed6ff57af442ba47ace 1158s 1..1 1158s # Start of assert tests 1158s ok 1 /assert/finalize_object 1158s # Start of finalize_object tests 1158s # Start of subprocess tests 1158s # End of subprocess tests 1158s # End of finalize_object tests 1158s # End of assert tests 1158s ok - glib/testing.test 1158s # Running test: glib/macros-c-89.test 1158s TAP version 14 1158s # random seed: R02Sbb7ecde8d3072262a4f61df3e4225cc6 1158s 1..4 1158s # Start of C tests 1158s ok 1 /C/standard-89 1158s # End of C tests 1158s # Start of alignof tests 1158s ok 2 /alignof/fallback 1158s # End of alignof tests 1158s # Start of assert tests 1158s ok 3 /assert/static 1158s # End of assert tests 1158s # Start of struct tests 1158s ok 4 /struct/sizeof_member 1158s # End of struct tests 1158s ok - glib/macros-c-89.test 1158s # Running test: glib/timeout.test 1158s TAP version 14 1158s # random seed: R02S932b1f62be03408750a31bfdf41e9a22 1158s 1..5 1158s # Start of timeout tests 1158s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642052 1160s ok 1 /timeout/seconds 1160s # slow test /timeout/seconds executed in 2.10 secs 1162s # Executing: glib/timeout.test 1162s ok 2 /timeout/seconds-once 1162s # slow test /timeout/seconds-once executed in 2.10 secs 1162s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1600 1164s ok 3 /timeout/weeks-overflow 1164s # slow test /timeout/weeks-overflow executed in 2.10 secs 1164s ok 4 /timeout/far-future-ready-time 1167s # Executing: glib/timeout.test 1172s # Executing: glib/timeout.test 1175s ok 5 /timeout/rounding 1175s # slow test /timeout/rounding executed in 10.66 secs 1175s # End of timeout tests 1175s ok - glib/timeout.test 1175s # Running test: glib/mappedfile.test 1175s TAP version 14 1175s # random seed: R02S572b996cdde5ee17be3b11349bd3d5f3 1175s 1..7 1175s # Start of mappedfile tests 1175s ok 1 /mappedfile/basic 1175s ok 2 /mappedfile/empty 1175s ok 3 /mappedfile/device 1175s ok 4 /mappedfile/nonexisting 1175s ok 5 /mappedfile/writable 1175s ok 6 /mappedfile/writable_fd 1175s ok 7 /mappedfile/gbytes 1175s # End of mappedfile tests 1175s ok - glib/mappedfile.test 1175s # Running test: glib/markup.test 1175s TAP version 14 1175s # random seed: R02Sc7cea9e8ea2f6c21cc58839560159a66 1175s 1..1 1175s # Start of markup tests 1175s ok 1 /markup/stack 1175s # End of markup tests 1175s TAP version 14 1175s # random seed: R02S5c31b283d3f9c270ccc009b6024adea0 1175s 1..41 1175s # Start of markup tests 1175s ok 1 /markup/format 1175s # Start of escape-text tests 1175s ok 2 /markup/escape-text/0 1175s ok 3 /markup/escape-text/1 1175s ok 4 /markup/escape-text/2 1175s ok 5 /markup/escape-text/3 1175s ok 6 /markup/escape-text/4 1175s ok 7 /markup/escape-text/5 1175s ok 8 /markup/escape-text/6 1175s ok 9 /markup/escape-text/7 1175s ok 10 /markup/escape-text/8 1175s ok 11 /markup/escape-text/9 1175s ok 12 /markup/escape-text/10 1175s ok 13 /markup/escape-text/11 1175s ok 14 /markup/escape-text/12 1175s ok 15 /markup/escape-text/13 1175s ok 16 /markup/escape-text/14 1175s ok 17 /markup/escape-text/15 1175s ok 18 /markup/escape-text/16 1175s ok 19 /markup/escape-text/17 1175s ok 20 /markup/escape-text/18 1175s ok 21 /markup/escape-text/19 1175s ok 22 /markup/escape-text/20 1175s ok 23 /markup/escape-text/21 1175s ok 24 /markup/escape-text/22 1175s # End of escape-text tests 1175s # Start of escape-unichar tests 1175s ok 25 /markup/escape-unichar/0 1175s ok 26 /markup/escape-unichar/1 1175s ok 27 /markup/escape-unichar/2 1175s ok 28 /markup/escape-unichar/3 1175s ok 29 /markup/escape-unichar/4 1175s ok 30 /markup/escape-unichar/5 1175s ok 31 /markup/escape-unichar/6 1175s ok 32 /markup/escape-unichar/7 1175s ok 33 /markup/escape-unichar/8 1175s ok 34 /markup/escape-unichar/9 1175s ok 35 /markup/escape-unichar/10 1175s ok 36 /markup/escape-unichar/11 1175s ok 37 /markup/escape-unichar/12 1175s ok 38 /markup/escape-unichar/13 1175s ok 39 /markup/escape-unichar/14 1175s ok 40 /markup/escape-unichar/15 1175s ok 41 /markup/escape-unichar/16 1175s # End of escape-unichar tests 1175s # End of markup tests 1175s TAP version 14 1175s # random seed: R02S4578327298c455eb4c731877c7c60fbe 1175s 1..6 1175s # Start of pollable tests 1175s ok 1 /pollable/converter 1175s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ?gio-proxy-resolver? 1175s ok - glib/markup.test 1175s # Running test: glib/markup-escape.test 1175s ok - glib/markup-escape.test 1175s # Running test: glib/pollable.test 1175s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xc5e80e5afad0 and GSocketClientAsyncConnectData 0xc5e80e5abc20 1175s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1175s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1175s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xc5e80e5b4a10 for GSocketClientAsyncConnectData 0xc5e80e5abc20 1175s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1175s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1175s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1175s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1175s ok 2 /pollable/socket 1175s # Start of unix tests 1175s # /pollable/unix/pipe summary: Test that pipes are considered pollable, just like sockets 1175s ok 3 /pollable/unix/pipe 1175s # /pollable/unix/pty summary: Test that PTYs are considered pollable 1175s ok 4 /pollable/unix/pty 1175s # /pollable/unix/file summary: Test that regular files are not considered pollable 1175s ok 5 /pollable/unix/file 1175s # /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 1175s ok 6 /pollable/unix/nulldev 1175s # End of unix tests 1175s # End of pollable tests 1175s TAP version 14 1175s # random seed: R02Sa63a8866982fc18c1b7d4ac0a27b3808 1175s 1..2 1175s # Start of glib tests 1175s # Start of 1bit-mutex tests 1175s ok - glib/pollable.test 1175s # Running test: glib/1bit-mutex.test 1177s # Executing: glib/1bit-mutex.test 1179s ok 1 /glib/1bit-mutex/int 1179s # slow test /glib/1bit-mutex/int executed in 4.67 secs 1182s # Executing: glib/1bit-mutex.test 1184s ok - glib/1bit-mutex.test 1184s ok 2 /glib/1bit-mutex/pointer 1184s # slow test /glib/1bit-mutex/pointer executed in 4.48 secs 1184s # End of 1bit-mutex tests 1184s # End of glib tests 1184s # Running test: glib/gvariant.test 1184s TAP version 14 1184s # random seed: R02S289bd8c378047ed1ccd1117575006854 1184s 1..69 1184s # Start of gvariant tests 1184s ok 1 /gvariant/type 1184s ok 2 /gvariant/typeinfo 1184s ok 3 /gvariant/string 1184s ok 4 /gvariant/utf8 1184s ok 5 /gvariant/utf8-new-strings 1185s ok 6 /gvariant/containers 1185s # slow test /gvariant/containers executed in 0.90 secs 1185s ok 7 /gvariant/format-strings 1185s ok 8 /gvariant/invalid-varargs 1185s ok 9 /gvariant/varargs 1185s ok 10 /gvariant/valist 1185s ok 11 /gvariant/builder-memory 1185s ok 12 /gvariant/hashing 1185s ok 13 /gvariant/byteswap 1185s ok 14 /gvariant/parser 1185s ok 15 /gvariant/parse-failures 1185s ok 16 /gvariant/parse-positional 1185s ok 17 /gvariant/floating 1185s ok 18 /gvariant/bytestring 1185s ok 19 /gvariant/lookup-value 1185s ok 20 /gvariant/lookup 1185s ok 21 /gvariant/compare 1185s ok 22 /gvariant/equal 1185s ok 23 /gvariant/fixed-array 1185s ok 24 /gvariant/check-format-string 1185s ok 25 /gvariant/checksum-basic 1185s ok 26 /gvariant/checksum-nested 1185s ok 27 /gvariant/gbytes 1185s ok 28 /gvariant/print-context 1185s ok 29 /gvariant/error-quark 1185s ok 30 /gvariant/stack-builder-init 1185s ok 31 /gvariant/stack-builder-init-static 1185s ok 32 /gvariant/stack-builder-init-unset 1185s ok 33 /gvariant/stack-dict-init 1185s ok 34 /gvariant/unaligned-construction 1185s # Start of type tests 1185s # Start of string-scan tests 1185s # Start of recursion tests 1185s ok 35 /gvariant/type/string-scan/recursion/tuple 1185s ok 36 /gvariant/type/string-scan/recursion/array 1185s # End of recursion tests 1185s # End of string-scan tests 1185s # End of type tests 1185s # Start of serialiser tests 1185s ok 37 /gvariant/serialiser/maybe 1185s ok 38 /gvariant/serialiser/array 1186s ok 39 /gvariant/serialiser/tuple 1186s ok 40 /gvariant/serialiser/variant 1186s ok 41 /gvariant/serialiser/strings 1187s # Executing: glib/gvariant.test 1191s ok 42 /gvariant/serialiser/byteswap 1191s # slow test /gvariant/serialiser/byteswap executed in 5.65 secs 1191s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1865 1191s # /gvariant/serialiser/children summary: Test that getting a child variant before and after serialisation of the parent works 1191s ok 43 /gvariant/serialiser/children 1191s # Start of byteswap tests 1191s ok 44 /gvariant/serialiser/byteswap/zero-sized 1191s # End of byteswap tests 1191s # Start of fuzz tests 1192s # Executing: glib/gvariant.test 1192s ok 45 /gvariant/serialiser/fuzz/1% 1192s ok 46 /gvariant/serialiser/fuzz/5% 1192s ok 47 /gvariant/serialiser/fuzz/9% 1194s ok 48 /gvariant/serialiser/fuzz/13% 1194s # slow test /gvariant/serialiser/fuzz/13% executed in 2.13 secs 1194s ok 49 /gvariant/serialiser/fuzz/17% 1194s # End of fuzz tests 1194s # End of serialiser tests 1194s # Start of utf8 tests 1194s # Start of subprocess tests 1194s # End of subprocess tests 1194s # End of utf8 tests 1194s # Start of varargs tests 1194s # Start of subprocess tests 1194s # End of subprocess tests 1194s # End of varargs tests 1194s # Start of byteswap tests 1194s # /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. 1194s ok 50 /gvariant/byteswap/non-normal-non-aligned 1194s # End of byteswap tests 1194s # Start of parser tests 1194s ok 51 /gvariant/parser/integer-bounds 1194s ok 52 /gvariant/parser/recursion 1194s # Start of recursion tests 1194s ok 53 /gvariant/parser/recursion/typedecls 1194s # /gvariant/parser/recursion/maybes summary: Test that nested maybes are handled correctly when parsing text-form variants 1194s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2782 1194s # Text form 0: @mmmu 5 1194s # Text form 1: @mmmas ['hello'] 1194s # Text form 2: @mmmu just just nothing 1194s # Text form 3: @mmmas just just nothing 1194s # Text form 4: @mmmu just nothing 1194s # Text form 5: @mmmas just nothing 1194s # Text form 6: @mmmu nothing 1194s # Text form 7: @mmmas nothing 1194s ok 54 /gvariant/parser/recursion/maybes 1194s # End of recursion tests 1194s # End of parser tests 1194s # Start of parse tests 1194s # Start of subprocess tests 1194s # End of subprocess tests 1194s # End of parse tests 1194s # Start of normal-checking tests 1194s ok 55 /gvariant/normal-checking/tuples 1194s ok 56 /gvariant/normal-checking/array-offsets 1194s ok 57 /gvariant/normal-checking/array-offsets2 1194s ok 58 /gvariant/normal-checking/tuple-offsets 1194s ok 59 /gvariant/normal-checking/tuple-offsets2 1194s ok 60 /gvariant/normal-checking/tuple-offsets3 1194s ok 61 /gvariant/normal-checking/tuple-offsets4 1194s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2840 1194s ok 62 /gvariant/normal-checking/tuple-offsets5 1194s ok 63 /gvariant/normal-checking/empty-object-path 1194s # Start of array-offsets tests 1194s ok 64 /gvariant/normal-checking/array-offsets/overlapped 1194s ok 65 /gvariant/normal-checking/array-offsets/minimal-sized 1194s # End of array-offsets tests 1194s # Start of tuple-offsets tests 1194s ok 66 /gvariant/normal-checking/tuple-offsets/minimal-sized 1194s # End of tuple-offsets tests 1194s # End of normal-checking tests 1194s # Start of recursion-limits tests 1194s ok 67 /gvariant/recursion-limits/variant-in-variant 1194s ok 68 /gvariant/recursion-limits/array-in-variant 1194s # End of recursion-limits tests 1194s # End of gvariant tests 1194s # Start of gvarianttype tests 1194s ok 69 /gvarianttype/hash 1194s # End of gvarianttype tests 1194s ok - glib/gvariant.test 1194s # Running test: glib/actions.test 1194s TAP version 14 1194s # random seed: R02S5592083bcd1046d76f71a8dd4ffbbd8d 1194s 1..13 1194s # Start of actions tests 1194s ok 1 /actions/basic 1194s ok 2 /actions/name 1194s ok 3 /actions/simplegroup 1194s ok 4 /actions/stateful 1194s ok 5 /actions/default-activate 1194s ok 6 /actions/entries 1194s ok 7 /actions/parse-detailed 1194s ok 8 /actions/property 1194s ok 9 /actions/no-properties 1194s # Start of dbus tests 1194s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1194s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1194s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1194s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1194s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1194s ok 10 /actions/dbus/export 1194s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1194s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1194s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1194s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1194s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1194s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1196s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1196s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1196s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1196s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1196s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1196s ok 11 /actions/dbus/threaded 1196s # slow test /actions/dbus/threaded executed in 1.25 secs 1196s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1196s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1196s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1196s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1196s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1196s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1196s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1196s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1196s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1196s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1196s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1196s ok 12 /actions/dbus/bug679509 1196s # Start of export tests 1196s # /actions/dbus/export/error-handling summary: Test that error handling of action group export failure works 1196s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3366 1196s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1196s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1196s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1196s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1196s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1196s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1196s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1196s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1196s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1196s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1196s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1196s ok 13 /actions/dbus/export/error-handling 1196s # End of export tests 1196s # End of dbus tests 1196s # End of actions tests 1196s ok - glib/actions.test 1196s # Running test: glib/buffered-output-stream.test 1196s TAP version 14 1196s # random seed: R02Sdd680077c059c17bed0a105f9d0fd0b8 1196s 1..5 1196s # Start of buffered-output-stream tests 1196s ok 1 /buffered-output-stream/write 1196s ok 2 /buffered-output-stream/grow 1196s ok 3 /buffered-output-stream/seek 1196s ok 4 /buffered-output-stream/truncate 1196s # End of buffered-output-stream tests 1196s # Start of filter-output-stream tests 1196s ok 5 /filter-output-stream/close 1196s # End of filter-output-stream tests 1196s ok - glib/buffered-output-stream.test 1196s # Running test: glib/dir.test 1196s ok - glib/dir.test 1196s TAP version 14 1196s # random seed: R02Sb493923438dd797dd9acfa03b2d553b0 1196s 1..3 1196s # Start of dir tests 1196s ok 1 /dir/read 1196s ok 2 /dir/nonexisting 1196s # /dir/refcounting summary: Test refcounting interactions with g_dir_close() 1196s ok 3 /dir/refcounting 1196s # End of dir tests 1196s TAP version 14 1196s # random seed: R02Se940020b7e4e4e3b07fb95ee7d8b04f6 1196s 1..17 1196s # Start of logging tests 1196s # Running test: glib/logging.test 1196s ok 1 /logging/default-handler 1196s # slow test /logging/default-handler executed in 0.58 secs 1196s ok 2 /logging/warnings 1196s ok 3 /logging/fatal-log-mask 1196s # bu-DEBUG: message 1196s # ba-DEBUG: message 1196s # ba-INFO: message 1196s ok 4 /logging/set-handler 1196s ok 5 /logging/print-handler 1196s ok 6 /logging/printerr-handler 1196s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=653052 1196s # The Log Message Handler 1196s # 1196s # The Good Fail Message Handler 1196s # 1196s ok 7 /logging/653052 1196s ok - glib/logging.test 1196s # Running test: glib/atomic-c-89.test 1196s ok 8 /logging/gibberish 1196s # Start of default-handler tests 1196s # Start of subprocess tests 1196s # End of subprocess tests 1196s # End of default-handler tests 1196s # End of logging tests 1196s # Start of structured-logging tests 1196s ok 9 /structured-logging/no-state 1196s ok 10 /structured-logging/some-state 1196s ok 11 /structured-logging/robustness 1196s ok 12 /structured-logging/roundtrip1 1196s ok 13 /structured-logging/roundtrip2 1196s ok 14 /structured-logging/roundtrip3 1196s ok 15 /structured-logging/variant1 1196s ok 16 /structured-logging/variant2 1196s ok 17 /structured-logging/set-writer-func-twice 1196s # End of structured-logging tests 1196s TAP version 14 1196s # random seed: R02S2d144610875cd16beab063a5c36f6937 1196s 1..2 1196s # Start of atomic tests 1196s ok 1 /atomic/types 1196s ok 2 /atomic/threaded 1196s # End of atomic tests 1196s ok - glib/atomic-c-89.test 1196s # Running test: glib/custom-dispatch.test 1196s TAP version 14 1196s # random seed: R02S4e4ab610ac81f9fe3e67e42983617540 1196s 1..2 1196s # Start of properties tests 1196s # Start of custom-dispatch tests 1196s # /properties/custom-dispatch/init summary: Test that custom dispatch_properties_changed is called on initialization 1196s ok 1 /properties/custom-dispatch/init 1196s # /properties/custom-dispatch/set summary: Test that custom dispatch_properties_changed is called regardless of connected notify handlers 1196s ok 2 /properties/custom-dispatch/set 1196s # End of custom-dispatch tests 1196s # End of properties tests 1196s ok - glib/custom-dispatch.test 1196s # Running test: glib/appmonitor.test 1196s TAP version 14 1196s # random seed: R02Sdbcf618b61190de38f97dfd291153d4d 1196s 1..1 1196s # Start of monitor tests 1196s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_appmonitor_REN352/monitor/app/.dirs/home 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_appmonitor_REN352/monitor/app/.dirs/cache 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_appmonitor_REN352/monitor/app/.dirs/system-config1:/tmp/test_appmonitor_REN352/monitor/app/.dirs/system-config2 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_appmonitor_REN352/monitor/app/.dirs/config 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_appmonitor_REN352/monitor/app/.dirs/system-data1:/tmp/test_appmonitor_REN352/monitor/app/.dirs/system-data2 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_appmonitor_REN352/monitor/app/.dirs/data 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_appmonitor_REN352/monitor/app/.dirs/state 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_appmonitor_REN352/monitor/app/.dirs/runtime 1196s # Using data directory: /tmp/test_appmonitor_REN352/monitor/app/.dirs/data 1196s ok 1 /monitor/app 1196s # End of monitor tests 1196s ok - glib/appmonitor.test 1196s # Running test: glib/gmenumodel.test 1196s TAP version 14 1196s # random seed: R02Sd6db47376bb4c7a05b98d838ef3aaaab 1196s 1..15 1196s # Start of gmenu tests 1197s # Executing: glib/gmenumodel.test 1197s ok 1 /gmenu/equality 1197s # slow test /gmenu/equality executed in 0.57 secs 1198s ok 2 /gmenu/random 1198s # slow test /gmenu/random executed in 0.64 secs 1198s ok 3 /gmenu/attributes 1198s ok 4 /gmenu/links 1198s ok 5 /gmenu/mutable 1198s ok 6 /gmenu/convenience 1198s ok 7 /gmenu/menuitem 1198s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/861 1198s ok 8 /gmenu/input-validation 1198s # Start of dbus tests 1199s ok 9 /gmenu/dbus/roundtrip 1199s # slow test /gmenu/dbus/roundtrip executed in 1.01 secs 1199s ok 10 /gmenu/dbus/subscriptions 1200s ok 11 /gmenu/dbus/threaded 1200s # slow test /gmenu/dbus/threaded executed in 0.89 secs 1200s # Start of peer tests 1201s ok 12 /gmenu/dbus/peer/roundtrip 1201s # slow test /gmenu/dbus/peer/roundtrip executed in 1.02 secs 1201s ok 13 /gmenu/dbus/peer/subscriptions 1201s # End of peer tests 1201s # Start of export tests 1201s # /gmenu/dbus/export/error-handling summary: Test that error handling of menu model export failure works 1201s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3366 1201s ok 14 /gmenu/dbus/export/error-handling 1201s # End of export tests 1201s # End of dbus tests 1201s # Start of attributes tests 1201s ok 15 /gmenu/attributes/iterate 1201s # End of attributes tests 1201s # End of gmenu tests 1201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1201s ok - glib/gmenumodel.test 1202s # Running test: glib/memory-output-stream.test 1202s TAP version 14 1202s # random seed: R02S5721ea48bca18000ed833cf69e8c7106 1202s 1..10 1202s # Start of memory-output-stream tests 1202s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=540423 1202s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=720080 1202s ok 1 /memory-output-stream/truncate 1202s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=540459 1202s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=540461 1202s ok 2 /memory-output-stream/get-data-size 1202s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=605733 1202s ok 3 /memory-output-stream/properties 1202s ok 4 /memory-output-stream/write-bytes 1202s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2471 1202s ok 5 /memory-output-stream/write-null 1202s ok 6 /memory-output-stream/writev 1202s ok 7 /memory-output-stream/writev_nonblocking 1202s ok 8 /memory-output-stream/steal_as_bytes 1202s # Start of seek tests 1202s ok 9 /memory-output-stream/seek/fixed 1202s ok 10 /memory-output-stream/seek/resizable 1202s # End of seek tests 1202s # End of memory-output-stream tests 1202s TAP version 14 1202s # random seed: R02S9a5e1d49c7920473a801acc7a5154a50 1202s 1..8 1202s # Start of monitor tests 1202s ok 1 /monitor/atomic-replace # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1202s ok 2 /monitor/file-changes # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1202s ok 3 /monitor/dir-monitor # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1202s ok 4 /monitor/dir-not-existent # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1202s ok 5 /monitor/cross-dir-moves # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1202s ok 6 /monitor/finalize-in-callback # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1202s # /monitor/root summary: Test that GFileMonitor can monitor the root directory. 1202s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3241 1202s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1202s ok 7 /monitor/root # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1202s # Start of file tests 1202s ok 8 /monitor/file/hard-links # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1202s # End of file tests 1202s # End of monitor tests 1202s TAP version 14 1202s # random seed: R02S869bf6d7e4b9c88c7e25c22f55f7c7ba 1202s 1..2 1202s # Start of gnotification tests 1202s ok 1 /gnotification/basic 1202s ok 2 /gnotification/properties 1202s # End of gnotification tests 1202s TAP version 14 1202s # random seed: R02Sb29d8ac1b346b23072f29b103db2fadc 1202s 1..1 1202s # Start of gio tests 1202s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1202s # random seed: R02S39543c604cca2f6827c64d5fd09e04ff 1202s ok - glib/memory-output-stream.test 1202s # Running test: glib/testfilemonitor.test 1202s # Executing: glib/testfilemonitor.test 1202s ok - glib/testfilemonitor.test 1202s # Running test: glib/gnotification.test 1202s ok - glib/gnotification.test 1202s # Running test: glib/io-channel-basic.test 1202s # GLib-DEBUG: io-channel-basic: child writing 8+2989 bytes to 6 1202s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1202s # GLib-DEBUG: io-channel-basic: ...from 5: 2989 bytes 1202s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1202s # GLib-DEBUG: io-channel-basic: child writing 8+1689 bytes to 6 1202s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1202s # GLib-DEBUG: io-channel-basic: ...from 5: 1689 bytes 1202s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1202s # GLib-DEBUG: io-channel-basic: child writing 8+4208 bytes to 6 1202s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1202s # GLib-DEBUG: io-channel-basic: ...from 5: 4208 bytes 1202s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1203s # GLib-DEBUG: io-channel-basic: child writing 8+4269 bytes to 6 1203s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1203s # GLib-DEBUG: io-channel-basic: ...from 5: 4269 bytes 1203s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1203s # GLib-DEBUG: io-channel-basic: child writing 8+4129 bytes to 6 1203s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1203s # GLib-DEBUG: io-channel-basic: ...from 5: 4129 bytes 1203s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1203s # GLib-DEBUG: io-channel-basic: child writing 8+3924 bytes to 6 1203s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1203s # GLib-DEBUG: io-channel-basic: ...from 5: 3924 bytes 1203s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1203s # GLib-DEBUG: io-channel-basic: child writing 8+2903 bytes to 6 1203s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1203s # GLib-DEBUG: io-channel-basic: ...from 5: 2903 bytes 1203s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1204s # GLib-DEBUG: io-channel-basic: child writing 8+4649 bytes to 6 1204s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1204s # GLib-DEBUG: io-channel-basic: ...from 5: 4649 bytes 1204s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1204s # GLib-DEBUG: io-channel-basic: child writing 8+4356 bytes to 6 1204s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1204s # GLib-DEBUG: io-channel-basic: ...from 5: 4356 bytes 1204s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1204s # GLib-DEBUG: io-channel-basic: child writing 8+2281 bytes to 6 1204s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1204s # GLib-DEBUG: io-channel-basic: ...from 5: 2281 bytes 1204s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1204s # GLib-DEBUG: io-channel-basic: child writing 8+837 bytes to 6 1204s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1204s # GLib-DEBUG: io-channel-basic: ...from 5: 837 bytes 1204s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1205s # GLib-DEBUG: io-channel-basic: child writing 8+3290 bytes to 6 1205s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1205s # GLib-DEBUG: io-channel-basic: ...from 5: 3290 bytes 1205s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1205s # GLib-DEBUG: io-channel-basic: child writing 8+2995 bytes to 6 1205s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1205s # GLib-DEBUG: io-channel-basic: ...from 5: 2995 bytes 1205s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1205s # GLib-DEBUG: io-channel-basic: child writing 8+476 bytes to 6 1205s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1205s # GLib-DEBUG: io-channel-basic: ...from 5: 476 bytes 1205s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1205s # GLib-DEBUG: io-channel-basic: child writing 8+1013 bytes to 6 1205s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1205s # GLib-DEBUG: io-channel-basic: ...from 5: 1013 bytes 1205s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1206s # GLib-DEBUG: io-channel-basic: child writing 8+350 bytes to 6 1206s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1206s # GLib-DEBUG: io-channel-basic: ...from 5: 350 bytes 1206s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1206s # GLib-DEBUG: io-channel-basic: child writing 8+4360 bytes to 6 1206s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1206s # GLib-DEBUG: io-channel-basic: ...from 5: 4360 bytes 1206s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1206s # GLib-DEBUG: io-channel-basic: child writing 8+3888 bytes to 6 1206s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1206s # GLib-DEBUG: io-channel-basic: ...from 5: 3888 bytes 1206s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1207s # Executing: glib/io-channel-basic.test 1207s # GLib-DEBUG: io-channel-basic: child writing 8+2710 bytes to 6 1207s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1207s # GLib-DEBUG: io-channel-basic: ...from 5: 2710 bytes 1207s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1207s # GLib-DEBUG: io-channel-basic: child writing 8+123 bytes to 6 1207s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1207s # GLib-DEBUG: io-channel-basic: ...from 5: 123 bytes 1207s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1207s # GLib-DEBUG: io-channel-basic: child writing 8+4804 bytes to 6 1207s # GLib-DEBUG: io-channel-basic: child exiting, closing 6 1207s # GLib-DEBUG: io-channel-basic: ...from 5: HUP IN 1207s # GLib-DEBUG: io-channel-basic: ...from 5: 4804 bytes 1207s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1207s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1207s # random seed: R02Sf8334124a1619519b27080cad50cdebd 1207s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1207s # random seed: R02See2136a3b0d2ed42c9e423b9ee0bef4d 1207s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1207s # random seed: R02S32d2c79ff1dd96c14964a1c7cedb636a 1207s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1207s # random seed: R02Scc26a2906900829098f018f812538f6e 1207s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1207s # random seed: R02S68c6bc12631521ce71a117b83212ef40 1207s # GLib-DEBUG: io-channel-basic: child writing 8+4157 bytes to 11 1207s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1207s # GLib-DEBUG: io-channel-basic: ...from 10: 4157 bytes 1207s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1207s # GLib-DEBUG: io-channel-basic: child writing 8+1908 bytes to 9 1207s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1207s # GLib-DEBUG: io-channel-basic: ...from 8: 1908 bytes 1207s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1207s # GLib-DEBUG: io-channel-basic: child writing 8+4478 bytes to 13 1207s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1207s # GLib-DEBUG: io-channel-basic: ...from 12: 4478 bytes 1207s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1207s # GLib-DEBUG: io-channel-basic: child writing 8+1470 bytes to 15 1207s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1207s # GLib-DEBUG: io-channel-basic: ...from 14: 1470 bytes 1207s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1207s # GLib-DEBUG: io-channel-basic: child writing 8+1942 bytes to 17 1207s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1207s # GLib-DEBUG: io-channel-basic: ...from 16: 1942 bytes 1207s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1208s # GLib-DEBUG: io-channel-basic: child writing 8+4230 bytes to 9 1208s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1208s # GLib-DEBUG: io-channel-basic: ...from 8: 4230 bytes 1208s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1208s # GLib-DEBUG: io-channel-basic: child writing 8+3732 bytes to 11 1208s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1208s # GLib-DEBUG: io-channel-basic: ...from 10: 3732 bytes 1208s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1208s # GLib-DEBUG: io-channel-basic: child writing 8+1953 bytes to 13 1208s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1208s # GLib-DEBUG: io-channel-basic: ...from 12: 1953 bytes 1208s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1208s # GLib-DEBUG: io-channel-basic: child writing 8+3030 bytes to 15 1208s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1208s # GLib-DEBUG: io-channel-basic: ...from 14: 3030 bytes 1208s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1208s # GLib-DEBUG: io-channel-basic: child writing 8+2907 bytes to 17 1208s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1208s # GLib-DEBUG: io-channel-basic: ...from 16: 2907 bytes 1208s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1208s # GLib-DEBUG: io-channel-basic: child writing 8+2833 bytes to 9 1208s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1208s # GLib-DEBUG: io-channel-basic: ...from 8: 2833 bytes 1208s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1208s # GLib-DEBUG: io-channel-basic: child writing 8+3233 bytes to 11 1208s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1208s # GLib-DEBUG: io-channel-basic: ...from 10: 3233 bytes 1208s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1208s # GLib-DEBUG: io-channel-basic: child writing 8+1595 bytes to 13 1208s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1208s # GLib-DEBUG: io-channel-basic: ...from 12: 1595 bytes 1208s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1208s # GLib-DEBUG: io-channel-basic: child writing 8+4693 bytes to 15 1208s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1208s # GLib-DEBUG: io-channel-basic: ...from 14: 4693 bytes 1208s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1208s # GLib-DEBUG: io-channel-basic: child writing 8+2689 bytes to 17 1208s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1208s # GLib-DEBUG: io-channel-basic: ...from 16: 2689 bytes 1208s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1208s # GLib-DEBUG: io-channel-basic: child writing 8+2151 bytes to 9 1208s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1208s # GLib-DEBUG: io-channel-basic: ...from 8: 2151 bytes 1208s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1208s # GLib-DEBUG: io-channel-basic: child writing 8+3841 bytes to 11 1208s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1208s # GLib-DEBUG: io-channel-basic: ...from 10: 3841 bytes 1208s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1208s # GLib-DEBUG: io-channel-basic: child writing 8+4977 bytes to 15 1208s # GLib-DEBUG: io-channel-basic: child writing 8+3450 bytes to 13 1208s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1208s # GLib-DEBUG: io-channel-basic: ...from 12: 3450 bytes 1208s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1208s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1208s # GLib-DEBUG: io-channel-basic: ...from 14: 4977 bytes 1208s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1208s # GLib-DEBUG: io-channel-basic: child writing 8+4561 bytes to 17 1208s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1208s # GLib-DEBUG: io-channel-basic: ...from 16: 4561 bytes 1208s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1208s # GLib-DEBUG: io-channel-basic: child writing 8+3565 bytes to 9 1208s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1208s # GLib-DEBUG: io-channel-basic: ...from 8: 3565 bytes 1208s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1208s # GLib-DEBUG: io-channel-basic: child writing 8+1181 bytes to 11 1208s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1208s # GLib-DEBUG: io-channel-basic: ...from 10: 1181 bytes 1208s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1208s # GLib-DEBUG: io-channel-basic: child writing 8+2282 bytes to 13 1208s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1208s # GLib-DEBUG: io-channel-basic: ...from 12: 2282 bytes 1208s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1208s # GLib-DEBUG: io-channel-basic: child writing 8+4305 bytes to 15 1208s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1208s # GLib-DEBUG: io-channel-basic: ...from 14: 4305 bytes 1208s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1208s # GLib-DEBUG: io-channel-basic: child writing 8+2334 bytes to 17 1208s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1208s # GLib-DEBUG: io-channel-basic: ...from 16: 2334 bytes 1208s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1209s # GLib-DEBUG: io-channel-basic: child writing 8+1039 bytes to 9 1209s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1209s # GLib-DEBUG: io-channel-basic: ...from 8: 1039 bytes 1209s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1209s # GLib-DEBUG: io-channel-basic: child writing 8+4575 bytes to 11 1209s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1209s # GLib-DEBUG: io-channel-basic: ...from 10: 4575 bytes 1209s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1209s # GLib-DEBUG: io-channel-basic: child writing 8+1228 bytes to 15 1209s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1209s # GLib-DEBUG: io-channel-basic: ...from 14: 1228 bytes 1209s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1209s # GLib-DEBUG: io-channel-basic: child writing 8+468 bytes to 13 1209s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1209s # GLib-DEBUG: io-channel-basic: ...from 12: 468 bytes 1209s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1209s # GLib-DEBUG: io-channel-basic: child writing 8+530 bytes to 17 1209s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1209s # GLib-DEBUG: io-channel-basic: ...from 16: 530 bytes 1209s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1209s # GLib-DEBUG: io-channel-basic: child writing 8+3663 bytes to 9 1209s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1209s # GLib-DEBUG: io-channel-basic: ...from 8: 3663 bytes 1209s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1209s # GLib-DEBUG: io-channel-basic: child writing 8+2220 bytes to 15 1209s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1209s # GLib-DEBUG: io-channel-basic: ...from 14: 2220 bytes 1209s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1209s # GLib-DEBUG: io-channel-basic: child writing 8+1230 bytes to 11 1209s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1209s # GLib-DEBUG: io-channel-basic: ...from 10: 1230 bytes 1209s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1209s # GLib-DEBUG: io-channel-basic: child writing 8+2116 bytes to 13 1209s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1209s # GLib-DEBUG: io-channel-basic: ...from 12: 2116 bytes 1209s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1209s # GLib-DEBUG: io-channel-basic: child writing 8+4608 bytes to 17 1209s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1209s # GLib-DEBUG: io-channel-basic: ...from 16: 4608 bytes 1209s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1209s # GLib-DEBUG: io-channel-basic: child writing 8+4301 bytes to 9 1209s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1209s # GLib-DEBUG: io-channel-basic: ...from 8: 4301 bytes 1209s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1209s # GLib-DEBUG: io-channel-basic: child writing 8+2424 bytes to 11 1209s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1209s # GLib-DEBUG: io-channel-basic: ...from 10: 2424 bytes 1209s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1209s # GLib-DEBUG: io-channel-basic: child writing 8+3794 bytes to 15 1209s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1209s # GLib-DEBUG: io-channel-basic: ...from 14: 3794 bytes 1209s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1209s # GLib-DEBUG: io-channel-basic: child writing 8+3081 bytes to 13 1209s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1209s # GLib-DEBUG: io-channel-basic: ...from 12: 3081 bytes 1209s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1209s # GLib-DEBUG: io-channel-basic: child writing 8+2801 bytes to 17 1209s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1209s # GLib-DEBUG: io-channel-basic: ...from 16: 2801 bytes 1209s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1209s # GLib-DEBUG: io-channel-basic: child writing 8+4422 bytes to 9 1209s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1209s # GLib-DEBUG: io-channel-basic: ...from 8: 4422 bytes 1209s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1209s # GLib-DEBUG: io-channel-basic: child writing 8+3148 bytes to 15 1209s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1209s # GLib-DEBUG: io-channel-basic: ...from 14: 3148 bytes 1209s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1209s # GLib-DEBUG: io-channel-basic: child writing 8+1642 bytes to 11 1209s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1209s # GLib-DEBUG: io-channel-basic: ...from 10: 1642 bytes 1209s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1209s # GLib-DEBUG: io-channel-basic: child writing 8+4916 bytes to 17 1209s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1209s # GLib-DEBUG: io-channel-basic: ...from 16: 4916 bytes 1209s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1209s # GLib-DEBUG: io-channel-basic: child writing 8+1494 bytes to 13 1209s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1209s # GLib-DEBUG: io-channel-basic: ...from 12: 1494 bytes 1209s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1210s # GLib-DEBUG: io-channel-basic: child writing 8+3391 bytes to 9 1210s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1210s # GLib-DEBUG: io-channel-basic: ...from 8: 3391 bytes 1210s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1210s # GLib-DEBUG: io-channel-basic: child writing 8+37 bytes to 15 1210s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1210s # GLib-DEBUG: io-channel-basic: ...from 14: 37 bytes 1210s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1210s # GLib-DEBUG: io-channel-basic: child writing 8+235 bytes to 11 1210s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1210s # GLib-DEBUG: io-channel-basic: ...from 10: 235 bytes 1210s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1210s # GLib-DEBUG: io-channel-basic: child writing 8+704 bytes to 17 1210s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1210s # GLib-DEBUG: io-channel-basic: ...from 16: 704 bytes 1210s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1210s # GLib-DEBUG: io-channel-basic: child writing 8+2562 bytes to 13 1210s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1210s # GLib-DEBUG: io-channel-basic: ...from 12: 2562 bytes 1210s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1210s # GLib-DEBUG: io-channel-basic: child writing 8+415 bytes to 9 1210s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1210s # GLib-DEBUG: io-channel-basic: ...from 8: 415 bytes 1210s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1210s # GLib-DEBUG: io-channel-basic: child writing 8+2195 bytes to 15 1210s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1210s # GLib-DEBUG: io-channel-basic: ...from 14: 2195 bytes 1210s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1210s # GLib-DEBUG: io-channel-basic: child writing 8+4689 bytes to 11 1210s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1210s # GLib-DEBUG: io-channel-basic: ...from 10: 4689 bytes 1210s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1210s # GLib-DEBUG: io-channel-basic: child writing 8+1674 bytes to 17 1210s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1210s # GLib-DEBUG: io-channel-basic: ...from 16: 1674 bytes 1210s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1210s # GLib-DEBUG: io-channel-basic: child writing 8+1968 bytes to 13 1210s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1210s # GLib-DEBUG: io-channel-basic: ...from 12: 1968 bytes 1210s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1210s # GLib-DEBUG: io-channel-basic: child writing 8+1279 bytes to 9 1210s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1210s # GLib-DEBUG: io-channel-basic: ...from 8: 1279 bytes 1210s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1210s # GLib-DEBUG: io-channel-basic: child writing 8+2194 bytes to 15 1210s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1210s # GLib-DEBUG: io-channel-basic: ...from 14: 2194 bytes 1210s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1210s # GLib-DEBUG: io-channel-basic: child writing 8+4921 bytes to 17 1210s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1210s # GLib-DEBUG: io-channel-basic: ...from 16: 4921 bytes 1210s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1210s # GLib-DEBUG: io-channel-basic: child writing 8+656 bytes to 11 1210s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1210s # GLib-DEBUG: io-channel-basic: ...from 10: 656 bytes 1210s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1210s # GLib-DEBUG: io-channel-basic: child writing 8+615 bytes to 13 1210s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1210s # GLib-DEBUG: io-channel-basic: ...from 12: 615 bytes 1210s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1210s # GLib-DEBUG: io-channel-basic: child writing 8+2779 bytes to 9 1210s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1210s # GLib-DEBUG: io-channel-basic: ...from 8: 2779 bytes 1210s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1210s # GLib-DEBUG: io-channel-basic: child writing 8+3407 bytes to 15 1210s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1210s # GLib-DEBUG: io-channel-basic: ...from 14: 3407 bytes 1210s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1210s # GLib-DEBUG: io-channel-basic: child writing 8+3729 bytes to 11 1210s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1210s # GLib-DEBUG: io-channel-basic: ...from 10: 3729 bytes 1210s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1210s # GLib-DEBUG: io-channel-basic: child writing 8+1786 bytes to 17 1210s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1210s # GLib-DEBUG: io-channel-basic: ...from 16: 1786 bytes 1210s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1210s # GLib-DEBUG: io-channel-basic: child writing 8+2888 bytes to 13 1210s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1210s # GLib-DEBUG: io-channel-basic: ...from 12: 2888 bytes 1210s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1211s # GLib-DEBUG: io-channel-basic: child writing 8+963 bytes to 9 1211s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1211s # GLib-DEBUG: io-channel-basic: ...from 8: 963 bytes 1211s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1211s # GLib-DEBUG: io-channel-basic: child writing 8+4522 bytes to 15 1211s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1211s # GLib-DEBUG: io-channel-basic: ...from 14: 4522 bytes 1211s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1211s # GLib-DEBUG: io-channel-basic: child writing 8+2129 bytes to 17 1211s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1211s # GLib-DEBUG: io-channel-basic: ...from 16: 2129 bytes 1211s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1211s # GLib-DEBUG: io-channel-basic: child writing 8+1926 bytes to 11 1211s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1211s # GLib-DEBUG: io-channel-basic: ...from 10: 1926 bytes 1211s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1211s # GLib-DEBUG: io-channel-basic: child writing 8+136 bytes to 13 1211s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1211s # GLib-DEBUG: io-channel-basic: ...from 12: 136 bytes 1211s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1211s # GLib-DEBUG: io-channel-basic: child writing 8+4650 bytes to 9 1211s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1211s # GLib-DEBUG: io-channel-basic: ...from 8: 4650 bytes 1211s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1211s # GLib-DEBUG: io-channel-basic: child writing 8+3194 bytes to 15 1211s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1211s # GLib-DEBUG: io-channel-basic: ...from 14: 3194 bytes 1211s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1211s # GLib-DEBUG: io-channel-basic: child writing 8+1269 bytes to 11 1211s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1211s # GLib-DEBUG: io-channel-basic: ...from 10: 1269 bytes 1211s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1211s # GLib-DEBUG: io-channel-basic: child writing 8+1648 bytes to 17 1211s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1211s # GLib-DEBUG: io-channel-basic: ...from 16: 1648 bytes 1211s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1211s # GLib-DEBUG: io-channel-basic: child writing 8+1758 bytes to 13 1211s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1211s # GLib-DEBUG: io-channel-basic: ...from 12: 1758 bytes 1211s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1211s # GLib-DEBUG: io-channel-basic: child writing 8+4325 bytes to 9 1211s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1211s # GLib-DEBUG: io-channel-basic: ...from 8: 4325 bytes 1211s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1211s # GLib-DEBUG: io-channel-basic: child writing 8+2137 bytes to 15 1211s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1211s # GLib-DEBUG: io-channel-basic: ...from 14: 2137 bytes 1211s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1211s # GLib-DEBUG: io-channel-basic: child writing 8+4075 bytes to 17 1211s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1211s # GLib-DEBUG: io-channel-basic: ...from 16: 4075 bytes 1211s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1211s # GLib-DEBUG: io-channel-basic: child writing 8+1625 bytes to 11 1211s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1211s # GLib-DEBUG: io-channel-basic: ...from 10: 1625 bytes 1211s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1211s # GLib-DEBUG: io-channel-basic: child writing 8+4838 bytes to 13 1211s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1211s # GLib-DEBUG: io-channel-basic: ...from 12: 4838 bytes 1211s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1211s # GLib-DEBUG: io-channel-basic: child writing 8+47 bytes to 9 1211s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1211s # GLib-DEBUG: io-channel-basic: ...from 8: 47 bytes 1211s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1211s # GLib-DEBUG: io-channel-basic: child writing 8+4454 bytes to 15 1211s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1211s # GLib-DEBUG: io-channel-basic: ...from 14: 4454 bytes 1211s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1212s # GLib-DEBUG: io-channel-basic: child writing 8+3986 bytes to 11 1212s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1212s # GLib-DEBUG: io-channel-basic: ...from 10: 3986 bytes 1212s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1212s # GLib-DEBUG: io-channel-basic: child writing 8+3460 bytes to 17 1212s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1212s # GLib-DEBUG: io-channel-basic: ...from 16: 3460 bytes 1212s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1212s # Executing: glib/io-channel-basic.test 1212s # GLib-DEBUG: io-channel-basic: child writing 8+709 bytes to 13 1212s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1212s # GLib-DEBUG: io-channel-basic: ...from 12: 709 bytes 1212s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1212s # GLib-DEBUG: io-channel-basic: child writing 8+4812 bytes to 9 1212s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1212s # GLib-DEBUG: io-channel-basic: ...from 8: 4812 bytes 1212s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1212s # GLib-DEBUG: io-channel-basic: child writing 8+3666 bytes to 15 1212s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1212s # GLib-DEBUG: io-channel-basic: ...from 14: 3666 bytes 1212s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1212s # GLib-DEBUG: io-channel-basic: child writing 8+1805 bytes to 17 1212s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1212s # GLib-DEBUG: io-channel-basic: ...from 16: 1805 bytes 1212s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1212s # GLib-DEBUG: io-channel-basic: child writing 8+3117 bytes to 11 1212s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1212s # GLib-DEBUG: io-channel-basic: ...from 10: 3117 bytes 1212s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1212s # GLib-DEBUG: io-channel-basic: child writing 8+2126 bytes to 13 1212s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1212s # GLib-DEBUG: io-channel-basic: ...from 12: 2126 bytes 1212s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1212s # GLib-DEBUG: io-channel-basic: child writing 8+258 bytes to 9 1212s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1212s # GLib-DEBUG: io-channel-basic: ...from 8: 258 bytes 1212s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1212s # GLib-DEBUG: io-channel-basic: child writing 8+2228 bytes to 15 1212s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1212s # GLib-DEBUG: io-channel-basic: ...from 14: 2228 bytes 1212s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1212s # GLib-DEBUG: io-channel-basic: child writing 8+2320 bytes to 17 1212s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1212s # GLib-DEBUG: io-channel-basic: ...from 16: 2320 bytes 1212s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1212s # GLib-DEBUG: io-channel-basic: child writing 8+2356 bytes to 11 1212s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1212s # GLib-DEBUG: io-channel-basic: ...from 10: 2356 bytes 1212s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1212s # GLib-DEBUG: io-channel-basic: child writing 8+1784 bytes to 13 1212s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1212s # GLib-DEBUG: io-channel-basic: ...from 12: 1784 bytes 1212s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1212s # GLib-DEBUG: io-channel-basic: child writing 8+822 bytes to 9 1212s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1212s # GLib-DEBUG: io-channel-basic: ...from 8: 822 bytes 1212s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1212s # GLib-DEBUG: io-channel-basic: child writing 8+3064 bytes to 15 1212s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1212s # GLib-DEBUG: io-channel-basic: ...from 14: 3064 bytes 1212s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1212s # GLib-DEBUG: io-channel-basic: child writing 8+4092 bytes to 17 1212s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1212s # GLib-DEBUG: io-channel-basic: ...from 16: 4092 bytes 1212s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1212s # GLib-DEBUG: io-channel-basic: child writing 8+1430 bytes to 11 1212s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1212s # GLib-DEBUG: io-channel-basic: ...from 10: 1430 bytes 1212s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1212s # GLib-DEBUG: io-channel-basic: child writing 8+1019 bytes to 13 1212s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1212s # GLib-DEBUG: io-channel-basic: ...from 12: 1019 bytes 1212s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1212s # GLib-DEBUG: io-channel-basic: child writing 8+4365 bytes to 9 1212s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1212s # GLib-DEBUG: io-channel-basic: ...from 8: 4365 bytes 1212s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1213s # GLib-DEBUG: io-channel-basic: child writing 8+2173 bytes to 15 1213s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1213s # GLib-DEBUG: io-channel-basic: ...from 14: 2173 bytes 1213s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1213s # GLib-DEBUG: io-channel-basic: child writing 8+2754 bytes to 17 1213s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1213s # GLib-DEBUG: io-channel-basic: ...from 16: 2754 bytes 1213s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1213s # GLib-DEBUG: io-channel-basic: child writing 8+2199 bytes to 13 1213s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1213s # GLib-DEBUG: io-channel-basic: ...from 12: 2199 bytes 1213s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1213s # GLib-DEBUG: io-channel-basic: child writing 8+1786 bytes to 11 1213s # GLib-DEBUG: io-channel-basic: child exiting, closing 11 1213s # GLib-DEBUG: io-channel-basic: ...from 10: HUP IN 1213s # GLib-DEBUG: io-channel-basic: ...from 10: 1786 bytes 1213s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1213s # GLib-DEBUG: io-channel-basic: child writing 8+2767 bytes to 9 1213s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1213s # GLib-DEBUG: io-channel-basic: ...from 8: 2767 bytes 1213s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1213s # GLib-DEBUG: io-channel-basic: child writing 8+4078 bytes to 15 1213s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1213s # GLib-DEBUG: io-channel-basic: ...from 14: 4078 bytes 1213s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1213s # GLib-DEBUG: io-channel-basic: child writing 8+3855 bytes to 17 1213s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1213s # GLib-DEBUG: io-channel-basic: ...from 16: 3855 bytes 1213s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1213s # GLib-DEBUG: io-channel-basic: child writing 8+1174 bytes to 13 1213s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1213s # GLib-DEBUG: io-channel-basic: ...from 12: 1174 bytes 1213s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1213s # GLib-DEBUG: io-channel-basic: child writing 8+4910 bytes to 9 1213s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1213s # GLib-DEBUG: io-channel-basic: ...from 8: 4910 bytes 1213s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1213s # GLib-DEBUG: io-channel-basic: child writing 8+2193 bytes to 15 1213s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1213s # GLib-DEBUG: io-channel-basic: ...from 14: 2193 bytes 1213s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1213s # GLib-DEBUG: io-channel-basic: child writing 8+655 bytes to 17 1213s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1213s # GLib-DEBUG: io-channel-basic: ...from 16: 655 bytes 1213s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1213s # GLib-DEBUG: io-channel-basic: child writing 8+2437 bytes to 13 1213s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1213s # GLib-DEBUG: io-channel-basic: ...from 12: 2437 bytes 1213s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1213s # GLib-DEBUG: io-channel-basic: child writing 8+1997 bytes to 9 1213s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1213s # GLib-DEBUG: io-channel-basic: ...from 8: 1997 bytes 1213s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1213s # GLib-DEBUG: io-channel-basic: child writing 8+2210 bytes to 15 1213s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1213s # GLib-DEBUG: io-channel-basic: ...from 14: 2210 bytes 1213s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1213s # GLib-DEBUG: io-channel-basic: child writing 8+1669 bytes to 13 1213s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1213s # GLib-DEBUG: io-channel-basic: ...from 12: 1669 bytes 1213s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1213s # GLib-DEBUG: io-channel-basic: child writing 8+1811 bytes to 17 1213s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1213s # GLib-DEBUG: io-channel-basic: ...from 16: 1811 bytes 1213s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1214s # GLib-DEBUG: io-channel-basic: child writing 8+114 bytes to 9 1214s # GLib-DEBUG: io-channel-basic: child exiting, closing 9 1214s # GLib-DEBUG: io-channel-basic: ...from 8: HUP IN 1214s # GLib-DEBUG: io-channel-basic: ...from 8: 114 bytes 1214s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1214s # GLib-DEBUG: io-channel-basic: child writing 8+3008 bytes to 15 1214s # GLib-DEBUG: io-channel-basic: child exiting, closing 15 1214s # GLib-DEBUG: io-channel-basic: ...from 14: HUP IN 1214s # GLib-DEBUG: io-channel-basic: ...from 14: 3008 bytes 1214s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1214s # GLib-DEBUG: io-channel-basic: child writing 8+2755 bytes to 13 1214s # GLib-DEBUG: io-channel-basic: child exiting, closing 13 1214s # GLib-DEBUG: io-channel-basic: ...from 12: HUP IN 1214s # GLib-DEBUG: io-channel-basic: ...from 12: 2755 bytes 1214s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1214s # GLib-DEBUG: io-channel-basic: child writing 8+3299 bytes to 17 1214s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1214s # GLib-DEBUG: io-channel-basic: ...from 16: 3299 bytes 1214s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1214s # GLib-DEBUG: io-channel-basic: child writing 8+413 bytes to 17 1214s ok - glib/io-channel-basic.test 1214s # GLib-DEBUG: io-channel-basic: child exiting, closing 17 1214s # GLib-DEBUG: io-channel-basic: ...from 16: HUP IN 1214s # GLib-DEBUG: io-channel-basic: ...from 16: 413 bytes 1214s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1214s ok 1 /gio/io-basics 1214s # slow test /gio/io-basics executed in 12.35 secs 1214s # End of gio tests 1214s # Running test: glib/option-context.test 1214s TAP version 14 1214s # random seed: R02S62b351d7ef6334a1684617b579a52652 1214s 1..58 1214s # Start of option tests 1214s ok 1 /option/basic 1214s ok 2 /option/translate 1214s ok 3 /option/strict-posix 1214s # Start of help tests 1214s ok 4 /option/help/options 1214s ok 5 /option/help/no-options 1214s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=697652 1214s ok - glib/option-context.test 1214s # Running test: glib/642026-ec.test 1214s ok 6 /option/help/no-help-options 1214s # Usage: 1214s # /usr/libexec/installed-tests/glib/option-context [OPTION?] blabla 1214s # 1214s # Summary 1214s # 1214s # Help Options: 1214s # -h, --help Show help options 1214s # 1214s # Application Options: 1214s # -t, --test=Argument to use in test (deprecated) Test tests 1214s # --test2 Tests also 1214s # 1214s # Description 1214s # 1214s ok 7 /option/help/deprecated 1214s # End of help tests 1214s # Start of group tests 1214s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=504142 1214s ok 8 /option/group/captions 1214s ok 9 /option/group/main 1214s ok 10 /option/group/error-hook 1214s ok 11 /option/group/parse 1214s # Start of captions tests 1214s # Start of subprocess tests 1214s # End of subprocess tests 1214s # End of captions tests 1214s # End of group tests 1214s # Start of restoration tests 1214s ok 12 /option/restoration/int 1214s ok 13 /option/restoration/string 1214s ok 14 /option/restoration/boolean 1214s # End of restoration tests 1214s # Start of arg tests 1214s ok 15 /option/arg/reverse-string 1214s ok 16 /option/arg/optional-int 1214s # Start of repetition tests 1214s ok 17 /option/arg/repetition/int 1214s ok 18 /option/arg/repetition/string 1214s ok 19 /option/arg/repetition/filename 1214s ok 20 /option/arg/repetition/double 1214s ok 21 /option/arg/repetition/locale 1214s ok 22 /option/arg/repetition/int64 1214s # End of repetition tests 1214s # Start of array tests 1214s ok 23 /option/arg/array/string 1214s # End of array tests 1214s # Start of callback tests 1214s ok 24 /option/arg/callback/string 1214s ok 25 /option/arg/callback/count 1214s ok 26 /option/arg/callback/optional1 1214s ok 27 /option/arg/callback/optional2 1214s ok 28 /option/arg/callback/optional3 1214s ok 29 /option/arg/callback/optional4 1214s ok 30 /option/arg/callback/optional5 1214s ok 31 /option/arg/callback/optional6 1214s ok 32 /option/arg/callback/optional7 1214s ok 33 /option/arg/callback/optional8 1214s # End of callback tests 1214s # Start of remaining tests 1214s ok 34 /option/arg/remaining/callback 1214s ok 35 /option/arg/remaining/callback-false 1214s ok 36 /option/arg/remaining/non-option 1214s ok 37 /option/arg/remaining/separator 1214s ok 38 /option/arg/remaining/array 1214s # End of remaining tests 1214s # Start of ignore tests 1214s ok 39 /option/arg/ignore/long 1214s ok 40 /option/arg/ignore/short 1214s ok 41 /option/arg/ignore/arg 1214s # End of ignore tests 1214s # Start of rest tests 1214s ok 42 /option/arg/rest/non-option 1214s ok 43 /option/arg/rest/separator1 1214s ok 44 /option/arg/rest/separator2 1214s ok 45 /option/arg/rest/separator3 1214s ok 46 /option/arg/rest/separator4 1214s ok 47 /option/arg/rest/separator5 1214s # End of rest tests 1214s # End of arg tests 1214s # Start of context tests 1214s ok 48 /option/context/add 1214s ok 49 /option/context/empty2 1214s ok 50 /option/context/empty3 1214s # End of context tests 1214s # Start of bug tests 1214s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=166609 1214s ok 51 /option/bug/unknown-short 1214s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=168008 1214s ok 52 /option/bug/lonely-dash 1214s ok 53 /option/bug/triple-dash 1214s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=305576 1214s ok 54 /option/bug/missing-arg 1214s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=577638 1214s ok 55 /option/bug/dash-arg 1214s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=729563 1214s ok 56 /option/bug/short-remaining 1214s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=646926 1214s ok 57 /option/bug/double-free 1214s ok 58 /option/bug/double-zero 1214s # End of bug tests 1214s # End of option tests 1214s TAP version 14 1214s # random seed: R02S559ea9f478f7108debcead8e71f6f6e3 1214s 1..1 1214s # Start of glib tests 1214s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642026 1214s ok 1 /glib/642026 1214s # End of glib tests 1214s ok - glib/642026-ec.test 1214s # Running test: glib/gio-tool.py.test 1214s TAP version 13 1214s ok 1 __main__.TestGioTool.test_help 1214s # gio: /usr/bin/gio 1214s # tmpdir: /tmp/tmpehz4xyjj 1214s # Running: ['/usr/bin/gio', '--help'] 1214s # Return code: 0 1214s # Output: 1214s # Usage: 1214s # gio COMMAND [ARGS…] 1214s # 1214s # Commands: 1214s # help Print help 1214s # version Print version 1214s # cat Concatenate files to standard output 1214s # copy Copy one or more files 1214s # info Show information about locations 1214s # launch Launch an application from a desktop file 1214s # list List the contents of locations 1214s # mime Get or set the handler for a mimetype 1214s # mkdir Create directories 1214s # monitor Monitor files and directories for changes 1214s # mount Mount or unmount the locations 1214s # move Move one or more files 1214s # open Open files with the default application 1214s # rename Rename a file 1214s # remove Delete one or more files 1214s # save Read from standard input and save 1214s # set Set a file attribute 1214s # trash Move files or directories to the trash 1214s # tree Lists the contents of locations in a tree 1214s # 1214s # Use “gio help COMMAND†to get detailed help. 1214s # Error: 1214s # 1214s # Running: ['/usr/bin/gio', 'help'] 1214s # Return code: 0 1214s # Output: 1214s # Usage: 1214s # gio COMMAND [ARGS…] 1214s # 1214s # Commands: 1214s # help Print help 1214s # version Print version 1214s # cat Concatenate files to standard output 1214s # copy Copy one or more files 1214s # info Show information about locations 1214s # launch Launch an application from a desktop file 1214s # list List the contents of locations 1214s # mime Get or set the handler for a mimetype 1214s # mkdir Create directories 1214s # monitor Monitor files and directories for changes 1214s # mount Mount or unmount the locations 1214s # move Move one or more files 1214s # open Open files with the default application 1214s # rename Rename a file 1214s # remove Delete one or more files 1214s # save Read from standard input and save 1214s # set Set a file attribute 1214s # trash Move files or directories to the trash 1214s # tree Lists the contents of locations in a tree 1214s # 1214s # Use “gio help COMMAND†to get detailed help. 1214s # Error: 1214s ok 2 __main__.TestGioTool.test_info_non_default_attributes 1214s # gio: /usr/bin/gio 1214s # tmpdir: /tmp/tmpob_b_9p4 1214s # Running: ['/usr/bin/gio', 'info', '--attributes=standard::content-type', '/tmp/tmpob_b_9p4/tmp8oxclcyo'] 1214s # Return code: 0 1214s # Output: 1214s # uri: file:///tmp/tmpob_b_9p4/tmp8oxclcyo 1214s # local path: /tmp/tmpob_b_9p4/tmp8oxclcyo 1214s # unix mount: /dev/vda1 / ext4 rw,relatime,discard,errors=remount-ro,commit=30 1214s # attributes: 1214s # standard::content-type: application/x-zerosize 1214s # Error: 1214s ok 3 __main__.TestGioTool.test_no_args 1214s # gio: /usr/bin/gio 1214s # tmpdir: /tmp/tmp8f7lrzqc 1214s # Running: ['/usr/bin/gio'] 1214s # Return code: 1 1214s # Output: 1214s # 1214s # Error: 1214s # Usage: 1214s # gio COMMAND [ARGS…] 1214s # 1214s # Commands: 1214s # help Print help 1214s # version Print version 1214s # cat Concatenate files to standard output 1214s # copy Copy one or more files 1214s # info Show information about locations 1214s # launch Launch an application from a desktop file 1214s # list List the contents of locations 1214s # mime Get or set the handler for a mimetype 1214s # mkdir Create directories 1214s # monitor Monitor files and directories for changes 1214s # mount Mount or unmount the locations 1214s # move Move one or more files 1214s # open Open files with the default application 1214s # rename Rename a file 1214s # remove Delete one or more files 1214s # save Read from standard input and save 1214s # set Set a file attribute 1214s # trash Move files or directories to the trash 1214s # tree Lists the contents of locations in a tree 1214s # 1214s # Use “gio help COMMAND†to get detailed help. 1214s 1..3 1214s ok - glib/gio-tool.py.test 1214s # Running test: glib/basics-gobject.test 1214s TAP version 14 1214s # random seed: R02S4d895693fe1c59e10e71f30b625f31e2 1214s 1..1 1214s # Start of gobject tests 1214s # private data during initialization: 54321 == 54321 1214s # MAIN: emit test-signal: 1214s # ::test_signal default_handler called 1214s # ::test_signal default_handler called 1214s # ::test_signal default_handler called 1214s # signal return: "" 1214s # MAIN: call iface print-string on test and derived object: 1214s # Iface-FOO: "iface-string-from-test-type" from 0xc86778062270 1214s # Iface-BAR: "iface-string-from-derived-type" from 0xc86778057820 1214s # chaining: 1214s ok - glib/basics-gobject.test 1214s # Iface-FOO: "iface-string-from-derived-type" from 0xc86778057820 1214s # private data after initialization: 54321 == 54321 1214s ok 1 /gobject/basics 1214s # End of gobject tests 1214s # Running test: glib/gdbus-close-pending.test 1214s TAP version 14 1214s # random seed: R02S9789f62a9b9607245e04ac5e38a0285e 1214s 1..2 1214s # Start of gdbus tests 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-close-pending_30I752/gdbus/close-pending/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-close-pending_30I752/gdbus/close-pending/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-close-pending_30I752/gdbus/close-pending/.dirs/system-config1:/tmp/test_gdbus-close-pending_30I752/gdbus/close-pending/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-close-pending_30I752/gdbus/close-pending/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-close-pending_30I752/gdbus/close-pending/.dirs/system-data1:/tmp/test_gdbus-close-pending_30I752/gdbus/close-pending/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-close-pending_30I752/gdbus/close-pending/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-close-pending_30I752/gdbus/close-pending/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-close-pending_30I752/gdbus/close-pending/.dirs/runtime 1214s ok 1 /gdbus/close-pending 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-close-pending_30I752/gdbus/unref-pending/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-close-pending_30I752/gdbus/unref-pending/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-close-pending_30I752/gdbus/unref-pending/.dirs/system-config1:/tmp/test_gdbus-close-pending_30I752/gdbus/unref-pending/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-close-pending_30I752/gdbus/unref-pending/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-close-pending_30I752/gdbus/unref-pending/.dirs/system-data1:/tmp/test_gdbus-close-pending_30I752/gdbus/unref-pending/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-close-pending_30I752/gdbus/unref-pending/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-close-pending_30I752/gdbus/unref-pending/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-close-pending_30I752/gdbus/unref-pending/.dirs/runtime 1215s ok 2 /gdbus/unref-pending 1215s # End of gdbus tests 1215s ok - glib/gdbus-close-pending.test 1215s # Running test: glib/live-g-file.test 1215s TAP version 14 1215s # random seed: R02Sfcbe1eab9608986666cd46845e952b53 1215s 1..13 1215s # Start of live-g-file tests 1215s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_EOMR52/live-g-file/prep_clean_structure/.dirs/home 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/prep_clean_structure/.dirs/cache 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_EOMR52/live-g-file/prep_clean_structure/.dirs/system-config1:/tmp/test_live-g-file_EOMR52/live-g-file/prep_clean_structure/.dirs/system-config2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/prep_clean_structure/.dirs/config 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_EOMR52/live-g-file/prep_clean_structure/.dirs/system-data1:/tmp/test_live-g-file_EOMR52/live-g-file/prep_clean_structure/.dirs/system-data2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/prep_clean_structure/.dirs/data 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/prep_clean_structure/.dirs/state 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_EOMR52/live-g-file/prep_clean_structure/.dirs/runtime 1215s # Cleaning target testing structure in '/tmp/test_live-g-file_EOMR52/testdir_live-g-file'... 1215s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1215s ok 1 /live-g-file/prep_clean_structure 1215s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_EOMR52/live-g-file/create_structure/.dirs/home 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/create_structure/.dirs/cache 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_EOMR52/live-g-file/create_structure/.dirs/system-config1:/tmp/test_live-g-file_EOMR52/live-g-file/create_structure/.dirs/system-config2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/create_structure/.dirs/config 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_EOMR52/live-g-file/create_structure/.dirs/system-data1:/tmp/test_live-g-file_EOMR52/live-g-file/create_structure/.dirs/system-data2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/create_structure/.dirs/data 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/create_structure/.dirs/state 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_EOMR52/live-g-file/create_structure/.dirs/runtime 1215s # 1215s # Going to create testing structure in '/tmp/test_live-g-file_EOMR52/testdir_live-g-file'... 1215s # Creating directory 'dir1'... 1215s # Creating directory 'dir1/subdir'... 1215s # Creating directory 'dir2'... 1215s # Creating directory 'dir-target'... 1215s # Creating directory 'dir_no-access'... 1215s # Creating directory 'dir_no-write'... 1215s # Creating file 'target-file'... 1215s # Creating file 'normal_file'... 1215s # Creating symlink 'normal_file-symlink' --> 'normal_file'... 1215s # Creating file 'executable_file'... 1215s # Creating file 'private_file'... 1215s # Creating file 'normal_file2'... 1215s # Creating file 'readonly_file'... 1215s # Creating file 'UTF_pr?i?lis? z'... 1215s # Creating directory 'dir_pr?i?lis? z'... 1215s # Creating symlink 'lost_symlink' --> 'nowhere'... 1215s # Creating directory 'dir_hidden'... 1215s # Creating file 'dir_hidden/.a-hidden-file'... 1215s # Creating file 'dir_hidden/file-in-.hidden1'... 1215s # Creating file 'dir_hidden/file-in-.hidden2'... 1215s # Creating pattern file... 1215s # done. 1215s ok 2 /live-g-file/create_structure 1215s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_initial_structure/.dirs/home 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_initial_structure/.dirs/cache 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_EOMR52/live-g-file/test_initial_structure/.dirs/system-config1:/tmp/test_live-g-file_EOMR52/live-g-file/test_initial_structure/.dirs/system-config2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_initial_structure/.dirs/config 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_EOMR52/live-g-file/test_initial_structure/.dirs/system-data1:/tmp/test_live-g-file_EOMR52/live-g-file/test_initial_structure/.dirs/system-data2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_initial_structure/.dirs/data 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_initial_structure/.dirs/state 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_EOMR52/live-g-file/test_initial_structure/.dirs/runtime 1215s # Testing sample structure in '/tmp/test_live-g-file_EOMR52/testdir_live-g-file'... 1215s # Testing file 'dir1'... 1215s # Testing file 'dir1/subdir'... 1215s # Testing file 'dir2'... 1215s # Testing file 'dir-target'... 1215s # Testing file 'dir_no-access'... 1215s # Testing file 'dir_no-write'... 1215s # Testing file 'target-file'... 1215s # Testing file 'normal_file'... 1215s # Testing file 'normal_file-symlink'... 1215s # Testing file 'executable_file'... 1215s # Testing file 'private_file'... 1215s # Testing file 'normal_file2'... 1215s # Testing file 'readonly_file'... 1215s # Testing file 'UTF_pr?i?lis? z'... 1215s # Testing file 'dir_pr?i?lis? z'... 1215s # Testing file 'lost_symlink'... 1215s # Testing file 'dir_hidden'... 1215s # Testing file 'dir_hidden/.a-hidden-file'... 1215s # Testing file 'dir_hidden/file-in-.hidden1'... 1215s # Testing file 'dir_hidden/file-in-.hidden2'... 1215s # Testing pattern file... 1215s # read 65536 bytes, total = 65536 of 65536. 1215s ok 3 /live-g-file/test_initial_structure 1215s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_traverse_structure/.dirs/home 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_traverse_structure/.dirs/cache 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_EOMR52/live-g-file/test_traverse_structure/.dirs/system-config1:/tmp/test_live-g-file_EOMR52/live-g-file/test_traverse_structure/.dirs/system-config2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_traverse_structure/.dirs/config 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_EOMR52/live-g-file/test_traverse_structure/.dirs/system-data1:/tmp/test_live-g-file_EOMR52/live-g-file/test_traverse_structure/.dirs/system-data2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_traverse_structure/.dirs/data 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_traverse_structure/.dirs/state 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_EOMR52/live-g-file/test_traverse_structure/.dirs/runtime 1215s # Traversing through the sample structure in '/tmp/test_live-g-file_EOMR52/testdir_live-g-file'... 1215s # Found file dir1, relative to root: dir1 1215s # Found file subdir, relative to root: dir1/subdir 1215s # Found file dir2, relative to root: dir2 1215s # Found file dir-target, relative to root: dir-target 1215s # Found file dir_no-access, relative to root: dir_no-access 1215s # Found file dir_no-write, relative to root: dir_no-write 1215s # Found file target-file, relative to root: target-file 1215s # Found file normal_file, relative to root: normal_file 1215s # Found file normal_file-symlink, relative to root: normal_file-symlink 1215s # Found file executable_file, relative to root: executable_file 1215s # Found file private_file, relative to root: private_file 1215s # Found file normal_file2, relative to root: normal_file2 1215s # Found file readonly_file, relative to root: readonly_file 1215s # Found file UTF_pr?i?lis? z, relative to root: UTF_pr?i?lis? z 1215s # Found file dir_pr?i?lis? z, relative to root: dir_pr?i?lis? z 1215s # Found file lost_symlink, relative to root: lost_symlink 1215s # Found file dir_hidden, relative to root: dir_hidden 1215s # Found file .a-hidden-file, relative to root: dir_hidden/.a-hidden-file 1215s # Found file file-in-.hidden1, relative to root: dir_hidden/file-in-.hidden1 1215s # Found file .hidden, relative to root: dir_hidden/.hidden 1215s # Found file file-in-.hidden2, relative to root: dir_hidden/file-in-.hidden2 1215s # Found file pattern_file, relative to root: pattern_file 1215s ok 4 /live-g-file/test_traverse_structure 1215s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_enumerate/.dirs/home 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_enumerate/.dirs/cache 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_EOMR52/live-g-file/test_enumerate/.dirs/system-config1:/tmp/test_live-g-file_EOMR52/live-g-file/test_enumerate/.dirs/system-config2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_enumerate/.dirs/config 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_EOMR52/live-g-file/test_enumerate/.dirs/system-data1:/tmp/test_live-g-file_EOMR52/live-g-file/test_enumerate/.dirs/system-data2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_enumerate/.dirs/data 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_enumerate/.dirs/state 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_EOMR52/live-g-file/test_enumerate/.dirs/runtime 1215s # Test enumerate '/tmp/test_live-g-file_EOMR52/testdir_live-g-file'... 1215s # Testing file 'dir_no-access' 1215s # Testing file 'normal_file' 1215s # Testing file 'normal_file-symlink' 1215s # Testing file 'not_exists' 1215s # Testing file 'not_exists' 1215s # Testing file 'not_exists2' 1215s # Testing file 'not_exists3' 1215s # Testing file 'not_exists4' 1215s # Testing file 'dir_no-execute/file' 1215s ok 5 /live-g-file/test_enumerate 1215s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_open/.dirs/home 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_open/.dirs/cache 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_EOMR52/live-g-file/test_open/.dirs/system-config1:/tmp/test_live-g-file_EOMR52/live-g-file/test_open/.dirs/system-config2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_open/.dirs/config 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_EOMR52/live-g-file/test_open/.dirs/system-data1:/tmp/test_live-g-file_EOMR52/live-g-file/test_open/.dirs/system-data2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_open/.dirs/data 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_open/.dirs/state 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_EOMR52/live-g-file/test_open/.dirs/runtime 1215s # test_open: 'dir1' 1215s # test_open: 'dir_no-access' 1215s # test_open: 'target-file' 1215s # test_open: 'normal_file-symlink' 1215s # test_open: 'executable_file' 1215s # test_open: 'private_file' 1215s # test_open: 'readonly_file' 1215s # test_open: 'UTF_pr?i?lis? z' 1215s # test_open: 'pattern_file' 1215s # test_open: 'not_exists' 1215s # test_open: 'dir_no-execute/file' 1215s # test_open: 'lost_symlink' 1215s ok 6 /live-g-file/test_open 1215s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_create/.dirs/home 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_create/.dirs/cache 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_EOMR52/live-g-file/test_create/.dirs/system-config1:/tmp/test_live-g-file_EOMR52/live-g-file/test_create/.dirs/system-config2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_create/.dirs/config 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_EOMR52/live-g-file/test_create/.dirs/system-data1:/tmp/test_live-g-file_EOMR52/live-g-file/test_create/.dirs/system-data2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_create/.dirs/data 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_create/.dirs/state 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_EOMR52/live-g-file/test_create/.dirs/runtime 1215s # test_create: 'dir1' 1215s # error code 3 = Error opening file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/dir1?: Is a directory 1215s # test_create: 'dir1/subdir' 1215s # error code 3 = Error opening file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/dir1/subdir?: Is a directory 1215s # test_create: 'dir2' 1215s # error code 2 = Error opening file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/dir2?: File exists 1215s # test_create: 'normal_file' 1215s # error code 2 = Error opening file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/normal_file?: File exists 1215s # test_create: 'executable_file' 1215s # test_create: 'private_file' 1215s # test_create: 'normal_file2' 1215s # test_create: 'UTF_pr?i?lis? z' 1215s # error code 2 = Error opening file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/UTF_pr?i?lis? z?: File exists 1215s # test_create: 'dir_pr?i?lis? z' 1215s # error code 2 = Error opening file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/dir_pr?i?lis? z?: File exists 1215s # test_create: 'pattern_file' 1215s # test_create: 'not_exists2' 1215s # test_create: 'not_exists3' 1215s # test_create: 'not_exists4' 1215s ok 7 /live-g-file/test_create 1215s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_copy_move/.dirs/home 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_copy_move/.dirs/cache 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_EOMR52/live-g-file/test_copy_move/.dirs/system-config1:/tmp/test_live-g-file_EOMR52/live-g-file/test_copy_move/.dirs/system-config2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_copy_move/.dirs/config 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_EOMR52/live-g-file/test_copy_move/.dirs/system-data1:/tmp/test_live-g-file_EOMR52/live-g-file/test_copy_move/.dirs/system-data2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_copy_move/.dirs/data 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_copy_move/.dirs/state 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_EOMR52/live-g-file/test_copy_move/.dirs/runtime 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'dir1/subdir' --> 'dir-target' 1215s # res = 0, error code 25 = Can?t recursively copy directory 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'dir1/subdir' --> '.' 1215s # res = 0, error code 2 = Target file exists 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'dir1/subdir' --> 'target-file' 1215s # res = 0, error code 4 = Error when getting information for file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/target-file/dir1/subdir?: Not a directory 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'dir1/subdir' --> 'not_exists' 1215s # res = 0, error code 25 = Can?t recursively copy directory 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'dir1/subdir' --> 'dir_no-access' 1215s # res = 0, error code 25 = Can?t recursively copy directory 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'dir1/subdir' --> 'dir_no-write' 1215s # res = 0, error code 25 = Can?t recursively copy directory 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'dir2' --> 'dir-target' 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'dir-target' --> 'dir-target' 1215s # res = 0, error code 25 = Can?t recursively copy directory 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'dir-target' --> '.' 1215s # res = 0, error code 2 = Target file exists 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'dir-target' --> 'target-file' 1215s # res = 0, error code 4 = Error when getting information for file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/target-file/dir-target?: Not a directory 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'dir-target' --> 'not_exists' 1215s # res = 0, error code 25 = Can?t recursively copy directory 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'dir-target' --> 'dir_no-access' 1215s # res = 0, error code 25 = Can?t recursively copy directory 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'dir-target' --> 'dir_no-write' 1215s # res = 0, error code 25 = Can?t recursively copy directory 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'target-file' --> 'dir-target' 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'target-file' --> '.' 1215s # res = 0, error code 2 = Error opening file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/target-file?: File exists 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'target-file' --> 'target-file' 1215s # res = 0, error code 4 = Error opening file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/target-file/target-file?: Not a directory 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'target-file' --> 'not_exists' 1215s # res = 0, error code 1 = Error opening file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/not_exists/target-file?: No such file or directory 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'target-file' --> 'dir_no-access' 1215s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/dir_no-access/target-file?: Permission denied 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'target-file' --> 'dir_no-write' 1215s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/dir_no-write/target-file?: Permission denied 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'normal_file-symlink' --> 'dir-target' 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'normal_file-symlink' --> '.' 1215s # res = 0, error code 2 = Error making symbolic link /tmp/test_live-g-file_EOMR52/testdir_live-g-file/normal_file-symlink: File exists 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'normal_file-symlink' --> 'target-file' 1215s # res = 0, error code 4 = Error making symbolic link /tmp/test_live-g-file_EOMR52/testdir_live-g-file/target-file/normal_file-symlink: Not a directory 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'normal_file-symlink' --> 'not_exists' 1215s # res = 0, error code 1 = Error making symbolic link /tmp/test_live-g-file_EOMR52/testdir_live-g-file/not_exists/normal_file-symlink: No such file or directory 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'normal_file-symlink' --> 'dir_no-access' 1215s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_EOMR52/testdir_live-g-file/dir_no-access/normal_file-symlink: Permission denied 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'normal_file-symlink' --> 'dir_no-write' 1215s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_EOMR52/testdir_live-g-file/dir_no-write/normal_file-symlink: Permission denied 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'executable_file' --> 'dir-target' 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'executable_file' --> 'dir-target' 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'executable_file' --> '.' 1215s # res = 0, error code 2 = Error opening file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/executable_file?: File exists 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'executable_file' --> 'target-file' 1215s # res = 0, error code 4 = Error opening file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/target-file/executable_file?: Not a directory 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'executable_file' --> 'not_exists' 1215s # res = 0, error code 1 = Error opening file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/not_exists/executable_file?: No such file or directory 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'executable_file' --> 'dir_no-access' 1215s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/dir_no-access/executable_file?: Permission denied 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'executable_file' --> 'dir_no-write' 1215s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/dir_no-write/executable_file?: Permission denied 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'private_file' --> 'dir-target' 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'private_file' --> 'dir-target' 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'private_file' --> '.' 1215s # res = 0, error code 2 = Error opening file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/private_file?: File exists 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'private_file' --> 'target-file' 1215s # res = 0, error code 4 = Error opening file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/target-file/private_file?: Not a directory 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'private_file' --> 'not_exists' 1215s # res = 0, error code 1 = Error opening file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/not_exists/private_file?: No such file or directory 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'private_file' --> 'dir_no-access' 1215s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/dir_no-access/private_file?: Permission denied 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'private_file' --> 'dir_no-write' 1215s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/dir_no-write/private_file?: Permission denied 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'normal_file2' --> 'dir-target' 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'normal_file2' --> 'dir-target' 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'normal_file2' --> '.' 1215s # res = 0, error code 2 = Error opening file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/normal_file2?: File exists 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'normal_file2' --> 'target-file' 1215s # res = 0, error code 4 = Error opening file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/target-file/normal_file2?: Not a directory 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'normal_file2' --> 'not_exists' 1215s # res = 0, error code 1 = Error opening file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/not_exists/normal_file2?: No such file or directory 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'normal_file2' --> 'dir_no-access' 1215s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/dir_no-access/normal_file2?: Permission denied 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'normal_file2' --> 'dir_no-write' 1215s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/dir_no-write/normal_file2?: Permission denied 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'UTF_pr?i?lis? z' --> 'dir-target' 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'UTF_pr?i?lis? z' --> 'dir-target' 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'UTF_pr?i?lis? z' --> '.' 1215s # res = 0, error code 2 = Error opening file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/UTF_pr?i?lis? z?: File exists 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'UTF_pr?i?lis? z' --> 'target-file' 1215s # res = 0, error code 4 = Error opening file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/target-file/UTF_pr?i?lis? z?: Not a directory 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'UTF_pr?i?lis? z' --> 'not_exists' 1215s # res = 0, error code 1 = Error opening file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/not_exists/UTF_pr?i?lis? z?: No such file or directory 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'UTF_pr?i?lis? z' --> 'dir_no-access' 1215s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/dir_no-access/UTF_pr?i?lis? z?: Permission denied 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'UTF_pr?i?lis? z' --> 'dir_no-write' 1215s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/dir_no-write/UTF_pr?i?lis? z?: Permission denied 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'pattern_file' --> 'dir-target' 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'pattern_file' --> '.' 1215s # res = 0, error code 2 = Error opening file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/pattern_file?: File exists 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'pattern_file' --> 'target-file' 1215s # res = 0, error code 4 = Error opening file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/target-file/pattern_file?: Not a directory 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'pattern_file' --> 'not_exists' 1215s # res = 0, error code 1 = Error opening file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/not_exists/pattern_file?: No such file or directory 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'pattern_file' --> 'dir_no-access' 1215s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/dir_no-access/pattern_file?: Permission denied 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'pattern_file' --> 'dir_no-write' 1215s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/dir_no-write/pattern_file?: Permission denied 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'not_exists' --> 'dir-target' 1215s # res = 0, error code 1 = Error when getting information for file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/not_exists?: No such file or directory 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'not_exists' --> '.' 1215s # res = 0, error code 1 = Error when getting information for file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/not_exists?: No such file or directory 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'not_exists' --> 'target-file' 1215s # res = 0, error code 1 = Error when getting information for file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/not_exists?: No such file or directory 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'not_exists' --> 'not_exists' 1215s # res = 0, error code 1 = Error when getting information for file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/not_exists?: No such file or directory 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'not_exists' --> 'dir_no-access' 1215s # res = 0, error code 1 = Error when getting information for file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/not_exists?: No such file or directory 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'not_exists' --> 'dir_no-write' 1215s # res = 0, error code 1 = Error when getting information for file ?/tmp/test_live-g-file_EOMR52/testdir_live-g-file/not_exists?: No such file or directory 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'not_exists' --> 'dir-target' 1215s # res = 0, error code 1 = Error moving file /tmp/test_live-g-file_EOMR52/testdir_live-g-file/not_exists: No such file or directory 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'lost_symlink' --> 'dir-target' 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'lost_symlink' --> '.' 1215s # res = 0, error code 2 = Error making symbolic link /tmp/test_live-g-file_EOMR52/testdir_live-g-file/lost_symlink: File exists 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'lost_symlink' --> 'target-file' 1215s # res = 0, error code 4 = Error making symbolic link /tmp/test_live-g-file_EOMR52/testdir_live-g-file/target-file/lost_symlink: Not a directory 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'lost_symlink' --> 'not_exists' 1215s # res = 0, error code 1 = Error making symbolic link /tmp/test_live-g-file_EOMR52/testdir_live-g-file/not_exists/lost_symlink: No such file or directory 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'lost_symlink' --> 'dir_no-access' 1215s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_EOMR52/testdir_live-g-file/dir_no-access/lost_symlink: Permission denied 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s # do_copy_move: 'lost_symlink' --> 'dir_no-write' 1215s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_EOMR52/testdir_live-g-file/dir_no-write/lost_symlink: Permission denied 1215s ok 8 /live-g-file/test_copy_move 1215s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_delete/.dirs/home 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_delete/.dirs/cache 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_EOMR52/live-g-file/test_delete/.dirs/system-config1:/tmp/test_live-g-file_EOMR52/live-g-file/test_delete/.dirs/system-config2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_delete/.dirs/config 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_EOMR52/live-g-file/test_delete/.dirs/system-data1:/tmp/test_live-g-file_EOMR52/live-g-file/test_delete/.dirs/system-data2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_delete/.dirs/data 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_delete/.dirs/state 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_EOMR52/live-g-file/test_delete/.dirs/runtime 1215s # Deleting dir1, path = /tmp/test_live-g-file_EOMR52/testdir_live-g-file/dir1 1215s # result = 0, error = Error removing file /tmp/test_live-g-file_EOMR52/testdir_live-g-file/dir1: Directory not empty 1215s # Deleting dir2, path = /tmp/test_live-g-file_EOMR52/testdir_live-g-file/dir2 1215s # result = 0, error = Error removing file /tmp/test_live-g-file_EOMR52/testdir_live-g-file/dir2: No such file or directory 1215s # Deleting executable_file, path = /tmp/test_live-g-file_EOMR52/testdir_live-g-file/executable_file 1215s # result = 0, error = Error trashing file /tmp/test_live-g-file_EOMR52/testdir_live-g-file/executable_file: No such file or directory 1215s # Deleting readonly_file, path = /tmp/test_live-g-file_EOMR52/testdir_live-g-file/readonly_file 1215s # Deleting dir_pr?i?lis? z, path = /tmp/test_live-g-file_EOMR52/testdir_live-g-file/dir_pr?i?lis? z 1215s # Deleting not_exists, path = /tmp/test_live-g-file_EOMR52/testdir_live-g-file/not_exists 1215s # result = 0, error = Error removing file /tmp/test_live-g-file_EOMR52/testdir_live-g-file/not_exists: No such file or directory 1215s # Deleting not_exists, path = /tmp/test_live-g-file_EOMR52/testdir_live-g-file/not_exists 1215s # result = 0, error = Error trashing file /tmp/test_live-g-file_EOMR52/testdir_live-g-file/not_exists: No such file or directory 1215s # Deleting dir_no-execute/file, path = /tmp/test_live-g-file_EOMR52/testdir_live-g-file/dir_no-execute/file 1215s # result = 0, error = Error removing file /tmp/test_live-g-file_EOMR52/testdir_live-g-file/dir_no-execute/file: No such file or directory 1215s # Deleting lost_symlink, path = /tmp/test_live-g-file_EOMR52/testdir_live-g-file/lost_symlink 1215s ok 9 /live-g-file/test_delete 1215s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_make_directory_with_parents/.dirs/home 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_make_directory_with_parents/.dirs/cache 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_EOMR52/live-g-file/test_make_directory_with_parents/.dirs/system-config1:/tmp/test_live-g-file_EOMR52/live-g-file/test_make_directory_with_parents/.dirs/system-config2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_make_directory_with_parents/.dirs/config 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_EOMR52/live-g-file/test_make_directory_with_parents/.dirs/system-data1:/tmp/test_live-g-file_EOMR52/live-g-file/test_make_directory_with_parents/.dirs/system-data2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_make_directory_with_parents/.dirs/data 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_make_directory_with_parents/.dirs/state 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_EOMR52/live-g-file/test_make_directory_with_parents/.dirs/runtime 1215s # We do not have CAP_DAC_OVERRIDE or equivalent 1215s ok 10 /live-g-file/test_make_directory_with_parents 1215s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_EOMR52/live-g-file/final_clean/.dirs/home 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/final_clean/.dirs/cache 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_EOMR52/live-g-file/final_clean/.dirs/system-config1:/tmp/test_live-g-file_EOMR52/live-g-file/final_clean/.dirs/system-config2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/final_clean/.dirs/config 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_EOMR52/live-g-file/final_clean/.dirs/system-data1:/tmp/test_live-g-file_EOMR52/live-g-file/final_clean/.dirs/system-data2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/final_clean/.dirs/data 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/final_clean/.dirs/state 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_EOMR52/live-g-file/final_clean/.dirs/runtime 1215s # Cleaning target testing structure in '/tmp/test_live-g-file_EOMR52/testdir_live-g-file'... 1215s # deleting 'dir1' 1215s # deleting 'subdir' 1215s # deleting 'dir-target' 1215s # deleting 'dir2' 1215s # deleting 'target-file' 1215s # deleting 'normal_file-symlink' 1215s # deleting 'pattern_file' 1215s # deleting 'executable_file' 1215s # deleting 'private_file' 1215s # deleting 'normal_file2' 1215s # deleting 'UTF_pr?i?lis? z' 1215s # deleting 'lost_symlink' 1215s # deleting 'dir_no-access' 1215s # deleting 'dir_no-write' 1215s # deleting 'target-file' 1215s # deleting 'normal_file' 1215s # deleting 'normal_file-symlink' 1215s # deleting 'executable_file~' 1215s ok - glib/live-g-file.test 1215s # Running test: glib/gthash.test 1215s ok - glib/gthash.test 1215s # Running test: glib/unicode.test 1215s # deleting 'private_file' 1215s # deleting 'normal_file2~' 1215s # deleting 'a' 1215s # deleting 'UTF_pr?i?lis? z' 1215s # deleting 'dir_hidden' 1215s # deleting '.a-hidden-file' 1215s # deleting 'file-in-.hidden1' 1215s # deleting '.hidden' 1215s # deleting 'file-in-.hidden2' 1215s # deleting 'pattern_file' 1215s # deleting 'executable_file' 1215s # deleting 'normal_file2' 1215s # deleting 'not_exists2' 1215s # deleting 'not_exists3' 1215s # deleting 'not_exists4' 1215s ok 11 /live-g-file/final_clean 1215s # Start of test_unix_is_mountpoint tests 1215s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/home 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/cache 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_EOMR52/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-config1:/tmp/test_live-g-file_EOMR52/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-config2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/config 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_EOMR52/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-data1:/tmp/test_live-g-file_EOMR52/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-data2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/data 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/state 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_EOMR52/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/runtime 1215s ok 12 /live-g-file/test_unix_is_mountpoint/sysroot 1215s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_unix_is_mountpoint/proc/.dirs/home 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_unix_is_mountpoint/proc/.dirs/cache 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_EOMR52/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-config1:/tmp/test_live-g-file_EOMR52/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-config2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_unix_is_mountpoint/proc/.dirs/config 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_EOMR52/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-data1:/tmp/test_live-g-file_EOMR52/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-data2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_unix_is_mountpoint/proc/.dirs/data 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_EOMR52/live-g-file/test_unix_is_mountpoint/proc/.dirs/state 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_EOMR52/live-g-file/test_unix_is_mountpoint/proc/.dirs/runtime 1215s ok 13 /live-g-file/test_unix_is_mountpoint/proc 1215s # End of test_unix_is_mountpoint tests 1215s # End of live-g-file tests 1215s TAP version 14 1215s # random seed: R02S5937ccaa72ff4f6aab5ab36c2043b654 1215s 1..1 1215s # Start of gthash tests 1215s ok 1 /gthash/build-retrieve 1215s # End of gthash tests 1215s TAP version 14 1215s # random seed: R02Se69a415d283c7b3b6dc65e89f47e5cb6 1215s 1..39 1215s # Start of unicode tests 1215s ok 1 /unicode/alnum 1215s ok 2 /unicode/alpha 1215s ok 3 /unicode/break-type 1215s ok 4 /unicode/canonical-decomposition 1215s ok 5 /unicode/casefold 1215s # Cannot set locale to lt_LT, skipping 1215s # Cannot set locale to lt_LT, skipping 1215s # Cannot set locale to lt_LT, skipping 1215s # Cannot set locale to lt_LT, skipping 1215s # Cannot set locale to lt_LT, skipping 1215s # Cannot set locale to lt_LT, skipping 1215s # Cannot set locale to lt_LT, skipping 1215s # Cannot set locale to lt_LT, skipping 1215s # Cannot set locale to lt_LT, skipping 1215s # Cannot set locale to lt_LT, skipping 1215s # Cannot set locale to lt_LT, skipping 1215s ok 6 /unicode/casemap_and_casefold 1215s ok 7 /unicode/cases 1215s ok 8 /unicode/character-type 1215s ok 9 /unicode/cntrl 1215s ok 10 /unicode/combining-class 1215s # Composing U+000041 and U+000042; expecting U+000000 1215s # Composing U+000041 and U+000000; expecting U+000000 1215s # Composing U+000066 and U+000069; expecting U+000000 1215s # Composing U+000308 and U+000301; expecting U+000000 1215s # Composing U+000f71 and U+000f72; expecting U+000000 1215s # Composing U+00212b and U+000000; expecting U+000000 1215s # Composing U+0000c5 and U+000000; expecting U+000000 1215s # Composing U+002126 and U+000000; expecting U+000000 1215s # Composing U+0003a9 and U+000000; expecting U+000000 1215s # Composing U+000041 and U+00030a; expecting U+0000c5 1215s # Composing U+00006f and U+000302; expecting U+0000f4 1215s # Composing U+001e63 and U+000307; expecting U+001e69 1215s # Composing U+000073 and U+000323; expecting U+001e63 1215s # Composing U+000064 and U+000307; expecting U+001e0b 1215s # Composing U+000064 and U+000323; expecting U+001e0d 1215s # Composing U+00d4cc and U+0011b6; expecting U+00d4db 1215s # Composing U+001111 and U+001171; expecting U+00d4cc 1215s # Composing U+00ce20 and U+0011b8; expecting U+00ce31 1215s # Composing U+00110e and U+001173; expecting U+00ce20 1215s # Composing U+001100 and U+001160; expecting U+000000 1215s # Composing U+001100 and U+001177; expecting U+000000 1215s # Composing U+00abff and U+0011b6; expecting U+000000 1215s # Composing U+00d7a5 and U+0011b6; expecting U+000000 1215s # Composing U+00ac01 and U+0011b6; expecting U+000000 1215s # Composing U+00d4cc and U+0011a6; expecting U+000000 1215s # Composing U+00d4cc and U+0011c4; expecting U+000000 1215s # Composing U+01611e and U+01611e; expecting U+016121 1215s # Composing U+01611e and U+01611f; expecting U+016123 1215s # Composing U+0000f6 and U+000304; expecting U+00022b 1215s # Composing U+000b47 and U+000b57; expecting U+000b4c 1215s # Composing U+0000a0 and U+000b57; expecting U+000000 1215s # Composing U+016e00 and U+00030a; expecting U+000000 1215s # Composing U+00212b and U+016e00; expecting U+000000 1215s # Composing U+001e63 and U+000306; expecting U+000000 1215s # Composing U+001e63 and U+000304; expecting U+000000 1215s # Composing U+001e63 and U+000b57; expecting U+000000 1215s # Composing U+001e63 and U+000000; expecting U+000000 1215s # Composing U+001e63 and U+0113c2; expecting U+000000 1215s # Composing U+001f01 and U+0113c2; expecting U+000000 1215s # Composing U+00006e and U+000302; expecting U+000000 1215s # Composing U+001e63 and U+01611f; expecting U+000000 1215s # Composing U+01138e and U+0113b8; expecting U+000000 1215s # Composing U+01611e and U+000000; expecting U+000000 1215s # Composing U+000000 and U+01611f; expecting U+000000 1215s # Composing U+011390 and U+0113c2; expecting U+000000 1215s ok 11 /unicode/compose 1215s ok 12 /unicode/decompose 1215s ok 13 /unicode/decompose-tail 1215s ok 14 /unicode/defined 1215s ok 15 /unicode/digit 1215s ok 16 /unicode/digit-value 1215s # Fully decomposing U+000041; expecting 1 codepoints 1215s # Fully decomposing U+00fb01; expecting 1 codepoints 1215s # Fully decomposing U+00212b; expecting 2 codepoints 1215s # Fully decomposing U+002126; expecting 1 codepoints 1215s # Fully decomposing U+000344; expecting 2 codepoints 1215s # Fully decomposing U+000f73; expecting 2 codepoints 1215s # Fully decomposing U+0000c5; expecting 2 codepoints 1215s # Fully decomposing U+0000f4; expecting 2 codepoints 1215s # Fully decomposing U+001e69; expecting 3 codepoints 1215s # Fully decomposing U+001e63; expecting 2 codepoints 1215s # Fully decomposing U+001e0b; expecting 2 codepoints 1215s # Fully decomposing U+001e0d; expecting 2 codepoints 1215s # Fully decomposing U+00d4db; expecting 3 codepoints 1215s # Fully decomposing U+00d4cc; expecting 2 codepoints 1215s # Fully decomposing U+00ce31; expecting 3 codepoints 1215s # Fully decomposing U+00ce20; expecting 2 codepoints 1215s ok 17 /unicode/fully-decompose-canonical 1215s ok 18 /unicode/fully-decompose-len 1215s ok 19 /unicode/normalization 1215s ok 20 /unicode/graph 1215s # Testing script Zyyy (code 1517910393) 1215s # Testing script Zinh (code 1516858984) 1215s # Testing script Zmth (code 1517122664) 1215s # Testing script Arab (code 1098015074) 1215s # Testing script Armn (code 1098018158) 1215s # Testing script Beng (code 1113943655) 1215s # Testing script Bopo (code 1114599535) 1215s # Testing script Cher (code 1130915186) 1215s # Testing script Copt (code 1131376756) 1215s # Testing script Cyrl (code 1132032620) 1215s # Testing script Dsrt (code 1148416628) 1215s # Testing script Deva (code 1147500129) 1215s # Testing script Ethi (code 1165256809) 1215s # Testing script Geor (code 1197830002) 1215s # Testing script Goth (code 1198486632) 1215s # Testing script Grek (code 1198679403) 1215s # Testing script Gujr (code 1198877298) 1215s # Testing script Guru (code 1198879349) 1215s # Testing script Hani (code 1214344809) 1215s # Testing script Hang (code 1214344807) 1215s # Testing script Hebr (code 1214603890) 1215s # Testing script Hira (code 1214870113) 1215s # Testing script Knda (code 1265525857) 1215s # Testing script Kana (code 1264676449) 1215s # Testing script Khmr (code 1265134962) 1215s # Testing script Laoo (code 1281453935) 1215s # Testing script Latn (code 1281455214) 1215s # Testing script Mlym (code 1298954605) 1215s # Testing script Mong (code 1299148391) 1215s # Testing script Mymr (code 1299803506) 1215s # Testing script Ogam (code 1332175213) 1215s # Testing script Ital (code 1232363884) 1215s # Testing script Orya (code 1332902241) 1215s # Testing script Runr (code 1383427698) 1215s # Testing script Sinh (code 1399418472) 1215s # Testing script Syrc (code 1400468067) 1215s # Testing script Taml (code 1415671148) 1215s # Testing script Telu (code 1415933045) 1215s # Testing script Thaa (code 1416126817) 1215s # Testing script Thai (code 1416126825) 1215s # Testing script Tibt (code 1416192628) 1215s # Testing script Cans (code 1130458739) 1215s # Testing script Yiii (code 1500080489) 1215s # Testing script Tglg (code 1416064103) 1215s # Testing script Hano (code 1214344815) 1215s # Testing script Buhd (code 1114990692) 1215s # Testing script Tagb (code 1415669602) 1215s # Testing script Brai (code 1114792297) 1215s # Testing script Cprt (code 1131442804) 1215s # Testing script Limb (code 1281977698) 1215s # Testing script Osma (code 1332964705) 1215s # Testing script Shaw (code 1399349623) 1215s # Testing script Linb (code 1281977954) 1215s # Testing script Tale (code 1415670885) 1215s # Testing script Ugar (code 1432838514) 1215s # Testing script Talu (code 1415670901) 1215s # Testing script Bugi (code 1114990441) 1215s # Testing script Glag (code 1198285159) 1215s # Testing script Tfng (code 1415999079) 1215s # Testing script Sylo (code 1400466543) 1215s # Testing script Xpeo (code 1483761007) 1215s # Testing script Khar (code 1265131890) 1215s # Testing script Zzzz (code 1517976186) 1215s # Testing script Bali (code 1113681001) 1215s # Testing script Xsux (code 1483961720) 1215s # Testing script Phnx (code 1349021304) 1215s # Testing script Phag (code 1349017959) 1215s # Testing script Nkoo (code 1315663727) 1215s # Testing script Kali (code 1264675945) 1215s # Testing script Lepc (code 1281716323) 1215s # Testing script Rjng (code 1382706791) 1215s # Testing script Sund (code 1400204900) 1215s # Testing script Saur (code 1398895986) 1215s # Testing script Cham (code 1130914157) 1215s # Testing script Olck (code 1332503403) 1215s # Testing script Vaii (code 1449224553) 1215s # Testing script Cari (code 1130459753) 1215s # Testing script Lyci (code 1283023721) 1215s # Testing script Lydi (code 1283023977) 1215s # Testing script Avst (code 1098281844) 1215s # Testing script Bamu (code 1113681269) 1215s # Testing script Egyp (code 1164409200) 1215s # Testing script Armi (code 1098018153) 1215s # Testing script Phli (code 1349020777) 1215s # Testing script Prti (code 1349678185) 1215s # Testing script Java (code 1247901281) 1215s # Testing script Kthi (code 1265920105) 1215s # Testing script Lisu (code 1281979253) 1215s # Testing script Mtei (code 1299473769) 1215s # Testing script Sarb (code 1398895202) 1215s # Testing script Orkh (code 1332898664) 1215s # Testing script Samr (code 1398893938) 1215s # Testing script Lana (code 1281453665) 1215s # Testing script Tavt (code 1415673460) 1215s # Testing script Batk (code 1113683051) 1215s # Testing script Brah (code 1114792296) 1215s # Testing script Mand (code 1298230884) 1215s # Testing script Cakm (code 1130457965) 1215s # Testing script Merc (code 1298494051) 1215s # Testing script Mero (code 1298494063) 1215s # Testing script Plrd (code 1349284452) 1215s # Testing script Shrd (code 1399353956) 1215s # Testing script Sora (code 1399812705) 1215s # Testing script Takr (code 1415670642) 1215s # Testing script Bass (code 1113682803) 1215s # Testing script Aghb (code 1097295970) 1215s # Testing script Dupl (code 1148547180) 1215s # Testing script Elba (code 1164730977) 1215s # Testing script Gran (code 1198678382) 1215s # Testing script Khoj (code 1265135466) 1215s # Testing script Sind (code 1399418468) 1215s # Testing script Lina (code 1281977953) 1215s # Testing script Mahj (code 1298229354) 1215s # Testing script Mani (code 1298230889) 1215s # Testing script Mend (code 1298493028) 1215s # Testing script Modi (code 1299145833) 1215s # Testing script Mroo (code 1299345263) 1215s # Testing script Nbat (code 1315070324) 1215s # Testing script Narb (code 1315009122) 1215s # Testing script Perm (code 1348825709) 1215s # Testing script Hmng (code 1215131239) 1215s # Testing script Palm (code 1348562029) 1215s # Testing script Pauc (code 1348564323) 1215s # Testing script Phlp (code 1349020784) 1215s # Testing script Sidd (code 1399415908) 1215s # Testing script Tirh (code 1416196712) 1215s # Testing script Wara (code 1466004065) 1215s # Testing script Ahom (code 1097363309) 1215s # Testing script Hluw (code 1215067511) 1215s # Testing script Hatr (code 1214346354) 1215s # Testing script Mult (code 1299541108) 1215s # Testing script Hung (code 1215655527) 1215s # Testing script Sgnw (code 1399287415) 1215s # Testing script Adlm (code 1097100397) 1215s # Testing script Bhks (code 1114139507) 1215s # Testing script Marc (code 1298231907) 1215s # Testing script Newa (code 1315272545) 1215s # Testing script Osge (code 1332963173) 1215s # Testing script Tang (code 1415671399) 1215s # Testing script Gonm (code 1198485101) 1215s # Testing script Nshu (code 1316186229) 1215s # Testing script Soyo (code 1399814511) 1215s # Testing script Zanb (code 1516334690) 1215s # Testing script Dogr (code 1148151666) 1215s # Testing script Gong (code 1198485095) 1215s # Testing script Rohg (code 1383032935) 1215s # Testing script Maka (code 1298230113) 1215s # Testing script Medf (code 1298490470) 1215s # Testing script Sogo (code 1399809903) 1215s # Testing script Sogd (code 1399809892) 1215s # Testing script Elym (code 1164736877) 1215s # Testing script Nand (code 1315008100) 1215s # Testing script Hmnp (code 1215131248) 1215s # Testing script Wcho (code 1466132591) 1215s # Testing script Chrs (code 1130918515) 1215s # Testing script Diak (code 1147756907) 1215s # Testing script Kits (code 1265202291) 1215s # Testing script Yezi (code 1499822697) 1215s # Testing script Cpmn (code 1131441518) 1215s # Testing script Ougr (code 1333094258) 1215s # Testing script Tnsa (code 1416524641) 1215s # Testing script Toto (code 1416590447) 1215s # Testing script Vith (code 1449751656) 1215s # Testing script Kawi (code 1264678761) 1215s # Testing script Nagm (code 1315006317) 1215s # Testing script Todr (code 1416586354) 1215s # Testing script Gara (code 1197568609) 1215s # Testing script Tutg (code 1416983655) 1215s # Testing script Sunu (code 1400204917) 1215s # Testing script Gukh (code 1198877544) 1215s # Testing script Krai (code 1265787241) 1215s # Testing script Onao (code 1332633967) 1215s ok 21 /unicode/iso15924 1215s ok 22 /unicode/lower 1215s ok 23 /unicode/mark 1215s ok 24 /unicode/mirror 1215s ok 25 /unicode/print 1215s ok 26 /unicode/punctuation 1215s ok 27 /unicode/script 1215s ok 28 /unicode/space 1215s ok 29 /unicode/strdown 1215s ok 30 /unicode/strup 1215s ok - glib/unicode.test 1215s ok 31 /unicode/turkish-strupdown 1215s ok 32 /unicode/title 1215s ok 33 /unicode/upper 1215s ok 34 /unicode/validate 1215s ok 35 /unicode/wide 1215s ok 36 /unicode/xdigit 1215s ok 37 /unicode/xdigit-value 1215s ok 38 /unicode/zero-width 1215s ok 39 /unicode/normalize 1215s # End of unicode tests 1215s # Running test: glib/buffered-input-stream.test 1215s TAP version 14 1215s # random seed: R02Sdd1bf6b71b64e949e977c8d72fd801ff 1215s 1..10 1215s # Start of buffered-input-stream tests 1215s ok 1 /buffered-input-stream/peek 1215s ok 2 /buffered-input-stream/peek-buffer 1215s ok 3 /buffered-input-stream/set-buffer-size 1215s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=562393 1215s ok 4 /buffered-input-stream/read-byte 1215s ok 5 /buffered-input-stream/read 1215s ok - glib/buffered-input-stream.test 1215s ok 6 /buffered-input-stream/read-async 1215s ok 7 /buffered-input-stream/skip 1215s ok 8 /buffered-input-stream/skip-async 1215s ok 9 /buffered-input-stream/seek 1215s # End of buffered-input-stream tests 1215s # Start of filter-input-stream tests 1215s ok 10 /filter-input-stream/close 1215s # End of filter-input-stream tests 1215s # Running test: glib/static-link.test 1215s Test disabled because GLIB_TEST_COMPILATION is not set in the env. 1215s If you wish to run this test, set GLIB_TEST_COMPILATION=1 in the env, 1215s and make sure you have glib build dependencies installed, including 1215s meson. 1215s ok # SKIP - glib/static-link.test 1215s # Running test: glib/list.test 1215s TAP version 14 1215s # random seed: R02S7125be4cd463535ce6da2ed4283bb71a 1215s 1..20 1215s # Start of list tests 1215s ok 1 /list/sort 1215s ok 2 /list/sort-with-data 1215s ok 3 /list/insert-before-link 1215s ok 4 /list/insert-sorted 1215s ok 5 /list/insert-sorted-with-data 1215s ok 6 /list/reverse 1215s ok 7 /list/nth 1215s ok 8 /list/concat 1215s ok 9 /list/remove 1215s ok 10 /list/remove-all 1215s ok 11 /list/first-last 1215s ok 12 /list/insert 1215s ok 13 /list/free-full 1215s ok 14 /list/copy 1215s ok 15 /list/copy-deep 1215s ok 16 /list/delete-link 1215s ok 17 /list/prepend 1215s ok 18 /list/position 1215s ok 19 /list/double-free 1215s # Start of sort tests 1215s ok 20 /list/sort/stable 1215s # End of sort tests 1215s # End of list tests 1215s ok - glib/list.test 1215s # Running test: glib/socket-address.test 1215s TAP version 14 1215s # random seed: R02Sf7c9936c5c3756502e9c9d2471db52bf 1215s 1..2 1215s # Start of socket tests 1215s # Start of address tests 1215s # Start of unix tests 1215s ok 1 /socket/address/unix/construct 1215s ok 2 /socket/address/unix/to-string 1215s # End of unix tests 1215s # End of address tests 1215s # End of socket tests 1215s ok - glib/socket-address.test 1215s # Running test: glib/utils-c-17.test 1215s TAP version 14 1215s # random seed: R02S493a6f0e71fae29c6fa2c03a77ebd44e 1215s 1..41 1215s # Start of utils tests 1215s ok 1 /utils/language-names 1215s ok 2 /utils/locale-variants 1215s ok 3 /utils/version 1215s ok 4 /utils/appname 1215s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1215s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1215s ok 5 /utils/prgname-thread-safety 1215s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1215s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1215s ok 6 /utils/tmpdir 1215s ok 7 /utils/basic_bits 1215s ok 8 /utils/bits 1215s ok 9 /utils/swap 1215s ok 10 /utils/find-program 1215s ok 11 /utils/find-program-for-path 1215s ok 12 /utils/debug 1215s ok 13 /utils/codeset 1215s ok 14 /utils/codeset2 1215s ok 15 /utils/console-charset 1215s ok 16 /utils/gettext 1215s ok 17 /utils/username 1215s ok 18 /utils/realname 1215s ok 19 /utils/hostname 1215s ok 20 /utils/xdgdirs 1215s ok 21 /utils/specialdir 1215s # NAME: Ubuntu 1215s ok 22 /utils/os-info 1215s ok 23 /utils/clear-pointer 1215s ok 24 /utils/clear-pointer-cast 1215s ok 25 /utils/take-pointer 1215s ok 26 /utils/clear-source 1215s ok 27 /utils/misc-mem 1215s # /utils/aligned-mem summary: Aligned memory allocator 1215s # Alignment must not be zero 1215s # Alignment must be a power of two 1215s # Alignment must be a multiple of sizeof(void*) 1215s ok 28 /utils/aligned-mem 1215s # /utils/free-sized summary: Check that g_free_sized() works 1215s ok 29 /utils/free-sized 1215s ok 30 /utils/nullify 1215s ok 31 /utils/atexit 1215s ok 32 /utils/check-setuid 1215s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1215s ok 33 /utils/int-limits 1215s ok 34 /utils/clear-list 1215s ok 35 /utils/clear-slist 1215s ok 36 /utils/steal-handle-id 1215s # Start of specialdir tests 1215s ok 37 /utils/specialdir/desktop 1215s # End of specialdir tests 1215s # Start of clear-pointer tests 1215s ok 38 /utils/clear-pointer/side-effects 1215s # End of clear-pointer tests 1215s # Start of aligned-mem tests 1215s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1215s ok 39 /utils/aligned-mem/alignment 1215s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1215s ok 40 /utils/aligned-mem/zeroed 1215s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1215s ok 41 /utils/aligned-mem/free-sized 1215s # Start of subprocess tests 1215s # End of subprocess tests 1215s # End of aligned-mem tests 1215s # End of utils tests 1215s ok - glib/utils-c-17.test 1215s # Running test: glib/refstring.test 1215s TAP version 14 1215s # random seed: R02Sfda34b7c558b71aaaae3ae20f38eea5a 1215s 1..8 1215s # Start of refstring tests 1215s # s = 'hello, world' (0xba2ffac993d0) 1215s ok 1 /refstring/base 1215s ok 2 /refstring/length 1215s ok 3 /refstring/length-auto 1215s ok 4 /refstring/length-nuls 1215s # s = 'hello, world' (0xba2ffac99270) 1215s # p = s = 'hello, world' (0xba2ffac99270) 1215s # releasing p[0xba2ffac99270] ('hello, world') 1215s # p = 'goodbye, world' (0xba2ffac993d0) 1215s # releasing p[0xba2ffac993d0] ('goodbye, world') 1215s # releasing s[0xba2ffac99270] ('hello, world') 1215s ok 5 /refstring/intern 1215s # /refstring/hash_equal summary: Test g_ref_string_equal() in GHashTable 1215s ok 6 /refstring/hash_equal 1215s # /refstring/equal summary: Test g_ref_string_equal() standalone 1215s ok 7 /refstring/equal 1216s ok 8 /refstring/intern-thread-safety 1216s # slow test /refstring/intern-thread-safety executed in 0.81 secs 1216s # End of refstring tests 1216s ok - glib/refstring.test 1216s # Running test: glib/spawn-test.test 1216s TAP version 14 1216s # random seed: R02Sfdba44aeb2def9afbb4c53da4e2e5897 1216s 1..2 1216s # Start of spawn tests 1216s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_spawn-test_5LRU52/spawn/basics/.dirs/home 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_spawn-test_5LRU52/spawn/basics/.dirs/cache 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_spawn-test_5LRU52/spawn/basics/.dirs/system-config1:/tmp/test_spawn-test_5LRU52/spawn/basics/.dirs/system-config2 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_spawn-test_5LRU52/spawn/basics/.dirs/config 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_spawn-test_5LRU52/spawn/basics/.dirs/system-data1:/tmp/test_spawn-test_5LRU52/spawn/basics/.dirs/system-data2 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_spawn-test_5LRU52/spawn/basics/.dirs/data 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_spawn-test_5LRU52/spawn/basics/.dirs/state 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_spawn-test_5LRU52/spawn/basics/.dirs/runtime 1216s ok 1 /spawn/basics 1216s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_spawn-test_5LRU52/spawn/stdio-overwrite/.dirs/home 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_spawn-test_5LRU52/spawn/stdio-overwrite/.dirs/cache 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_spawn-test_5LRU52/spawn/stdio-overwrite/.dirs/system-config1:/tmp/test_spawn-test_5LRU52/spawn/stdio-overwrite/.dirs/system-config2 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_spawn-test_5LRU52/spawn/stdio-overwrite/.dirs/config 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_spawn-test_5LRU52/spawn/stdio-overwrite/.dirs/system-data1:/tmp/test_spawn-test_5LRU52/spawn/stdio-overwrite/.dirs/system-data2 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_spawn-test_5LRU52/spawn/stdio-overwrite/.dirs/data 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_spawn-test_5LRU52/spawn/stdio-overwrite/.dirs/state 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_spawn-test_5LRU52/spawn/stdio-overwrite/.dirs/runtime 1216s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/16 1216s # Fetching GSpawn result output and error output with stdin open, stdout open, stderr open 1216s # Fetching GSpawn result output and error output with stdin open, stdout open, stderr already closed 1216s # Fetching GSpawn result output and error output with stdin open, stdout already closed, stderr open 1216s ok - glib/spawn-test.test 1216s # Running test: glib/portal-support-snap-classic.test 1216s # Fetching GSpawn result output and error output with stdin open, stdout already closed, stderr already closed 1216s # Fetching GSpawn result output and error output with stdin already closed, stdout open, stderr open 1216s # Fetching GSpawn result output and error output with stdin already closed, stdout open, stderr already closed 1216s # Fetching GSpawn result output and error output with stdin already closed, stdout already closed, stderr open 1216s # Fetching GSpawn result output and error output with stdin already closed, stdout already closed, stderr already closed 1216s # Fetching GSpawn result output with stdin open, stdout open, stderr open 1216s # Fetching GSpawn result output with stdin open, stdout open, stderr already closed 1216s # Fetching GSpawn result output with stdin open, stdout already closed, stderr open 1216s # Fetching GSpawn result output with stdin open, stdout already closed, stderr already closed 1216s # Fetching GSpawn result output with stdin already closed, stdout open, stderr open 1216s # Fetching GSpawn result output with stdin already closed, stdout open, stderr already closed 1216s # Fetching GSpawn result output with stdin already closed, stdout already closed, stderr open 1216s # Fetching GSpawn result output with stdin already closed, stdout already closed, stderr already closed 1216s # Fetching GSpawn result error output with stdin open, stdout open, stderr open 1216s # Fetching GSpawn result error output with stdin open, stdout open, stderr already closed 1216s # Fetching GSpawn result error output with stdin open, stdout already closed, stderr open 1216s # Fetching GSpawn result error output with stdin open, stdout already closed, stderr already closed 1216s # Fetching GSpawn result error output with stdin already closed, stdout open, stderr open 1216s # Fetching GSpawn result error output with stdin already closed, stdout open, stderr already closed 1216s # Fetching GSpawn result error output with stdin already closed, stdout already closed, stderr open 1216s # Fetching GSpawn result error output with stdin already closed, stdout already closed, stderr already closed 1216s # Fetching GSpawn result with stdin open, stdout open, stderr open 1216s # Fetching GSpawn result with stdin open, stdout open, stderr already closed 1216s # Fetching GSpawn result with stdin open, stdout already closed, stderr open 1216s # Fetching GSpawn result with stdin open, stdout already closed, stderr already closed 1216s # Fetching GSpawn result with stdin already closed, stdout open, stderr open 1216s # Fetching GSpawn result with stdin already closed, stdout open, stderr already closed 1216s # Fetching GSpawn result with stdin already closed, stdout already closed, stderr open 1216s # Fetching GSpawn result with stdin already closed, stdout already closed, stderr already closed 1216s ok 2 /spawn/stdio-overwrite 1216s # End of spawn tests 1216s TAP version 14 1216s # random seed: R02S7c74a1a46824d2c585ecc6ee3bd2e58d 1216s 1..3 1216s # Start of portal-support tests 1216s # Start of snap-classic tests 1216s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_FKG852/portal-support/snap-classic/no-snapctl/.dirs/home 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_FKG852/portal-support/snap-classic/no-snapctl/.dirs/cache 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_FKG852/portal-support/snap-classic/no-snapctl/.dirs/system-config1:/tmp/test_portal-support-snap-classic_FKG852/portal-support/snap-classic/no-snapctl/.dirs/system-config2 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_FKG852/portal-support/snap-classic/no-snapctl/.dirs/config 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_FKG852/portal-support/snap-classic/no-snapctl/.dirs/system-data1:/tmp/test_portal-support-snap-classic_FKG852/portal-support/snap-classic/no-snapctl/.dirs/system-data2 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_FKG852/portal-support/snap-classic/no-snapctl/.dirs/data 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_FKG852/portal-support/snap-classic/no-snapctl/.dirs/state 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_FKG852/portal-support/snap-classic/no-snapctl/.dirs/runtime 1216s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_FKG852/portal-support/snap-classic/no-snapctl: No such file or directory 1216s ok 1 /portal-support/snap-classic/no-snapctl 1216s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_FKG852/portal-support/snap-classic/none/.dirs/home 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_FKG852/portal-support/snap-classic/none/.dirs/cache 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_FKG852/portal-support/snap-classic/none/.dirs/system-config1:/tmp/test_portal-support-snap-classic_FKG852/portal-support/snap-classic/none/.dirs/system-config2 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_FKG852/portal-support/snap-classic/none/.dirs/config 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_FKG852/portal-support/snap-classic/none/.dirs/system-data1:/tmp/test_portal-support-snap-classic_FKG852/portal-support/snap-classic/none/.dirs/system-data2 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_FKG852/portal-support/snap-classic/none/.dirs/data 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_FKG852/portal-support/snap-classic/none/.dirs/state 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_FKG852/portal-support/snap-classic/none/.dirs/runtime 1216s # Created snap.yaml in /tmp/test_portal-support-snap-classic_FKG852/meta/snap.yaml 1216s # Created snapctl in /tmp/test_portal-support-snap-classic_FKG852/portal-support/snap-classic/none/.dirs/runtime/snapctl 1216s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_FKG852/portal-support/snap-classic/none: No such file or directory 1216s ok 2 /portal-support/snap-classic/none 1216s ok - glib/portal-support-snap-classic.test 1216s # Running test: glib/memory-input-stream.test 1216s ok - glib/memory-input-stream.test 1216s # Running test: glib/gdbus-threading.test 1216s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_FKG852/portal-support/snap-classic/all/.dirs/home 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_FKG852/portal-support/snap-classic/all/.dirs/cache 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_FKG852/portal-support/snap-classic/all/.dirs/system-config1:/tmp/test_portal-support-snap-classic_FKG852/portal-support/snap-classic/all/.dirs/system-config2 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_FKG852/portal-support/snap-classic/all/.dirs/config 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_FKG852/portal-support/snap-classic/all/.dirs/system-data1:/tmp/test_portal-support-snap-classic_FKG852/portal-support/snap-classic/all/.dirs/system-data2 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_FKG852/portal-support/snap-classic/all/.dirs/data 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_FKG852/portal-support/snap-classic/all/.dirs/state 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_FKG852/portal-support/snap-classic/all/.dirs/runtime 1216s # Created snap.yaml in /tmp/test_portal-support-snap-classic_FKG852/meta/snap.yaml 1216s # Created snapctl in /tmp/test_portal-support-snap-classic_FKG852/portal-support/snap-classic/all/.dirs/runtime/snapctl 1216s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_FKG852/portal-support/snap-classic/all: No such file or directory 1216s ok 3 /portal-support/snap-classic/all 1216s # End of snap-classic tests 1216s # End of portal-support tests 1216s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_FKG852: No such file or directory 1216s TAP version 14 1216s # random seed: R02Sfa12fb0d06c7bdf9ceeb5e2cb8d03e21 1216s 1..6 1216s # Start of memory-input-stream tests 1216s ok 1 /memory-input-stream/read-chunks 1216s ok 2 /memory-input-stream/async 1216s ok 3 /memory-input-stream/seek 1216s ok 4 /memory-input-stream/truncate 1216s ok 5 /memory-input-stream/read-bytes 1216s ok 6 /memory-input-stream/from-bytes 1216s # End of memory-input-stream tests 1216s TAP version 14 1216s # random seed: R02S57e3a4323a0e5c7d14bf189f44fa4caf 1216s # 1..0 # SKIP all gdbus-threading tests skipped because they are too unreliable (glib#1515) 1216s ok - glib/gdbus-threading.test 1216s # Running test: glib/properties-refcount2.test 1216s TAP version 14 1216s # random seed: R02Sa16bc8b132d35286db7ee6b5aebcb818 1216s 1..1 1216s # Start of gobject tests 1216s # Start of refcount tests 1216s # init 0xb741ea16fe40 1216s # 1216s # . 1216s # . 1216s # . 1216s # . 1216s # . 1216s # . 1216s # . 1216s # . 1216s # . 1216s # . 1216s # . 1216s # . 1216s # . 1216s # . 1216s # . 1216s # . 1216s # . 1216s # . 1216s # . 1216s # . 1216s # . 1216s # . 1216s # . 1216s # . 1216s # . 1216s # . 1216s # . 1216s # . 1216s # . 1216s # . 1216s # . 1216s # . 1216s # . 1216s # . 1216s # . 1216s # . 1216s # . 1216s # . 1216s # . 1216s # . 1216s # . 1217s # . 1217s # Executing: glib/properties-refcount2.test 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s # . 1217s ok - glib/properties-refcount2.test 1217s # . 1217s # dispose 0xb741ea16fe40! 1217s # 1217s ok 1 /gobject/refcount/properties-2 1217s # slow test /gobject/refcount/properties-2 executed in 0.98 secs 1217s # End of refcount tests 1217s # End of gobject tests 1217s # Running test: glib/memory-monitor-portal.test 1218s TAP version 13 1218s ok 1 __main__.TestLowMemoryMonitorPortal.test_low_memory_warning_portal_signal # SKIP xdg-desktop-portal not available 1218s 1..1 1218s ok - glib/memory-monitor-portal.test 1218s # Running test: glib/utils-isolated.test 1218s TAP version 14 1218s # random seed: R02S5ea7561ad9ecafde14ca2ab4139d9554 1218s 1..11 1218s # Start of utils-isolated tests 1218s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_3NCW52/utils-isolated/tmp-dir/.dirs/home 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_3NCW52/utils-isolated/tmp-dir/.dirs/cache 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_3NCW52/utils-isolated/tmp-dir/.dirs/system-config1:/tmp/test_utils-isolated_3NCW52/utils-isolated/tmp-dir/.dirs/system-config2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_3NCW52/utils-isolated/tmp-dir/.dirs/config 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_3NCW52/utils-isolated/tmp-dir/.dirs/system-data1:/tmp/test_utils-isolated_3NCW52/utils-isolated/tmp-dir/.dirs/system-data2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_3NCW52/utils-isolated/tmp-dir/.dirs/data 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_3NCW52/utils-isolated/tmp-dir/.dirs/state 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_3NCW52/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_3NCW52/utils-isolated/home-dir/.dirs/home 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_3NCW52/utils-isolated/home-dir/.dirs/cache 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_3NCW52/utils-isolated/home-dir/.dirs/system-config1:/tmp/test_utils-isolated_3NCW52/utils-isolated/home-dir/.dirs/system-config2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_3NCW52/utils-isolated/home-dir/.dirs/config 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_3NCW52/utils-isolated/home-dir/.dirs/system-data1:/tmp/test_utils-isolated_3NCW52/utils-isolated/home-dir/.dirs/system-data2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_3NCW52/utils-isolated/home-dir/.dirs/data 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_3NCW52/utils-isolated/home-dir/.dirs/state 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_3NCW52/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_3NCW52/utils-isolated/user-cache-dir/.dirs/home 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_3NCW52/utils-isolated/user-cache-dir/.dirs/cache 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_3NCW52/utils-isolated/user-cache-dir/.dirs/system-config1:/tmp/test_utils-isolated_3NCW52/utils-isolated/user-cache-dir/.dirs/system-config2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_3NCW52/utils-isolated/user-cache-dir/.dirs/config 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_3NCW52/utils-isolated/user-cache-dir/.dirs/system-data1:/tmp/test_utils-isolated_3NCW52/utils-isolated/user-cache-dir/.dirs/system-data2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_3NCW52/utils-isolated/user-cache-dir/.dirs/data 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_3NCW52/utils-isolated/user-cache-dir/.dirs/state 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_3NCW52/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_3NCW52/utils-isolated/system-config-dirs/.dirs/home 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_3NCW52/utils-isolated/system-config-dirs/.dirs/cache 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_3NCW52/utils-isolated/system-config-dirs/.dirs/system-config1:/tmp/test_utils-isolated_3NCW52/utils-isolated/system-config-dirs/.dirs/system-config2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_3NCW52/utils-isolated/system-config-dirs/.dirs/config 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_3NCW52/utils-isolated/system-config-dirs/.dirs/system-data1:/tmp/test_utils-isolated_3NCW52/utils-isolated/system-config-dirs/.dirs/system-data2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_3NCW52/utils-isolated/system-config-dirs/.dirs/data 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_3NCW52/utils-isolated/system-config-dirs/.dirs/state 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_3NCW52/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_3NCW52/utils-isolated/user-config-dir/.dirs/home 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_3NCW52/utils-isolated/user-config-dir/.dirs/cache 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_3NCW52/utils-isolated/user-config-dir/.dirs/system-config1:/tmp/test_utils-isolated_3NCW52/utils-isolated/user-config-dir/.dirs/system-config2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_3NCW52/utils-isolated/user-config-dir/.dirs/config 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_3NCW52/utils-isolated/user-config-dir/.dirs/system-data1:/tmp/test_utils-isolated_3NCW52/utils-isolated/user-config-dir/.dirs/system-data2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_3NCW52/utils-isolated/user-config-dir/.dirs/data 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_3NCW52/utils-isolated/user-config-dir/.dirs/state 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_3NCW52/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_3NCW52/utils-isolated/system-data-dirs/.dirs/home 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_3NCW52/utils-isolated/system-data-dirs/.dirs/cache 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_3NCW52/utils-isolated/system-data-dirs/.dirs/system-config1:/tmp/test_utils-isolated_3NCW52/utils-isolated/system-data-dirs/.dirs/system-config2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_3NCW52/utils-isolated/system-data-dirs/.dirs/config 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_3NCW52/utils-isolated/system-data-dirs/.dirs/system-data1:/tmp/test_utils-isolated_3NCW52/utils-isolated/system-data-dirs/.dirs/system-data2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_3NCW52/utils-isolated/system-data-dirs/.dirs/data 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_3NCW52/utils-isolated/system-data-dirs/.dirs/state 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_3NCW52/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_3NCW52/utils-isolated/user-data-dir/.dirs/home 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_3NCW52/utils-isolated/user-data-dir/.dirs/cache 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_3NCW52/utils-isolated/user-data-dir/.dirs/system-config1:/tmp/test_utils-isolated_3NCW52/utils-isolated/user-data-dir/.dirs/system-config2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_3NCW52/utils-isolated/user-data-dir/.dirs/config 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_3NCW52/utils-isolated/user-data-dir/.dirs/system-data1:/tmp/test_utils-isolated_3NCW52/utils-isolated/user-data-dir/.dirs/system-data2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_3NCW52/utils-isolated/user-data-dir/.dirs/data 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_3NCW52/utils-isolated/user-data-dir/.dirs/state 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_3NCW52/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_3NCW52/utils-isolated/user-state-dir/.dirs/home 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_3NCW52/utils-isolated/user-state-dir/.dirs/cache 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_3NCW52/utils-isolated/user-state-dir/.dirs/system-config1:/tmp/test_utils-isolated_3NCW52/utils-isolated/user-state-dir/.dirs/system-config2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_3NCW52/utils-isolated/user-state-dir/.dirs/config 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_3NCW52/utils-isolated/user-state-dir/.dirs/system-data1:/tmp/test_utils-isolated_3NCW52/utils-isolated/user-state-dir/.dirs/system-data2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_3NCW52/utils-isolated/user-state-dir/.dirs/data 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_3NCW52/utils-isolated/user-state-dir/.dirs/state 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_3NCW52/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_3NCW52/utils-isolated/user-runtime-dir/.dirs/home 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_3NCW52/utils-isolated/user-runtime-dir/.dirs/cache 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_3NCW52/utils-isolated/user-runtime-dir/.dirs/system-config1:/tmp/test_utils-isolated_3NCW52/utils-isolated/user-runtime-dir/.dirs/system-config2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_3NCW52/utils-isolated/user-runtime-dir/.dirs/config 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_3NCW52/utils-isolated/user-runtime-dir/.dirs/system-data1:/tmp/test_utils-isolated_3NCW52/utils-isolated/user-runtime-dir/.dirs/system-data2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_3NCW52/utils-isolated/user-runtime-dir/.dirs/data 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_3NCW52/utils-isolated/user-runtime-dir/.dirs/state 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_3NCW52/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_3NCW52/utils-isolated/cleanup/handles-errors/.dirs/home 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_3NCW52/utils-isolated/cleanup/handles-errors/.dirs/cache 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_3NCW52/utils-isolated/cleanup/handles-errors/.dirs/system-config1:/tmp/test_utils-isolated_3NCW52/utils-isolated/cleanup/handles-errors/.dirs/system-config2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_3NCW52/utils-isolated/cleanup/handles-errors/.dirs/config 1218s ok - glib/utils-isolated.test 1218s # Running test: glib/thumbnail-verification.test 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_3NCW52/utils-isolated/cleanup/handles-errors/.dirs/system-data1:/tmp/test_utils-isolated_3NCW52/utils-isolated/cleanup/handles-errors/.dirs/system-data2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_3NCW52/utils-isolated/cleanup/handles-errors/.dirs/data 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_3NCW52/utils-isolated/cleanup/handles-errors/.dirs/state 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_3NCW52/utils-isolated/cleanup/handles-errors/.dirs/runtime 1218s Unable to clean up temporary directory /tmp/test_utils-isolated_3NCW52/utils-isolated/cleanup/handles-errors/.dirs/runtime: Directory not empty 1218s Unable to clean up temporary directory /tmp/test_utils-isolated_3NCW52/utils-isolated/cleanup/handles-errors/.dirs: Directory not empty 1218s Unable to clean up temporary directory /tmp/test_utils-isolated_3NCW52/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_3NCW52/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/home 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_3NCW52/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/cache 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_3NCW52/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-config1:/tmp/test_utils-isolated_3NCW52/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_3NCW52/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/config 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_3NCW52/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-data1:/tmp/test_utils-isolated_3NCW52/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_3NCW52/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/data 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_3NCW52/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/state 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_3NCW52/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/runtime 1218s Unable to clean up temporary directory /tmp/test_utils-isolated_3NCW52/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: R02S2505feef3a0b390479c3bdee174ce9af 1218s 1..1 1218s # Start of png-thumbs tests 1218s ok 1 /png-thumbs/validity 1218s # End of png-thumbs tests 1218s ok - glib/thumbnail-verification.test 1218s # Running test: glib/dataset.test 1218s ok - glib/dataset.test 1218s # Running test: glib/threadtests.test 1218s TAP version 14 1218s # random seed: R02S95837ba7878fc92481ac887d6e717b65 1218s 1..14 1218s # Start of quark tests 1218s ok 1 /quark/basic 1218s ok 2 /quark/string 1218s # End of quark tests 1218s # Start of dataset tests 1218s ok 3 /dataset/basic 1218s ok 4 /dataset/id 1218s ok 5 /dataset/full 1218s ok 6 /dataset/foreach 1218s ok 7 /dataset/destroy 1218s # End of dataset tests 1218s # Start of datalist tests 1218s ok 8 /datalist/basic 1218s ok 9 /datalist/id 1218s ok 10 /datalist/recursive-clear 1218s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2672 1218s ok 11 /datalist/id-remove-multiple 1218s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2672 1218s ok 12 /datalist/id-remove-multiple-destroy-order 1218s ok 13 /datalist/update-atomic 1218s # Start of id-remove-multiple tests 1218s ok 14 /datalist/id-remove-multiple/resize 1218s # End of id-remove-multiple tests 1218s # End of datalist tests 1218s TAP version 14 1218s # random seed: R02Scfade158a42e9e8bfd424d312368267f 1218s 1..5 1218s # Start of GObject tests 1218s ok 1 /GObject/threaded-object-init 1218s ok 2 /GObject/threaded-weak-ref 1218s # slow test /GObject/threaded-weak-ref executed in 0.72 secs 1218s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2394 1218s # /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 1219s ok 3 /GObject/threaded-toggle-notify 1219s ok 4 /GObject/threaded-g-pointer-bit-unlock-and-set 1219s # Start of threaded-weak-ref tests 1219s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 1219s # /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. 1219s ok 5 /GObject/threaded-weak-ref/on-finalization 1219s # End of threaded-weak-ref tests 1219s # End of GObject tests 1219s ok - glib/threadtests.test 1219s # Running test: glib/gdbus-connection.test 1219s TAP version 14 1219s # random seed: R02S5458be8ecf99eb292119f84d24a70668 1219s 1..9 1219s # Start of gdbus tests 1219s # Start of connection tests 1219s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/bus-failure/.dirs/home 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/bus-failure/.dirs/cache 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/bus-failure/.dirs/system-config1:/tmp/test_gdbus-connection_7KYZ52/gdbus/connection/bus-failure/.dirs/system-config2 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/bus-failure/.dirs/config 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/bus-failure/.dirs/system-data1:/tmp/test_gdbus-connection_7KYZ52/gdbus/connection/bus-failure/.dirs/system-data2 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/bus-failure/.dirs/data 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/bus-failure/.dirs/state 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/bus-failure/.dirs/runtime 1219s ok 1 /gdbus/connection/bus-failure 1219s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/basic/.dirs/home 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/basic/.dirs/cache 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/basic/.dirs/system-config1:/tmp/test_gdbus-connection_7KYZ52/gdbus/connection/basic/.dirs/system-config2 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/basic/.dirs/config 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/basic/.dirs/system-data1:/tmp/test_gdbus-connection_7KYZ52/gdbus/connection/basic/.dirs/system-data2 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/basic/.dirs/data 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/basic/.dirs/state 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/basic/.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 # GLib-DEBUG: setenv()/putenv() are 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 # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1219s ok 2 /gdbus/connection/basic 1219s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/life-cycle/.dirs/home 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/life-cycle/.dirs/cache 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/life-cycle/.dirs/system-config1:/tmp/test_gdbus-connection_7KYZ52/gdbus/connection/life-cycle/.dirs/system-config2 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/life-cycle/.dirs/config 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/life-cycle/.dirs/system-data1:/tmp/test_gdbus-connection_7KYZ52/gdbus/connection/life-cycle/.dirs/system-data2 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/life-cycle/.dirs/data 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/life-cycle/.dirs/state 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/life-cycle/.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 # GLib-DEBUG: setenv()/putenv() are 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 # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1219s ok 3 /gdbus/connection/life-cycle 1219s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/send/.dirs/home 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/send/.dirs/cache 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/send/.dirs/system-config1:/tmp/test_gdbus-connection_7KYZ52/gdbus/connection/send/.dirs/system-config2 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/send/.dirs/config 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/send/.dirs/system-data1:/tmp/test_gdbus-connection_7KYZ52/gdbus/connection/send/.dirs/system-data2 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/send/.dirs/data 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/send/.dirs/state 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/send/.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 # GLib-DEBUG: setenv()/putenv() are 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 # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1219s ok 4 /gdbus/connection/send 1219s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/signals/.dirs/home 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/signals/.dirs/cache 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/signals/.dirs/system-config1:/tmp/test_gdbus-connection_7KYZ52/gdbus/connection/signals/.dirs/system-config2 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/signals/.dirs/config 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/signals/.dirs/system-data1:/tmp/test_gdbus-connection_7KYZ52/gdbus/connection/signals/.dirs/system-data2 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/signals/.dirs/data 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/signals/.dirs/state 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/signals/.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 # GLib-DEBUG: setenv()/putenv() are 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 # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1219s ok 5 /gdbus/connection/signals 1219s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/signal-match-rules/.dirs/home 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/signal-match-rules/.dirs/cache 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/signal-match-rules/.dirs/system-config1:/tmp/test_gdbus-connection_7KYZ52/gdbus/connection/signal-match-rules/.dirs/system-config2 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/signal-match-rules/.dirs/config 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/signal-match-rules/.dirs/system-data1:/tmp/test_gdbus-connection_7KYZ52/gdbus/connection/signal-match-rules/.dirs/system-data2 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/signal-match-rules/.dirs/data 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/signal-match-rules/.dirs/state 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/signal-match-rules/.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 # GLib-DEBUG: setenv()/putenv() are 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 # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1219s ok 6 /gdbus/connection/signal-match-rules 1219s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/filter/.dirs/home 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/filter/.dirs/cache 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/filter/.dirs/system-config1:/tmp/test_gdbus-connection_7KYZ52/gdbus/connection/filter/.dirs/system-config2 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/filter/.dirs/config 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/filter/.dirs/system-data1:/tmp/test_gdbus-connection_7KYZ52/gdbus/connection/filter/.dirs/system-data2 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/filter/.dirs/data 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/filter/.dirs/state 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/filter/.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 # GLib-DEBUG: setenv()/putenv() are 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 # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1219s ok 7 /gdbus/connection/filter 1219s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/serials/.dirs/home 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/serials/.dirs/cache 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/serials/.dirs/system-config1:/tmp/test_gdbus-connection_7KYZ52/gdbus/connection/serials/.dirs/system-config2 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/serials/.dirs/config 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/serials/.dirs/system-data1:/tmp/test_gdbus-connection_7KYZ52/gdbus/connection/serials/.dirs/system-data2 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/serials/.dirs/data 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/serials/.dirs/state 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/serials/.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 # GLib-DEBUG: setenv()/putenv() are 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 # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1219s ok 8 /gdbus/connection/serials 1219s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/cancel/.dirs/home 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/cancel/.dirs/cache 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/cancel/.dirs/system-config1:/tmp/test_gdbus-connection_7KYZ52/gdbus/connection/cancel/.dirs/system-config2 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/cancel/.dirs/config 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/cancel/.dirs/system-data1:/tmp/test_gdbus-connection_7KYZ52/gdbus/connection/cancel/.dirs/system-data2 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/cancel/.dirs/data 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/cancel/.dirs/state 1219s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_7KYZ52/gdbus/connection/cancel/.dirs/runtime 1219s # /gdbus/connection/cancel summary: Test that cancelling one of two racing g_bus_get() calls does not cancel the other one 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 # GLib-DEBUG: setenv()/putenv() are 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 # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1219s ok 9 /gdbus/connection/cancel 1219s # End of connection tests 1219s # End of gdbus tests 1219s ok - glib/gdbus-connection.test 1219s # SUMMARY: total=323; passed=322; skipped=1; failed=0; user=197.4s; system=73.4s; maxrss=285196 1219s autopkgtest [08:54:56]: test installed-tests: -----------------------] 1221s autopkgtest [08:54:58]: test installed-tests: - - - - - - - - - - results - - - - - - - - - - 1221s installed-tests PASS 1221s autopkgtest [08:54:58]: test closure-refcount: preparing testbed 1222s Reading package lists... 1222s Building dependency tree... 1222s Reading state information... 1222s Starting pkgProblemResolver with broken count: 0 1222s Starting 2 pkgProblemResolver with broken count: 0 1222s Done 1223s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1224s autopkgtest [08:55:01]: test closure-refcount: [----------------------- 1224s Running test: glib/closure-refcount.test 1224s TAP version 14 1224s # random seed: R02S485f37fc24743389f85ca01f09016da7 1224s 1..1 1224s # Start of closure tests 1224s ok 1 /closure/refcount # SKIP Known to be flaky on arm* (#880883, #917983) 1224s # End of closure tests 1224s PASS: glib/closure-refcount.test 1224s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=3280 1225s autopkgtest [08:55:02]: test closure-refcount: -----------------------] 1225s autopkgtest [08:55:02]: test closure-refcount: - - - - - - - - - - results - - - - - - - - - - 1225s closure-refcount PASS 1225s autopkgtest [08:55:02]: test debugcontroller: preparing testbed 1226s Reading package lists... 1226s Building dependency tree... 1226s Reading state information... 1226s Starting pkgProblemResolver with broken count: 0 1227s Starting 2 pkgProblemResolver with broken count: 0 1227s Done 1227s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1228s autopkgtest [08:55:05]: test debugcontroller: [----------------------- 1228s Running test: glib/debugcontroller.test 1228s TAP version 14 1228s # random seed: R02S77b0ba9644a719f3ec70dfd547c7efda 1228s 1..3 1228s # Start of debug-controller tests 1228s # Start of dbus tests 1228s # /debug-controller/dbus/basic summary: Smoketest for construction and setting of a #GDebugControllerDBus. 1228s # GLib-GIO-DEBUG: Debug output enabled 1228s # GLib-GIO-DEBUG: Debug output disabled 1228s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1228s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1228s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1228s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1228s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1228s ok 1 /debug-controller/dbus/basic 1228s # /debug-controller/dbus/duplicate summary: Test that creating a second #GDebugControllerDBus on the same D-Bus connection fails. 1228s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1228s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1228s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1228s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1228s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1228s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1228s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1228s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1228s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1228s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1228s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1228s ok 2 /debug-controller/dbus/duplicate 1228s # /debug-controller/dbus/properties summary: Test getting and setting properties on a #GDebugControllerDBus. 1228s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1228s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1228s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1228s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1228s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1228s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1228s # GLib-GIO-DEBUG: Debug output enabled 1228s # GLib-GIO-DEBUG: Debug output disabled 1228s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1228s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1228s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1228s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1228s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1228s ok 3 /debug-controller/dbus/properties 1228s # End of dbus tests 1228s # End of debug-controller tests 1228s PASS: glib/debugcontroller.test 1228s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=5988 1229s autopkgtest [08:55:06]: test debugcontroller: -----------------------] 1229s autopkgtest [08:55:06]: test debugcontroller: - - - - - - - - - - results - - - - - - - - - - 1229s debugcontroller PASS 1230s autopkgtest [08:55:07]: test gdbus-server-auth: preparing testbed 1230s Reading package lists... 1230s Building dependency tree... 1230s Reading state information... 1231s Starting pkgProblemResolver with broken count: 0 1231s Starting 2 pkgProblemResolver with broken count: 0 1231s Done 1232s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1232s autopkgtest [08:55:09]: test gdbus-server-auth: [----------------------- 1233s Running test: glib/gdbus-server-auth.test 1233s TAP version 14 1233s # random seed: R02S0bb5679b0de3dbcfd6b3869951577119 1233s 1..9 1233s # Start of gdbus tests 1233s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/.dirs/home 1233s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/.dirs/cache 1233s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/.dirs/system-config1:/tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/.dirs/system-config2 1233s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/.dirs/config 1233s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/.dirs/system-data1:/tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/.dirs/system-data2 1233s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/.dirs/data 1233s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/.dirs/state 1233s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/.dirs/runtime 1233s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_XL2Z52/gdbus-server-auth-YY2Z52 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:false 1233s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_XL2Z52/gdbus-server-auth-YY2Z52/dbus-tQ3Sav0j 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 16372 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 16372 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 16372 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 16372 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 16372 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 16372 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 16372 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 16372 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 16372 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 16372 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 16372 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 16372 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 16372 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 16372 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 16372 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 16372 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 16372 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 16372 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 16372 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 16372 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 16372 1233s ok 1 /gdbus/server-auth 1233s # Start of server-auth tests 1233s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/abstract/.dirs/home 1233s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/abstract/.dirs/cache 1233s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/abstract/.dirs/system-config1:/tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/abstract/.dirs/system-config2 1233s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/abstract/.dirs/config 1233s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/abstract/.dirs/system-data1:/tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/abstract/.dirs/system-data2 1233s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/abstract/.dirs/data 1233s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/abstract/.dirs/state 1233s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/abstract/.dirs/runtime 1233s # Testing GDBus server at unix:tmpdir=/tmp/test_gdbus-server-auth_XL2Z52/gdbus-server-auth-SQA052 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:true tcp:false 1233s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_XL2Z52/gdbus-server-auth-SQA052/dbus-F2Hmx6bV 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 16372 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 16372 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 16372 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 16372 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 16372 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 16372 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 16372 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 16372 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 16372 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 16372 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 16372 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 16372 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 16372 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 16372 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 16372 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 16372 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 16372 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 16372 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 16372 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 16372 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1233s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 16372 1233s ok 2 /gdbus/server-auth/abstract 1233s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/tcp/.dirs/home 1233s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/tcp/.dirs/cache 1233s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/tcp/.dirs/system-config2 1233s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/tcp/.dirs/config 1233s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/tcp/.dirs/system-data2 1233s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/tcp/.dirs/data 1233s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/tcp/.dirs/state 1233s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/tcp/.dirs/runtime 1233s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:true 1233s # Connectable address: tcp:host=127.0.0.1,port=34083 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1233s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1233s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1233s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1233s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1233s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1233s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1233s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1233s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1233s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1233s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1233s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1233s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1233s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1233s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1233s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1233s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1233s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1233s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1233s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 1233s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1233s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1233s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1233s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1233s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1233s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1234s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1234s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1234s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1234s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 1234s ok 3 /gdbus/server-auth/tcp 1234s # slow test /gdbus/server-auth/tcp executed in 0.86 secs 1234s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/anonymous/.dirs/home 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/anonymous/.dirs/cache 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/anonymous/.dirs/system-config1:/tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/anonymous/.dirs/system-config2 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/anonymous/.dirs/config 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/anonymous/.dirs/system-data1:/tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/anonymous/.dirs/system-data2 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/anonymous/.dirs/data 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/anonymous/.dirs/state 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/anonymous/.dirs/runtime 1234s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_XL2Z52/gdbus-server-auth-X45V52 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:false 1234s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_XL2Z52/gdbus-server-auth-X45V52/dbus-AlhPhXrs 1234s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 16372 1234s ok 4 /gdbus/server-auth/anonymous 1234s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/external/.dirs/home 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/external/.dirs/cache 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/external/.dirs/system-config1:/tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/external/.dirs/system-config2 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/external/.dirs/config 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/external/.dirs/system-data1:/tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/external/.dirs/system-data2 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/external/.dirs/data 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/external/.dirs/state 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/external/.dirs/runtime 1234s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_XL2Z52/gdbus-server-auth-BQNW52 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 1234s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_XL2Z52/gdbus-server-auth-BQNW52/dbus-SkY1pLjN 1234s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1234s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1234s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1234s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1234s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1234s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1234s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1234s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1234s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1234s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1234s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1234s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1234s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1234s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1234s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1234s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1234s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1234s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1234s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1234s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1234s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1234s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 16372 1234s ok 5 /gdbus/server-auth/external 1234s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/sha1/.dirs/home 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/sha1/.dirs/cache 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/sha1/.dirs/system-config1:/tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/sha1/.dirs/system-config2 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/sha1/.dirs/config 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/sha1/.dirs/system-data1:/tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/sha1/.dirs/system-data2 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/sha1/.dirs/data 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/sha1/.dirs/state 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/sha1/.dirs/runtime 1234s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_XL2Z52/gdbus-server-auth-T9EY52 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:false 1234s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_XL2Z52/gdbus-server-auth-T9EY52/dbus-9JweCtt2 1234s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1234s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1234s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1234s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1234s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1234s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1234s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1234s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1234s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1234s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1234s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1234s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1234s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1234s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1234s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1234s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1234s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1234s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1234s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1234s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1234s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 16372 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1234s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1234s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 16372 1234s ok 6 /gdbus/server-auth/sha1 1234s # Start of anonymous tests 1234s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/anonymous/tcp/.dirs/home 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/anonymous/tcp/.dirs/cache 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/anonymous/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/anonymous/tcp/.dirs/system-config2 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/anonymous/tcp/.dirs/config 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/anonymous/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/anonymous/tcp/.dirs/system-data2 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/anonymous/tcp/.dirs/data 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/anonymous/tcp/.dirs/state 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/anonymous/tcp/.dirs/runtime 1234s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:true 1234s # Connectable address: tcp:host=127.0.0.1,port=36329 1234s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1234s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1234s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1234s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1234s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1234s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1234s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1234s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1234s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1234s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1234s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1234s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1234s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1234s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1234s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1234s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1234s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 1234s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1234s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1234s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1234s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1234s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1236s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1236s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1236s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1236s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1236s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1236s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1236s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1236s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 1236s ok 7 /gdbus/server-auth/anonymous/tcp 1236s # slow test /gdbus/server-auth/anonymous/tcp executed in 0.84 secs 1236s # End of anonymous tests 1236s # Start of external tests 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/external/require-same-user/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/external/require-same-user/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/external/require-same-user/.dirs/system-config1:/tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/external/require-same-user/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/external/require-same-user/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/external/require-same-user/.dirs/system-data1:/tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/external/require-same-user/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/external/require-same-user/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/external/require-same-user/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/external/require-same-user/.dirs/runtime 1236s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_XL2Z52/gdbus-server-auth-09W452 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 1236s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_XL2Z52/gdbus-server-auth-09W452/dbus-vJJ2jWNn 1236s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1236s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1236s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1236s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 16372 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1236s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1236s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1236s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 16372 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1236s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1236s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1236s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 16372 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1236s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1236s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1236s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 16372 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1236s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1236s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1236s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 16372 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1236s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1236s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1236s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 16372 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1236s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1236s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1236s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 16372 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1236s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1236s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1236s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 16372 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1236s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1236s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1236s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 16372 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1236s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1236s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1236s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 16372 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1236s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1236s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1236s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 16372 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1236s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1236s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1236s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 16372 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1236s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1236s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1236s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 16372 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1236s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1236s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1236s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 16372 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1236s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1236s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1236s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 16372 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1236s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1236s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1236s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 16372 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1236s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1236s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1236s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 16372 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1236s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1236s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1236s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 16372 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1236s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1236s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1236s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 16372 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1236s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1236s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1236s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 16372 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1236s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1236s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16372,uid=1000,gid=1000 1236s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 16372 1236s ok 8 /gdbus/server-auth/external/require-same-user 1236s # End of external tests 1236s # Start of sha1 tests 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/sha1/tcp/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/sha1/tcp/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/sha1/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/sha1/tcp/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/sha1/tcp/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/sha1/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/sha1/tcp/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/sha1/tcp/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/sha1/tcp/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_XL2Z52/gdbus/server-auth/sha1/tcp/.dirs/runtime 1236s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:true 1236s # Connectable address: tcp:host=127.0.0.1,port=44471 1236s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1236s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1236s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1236s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1236s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1236s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1236s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1236s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1236s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1236s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1236s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1236s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1236s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1236s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1236s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1236s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1236s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1236s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1236s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1236s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1236s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1236s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1236s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1236s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1236s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1236s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1236s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1236s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1236s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1236s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1236s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1236s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1236s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1236s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1236s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1236s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1236s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1236s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1236s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1236s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1236s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 1236s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1236s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1236s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1236s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1236s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1236s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 1236s ok 9 /gdbus/server-auth/sha1/tcp 1236s # slow test /gdbus/server-auth/sha1/tcp executed in 0.86 secs 1236s # End of sha1 tests 1236s # End of server-auth tests 1236s # End of gdbus tests 1236s PASS: glib/gdbus-server-auth.test 1236s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.1s; system=0.1s; maxrss=8028 1236s autopkgtest [08:55:13]: test gdbus-server-auth: -----------------------] 1236s gdbus-server-auth PASS 1236s autopkgtest [08:55:13]: test gdbus-server-auth: - - - - - - - - - - results - - - - - - - - - - 1237s autopkgtest [08:55:14]: test gdbus-threading: preparing testbed 1237s Reading package lists... 1237s Building dependency tree... 1237s Reading state information... 1238s Starting pkgProblemResolver with broken count: 0 1238s Starting 2 pkgProblemResolver with broken count: 0 1238s Done 1238s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1239s autopkgtest [08:55:16]: test gdbus-threading: [----------------------- 1239s Running test: glib/gdbus-threading.test 1239s TAP version 14 1239s # random seed: R02S96bf5bed9ac195e53717142993aeee15 1239s 1..3 1239s # Start of gdbus tests 1239s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_TJS152/gdbus/delivery-in-thread/.dirs/home 1239s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_TJS152/gdbus/delivery-in-thread/.dirs/cache 1239s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_TJS152/gdbus/delivery-in-thread/.dirs/system-config1:/tmp/test_gdbus-threading_TJS152/gdbus/delivery-in-thread/.dirs/system-config2 1239s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_TJS152/gdbus/delivery-in-thread/.dirs/config 1239s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_TJS152/gdbus/delivery-in-thread/.dirs/system-data1:/tmp/test_gdbus-threading_TJS152/gdbus/delivery-in-thread/.dirs/system-data2 1239s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_TJS152/gdbus/delivery-in-thread/.dirs/data 1239s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_TJS152/gdbus/delivery-in-thread/.dirs/state 1239s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_TJS152/gdbus/delivery-in-thread/.dirs/runtime 1239s ok 1 /gdbus/delivery-in-thread 1239s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_TJS152/gdbus/method-calls-in-thread/.dirs/home 1239s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_TJS152/gdbus/method-calls-in-thread/.dirs/cache 1239s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_TJS152/gdbus/method-calls-in-thread/.dirs/system-config1:/tmp/test_gdbus-threading_TJS152/gdbus/method-calls-in-thread/.dirs/system-config2 1239s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_TJS152/gdbus/method-calls-in-thread/.dirs/config 1239s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_TJS152/gdbus/method-calls-in-thread/.dirs/system-data1:/tmp/test_gdbus-threading_TJS152/gdbus/method-calls-in-thread/.dirs/system-data2 1239s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_TJS152/gdbus/method-calls-in-thread/.dirs/data 1239s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_TJS152/gdbus/method-calls-in-thread/.dirs/state 1239s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_TJS152/gdbus/method-calls-in-thread/.dirs/runtime 1240s ok 2 /gdbus/method-calls-in-thread 1240s # slow test /gdbus/method-calls-in-thread executed in 0.84 secs 1240s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_TJS152/gdbus/threaded-singleton/.dirs/home 1240s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_TJS152/gdbus/threaded-singleton/.dirs/cache 1240s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_TJS152/gdbus/threaded-singleton/.dirs/system-config1:/tmp/test_gdbus-threading_TJS152/gdbus/threaded-singleton/.dirs/system-config2 1240s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_TJS152/gdbus/threaded-singleton/.dirs/config 1240s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_TJS152/gdbus/threaded-singleton/.dirs/system-data1:/tmp/test_gdbus-threading_TJS152/gdbus/threaded-singleton/.dirs/system-data2 1240s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_TJS152/gdbus/threaded-singleton/.dirs/data 1240s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_TJS152/gdbus/threaded-singleton/.dirs/state 1240s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_TJS152/gdbus/threaded-singleton/.dirs/runtime 1240s # GLib-GIO-DEBUG: refcount of 0xff6b000020e0 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 1240s # GLib-GIO-DEBUG: refcount of 0xff6b00004d40 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 1240s # GLib-GIO-DEBUG: refcount of 0xff6b00000b40 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 1241s # GLib-GIO-DEBUG: refcount of 0xff6b00003a90 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 1241s # GLib-GIO-DEBUG: refcount of 0xff6b00007840 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 1241s # GLib-GIO-DEBUG: refcount of 0xff6b000024f0 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 1241s # GLib-GIO-DEBUG: refcount of 0xff6b00007bc0 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 1241s # GLib-GIO-DEBUG: refcount of 0xff6b00007bc0 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 1241s # GLib-GIO-DEBUG: refcount of 0xff6b00007bc0 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 1241s # GLib-GIO-DEBUG: refcount of 0xff6b00007e80 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 1241s # GLib-GIO-DEBUG: refcount of 0xff6b000066a0 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 1241s # GLib-GIO-DEBUG: refcount of 0xff6b000058c0 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 1242s # GLib-GIO-DEBUG: refcount of 0xff6b00005910 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 1242s ok 3 /gdbus/threaded-singleton 1242s # slow test /gdbus/threaded-singleton executed in 1.46 secs 1242s # End of gdbus tests 1242s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1242s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1242s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1242s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1242s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1242s PASS: glib/gdbus-threading.test 1242s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.4s; system=0.3s; maxrss=5800 1242s autopkgtest [08:55:19]: test gdbus-threading: -----------------------] 1242s gdbus-threading PASS 1242s autopkgtest [08:55:19]: test gdbus-threading: - - - - - - - - - - results - - - - - - - - - - 1243s autopkgtest [08:55:20]: test gmenumodel: preparing testbed 1243s Reading package lists... 1243s Building dependency tree... 1243s Reading state information... 1244s Starting pkgProblemResolver with broken count: 0 1244s Starting 2 pkgProblemResolver with broken count: 0 1244s Done 1245s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1245s autopkgtest [08:55:22]: test gmenumodel: [----------------------- 1246s Running test: glib/gmenumodel.test 1246s TAP version 14 1246s # random seed: R02S0f0163da3d9f8c7bef5bd5f28519b2fd 1246s 1..15 1246s # Start of gmenu tests 1246s ok 1 /gmenu/equality 1246s # slow test /gmenu/equality executed in 0.59 secs 1247s ok 2 /gmenu/random 1247s # slow test /gmenu/random executed in 0.75 secs 1247s ok 3 /gmenu/attributes 1247s ok 4 /gmenu/links 1247s ok 5 /gmenu/mutable 1247s ok 6 /gmenu/convenience 1247s ok 7 /gmenu/menuitem 1247s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/861 1247s ok 8 /gmenu/input-validation 1247s # Start of dbus tests 1248s ok 9 /gmenu/dbus/roundtrip 1248s # slow test /gmenu/dbus/roundtrip executed in 1.01 secs 1248s ok 10 /gmenu/dbus/subscriptions 1249s ok 11 /gmenu/dbus/threaded 1249s # slow test /gmenu/dbus/threaded executed in 0.83 secs 1249s # Start of peer tests 1250s ok 12 /gmenu/dbus/peer/roundtrip 1250s # slow test /gmenu/dbus/peer/roundtrip executed in 1.01 secs 1251s ok 13 /gmenu/dbus/peer/subscriptions 1251s # End of peer tests 1251s # Start of export tests 1251s # /gmenu/dbus/export/error-handling summary: Test that error handling of menu model export failure works 1251s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3366 1251s ok 14 /gmenu/dbus/export/error-handling 1251s # End of export tests 1251s # End of dbus tests 1251s # Start of attributes tests 1251s ok 15 /gmenu/attributes/iterate 1251s # End of attributes tests 1251s # End of gmenu tests 1251s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1251s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1251s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1251s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1251s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1251s PASS: glib/gmenumodel.test 1251s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=2.7s; system=0.2s; maxrss=30344 1251s autopkgtest [08:55:28]: test gmenumodel: -----------------------] 1252s gmenumodel PASS 1252s autopkgtest [08:55:29]: test gmenumodel: - - - - - - - - - - results - - - - - - - - - - 1252s autopkgtest [08:55:29]: test mainloop: preparing testbed 1252s Reading package lists... 1252s Building dependency tree... 1252s Reading state information... 1253s Starting pkgProblemResolver with broken count: 0 1253s Starting 2 pkgProblemResolver with broken count: 0 1253s Done 1254s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1254s autopkgtest [08:55:31]: test mainloop: [----------------------- 1255s Running test: glib/mainloop.test 1255s TAP version 14 1255s # random seed: R02S32a5a102ab9c4b335f96fb69ed687436 1255s 1..45 1255s # Start of maincontext tests 1255s ok 1 /maincontext/basic 1255s # Add same-priority sources: 16 1255s # Find each source: 2 1255s # Remove in random order: 36 1255s ok 2 /maincontext/nsources_same_priority 1255s # Add different-priority sources: 18 1255s # Find each source: 2 1255s # Remove in random order: 41 1255s ok 3 /maincontext/nsources_different_priority 1255s # Add sources from threads: 266 1255s # Remove sources from threads: 75 1255s ok 4 /maincontext/nsources_threadpool 1255s ok 5 /maincontext/source_finalization 1255s # /maincontext/idle-once summary: Test g_idle_add_once() works 1255s ok 6 /maincontext/idle-once 1255s # /maincontext/timeout-once summary: Test g_timeout_add_once() works 1255s ok 7 /maincontext/timeout-once 1255s # Start of source_finalization_from_source tests 1255s # /maincontext/source_finalization_from_source/0 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1255s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1255s ok 8 /maincontext/source_finalization_from_source/0 1255s # /maincontext/source_finalization_from_source/1 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1255s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1255s ok 9 /maincontext/source_finalization_from_source/1 1255s # /maincontext/source_finalization_from_source/2 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1255s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1255s ok 10 /maincontext/source_finalization_from_source/2 1255s # /maincontext/source_finalization_from_source/3 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1255s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1255s ok 11 /maincontext/source_finalization_from_source/3 1255s # /maincontext/source_finalization_from_source/4 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1255s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1255s ok 12 /maincontext/source_finalization_from_source/4 1255s # /maincontext/source_finalization_from_source/5 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1255s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1255s ok 13 /maincontext/source_finalization_from_source/5 1255s # /maincontext/source_finalization_from_source/6 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1255s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1255s ok 14 /maincontext/source_finalization_from_source/6 1255s # /maincontext/source_finalization_from_source/7 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1255s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1255s ok 15 /maincontext/source_finalization_from_source/7 1255s # /maincontext/source_finalization_from_source/8 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1255s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1255s ok 16 /maincontext/source_finalization_from_source/8 1255s # /maincontext/source_finalization_from_source/9 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1255s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1255s ok 17 /maincontext/source_finalization_from_source/9 1255s # End of source_finalization_from_source tests 1255s # Start of source_finalization_from_dispatch tests 1255s # /maincontext/source_finalization_from_dispatch/0 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1255s ok 18 /maincontext/source_finalization_from_dispatch/0 1255s # /maincontext/source_finalization_from_dispatch/1 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1255s ok 19 /maincontext/source_finalization_from_dispatch/1 1255s # /maincontext/source_finalization_from_dispatch/2 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1255s ok 20 /maincontext/source_finalization_from_dispatch/2 1255s # End of source_finalization_from_dispatch tests 1255s # End of maincontext tests 1255s # Start of mainloop tests 1255s ok 21 /mainloop/basic 1255s ok 22 /mainloop/timeouts # SKIP Not running timing heavy test 1255s ok 23 /mainloop/priorities 1256s ok 24 /mainloop/invoke 1256s # slow test /mainloop/invoke executed in 0.50 secs 1257s ok 25 /mainloop/child_sources 1257s # slow test /mainloop/child_sources executed in 1.20 secs 1259s ok 26 /mainloop/recursive_child_sources 1259s # slow test /mainloop/recursive_child_sources executed in 2.18 secs 1259s ok 27 /mainloop/recursive_loop_child_sources 1259s ok 28 /mainloop/swapping_child_sources 1259s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=701283 1259s ok 29 /mainloop/blocked_child_sources 1260s Executing: glib/mainloop.test 1260s ok 30 /mainloop/source_time 1260s # slow test /mainloop/source_time executed in 1.00 secs 1260s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=687098 1260s ok 31 /mainloop/overflow 1261s ok 32 /mainloop/ready-time 1261s # slow test /mainloop/ready-time executed in 0.50 secs 1261s ok 33 /mainloop/wakeup 1261s ok 34 /mainloop/remove-invalid 1261s ok 35 /mainloop/unref-while-pending 1261s ok 36 /mainloop/unix-fd 1261s # slow test /mainloop/unix-fd executed in 0.59 secs 1261s ok 37 /mainloop/unix-fd-source 1261s ok 38 /mainloop/source-unix-fd-api 1262s ok 39 /mainloop/wait 1262s ok 40 /mainloop/unix-file-poll 1262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1592 1262s ok 41 /mainloop/unix-fd-priority 1262s ok 42 /mainloop/nfds 1262s ok 43 /mainloop/steal-fd 1262s # Start of ownerless-polling tests 1262s ok 44 /mainloop/ownerless-polling/attach-first 1262s ok 45 /mainloop/ownerless-polling/pop-first 1262s # End of ownerless-polling tests 1262s # End of mainloop tests 1262s PASS: glib/mainloop.test 1262s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.5s; system=0.9s; maxrss=15368 1262s autopkgtest [08:55:39]: test mainloop: -----------------------] 1262s mainloop PASS 1262s autopkgtest [08:55:39]: test mainloop: - - - - - - - - - - results - - - - - - - - - - 1263s autopkgtest [08:55:40]: test memory-monitor-dbus: preparing testbed 1263s Reading package lists... 1263s Building dependency tree... 1263s Reading state information... 1264s Starting pkgProblemResolver with broken count: 0 1264s Starting 2 pkgProblemResolver with broken count: 0 1264s Done 1264s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1265s autopkgtest [08:55:42]: test memory-monitor-dbus: [----------------------- 1265s Running test: glib/memory-monitor-dbus.test 1266s TAP version 13 1266s ok 1 __main__.TestLowMemoryMonitor.test_low_memory_warning_signal 1266s # Received memory warning signal, level 1266s # Received memory warning signal, level 1266s # Received memory warning signal, level 1266s 1..1 1266s PASS: glib/memory-monitor-dbus.test 1266s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.3s; system=0.1s; maxrss=29372 1266s autopkgtest [08:55:43]: test memory-monitor-dbus: -----------------------] 1267s autopkgtest [08:55:44]: test memory-monitor-dbus: - - - - - - - - - - results - - - - - - - - - - 1267s memory-monitor-dbus PASS 1267s autopkgtest [08:55:44]: test socket: preparing testbed 1267s Reading package lists... 1268s Building dependency tree... 1268s Reading state information... 1268s Starting pkgProblemResolver with broken count: 0 1268s Starting 2 pkgProblemResolver with broken count: 0 1268s Done 1269s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1270s autopkgtest [08:55:47]: test socket: [----------------------- 1270s Running test: glib/socket.test 1270s TAP version 14 1270s # random seed: R02Seecb2cdbd75d00b2e3cffe91157b54b5 1270s 1..28 1270s # Start of socket tests 1271s ok 1 /socket/ipv4_sync 1271s # slow test /socket/ipv4_sync executed in 1.00 secs 1272s ok 2 /socket/ipv4_async 1272s # slow test /socket/ipv4_async executed in 1.00 secs 1272s ok 3 /socket/ipv6_sync 1272s ok 4 /socket/ipv6_async 1272s ok 5 /socket/ipv6_v4mapped 1273s ok 6 /socket/close_graceful 1273s # slow test /socket/close_graceful executed in 1.00 secs 1273s ok 7 /socket/timed_wait # SKIP Not running timing heavy test 1273s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=741707 1273s ok 8 /socket/fd_reuse 1273s ok 9 /socket/address 1273s ok 10 /socket/unix-from-fd 1273s ok 11 /socket/unix-connection 1273s ok 12 /socket/unix-connection-ancillary-data 1273s ok 13 /socket/source-postmortem 1273s ok 14 /socket/read_write 1273s ok 15 /socket/read_writev 1273s # /socket/receive_bytes summary: Test basic functionality of g_socket_receive_bytes() 1273s ok 16 /socket/receive_bytes 1273s # /socket/receive_bytes_from summary: Test basic functionality of g_socket_receive_bytes_from() 1273s ok 17 /socket/receive_bytes_from 1273s # Start of ipv4_sync tests 1273s ok 18 /socket/ipv4_sync/datagram 1273s # Start of datagram tests 1274s ok 19 /socket/ipv4_sync/datagram/timeouts 1274s # slow test /socket/ipv4_sync/datagram/timeouts executed in 1.10 secs 1274s # End of datagram tests 1274s # End of ipv4_sync tests 1274s # Start of ipv6_sync tests 1274s ok 20 /socket/ipv6_sync/datagram 1274s # Start of datagram tests 1275s Executing: glib/socket.test 1275s ok 21 /socket/ipv6_sync/datagram/timeouts 1275s # slow test /socket/ipv6_sync/datagram/timeouts executed in 1.10 secs 1275s # End of datagram tests 1275s # End of ipv6_sync tests 1275s # Start of reuse tests 1275s ok 22 /socket/reuse/tcp 1275s ok 23 /socket/reuse/udp 1275s # End of reuse tests 1275s # Start of get_available tests 1275s ok 24 /socket/get_available/datagram 1275s ok 25 /socket/get_available/stream 1275s # End of get_available tests 1275s # Start of credentials tests 1275s # Supported on this OS: GCredentials:linux-ucred:pid=0 1275s ok 26 /socket/credentials/tcp_client 1275s # Supported on this OS: GCredentials:linux-ucred:pid=0 1275s ok 27 /socket/credentials/tcp_server 1275s # Supported on this OS: GCredentials:linux-ucred:pid=18265,uid=1000,gid=1000 1275s ok 28 /socket/credentials/unix_socketpair 1275s # End of credentials tests 1275s # End of socket tests 1275s PASS: glib/socket.test 1275s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=5480 1276s autopkgtest [08:55:53]: test socket: -----------------------] 1276s socket PASS 1276s autopkgtest [08:55:53]: test socket: - - - - - - - - - - results - - - - - - - - - - 1276s autopkgtest [08:55:53]: test testfilemonitor: preparing testbed 1277s Reading package lists... 1277s Building dependency tree... 1277s Reading state information... 1277s Starting pkgProblemResolver with broken count: 0 1277s Starting 2 pkgProblemResolver with broken count: 0 1277s Done 1278s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1279s autopkgtest [08:55:56]: test testfilemonitor: [----------------------- 1279s Running test: glib/testfilemonitor.test 1279s TAP version 14 1279s # random seed: R02S128b78c4079437c9e674ebf3ab5cf5e9 1279s 1..8 1279s # Start of monitor tests 1279s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1279s # Using temporary directory: /tmp/gio-test-testfilemonitor_EWPA62 1279s # Using GFileMonitor GInotifyFileMonitor 1281s ok 1 /monitor/atomic-replace 1281s # slow test /monitor/atomic-replace executed in 2.00 secs 1281s # Using temporary directory: /tmp/gio-test-testfilemonitor_GHSA62 1281s # Using GFileMonitor GInotifyFileMonitor 1284s ok 2 /monitor/file-changes 1284s # slow test /monitor/file-changes executed in 2.50 secs 1284s # Using temporary directory: /tmp/gio-test-testfilemonitor_BTK152 1284s # Using GFileMonitor GInotifyFileMonitor 1284s Executing: glib/testfilemonitor.test 1287s ok 3 /monitor/dir-monitor 1287s # slow test /monitor/dir-monitor executed in 3.51 secs 1287s # Using temporary directory: /tmp/gio-test-testfilemonitor_I4BC62 1287s # Using GFileMonitor GInotifyFileMonitor 1289s Executing: glib/testfilemonitor.test 1294s Executing: glib/testfilemonitor.test 1299s Executing: glib/testfilemonitor.test 1304s Executing: glib/testfilemonitor.test 1309s Executing: glib/testfilemonitor.test 1312s ok 4 /monitor/dir-not-existent 1312s # slow test /monitor/dir-not-existent executed in 25.02 secs 1312s # Using temporary directory: /tmp/gio-test-testfilemonitor_BVUC62 1312s # Using GFileMonitor 0 GInotifyFileMonitor 1312s # Using GFileMonitor 1 GInotifyFileMonitor 1314s Executing: glib/testfilemonitor.test 1314s ok 5 /monitor/cross-dir-moves 1314s # slow test /monitor/cross-dir-moves executed in 2.00 secs 1314s # Using temporary directory: /tmp/gio-test-testfilemonitor_XTXC62 1314s # /monitor/finalize-in-callback summary: Test that finalization of a GFileMonitor in one of its callbacks doesn?t cause a deadlock. 1314s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1941 1314s ok 6 /monitor/finalize-in-callback 1314s # Using temporary directory: /tmp/gio-test-testfilemonitor_M4RB62 1314s # /monitor/root summary: Test that GFileMonitor can monitor the root directory. 1314s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3241 1314s ok 7 /monitor/root 1314s # Start of file tests 1314s # Using temporary directory: /tmp/gio-test-testfilemonitor_NRSB62 1314s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=755721 1314s # Running with hard link tests 1314s # Using GFileMonitor GInotifyFileMonitor 1318s # Event 0 at expected index 7 skipped because it is marked as optional 1318s # Event 2 at expected index 11 skipped because it is marked as optional 1318s ok 8 /monitor/file/hard-links 1318s # slow test /monitor/file/hard-links executed in 3.51 secs 1318s # End of file tests 1318s # End of monitor tests 1318s PASS: glib/testfilemonitor.test 1318s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=5504 1318s autopkgtest [08:56:35]: test testfilemonitor: -----------------------] 1319s autopkgtest [08:56:36]: test testfilemonitor: - - - - - - - - - - results - - - - - - - - - - 1319s testfilemonitor PASS 1319s autopkgtest [08:56:36]: test thread-pool-slow: preparing testbed 1319s Reading package lists... 1320s Building dependency tree... 1320s Reading state information... 1320s Starting pkgProblemResolver with broken count: 0 1320s Starting 2 pkgProblemResolver with broken count: 0 1320s Done 1321s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1322s autopkgtest [08:56:39]: test thread-pool-slow: [----------------------- 1322s Running test: glib/thread-pool-slow.test 1322s TAP version 14 1322s # random seed: R02S232024aea332b4e1c8e010f47989f98d 1322s 1..7 1322s # Start of threadpool tests 1322s ok 1 /threadpool/functions 1322s ok 2 /threadpool/stop-unused 1322s # slow test /threadpool/stop-unused executed in 0.51 secs 1322s ok 3 /threadpool/pools 1322s # [unsorted] ===> pushed new thread with id:87, number of threads:1, unprocessed:1 1322s # [unsorted] ===> pushed new thread with id:99, number of threads:2, unprocessed:2 1322s # [unsorted] ===> pushed new thread with id:15, number of threads:3, unprocessed:3 1322s # [unsorted] ===> pushed new thread with id:20, number of threads:4, unprocessed:4 1322s # [unsorted] ===> pushed new thread with id:49, number of threads:5, unprocessed:5 1322s # [unsorted] ===> pushed new thread with id:42, number of threads:6, unprocessed:6 1322s # [unsorted] ===> pushed new thread with id:46, number of threads:7, unprocessed:7 1322s # [unsorted] ===> pushed new thread with id:58, number of threads:8, unprocessed:8 1322s # [unsorted] ===> pushed new thread with id:64, number of threads:9, unprocessed:9 1322s # [unsorted] ===> pushed new thread with id:65, number of threads:10, unprocessed:8 1322s # [unsorted] ===> pushed new thread with id:74, number of threads:10, unprocessed:8 1322s # [unsorted] ===> pushed new thread with id:55, number of threads:10, unprocessed:9 1322s # [unsorted] ===> pushed new thread with id:78, number of threads:10, unprocessed:10 1322s # [unsorted] ===> pushed new thread with id:46, number of threads:10, unprocessed:11 1322s # [unsorted] ===> pushed new thread with id:10, number of threads:10, unprocessed:12 1322s # [unsorted] ===> pushed new thread with id:45, number of threads:10, unprocessed:13 1322s # [unsorted] ===> pushed new thread with id:60, number of threads:10, unprocessed:7 1322s # [unsorted] ===> pushed new thread with id:60, number of threads:10, unprocessed:8 1322s # [unsorted] ===> pushed new thread with id:10, number of threads:10, unprocessed:9 1322s # [unsorted] ===> pushed new thread with id:71, number of threads:10, unprocessed:10 1322s # [unsorted] ===> pushed new thread with id:98, number of threads:10, unprocessed:11 1322s # [unsorted] ===> pushed new thread with id:58, number of threads:10, unprocessed:12 1322s # [unsorted] ===> pushed new thread with id:11, number of threads:10, unprocessed:13 1322s # [unsorted] ===> pushed new thread with id:80, number of threads:10, unprocessed:14 1322s # [unsorted] ===> pushed new thread with id:86, number of threads:10, unprocessed:15 1322s # [unsorted] ===> pushed new thread with id:55, number of threads:10, unprocessed:16 1322s # [unsorted] ===> pushed new thread with id:75, number of threads:10, unprocessed:17 1322s # [unsorted] ===> pushed new thread with id:77, number of threads:10, unprocessed:18 1322s # [unsorted] ===> pushed new thread with id:35, number of threads:10, unprocessed:19 1322s # [unsorted] ===> pushed new thread with id:62, number of threads:10, unprocessed:20 1322s # [unsorted] ===> pushed new thread with id:11, number of threads:10, unprocessed:21 1322s # [unsorted] ===> pushed new thread with id:37, number of threads:10, unprocessed:22 1322s # [unsorted] ===> pushed new thread with id:47, number of threads:10, unprocessed:23 1322s # [unsorted] ===> pushed new thread with id:63, number of threads:10, unprocessed:24 1322s # [unsorted] ===> pushed new thread with id:42, number of threads:10, unprocessed:25 1322s # [unsorted] ===> pushed new thread with id:8, number of threads:10, unprocessed:26 1322s # [unsorted] ===> pushed new thread with id:30, number of threads:10, unprocessed:27 1322s # [unsorted] ===> pushed new thread with id:30, number of threads:10, unprocessed:28 1322s # [unsorted] ===> pushed new thread with id:49, number of threads:10, unprocessed:29 1322s # [unsorted] ===> pushed new thread with id:22, number of threads:10, unprocessed:30 1322s # [unsorted] ===> pushed new thread with id:66, number of threads:10, unprocessed:31 1322s # [unsorted] ===> pushed new thread with id:14, number of threads:10, unprocessed:32 1322s # [unsorted] ===> pushed new thread with id:52, number of threads:10, unprocessed:33 1322s # [unsorted] ===> pushed new thread with id:31, number of threads:10, unprocessed:34 1322s # [unsorted] ===> pushed new thread with id:70, number of threads:10, unprocessed:35 1322s # [unsorted] ===> pushed new thread with id:26, number of threads:10, unprocessed:36 1322s # [unsorted] ===> pushed new thread with id:45, number of threads:10, unprocessed:37 1322s # [unsorted] ===> pushed new thread with id:68, number of threads:10, unprocessed:38 1322s # [unsorted] ===> pushed new thread with id:60, number of threads:10, unprocessed:39 1322s # [unsorted] ===> pushed new thread with id:62, number of threads:10, unprocessed:40 1322s # [unsorted] ===> pushed new thread with id:15, number of threads:10, unprocessed:41 1322s # [unsorted] ===> pushed new thread with id:27, number of threads:10, unprocessed:42 1322s # [unsorted] ===> pushed new thread with id:98, number of threads:10, unprocessed:43 1322s # [unsorted] ===> pushed new thread with id:61, number of threads:10, unprocessed:44 1322s # [unsorted] ===> pushed new thread with id:55, number of threads:10, unprocessed:45 1322s # [unsorted] ===> pushed new thread with id:90, number of threads:10, unprocessed:46 1322s # [unsorted] ===> pushed new thread with id:27, number of threads:10, unprocessed:47 1322s # [unsorted] ===> pushed new thread with id:27, number of threads:10, unprocessed:48 1322s # [unsorted] ===> pushed new thread with id:48, number of threads:10, unprocessed:49 1322s # [unsorted] ===> pushed new thread with id:13, number of threads:10, unprocessed:50 1322s # [unsorted] ===> pushed new thread with id:61, number of threads:10, unprocessed:51 1322s # [unsorted] ===> pushed new thread with id:97, number of threads:10, unprocessed:52 1322s # [unsorted] ===> pushed new thread with id:38, number of threads:10, unprocessed:53 1322s # [unsorted] ===> pushed new thread with id:79, number of threads:10, unprocessed:54 1322s # [unsorted] ===> pushed new thread with id:83, number of threads:10, unprocessed:55 1322s # [unsorted] ===> pushed new thread with id:9, number of threads:10, unprocessed:56 1322s # [unsorted] ===> pushed new thread with id:37, number of threads:10, unprocessed:57 1322s # [unsorted] ===> pushed new thread with id:35, number of threads:10, unprocessed:58 1322s # [unsorted] ===> pushed new thread with id:40, number of threads:10, unprocessed:59 1322s # [unsorted] ===> pushed new thread with id:2, number of threads:10, unprocessed:60 1322s # [unsorted] ===> pushed new thread with id:87, number of threads:10, unprocessed:61 1322s # [unsorted] ===> pushed new thread with id:32, number of threads:10, unprocessed:62 1322s # [unsorted] ===> pushed new thread with id:79, number of threads:10, unprocessed:63 1322s # [unsorted] ===> pushed new thread with id:17, number of threads:10, unprocessed:64 1322s # [unsorted] ===> pushed new thread with id:90, number of threads:10, unprocessed:65 1322s # [unsorted] ===> pushed new thread with id:37, number of threads:10, unprocessed:66 1322s # [unsorted] ===> pushed new thread with id:71, number of threads:10, unprocessed:67 1322s # [unsorted] ===> pushed new thread with id:58, number of threads:10, unprocessed:68 1322s # [unsorted] ===> pushed new thread with id:15, number of threads:10, unprocessed:69 1322s # [unsorted] ===> pushed new thread with id:61, number of threads:10, unprocessed:70 1322s # [unsorted] ===> pushed new thread with id:66, number of threads:10, unprocessed:71 1322s # [unsorted] ===> pushed new thread with id:42, number of threads:10, unprocessed:72 1322s # [unsorted] ===> pushed new thread with id:22, number of threads:10, unprocessed:73 1322s # [unsorted] ===> pushed new thread with id:26, number of threads:10, unprocessed:74 1322s # [unsorted] ===> pushed new thread with id:94, number of threads:10, unprocessed:75 1322s # [unsorted] ===> pushed new thread with id:55, number of threads:10, unprocessed:76 1322s # [unsorted] ===> pushed new thread with id:43, number of threads:10, unprocessed:77 1322s # [unsorted] ===> pushed new thread with id:97, number of threads:10, unprocessed:78 1322s # [unsorted] ===> pushed new thread with id:43, number of threads:10, unprocessed:79 1322s # [unsorted] ===> pushed new thread with id:34, number of threads:10, unprocessed:80 1322s # [unsorted] ===> pushed new thread with id:89, number of threads:10, unprocessed:81 1322s # [unsorted] ===> pushed new thread with id:15, number of threads:10, unprocessed:82 1322s # [unsorted] ===> pushed new thread with id:16, number of threads:10, unprocessed:83 1322s # [unsorted] ===> pushed new thread with id:7, number of threads:10, unprocessed:84 1322s # [unsorted] ===> pushed new thread with id:90, number of threads:10, unprocessed:85 1322s # [unsorted] ===> pushed new thread with id:37, number of threads:10, unprocessed:86 1322s # [unsorted] ===> pushed new thread with id:53, number of threads:10, unprocessed:87 1322s # [unsorted] ===> pushed new thread with id:93, number of threads:10, unprocessed:88 1322s # [unsorted] ===> pushed new thread with id:27, number of threads:10, unprocessed:89 1322s # [unsorted] ===> pushed new thread with id:24, number of threads:10, unprocessed:90 1322s ok 4 /threadpool/no-sort 1322s # [ sorted] ===> pushed new thread with id:67, number of threads:0, unprocessed:1 1322s # [ sorted] ===> pushed new thread with id:90, number of threads:0, unprocessed:2 1322s # [ sorted] ===> pushed new thread with id:94, number of threads:0, unprocessed:3 1322s # [ sorted] ===> pushed new thread with id:27, number of threads:0, unprocessed:4 1322s # [ sorted] ===> pushed new thread with id:9, number of threads:0, unprocessed:5 1322s # [ sorted] ===> pushed new thread with id:20, number of threads:0, unprocessed:6 1322s # [ sorted] ===> pushed new thread with id:48, number of threads:0, unprocessed:7 1322s # [ sorted] ===> pushed new thread with id:27, number of threads:0, unprocessed:8 1323s # [ sorted] ===> pushed new thread with id:65, number of threads:0, unprocessed:9 1323s # [ sorted] ===> pushed new thread with id:29, number of threads:0, unprocessed:10 1323s # [ sorted] ===> pushed new thread with id:20, number of threads:0, unprocessed:11 1323s # [ sorted] ===> pushed new thread with id:77, number of threads:0, unprocessed:12 1323s # [ sorted] ===> pushed new thread with id:26, number of threads:0, unprocessed:13 1323s # [ sorted] ===> pushed new thread with id:95, number of threads:0, unprocessed:14 1323s # [ sorted] ===> pushed new thread with id:29, number of threads:0, unprocessed:15 1323s # [ sorted] ===> pushed new thread with id:82, number of threads:0, unprocessed:16 1323s # [ sorted] ===> pushed new thread with id:22, number of threads:0, unprocessed:17 1323s # [ sorted] ===> pushed new thread with id:30, number of threads:0, unprocessed:18 1323s # [ sorted] ===> pushed new thread with id:54, number of threads:0, unprocessed:19 1323s # [ sorted] ===> pushed new thread with id:17, number of threads:0, unprocessed:20 1323s # [ sorted] ===> pushed new thread with id:72, number of threads:0, unprocessed:21 1323s # [ sorted] ===> pushed new thread with id:50, number of threads:0, unprocessed:22 1323s # [ sorted] ===> pushed new thread with id:14, number of threads:0, unprocessed:23 1323s # [ sorted] ===> pushed new thread with id:24, number of threads:0, unprocessed:24 1323s # [ sorted] ===> pushed new thread with id:58, number of threads:0, unprocessed:25 1323s # [ sorted] ===> pushed new thread with id:89, number of threads:0, unprocessed:26 1323s # [ sorted] ===> pushed new thread with id:80, number of threads:0, unprocessed:27 1323s # [ sorted] ===> pushed new thread with id:20, number of threads:0, unprocessed:28 1323s # [ sorted] ===> pushed new thread with id:17, number of threads:0, unprocessed:29 1323s # [ sorted] ===> pushed new thread with id:60, number of threads:0, unprocessed:30 1323s # [ sorted] ===> pushed new thread with id:79, number of threads:0, unprocessed:31 1323s # [ sorted] ===> pushed new thread with id:87, number of threads:0, unprocessed:32 1323s # [ sorted] ===> pushed new thread with id:14, number of threads:0, unprocessed:33 1323s # [ sorted] ===> pushed new thread with id:7, number of threads:0, unprocessed:34 1323s # [ sorted] ===> pushed new thread with id:40, number of threads:0, unprocessed:35 1323s # [ sorted] ===> pushed new thread with id:37, number of threads:0, unprocessed:36 1323s # [ sorted] ===> pushed new thread with id:83, number of threads:0, unprocessed:37 1323s # [ sorted] ===> pushed new thread with id:95, number of threads:0, unprocessed:38 1323s # [ sorted] ===> pushed new thread with id:11, number of threads:0, unprocessed:39 1323s # [ sorted] ===> pushed new thread with id:93, number of threads:0, unprocessed:40 1323s # [ sorted] ===> pushed new thread with id:4, number of threads:0, unprocessed:41 1323s # [ sorted] ===> pushed new thread with id:13, number of threads:0, unprocessed:42 1323s # [ sorted] ===> pushed new thread with id:5, number of threads:0, unprocessed:43 1323s # [ sorted] ===> pushed new thread with id:31, number of threads:0, unprocessed:44 1323s # [ sorted] ===> pushed new thread with id:39, number of threads:0, unprocessed:45 1323s # [ sorted] ===> pushed new thread with id:75, number of threads:0, unprocessed:46 1323s # [ sorted] ===> pushed new thread with id:85, number of threads:0, unprocessed:47 1323s # [ sorted] ===> pushed new thread with id:73, number of threads:0, unprocessed:48 1323s # [ sorted] ===> pushed new thread with id:56, number of threads:0, unprocessed:49 1323s # [ sorted] ===> pushed new thread with id:17, number of threads:0, unprocessed:50 1323s # [ sorted] ===> pushed new thread with id:91, number of threads:0, unprocessed:51 1323s # [ sorted] ===> pushed new thread with id:21, number of threads:0, unprocessed:52 1323s # [ sorted] ===> pushed new thread with id:49, number of threads:0, unprocessed:53 1323s # [ sorted] ===> pushed new thread with id:17, number of threads:0, unprocessed:54 1323s # [ sorted] ===> pushed new thread with id:50, number of threads:0, unprocessed:55 1323s # [ sorted] ===> pushed new thread with id:84, number of threads:0, unprocessed:56 1323s # [ sorted] ===> pushed new thread with id:58, number of threads:0, unprocessed:57 1323s # [ sorted] ===> pushed new thread with id:78, number of threads:0, unprocessed:58 1323s # [ sorted] ===> pushed new thread with id:35, number of threads:0, unprocessed:59 1323s # [ sorted] ===> pushed new thread with id:99, number of threads:0, unprocessed:60 1323s # [ sorted] ===> pushed new thread with id:3, number of threads:0, unprocessed:61 1323s # [ sorted] ===> pushed new thread with id:81, number of threads:0, unprocessed:62 1323s # [ sorted] ===> pushed new thread with id:3, number of threads:0, unprocessed:63 1323s # [ sorted] ===> pushed new thread with id:35, number of threads:0, unprocessed:64 1323s # [ sorted] ===> pushed new thread with id:2, number of threads:0, unprocessed:65 1323s # [ sorted] ===> pushed new thread with id:38, number of threads:0, unprocessed:66 1323s # [ sorted] ===> pushed new thread with id:3, number of threads:0, unprocessed:67 1323s # [ sorted] ===> pushed new thread with id:83, number of threads:0, unprocessed:68 1323s # [ sorted] ===> pushed new thread with id:72, number of threads:0, unprocessed:69 1323s # [ sorted] ===> pushed new thread with id:17, number of threads:0, unprocessed:70 1323s # [ sorted] ===> pushed new thread with id:58, number of threads:0, unprocessed:71 1323s # [ sorted] ===> pushed new thread with id:12, number of threads:0, unprocessed:72 1323s # [ sorted] ===> pushed new thread with id:14, number of threads:0, unprocessed:73 1323s # [ sorted] ===> pushed new thread with id:33, number of threads:0, unprocessed:74 1323s # [ sorted] ===> pushed new thread with id:71, number of threads:0, unprocessed:75 1323s # [ sorted] ===> pushed new thread with id:41, number of threads:0, unprocessed:76 1323s # [ sorted] ===> pushed new thread with id:23, number of threads:0, unprocessed:77 1323s # [ sorted] ===> pushed new thread with id:6, number of threads:0, unprocessed:78 1323s # [ sorted] ===> pushed new thread with id:69, number of threads:0, unprocessed:79 1323s # [ sorted] ===> pushed new thread with id:95, number of threads:0, unprocessed:80 1323s # [ sorted] ===> pushed new thread with id:37, number of threads:0, unprocessed:81 1323s # [ sorted] ===> pushed new thread with id:36, number of threads:0, unprocessed:82 1323s # [ sorted] ===> pushed new thread with id:60, number of threads:0, unprocessed:83 1323s # [ sorted] ===> pushed new thread with id:88, number of threads:0, unprocessed:84 1323s # [ sorted] ===> pushed new thread with id:79, number of threads:0, unprocessed:85 1323s # [ sorted] ===> pushed new thread with id:7, number of threads:0, unprocessed:86 1323s # [ sorted] ===> pushed new thread with id:49, number of threads:0, unprocessed:87 1323s # [ sorted] ===> pushed new thread with id:22, number of threads:0, unprocessed:88 1323s # [ sorted] ===> pushed new thread with id:31, number of threads:0, unprocessed:89 1323s # [ sorted] ===> pushed new thread with id:64, number of threads:0, unprocessed:90 1323s # [ sorted] ===> pushed new thread with id:84, number of threads:0, unprocessed:91 1323s # [ sorted] ===> pushed new thread with id:14, number of threads:0, unprocessed:92 1323s # [ sorted] ===> pushed new thread with id:43, number of threads:0, unprocessed:93 1323s # [ sorted] ===> pushed new thread with id:33, number of threads:0, unprocessed:94 1323s # [ sorted] ===> pushed new thread with id:7, number of threads:0, unprocessed:95 1323s # [ sorted] ===> pushed new thread with id:34, number of threads:0, unprocessed:96 1323s # [ sorted] ===> pushed new thread with id:62, number of threads:0, unprocessed:97 1323s # [ sorted] ===> pushed new thread with id:20, number of threads:0, unprocessed:98 1323s # [ sorted] ===> pushed new thread with id:61, number of threads:0, unprocessed:99 1323s # [ sorted] ===> pushed new thread with id:74, number of threads:0, unprocessed:100 1323s # Starting thread pool processing 1323s ok 5 /threadpool/sort 1323s ok 6 /threadpool/stop-unused-multiple 1323s # slow test /threadpool/stop-unused-multiple executed in 0.51 secs 1323s # Pool idle thread count: 0, unprocessed jobs: 49 1323s # Pool idle thread count: 0, unprocessed jobs: 0 1323s # Pool idle thread count: 0, unprocessed jobs: 0 1324s # Pool idle thread count: 10, unprocessed jobs: 0 1324s # Pool idle thread count: 10, unprocessed jobs: 0 1324s # Pool idle thread count: 10, unprocessed jobs: 0 1324s # Pool idle thread count: 10, unprocessed jobs: 0 1325s # Pool idle thread count: 10, unprocessed jobs: 0 1325s # Pool idle thread count: 10, unprocessed jobs: 0 1325s # Pool idle thread count: 10, unprocessed jobs: 0 1325s # Pool idle thread count: 10, unprocessed jobs: 0 1326s # Pool idle thread count: 10, unprocessed jobs: 0 1326s # Pool idle thread count: 10, unprocessed jobs: 0 1326s # Pool idle thread count: 10, unprocessed jobs: 0 1326s # Pool idle thread count: 10, unprocessed jobs: 0 1327s # Pool idle thread count: 10, unprocessed jobs: 0 1327s # Pool idle thread count: 10, unprocessed jobs: 0 1327s Executing: glib/thread-pool-slow.test 1327s # Pool idle thread count: 10, unprocessed jobs: 0 1327s # Pool idle thread count: 10, unprocessed jobs: 0 1328s # Pool idle thread count: 10, unprocessed jobs: 0 1328s # Pool idle thread count: 10, unprocessed jobs: 0 1328s # Pool idle thread count: 10, unprocessed jobs: 0 1328s # Pool idle thread count: 10, unprocessed jobs: 0 1329s # Pool idle thread count: 10, unprocessed jobs: 0 1329s # Pool idle thread count: 10, unprocessed jobs: 0 1329s # Pool idle thread count: 10, unprocessed jobs: 0 1329s # Pool idle thread count: 10, unprocessed jobs: 0 1330s # Pool idle thread count: 10, unprocessed jobs: 0 1330s # Pool idle thread count: 10, unprocessed jobs: 0 1330s # Pool idle thread count: 10, unprocessed jobs: 0 1330s # Pool idle thread count: 10, unprocessed jobs: 0 1331s # Pool idle thread count: 10, unprocessed jobs: 0 1331s # Pool idle thread count: 10, unprocessed jobs: 0 1331s # Pool idle thread count: 10, unprocessed jobs: 0 1331s # Pool idle thread count: 10, unprocessed jobs: 0 1332s # Pool idle thread count: 10, unprocessed jobs: 2 1332s # Pool idle thread count: 10, unprocessed jobs: 2 1332s # Pool idle thread count: 8, unprocessed jobs: 0 1332s # Pool idle thread count: 8, unprocessed jobs: 0 1332s Executing: glib/thread-pool-slow.test 1332s # Pool idle thread count: 10, unprocessed jobs: 0 1332s # Pool idle thread count: 10, unprocessed jobs: 0 1333s # Pool idle thread count: 10, unprocessed jobs: 0 1333s # Pool idle thread count: 10, unprocessed jobs: 0 1333s # Pool idle thread count: 10, unprocessed jobs: 0 1333s # Pool idle thread count: 10, unprocessed jobs: 0 1334s # Pool idle thread count: 2, unprocessed jobs: 0 1334s # Pool idle thread count: 2, unprocessed jobs: 0 1334s # Pool idle thread count: 2, unprocessed jobs: 0 1334s # Pool idle thread count: 2, unprocessed jobs: 0 1335s # Pool idle thread count: 2, unprocessed jobs: 0 1335s # Pool idle thread count: 2, unprocessed jobs: 0 1335s # Pool idle thread count: 2, unprocessed jobs: 0 1335s # Pool idle thread count: 2, unprocessed jobs: 0 1336s # Pool idle thread count: 2, unprocessed jobs: 0 1336s # Pool idle thread count: 2, unprocessed jobs: 0 1336s # Pool idle thread count: 2, unprocessed jobs: 0 1336s # Pool idle thread count: 2, unprocessed jobs: 0 1337s # Pool idle thread count: 2, unprocessed jobs: 0 1337s # Pool idle thread count: 2, unprocessed jobs: 0 1337s Executing: glib/thread-pool-slow.test 1337s # Pool idle thread count: 2, unprocessed jobs: 0 1337s # Pool idle thread count: 2, unprocessed jobs: 0 1338s # Pool idle thread count: 2, unprocessed jobs: 0 1338s # Pool idle thread count: 2, unprocessed jobs: 0 1338s # Pool idle thread count: 2, unprocessed jobs: 0 1338s # Pool idle thread count: 2, unprocessed jobs: 0 1339s # Pool idle thread count: 2, unprocessed jobs: 0 1339s # Pool idle thread count: 2, unprocessed jobs: 0 1339s # Pool idle thread count: 2, unprocessed jobs: 0 1339s # Pool idle thread count: 2, unprocessed jobs: 0 1340s # Pool idle thread count: 2, unprocessed jobs: 0 1340s # Pool idle thread count: 2, unprocessed jobs: 0 1340s # Pool idle thread count: 2, unprocessed jobs: 0 1340s # Pool idle thread count: 2, unprocessed jobs: 0 1341s # Pool idle thread count: 2, unprocessed jobs: 0 1341s # Pool idle thread count: 2, unprocessed jobs: 0 1341s # Pool idle thread count: 2, unprocessed jobs: 0 1341s # Pool idle thread count: 2, unprocessed jobs: 0 1342s # Pool idle thread count: 2, unprocessed jobs: 0 1342s # Pool idle thread count: 2, unprocessed jobs: 0 1342s Executing: glib/thread-pool-slow.test 1342s ok 7 /threadpool/idle-time 1342s # slow test /threadpool/idle-time executed in 19.53 secs 1342s # End of threadpool tests 1342s PASS: glib/thread-pool-slow.test 1342s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.5s; system=0.0s; maxrss=3576 1343s autopkgtest [08:57:00]: test thread-pool-slow: -----------------------] 1343s autopkgtest [08:57:00]: test thread-pool-slow: - - - - - - - - - - results - - - - - - - - - - 1343s thread-pool-slow PASS 1344s autopkgtest [08:57:01]: test threadtests: preparing testbed 1344s Reading package lists... 1344s Building dependency tree... 1344s Reading state information... 1345s Starting pkgProblemResolver with broken count: 0 1345s Starting 2 pkgProblemResolver with broken count: 0 1345s Done 1346s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1347s autopkgtest [08:57:04]: test threadtests: [----------------------- 1347s Running test: glib/threadtests.test 1347s TAP version 14 1347s # random seed: R02S03e236f6c4d4a2a8c8079d5fd9a4c94c 1347s 1..5 1347s # Start of GObject tests 1347s ok 1 /GObject/threaded-object-init 1348s ok 2 /GObject/threaded-weak-ref 1348s # slow test /GObject/threaded-weak-ref executed in 0.81 secs 1348s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2394 1348s # /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 1348s ok 3 /GObject/threaded-toggle-notify 1348s ok 4 /GObject/threaded-g-pointer-bit-unlock-and-set 1348s # Start of threaded-weak-ref tests 1348s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 1348s # /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. 1348s ok 5 /GObject/threaded-weak-ref/on-finalization 1348s # End of threaded-weak-ref tests 1348s # End of GObject tests 1348s PASS: glib/threadtests.test 1348s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.6s; system=0.5s; maxrss=3336 1348s autopkgtest [08:57:05]: test threadtests: -----------------------] 1349s threadtests PASS 1349s autopkgtest [08:57:06]: test threadtests: - - - - - - - - - - results - - - - - - - - - - 1349s autopkgtest [08:57:06]: test timeout: preparing testbed 1349s Reading package lists... 1350s Building dependency tree... 1350s Reading state information... 1350s Starting pkgProblemResolver with broken count: 0 1350s Starting 2 pkgProblemResolver with broken count: 0 1350s Done 1351s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1352s autopkgtest [08:57:09]: test timeout: [----------------------- 1352s Running test: glib/timeout.test 1352s TAP version 14 1352s # random seed: R02S855472d80d8ae6c01421b1793382336c 1352s 1..5 1352s # Start of timeout tests 1352s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642052 1354s ok 1 /timeout/seconds 1354s # slow test /timeout/seconds executed in 2.10 secs 1356s ok 2 /timeout/seconds-once 1356s # slow test /timeout/seconds-once executed in 2.10 secs 1356s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1600 1357s Executing: glib/timeout.test 1358s ok 3 /timeout/weeks-overflow 1358s # slow test /timeout/weeks-overflow executed in 2.10 secs 1358s ok 4 /timeout/far-future-ready-time 1362s Executing: glib/timeout.test 1367s Executing: glib/timeout.test 1368s ok 5 /timeout/rounding 1368s # slow test /timeout/rounding executed in 9.90 secs 1368s # End of timeout tests 1368s PASS: glib/timeout.test 1368s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=2860 1368s autopkgtest [08:57:25]: test timeout: -----------------------] 1369s timeout PASS 1369s autopkgtest [08:57:26]: test timeout: - - - - - - - - - - results - - - - - - - - - - 1369s autopkgtest [08:57:26]: test timer: preparing testbed 1370s Reading package lists... 1370s Building dependency tree... 1370s Reading state information... 1370s Starting pkgProblemResolver with broken count: 0 1370s Starting 2 pkgProblemResolver with broken count: 0 1370s Done 1371s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1372s autopkgtest [08:57:29]: test timer: [----------------------- 1372s Running test: glib/timer.test 1372s TAP version 14 1372s # random seed: R02Sf824af3d847e42660422279dfa1c5baa 1372s 1..10 1372s # Start of timer tests 1372s ok 1 /timer/basic 1372s ok 2 /timer/stop 1372s ok 3 /timer/continue 1372s ok 4 /timer/reset 1372s ok 5 /timer/is_active 1372s # End of timer tests 1372s # Start of timeval tests 1372s ok 6 /timeval/add 1372s ok 7 /timeval/from-iso8601 1372s ok 8 /timeval/to-iso8601 1372s # Start of to-iso8601 tests 1372s ok 9 /timeval/to-iso8601/overflow 1372s # End of to-iso8601 tests 1372s # End of timeval tests 1372s # Start of usleep tests 1372s ok 10 /usleep/with-zero-wait 1372s # End of usleep tests 1372s PASS: glib/timer.test 1372s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=2876 1373s autopkgtest [08:57:30]: test timer: -----------------------] 1373s autopkgtest [08:57:30]: test timer: - - - - - - - - - - results - - - - - - - - - - 1373s timer PASS 1373s autopkgtest [08:57:30]: test 1065022-futureproofing: preparing testbed 1503s autopkgtest [08:59:40]: testbed dpkg architecture: arm64 1504s autopkgtest [08:59:41]: testbed apt version: 3.0.0 1504s autopkgtest [08:59:41]: @@@@@@@@@@@@@@@@@@@@ test bed setup 1504s autopkgtest [08:59:41]: testbed release detected to be: questing 1505s autopkgtest [08:59:42]: updating testbed package index (apt update) 1505s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [110 kB] 1506s Hit:2 http://ftpmaster.internal/ubuntu questing InRelease 1506s Hit:3 http://ftpmaster.internal/ubuntu questing-updates InRelease 1506s Hit:4 http://ftpmaster.internal/ubuntu questing-security InRelease 1506s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [44.4 kB] 1506s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [2076 kB] 1506s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [175 kB] 1506s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/main arm64 Packages [219 kB] 1506s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/universe arm64 Packages [1509 kB] 1506s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/multiverse arm64 Packages [15.4 kB] 1507s Fetched 4149 kB in 1s (3328 kB/s) 1508s Reading package lists... 1509s autopkgtest [08:59:46]: upgrading testbed (apt dist-upgrade and autopurge) 1509s Reading package lists... 1510s Building dependency tree... 1510s Reading state information... 1511s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 1511s Starting 2 pkgProblemResolver with broken count: 0 1511s Done 1513s Entering ResolveByKeep 1514s 1514s Calculating upgrade... 1515s The following packages will be upgraded: 1515s htop libpython3.13 libpython3.13-minimal libpython3.13-stdlib mtd-utils nano 1515s python3.13 python3.13-gdbm python3.13-minimal 1515s 9 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1515s Need to get 9181 kB of archives. 1515s After this operation, 727 kB of additional disk space will be used. 1515s Get:1 http://ftpmaster.internal/ubuntu questing-proposed/main arm64 python3.13 arm64 3.13.3-2 [739 kB] 1515s Get:2 http://ftpmaster.internal/ubuntu questing-proposed/main arm64 libpython3.13 arm64 3.13.3-2 [2281 kB] 1515s Get:3 http://ftpmaster.internal/ubuntu questing-proposed/main arm64 libpython3.13-stdlib arm64 3.13.3-2 [2038 kB] 1515s Get:4 http://ftpmaster.internal/ubuntu questing-proposed/main arm64 python3.13-minimal arm64 3.13.3-2 [2273 kB] 1516s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/main arm64 libpython3.13-minimal arm64 3.13.3-2 [881 kB] 1516s Get:6 http://ftpmaster.internal/ubuntu questing/main arm64 nano arm64 8.4-1 [290 kB] 1516s Get:7 http://ftpmaster.internal/ubuntu questing/main arm64 htop arm64 3.4.1-4 [177 kB] 1516s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/main arm64 python3.13-gdbm arm64 3.13.3-2 [31.5 kB] 1516s Get:9 http://ftpmaster.internal/ubuntu questing/main arm64 mtd-utils arm64 1:2.3.0-1ubuntu1 [469 kB] 1516s Fetched 9181 kB in 1s (9623 kB/s) 1517s (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 ... 117820 files and directories currently installed.) 1517s Preparing to unpack .../0-python3.13_3.13.3-2_arm64.deb ... 1517s Unpacking python3.13 (3.13.3-2) over (3.13.3-1) ... 1517s Preparing to unpack .../1-libpython3.13_3.13.3-2_arm64.deb ... 1517s Unpacking libpython3.13:arm64 (3.13.3-2) over (3.13.3-1) ... 1517s Preparing to unpack .../2-libpython3.13-stdlib_3.13.3-2_arm64.deb ... 1517s Unpacking libpython3.13-stdlib:arm64 (3.13.3-2) over (3.13.3-1) ... 1517s Preparing to unpack .../3-python3.13-minimal_3.13.3-2_arm64.deb ... 1517s Unpacking python3.13-minimal (3.13.3-2) over (3.13.3-1) ... 1517s Preparing to unpack .../4-libpython3.13-minimal_3.13.3-2_arm64.deb ... 1518s Unpacking libpython3.13-minimal:arm64 (3.13.3-2) over (3.13.3-1) ... 1518s Preparing to unpack .../5-nano_8.4-1_arm64.deb ... 1518s Unpacking nano (8.4-1) over (8.3-1) ... 1518s Preparing to unpack .../6-htop_3.4.1-4_arm64.deb ... 1518s Unpacking htop (3.4.1-4) over (3.4.0-2) ... 1518s Preparing to unpack .../7-python3.13-gdbm_3.13.3-2_arm64.deb ... 1518s Unpacking python3.13-gdbm (3.13.3-2) over (3.13.3-1) ... 1518s Preparing to unpack .../8-mtd-utils_1%3a2.3.0-1ubuntu1_arm64.deb ... 1518s Unpacking mtd-utils (1:2.3.0-1ubuntu1) over (1:2.2.0-2ubuntu2) ... 1518s Setting up htop (3.4.1-4) ... 1518s Setting up mtd-utils (1:2.3.0-1ubuntu1) ... 1518s Setting up libpython3.13-minimal:arm64 (3.13.3-2) ... 1518s Setting up nano (8.4-1) ... 1518s Installing new version of config file /etc/nanorc ... 1518s Setting up python3.13-minimal (3.13.3-2) ... 1519s Setting up libpython3.13-stdlib:arm64 (3.13.3-2) ... 1519s Setting up python3.13-gdbm (3.13.3-2) ... 1519s Setting up libpython3.13:arm64 (3.13.3-2) ... 1520s Setting up python3.13 (3.13.3-2) ... 1521s Processing triggers for systemd (257.4-1ubuntu3) ... 1521s Processing triggers for man-db (2.13.0-1) ... 1522s Processing triggers for install-info (7.1.1-1) ... 1522s Processing triggers for libc-bin (2.41-6ubuntu1) ... 1523s Reading package lists... 1524s Building dependency tree... 1524s Reading state information... 1524s Starting pkgProblemResolver with broken count: 0 1525s Starting 2 pkgProblemResolver with broken count: 0 1525s Done 1526s Solving dependencies... 1527s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1530s Reading package lists... 1530s Building dependency tree... 1530s Reading state information... 1531s Starting pkgProblemResolver with broken count: 0 1531s Starting 2 pkgProblemResolver with broken count: 0 1531s Done 1533s The following NEW packages will be installed: 1533s dconf-gsettings-backend dconf-service dpkg-repack gsettings-desktop-schemas 1533s libdconf1 1533s 0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded. 1533s Need to get 138 kB of archives. 1533s After this operation, 701 kB of additional disk space will be used. 1533s Get:1 http://ftpmaster.internal/ubuntu questing/main arm64 libdconf1 arm64 0.40.0-5 [40.0 kB] 1533s Get:2 http://ftpmaster.internal/ubuntu questing/main arm64 dconf-service arm64 0.40.0-5 [27.1 kB] 1533s Get:3 http://ftpmaster.internal/ubuntu questing/main arm64 dconf-gsettings-backend arm64 0.40.0-5 [22.3 kB] 1533s Get:4 http://ftpmaster.internal/ubuntu questing/main arm64 dpkg-repack all 1.54 [11.2 kB] 1533s Get:5 http://ftpmaster.internal/ubuntu questing/main arm64 gsettings-desktop-schemas all 48.0-1ubuntu1 [37.6 kB] 1534s Fetched 138 kB in 0s (367 kB/s) 1534s Selecting previously unselected package libdconf1:arm64. 1534s (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 ... 117821 files and directories currently installed.) 1534s Preparing to unpack .../libdconf1_0.40.0-5_arm64.deb ... 1534s Unpacking libdconf1:arm64 (0.40.0-5) ... 1534s Selecting previously unselected package dconf-service. 1534s Preparing to unpack .../dconf-service_0.40.0-5_arm64.deb ... 1534s Unpacking dconf-service (0.40.0-5) ... 1534s Selecting previously unselected package dconf-gsettings-backend:arm64. 1534s Preparing to unpack .../dconf-gsettings-backend_0.40.0-5_arm64.deb ... 1534s Unpacking dconf-gsettings-backend:arm64 (0.40.0-5) ... 1534s Selecting previously unselected package dpkg-repack. 1534s Preparing to unpack .../dpkg-repack_1.54_all.deb ... 1534s Unpacking dpkg-repack (1.54) ... 1534s Selecting previously unselected package gsettings-desktop-schemas. 1534s Preparing to unpack .../gsettings-desktop-schemas_48.0-1ubuntu1_all.deb ... 1534s Unpacking gsettings-desktop-schemas (48.0-1ubuntu1) ... 1534s Setting up dpkg-repack (1.54) ... 1534s Setting up libdconf1:arm64 (0.40.0-5) ... 1534s Setting up dconf-service (0.40.0-5) ... 1534s Setting up dconf-gsettings-backend:arm64 (0.40.0-5) ... 1534s Setting up gsettings-desktop-schemas (48.0-1ubuntu1) ... 1534s Processing triggers for man-db (2.13.0-1) ... 1534s Processing triggers for libglib2.0-0t64:arm64 (2.84.1-1) ... 1534s Processing triggers for libc-bin (2.41-6ubuntu1) ... 1544s autopkgtest [09:00:21]: test 1065022-futureproofing: [----------------------- 1545s + export DEBIAN_FRONTEND=noninteractive 1545s + n=0 1545s + failed=0 1545s + binary_package=libglib2.0-0t64 1545s + future_binary_package=libglib2.0-0xyz 1545s + pwd 1545s + srcdir=/tmp/autopkgtest.s3NNs2/build.swq/src 1545s + mktemp -d 1545s + tmpdir=/tmp/tmp.ReFFVhY2CM 1545s + cd /tmp/tmp.ReFFVhY2CM 1545s + [ -e /tmp/autopkgtest.s3NNs2/build.swq/src/debian/tests/manual/local-1065022.sources ] 1545s + dpkg-query -W dpkg-repack 1545s dpkg-repack 1.54 1545s + dpkg-repack --generate libglib2.0-0t64 1545s dpkg-repack: warning: unknown information field 'Original-Maintainer' in input data in stanza in dpkg's status file 1545s dpkg-repack: info: created dpkg-repack.libglib2.0-0t64.3HThC6 for libglib2.0-0t64 1545s dpkg-repack: info: to build use: "dpkg-deb --build dpkg-repack.libglib2.0-0t64.3HThC6 ." 1545s + grep -q ^Breaks: dpkg-repack.libglib2.0-0t64.3HThC6/DEBIAN/control 1545s + grep -q ^Provides: dpkg-repack.libglib2.0-0t64.3HThC6/DEBIAN/control 1545s + grep -q ^Replaces: dpkg-repack.libglib2.0-0t64.3HThC6/DEBIAN/control 1545s + env binary_package=libglib2.0-0t64 future_binary_package=libglib2.0-0xyz perl -p -i -e s/^Package:.*$/Package: $ENV{future_binary_package}/; -e s/^(Breaks:.*)$/$1, $ENV{binary_package}/; -e s/^(Provides:.*)$/$1, $ENV{binary_package}/; -e s/^(Replaces:.*)$/$1, $ENV{binary_package}/; dpkg-repack.libglib2.0-0t64.3HThC6/DEBIAN/control 1545s + dpkg-deb --build dpkg-repack.libglib2.0-0t64.3HThC6 libglib2.0-0xyz.deb 1545s dpkg-deb: building package 'libglib2.0-0xyz' in 'libglib2.0-0xyz.deb'. 1548s + apt-get -y install ./libglib2.0-0xyz.deb 1548s Reading package lists... 1549s Building dependency tree... 1549s Reading state information... 1550s Solving dependencies... 1550s The following packages were automatically installed and are no longer required: 1550s apport-symptoms exfatprogs fwupd-signed jq libatasmart4 libbytesize-common 1550s libbytesize1 libdrm-amdgpu1 libflashrom1 libftdi1-2 libgpgme11t64 libicu76 1550s libinih1 libjq1 libjson-glib-1.0-common libnspr4 libnss3 libnvme1t64 1550s libonig5 libprotobuf-c1 python3-apport python3-certifi python3-chardet 1550s python3-configobj python3-debconf python3-markdown-it python3-mdurl 1550s python3-openssl python3-passlib python3-problem-report python3-pygments 1550s python3-requests python3-rich python3-systemd python3-urllib3 1550s Use 'sudo apt autoremove' to remove them. 1550s The following additional packages will be installed: 1550s xdg-user-dirs 1551s Suggested packages: 1551s low-memory-monitor 1551s Recommended packages: 1551s shared-mime-info 1551s The following packages will be REMOVED: 1551s apport apport-core-dump-handler bolt cloud-init cloud-init-base 1551s dconf-gsettings-backend dconf-service fwupd gir1.2-girepository-2.0 1551s gir1.2-glib-2.0 gsettings-desktop-schemas libblockdev-crypto3 1551s libblockdev-fs3 libblockdev-loop3 libblockdev-mdraid3 libblockdev-nvme3 1551s libblockdev-part3 libblockdev-swap3 libblockdev-utils3 libblockdev3 1551s libdconf1 libfwupd3 libgirepository-1.0-1 libglib2.0-0t64 libgudev-1.0-0 1551s libjcat1 libjson-glib-1.0-0 libmbim-glib4 libmbim-proxy libmm-glib0 1551s libnetplan1 libpolkit-agent-1-0 libpolkit-gobject-1-0 libqmi-glib5 1551s libqmi-proxy libqrtr-glib0 libudisks2-0 libvolume-key1 libxmlb2 1551s netplan-generator netplan.io networkd-dispatcher python3-dbus python3-gi 1551s python3-netplan shared-mime-info ubuntu-minimal udisks2 xfsprogs 1551s The following NEW packages will be installed: 1551s libglib2.0-0xyz xdg-user-dirs 1551s 0 upgraded, 2 newly installed, 49 to remove and 0 not upgraded. 1551s Need to get 18.5 kB/1591 kB of archives. 1551s After this operation, 38.7 MB disk space will be freed. 1551s Get:1 /tmp/tmp.ReFFVhY2CM/libglib2.0-0xyz.deb libglib2.0-0xyz arm64 2.84.1-1 [1572 kB] 1551s Get:2 http://ftpmaster.internal/ubuntu questing/main arm64 xdg-user-dirs arm64 0.18-2 [18.5 kB] 1552s Fetched 18.5 kB in 0s (78.5 kB/s) 1552s (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 ... 117890 files and directories currently installed.) 1552s Removing bolt (0.9.8-1) ... 1552s Removing cloud-init (25.1.1-0ubuntu2) ... 1552s Removing cloud-init-base (25.1.1-0ubuntu2) ... 1553s Removing gsettings-desktop-schemas (48.0-1ubuntu1) ... 1553s Removing dconf-gsettings-backend:arm64 (0.40.0-5) ... 1553s Removing dconf-service (0.40.0-5) ... 1553s Removing fwupd (2.0.7-1) ... 1554s Removing networkd-dispatcher (2.2.4-1.1) ... 1554s Removing udisks2 (2.10.1-11ubuntu2) ... 1555s Removing libblockdev-crypto3:arm64 (3.3.0-2) ... 1555s Removing libblockdev-fs3:arm64 (3.3.0-2) ... 1555s Removing libblockdev-loop3:arm64 (3.3.0-2) ... 1555s Removing libblockdev-mdraid3:arm64 (3.3.0-2) ... 1555s Removing libblockdev-nvme3:arm64 (3.3.0-2) ... 1555s Removing libblockdev-part3:arm64 (3.3.0-2) ... 1555s Removing libblockdev-swap3:arm64 (3.3.0-2) ... 1555s Removing libblockdev3:arm64 (3.3.0-2) ... 1555s Removing libblockdev-utils3:arm64 (3.3.0-2) ... 1555s Removing libdconf1:arm64 (0.40.0-5) ... 1556s Removing libfwupd3:arm64 (2.0.7-1) ... 1556s Removing shared-mime-info (2.4-5build1) ... 1556s Removing xfsprogs (6.13.0-2ubuntu1) ... 1556s Removing python3-dbus (1.3.2-5build5) ... 1556s Removing libgudev-1.0-0:arm64 (1:238-6) ... 1557s Removing libjcat1:arm64 (0.2.0-2build3) ... 1557s Removing libjson-glib-1.0-0:arm64 (1.10.6+ds-2) ... 1557s Removing libqmi-proxy (1.35.6-1) ... 1557s Removing libqmi-glib5:arm64 (1.35.6-1) ... 1557s Removing libmbim-proxy (1.31.2-0ubuntu4) ... 1557s Removing libmbim-glib4:arm64 (1.31.2-0ubuntu4) ... 1557s Removing libmm-glib0:arm64 (1.23.4-0ubuntu3) ... 1557s Removing ubuntu-minimal (1.549) ... 1557s Removing netplan.io (1.1.2-2ubuntu1) ... 1557s dpkg: warning: while removing netplan.io, directory '/usr/share/netplan/netplan_cli/cli/commands' not empty so not removed 1557s Removing python3-netplan (1.1.2-2ubuntu1) ... 1557s Removing netplan-generator (1.1.2-2ubuntu1) ... 1557s dpkg: warning: while removing netplan-generator, directory '/etc/netplan' not empty so not removed 1557s Removing libnetplan1:arm64 (1.1.2-2ubuntu1) ... 1558s Removing libpolkit-agent-1-0:arm64 (126-2) ... 1558s Removing libpolkit-gobject-1-0:arm64 (126-2) ... 1558s Removing libqrtr-glib0:arm64 (1.2.2-1ubuntu4) ... 1558s Removing libudisks2-0:arm64 (2.10.1-11ubuntu2) ... 1558s Removing libvolume-key1:arm64 (0.3.12-9) ... 1558s Removing libxmlb2:arm64 (0.3.22-1) ... 1558s Removing apport (2.32.0-0ubuntu5) ... 1558s Removing apport-core-dump-handler (2.32.0-0ubuntu5) ... 1559s Removing python3-gi (3.50.0-4build1) ... 1559s Removing gir1.2-girepository-2.0:arm64 (1.84.0-1) ... 1559s Removing gir1.2-glib-2.0:arm64 (2.84.1-1) ... 1559s Removing libgirepository-1.0-1:arm64 (1.84.0-1) ... 1559s Removing libglib2.0-0t64:arm64 (2.84.1-1) ... 1559s Selecting previously unselected package libglib2.0-0xyz:arm64. 1559s (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 ... 116747 files and directories currently installed.) 1559s Preparing to unpack .../libglib2.0-0xyz.deb ... 1560s Unpacking libglib2.0-0xyz:arm64 (2.84.1-1) ... 1560s Selecting previously unselected package xdg-user-dirs. 1560s Preparing to unpack .../xdg-user-dirs_0.18-2_arm64.deb ... 1560s Unpacking xdg-user-dirs (0.18-2) ... 1560s Setting up xdg-user-dirs (0.18-2) ... 1560s Setting up libglib2.0-0xyz:arm64 (2.84.1-1) ... 1560s No schema files found: removed existing output file. 1560s Processing triggers for dbus (1.16.2-2ubuntu1) ... 1560s Processing triggers for initramfs-tools (0.147ubuntu1) ... 1560s update-initramfs: Generating /boot/initrd.img-6.14.0-15-generic 1560s W: No lz4 in /usr/bin:/sbin:/bin, using gzip 1590s System running in EFI mode, skipping. 1590s Processing triggers for libc-bin (2.41-6ubuntu1) ... 1590s Processing triggers for man-db (2.13.0-1) ... 1591s + assert test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1591s + n=1 1591s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1591s + echo not ok 1 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml exit status 1 1591s + failed=1 1591s + assert test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1591s + n=2 1591s + test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1591s + echo not ok 2 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled exit status 1 1591s + failed=1 1591s not ok 1 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml exit status 1 1591s not ok 2 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled exit status 1 1591s not ok 3 - test -e /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 1591s not ok 4 - test -s /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 1591s not ok 5 - test -e /usr/lib/*/gio/modules/giomodule.cache exit status 1 1591s not ok 6 - test -s /usr/lib/*/gio/modules/giomodule.cache exit status 1 1591s + assert test -e /usr/lib/*/gio/modules/libdconfsettings.so 1591s + n=3 1591s + test -e /usr/lib/*/gio/modules/libdconfsettings.so 1591s + echo not ok 3 - test -e /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 1591s + failed=1 1591s + assert test -s /usr/lib/*/gio/modules/libdconfsettings.so 1591s + n=4 1591s + test -s /usr/lib/*/gio/modules/libdconfsettings.so 1591s + echo not ok 4 - test -s /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 1591s + failed=1 1591s + assert test -e /usr/lib/*/gio/modules/giomodule.cache 1591s + n=5 1591s + test -e /usr/lib/*/gio/modules/giomodule.cache 1591s + echo not ok 5 - test -e /usr/lib/*/gio/modules/giomodule.cache exit status 1 1591s + failed=1 1591s + assert test -s /usr/lib/*/gio/modules/giomodule.cache 1591s + n=6 1591s + test -s /usr/lib/*/gio/modules/giomodule.cache 1591s + echo not ok 6 - test -s /usr/lib/*/gio/modules/giomodule.cache exit status 1 1591s + failed=1 1591s + apt-get -y purge libglib2.0-0t64 1591s Reading package lists... 1591s Building dependency tree... 1591s Reading state information... 1593s The following packages were automatically installed and are no longer required: 1593s apport-symptoms exfatprogs fwupd-signed jq libatasmart4 libbytesize-common 1593s libbytesize1 libdrm-amdgpu1 libflashrom1 libftdi1-2 libgpgme11t64 libicu76 1593s libinih1 libjq1 libjson-glib-1.0-common libnspr4 libnss3 libnvme1t64 1593s libonig5 libprotobuf-c1 python3-apport python3-certifi python3-chardet 1593s python3-configobj python3-debconf python3-markdown-it python3-mdurl 1593s python3-openssl python3-passlib python3-problem-report python3-pygments 1593s python3-requests python3-rich python3-systemd python3-urllib3 1593s Use 'sudo apt autoremove' to remove them. 1593s The following packages will be REMOVED: 1593s libglib2.0-0t64* 1593s 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 1593s After this operation, 0 B of additional disk space will be used. 1594s (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 ... 116782 files and directories currently installed.) 1594s Purging configuration files for libglib2.0-0t64:arm64 (2.84.1-1) ... 1594s + assert test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1594s + n=7 1594s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1594s + echo not ok 7 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml exit status 1 1594s + failed=1 1594s + assert test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1594s + n=8 1594s + test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1594s + echo not ok 8 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled exit status 1 1594s + failed=1 1594s not ok 7 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml exit status 1 1594s not ok 8 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled exit status 1 1594s not ok 9 - test -e /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 1594s not ok 10 - test -s /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 1594s not ok 11 - test -e /usr/lib/*/gio/modules/giomodule.cache exit status 1 1594s not ok 12 - test -s /usr/lib/*/gio/modules/giomodule.cache exit status 1 1594s + assert test -e /usr/lib/*/gio/modules/libdconfsettings.so 1594s + n=9 1594s + test -e /usr/lib/*/gio/modules/libdconfsettings.so 1594s + echo not ok 9 - test -e /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 1594s + failed=1 1594s + assert test -s /usr/lib/*/gio/modules/libdconfsettings.so 1594s + n=10 1594s + test -s /usr/lib/*/gio/modules/libdconfsettings.so 1594s + echo not ok 10 - test -s /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 1594s + failed=1 1594s + assert test -e /usr/lib/*/gio/modules/giomodule.cache 1594s + n=11 1594s + test -e /usr/lib/*/gio/modules/giomodule.cache 1594s + echo not ok 11 - test -e /usr/lib/*/gio/modules/giomodule.cache exit status 1 1594s + failed=1 1594s + assert test -s /usr/lib/*/gio/modules/giomodule.cache 1594s + n=12 1594s + test -s /usr/lib/*/gio/modules/giomodule.cache 1594s + echo not ok 12 - test -s /usr/lib/*/gio/modules/giomodule.cache exit status 1 1594s + failed=1 1594s + apt-get -y purge libglib2.0-0xyz 1594s Reading package lists... 1594s Building dependency tree... 1594s Reading state information... 1596s The following packages were automatically installed and are no longer required: 1596s apport-symptoms exfatprogs fwupd-signed jq libatasmart4 libatomic1 1596s libbytesize-common libbytesize1 libdrm-amdgpu1 libflashrom1 libftdi1-2 1596s libglib2.0-data libgpgme11t64 libicu76 libinih1 libjq1 1596s libjson-glib-1.0-common libnspr4 libnss3 libnvme1t64 libonig5 libprotobuf-c1 1596s python3-apport python3-certifi python3-chardet python3-configobj 1596s python3-debconf python3-markdown-it python3-mdurl python3-openssl 1596s python3-passlib python3-problem-report python3-pygments python3-requests 1596s python3-rich python3-systemd python3-urllib3 xdg-user-dirs 1596s Use 'sudo apt autoremove' to remove them. 1596s The following packages will be REMOVED: 1596s libglib2.0-0xyz* 1597s 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 1597s After this operation, 4972 kB disk space will be freed. 1597s (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 ... 116782 files and directories currently installed.) 1597s Removing libglib2.0-0xyz:arm64 (2.84.1-1) ... 1597s Processing triggers for libc-bin (2.41-6ubuntu1) ... 1597s (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 ... 116757 files and directories currently installed.) 1597s Purging configuration files for libglib2.0-0xyz:arm64 (2.84.1-1) ... 1597s ok 13 - unsuccessful as expected: test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1597s ok 14 - unsuccessful as expected: test -e /usr/share/glib-2.0/schemas/gschemas.compiled 1597s ok 15 - unsuccessful as expected: test -e /usr/lib/*/gio/modules/libdconfsettings.so 1597s ok 16 - unsuccessful as expected: test -e /usr/lib/*/gio/modules/giomodule.cache 1597s 1..16 1597s + assert_not test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1597s + n=13 1597s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1597s + echo ok 13 - unsuccessful as expected: test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1597s + assert_not test -e /usr/share/glib-2.0/schemas/gschemas.compiled 1597s + n=14 1597s + test -e /usr/share/glib-2.0/schemas/gschemas.compiled 1597s + echo ok 14 - unsuccessful as expected: test -e /usr/share/glib-2.0/schemas/gschemas.compiled 1597s + assert_not test -e /usr/lib/*/gio/modules/libdconfsettings.so 1597s + n=15 1597s + test -e /usr/lib/*/gio/modules/libdconfsettings.so 1597s + echo ok 15 - unsuccessful as expected: test -e /usr/lib/*/gio/modules/libdconfsettings.so 1597s + assert_not test -e /usr/lib/*/gio/modules/giomodule.cache 1597s + n=16 1597s + test -e /usr/lib/*/gio/modules/giomodule.cache 1597s + echo ok 16 - unsuccessful as expected: test -e /usr/lib/*/gio/modules/giomodule.cache 1597s + echo 1..16 1597s + exit 1 1598s autopkgtest [09:01:15]: test 1065022-futureproofing: -----------------------] 1598s 1065022-futureproofing FLAKY non-zero exit status 1 1598s autopkgtest [09:01:15]: test 1065022-futureproofing: - - - - - - - - - - results - - - - - - - - - - 1598s autopkgtest [09:01:15]: @@@@@@@@@@@@@@@@@@@@ summary 1598s build PASS (superficial) 1598s build-static PASS (superficial) 1598s girepository-tools PASS (superficial) 1598s libgio-2.0-dev-bin PASS (superficial) 1598s libglib2.0-dev PASS (superficial) 1598s installed-tests PASS 1598s closure-refcount PASS 1598s debugcontroller PASS 1598s gdbus-server-auth PASS 1598s gdbus-threading PASS 1598s gmenumodel PASS 1598s mainloop PASS 1598s memory-monitor-dbus PASS 1598s socket PASS 1598s testfilemonitor PASS 1598s thread-pool-slow PASS 1598s threadtests PASS 1598s timeout PASS 1598s timer PASS 1598s 1065022-futureproofing FLAKY non-zero exit status 1 1653s nova [W] Using flock in prodstack6-arm64 1653s Creating nova instance adt-questing-arm64-glib2.0-20250502-083437-juju-7f2275-prod-proposed-migration-environment-15-29425c28-cbee-4476-966b-1b2f2f477710 from image adt/ubuntu-questing-arm64-server-20250502.img (UUID a0b7b7fd-ad05-4ea9-97eb-0f52dbbe98e1)... 1653s nova [W] Timed out waiting for 4174e819-4b60-418c-b5cd-5bf47a65f0f2 to get deleted. 1653s nova [W] Using flock in prodstack6-arm64 1653s Creating nova instance adt-questing-arm64-glib2.0-20250502-083437-juju-7f2275-prod-proposed-migration-environment-15-29425c28-cbee-4476-966b-1b2f2f477710 from image adt/ubuntu-questing-arm64-server-20250502.img (UUID a0b7b7fd-ad05-4ea9-97eb-0f52dbbe98e1)... 1653s nova [W] Timed out waiting for 86f2a03d-630a-4453-a82d-890ff5fa9c10 to get deleted. 1653s nova [W] Using flock in prodstack6-arm64 1653s Creating nova instance adt-questing-arm64-glib2.0-20250502-083437-juju-7f2275-prod-proposed-migration-environment-15-29425c28-cbee-4476-966b-1b2f2f477710 from image adt/ubuntu-questing-arm64-server-20250502.img (UUID a0b7b7fd-ad05-4ea9-97eb-0f52dbbe98e1)... 1653s nova [W] Timed out waiting for 6e551c25-2950-4081-974c-e9b74aa62595 to get deleted. 1653s nova [W] Using flock in prodstack6-arm64 1653s Creating nova instance adt-questing-arm64-glib2.0-20250502-083437-juju-7f2275-prod-proposed-migration-environment-15-29425c28-cbee-4476-966b-1b2f2f477710 from image adt/ubuntu-questing-arm64-server-20250502.img (UUID a0b7b7fd-ad05-4ea9-97eb-0f52dbbe98e1)... 1653s nova [W] Timed out waiting for 7fc894cb-76a0-4719-be07-3b77e265413a to get deleted. 1653s nova [W] Using flock in prodstack6-arm64 1653s Creating nova instance adt-questing-arm64-glib2.0-20250502-083437-juju-7f2275-prod-proposed-migration-environment-15-29425c28-cbee-4476-966b-1b2f2f477710 from image adt/ubuntu-questing-arm64-server-20250502.img (UUID a0b7b7fd-ad05-4ea9-97eb-0f52dbbe98e1)... 1653s nova [W] Timed out waiting for c052e39b-ad90-4a60-880c-870d60ab496d to get deleted. 1653s nova [W] Using flock in prodstack6-arm64 1653s Creating nova instance adt-questing-arm64-glib2.0-20250502-083437-juju-7f2275-prod-proposed-migration-environment-15-29425c28-cbee-4476-966b-1b2f2f477710 from image adt/ubuntu-questing-arm64-server-20250502.img (UUID a0b7b7fd-ad05-4ea9-97eb-0f52dbbe98e1)... 1653s nova [W] Timed out waiting for 4533fb15-0cbb-4640-9256-9c8a8adae77c to get deleted.