]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tree-wide: Introduce sd-forward.h and shared-forward.h headers
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 16 Oct 2025 13:20:36 +0000 (15:20 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 16 Oct 2025 15:00:29 +0000 (17:00 +0200)
Let's not leak details from src/shared and src/libsystemd into
src/basic, even though you can't actually do anything useful with
just forward declarations from src/shared.

The sd-forward.h header is put in src/libsystemd/sd-common as we
don't have a directory for shared internal headers for libsystemd
yet.

Let's also rename forward.h to basic-forward.h to keep things
self-explanatory.

597 files changed:
docs/CODING_STYLE.md
meson.build
src/analyze/analyze-time-data.h
src/analyze/analyze-verify-util.h
src/analyze/analyze.h
src/basic/af-list.h
src/basic/alloc-util.h
src/basic/ansi-color.h
src/basic/architecture.h
src/basic/argv-util.h
src/basic/arphrd-util.h
src/basic/audit-util.h
src/basic/basic-forward.h [new file with mode: 0644]
src/basic/bitfield.h
src/basic/btrfs.h
src/basic/build.h
src/basic/bus-label.h
src/basic/capability-list.h
src/basic/capability-util.h
src/basic/capsule-util.h
src/basic/cgroup-util.h
src/basic/chase.h
src/basic/chattr-util.h
src/basic/compress.h
src/basic/conf-files.h
src/basic/confidential-virt.h
src/basic/devnum-util.h
src/basic/dirent-util.h
src/basic/dlfcn-util.h
src/basic/dns-def.h
src/basic/efivars.h
src/basic/env-file.h
src/basic/env-util.h
src/basic/errno-list.h
src/basic/errno-util.h
src/basic/escape.h
src/basic/ether-addr-util.h
src/basic/extract-word.h
src/basic/fd-util.h
src/basic/fileio.h
src/basic/filesystems.h
src/basic/format-util.h
src/basic/forward.h [deleted file]
src/basic/fs-util.h
src/basic/gcrypt-util.h
src/basic/glob-util.h
src/basic/glyph-util.h
src/basic/gunicode.h
src/basic/hash-funcs.h
src/basic/hashmap.h
src/basic/hexdecoct.h
src/basic/hmac.h
src/basic/hostname-util.h
src/basic/in-addr-util.h
src/basic/initrd-util.h
src/basic/inotify-util.h
src/basic/io-util.h
src/basic/iovec-util.h
src/basic/iovec-wrapper.h
src/basic/iterator.h
src/basic/keyring-util.h
src/basic/label.h
src/basic/limits-util.h
src/basic/list.h
src/basic/locale-util.h
src/basic/lock-util.h
src/basic/log-context.h
src/basic/log.h
src/basic/login-util.h
src/basic/math-util.h
src/basic/memfd-util.h
src/basic/memory-util.h
src/basic/mempool.h
src/basic/memstream-util.h
src/basic/mkdir.h
src/basic/mountpoint-util.h
src/basic/namespace-util.h
src/basic/nulstr-util.h
src/basic/ordered-set.h
src/basic/os-util.h
src/basic/parse-util.h
src/basic/path-util.h
src/basic/pcapng.h
src/basic/percent-util.h
src/basic/pidfd-util.h
src/basic/pidref.h
src/basic/prioq.h
src/basic/proc-cmdline.h
src/basic/process-util.h
src/basic/procfs-util.h
src/basic/psi-util.h
src/basic/pthread-util.h
src/basic/random-util.h
src/basic/ratelimit.h
src/basic/raw-clone.h
src/basic/recurse-dir.h
src/basic/replace-var.h
src/basic/rlimit-util.h
src/basic/runtime-scope.h
src/basic/set.h
src/basic/sha256.h
src/basic/sigbus.h
src/basic/signal-util.h
src/basic/siphash24.h
src/basic/socket-util.h
src/basic/sort-util.h
src/basic/sparse-endian.h
src/basic/stat-util.h
src/basic/static-destruct.h
src/basic/stdio-util.h
src/basic/strbuf.h
src/basic/string-table.h
src/basic/string-util.h
src/basic/strv.h
src/basic/strxcpyx.h
src/basic/sync-util.h
src/basic/sysctl-util.h
src/basic/syslog-util.h
src/basic/terminal-util.h
src/basic/time-util.h
src/basic/tmpfile-util.h
src/basic/uid-classification.h
src/basic/uid-range.h
src/basic/umask-util.h
src/basic/unaligned.h
src/basic/unit-def.h
src/basic/unit-name.h
src/basic/user-util.h
src/basic/utf8.h
src/basic/virt.h
src/basic/xattr-util.h
src/bootctl/bootctl-reboot-to-firmware.h
src/bootctl/bootctl-status.h
src/bootctl/bootctl-uki.h
src/bootctl/bootctl.h
src/busctl/busctl-introspect.h
src/core/audit-fd.h
src/core/clock-warp.h
src/core/core-forward.h
src/core/crash-handler.h
src/core/generator-setup.h
src/core/kill.h
src/core/main.h
src/core/manager.h
src/core/namespace.h
src/core/selinux-setup.h
src/core/show-status.h
src/core/smack-setup.h
src/core/unit-dependency-atom.h
src/core/varlink-cgroup.h
src/core/varlink-common.h
src/core/varlink-dynamic-user.h
src/core/varlink-manager.h
src/core/varlink-unit.h
src/coredump/coredump-vacuum.h
src/cryptenroll/cryptenroll-fido2.h
src/cryptenroll/cryptenroll-list.h
src/cryptenroll/cryptenroll-password.h
src/cryptenroll/cryptenroll-pkcs11.h
src/cryptenroll/cryptenroll-recovery.h
src/cryptenroll/cryptenroll-tpm2.h
src/cryptenroll/cryptenroll-wipe.h
src/cryptenroll/cryptenroll.h
src/cryptsetup/cryptsetup-keyfile.h
src/cryptsetup/cryptsetup-pkcs11.h
src/cryptsetup/cryptsetup-tokens/cryptsetup-token-util.h
src/cryptsetup/cryptsetup-tokens/cryptsetup-token.h
src/cryptsetup/cryptsetup-tokens/luks2-pkcs11.h
src/fuzz/fuzz.h
src/hibernate-resume/hibernate-resume-config.h
src/home/home-util.h
src/home/homectl-fido2.h
src/home/homectl-pkcs11.h
src/home/homectl-recovery-key.h
src/home/homed-bus.h
src/home/homed-forward.h
src/home/homed-home.h
src/home/homework-forward.h
src/home/user-record-password-quality.h
src/home/user-record-sign.h
src/home/user-record-util.h
src/import/curl-util.h
src/import/export-raw.h
src/import/export-tar.h
src/import/import-common.h
src/import/import-compress.h
src/import/import-raw.h
src/import/import-tar.h
src/import/pull-common.h
src/import/pull-job.h
src/import/pull-raw.h
src/import/pull-tar.h
src/integritysetup/integrity-util.h
src/journal-remote/journal-compression-util.h
src/journal-remote/journal-header-util.h
src/journal-remote/journal-remote-parse.h
src/journal-remote/journal-remote.h
src/journal-remote/journal-upload.h
src/journal-remote/microhttpd-util.h
src/journal/journalctl-filter.h
src/journal/journalctl-misc.h
src/journal/journalctl-util.h
src/journal/journalctl.h
src/journal/journald-forward.h
src/libsystemd-network/arp-util.h
src/libsystemd-network/dhcp-client-id-internal.h
src/libsystemd-network/dhcp-client-internal.h
src/libsystemd-network/dhcp-duid-internal.h
src/libsystemd-network/dhcp-lease-internal.h
src/libsystemd-network/dhcp-network.h
src/libsystemd-network/dhcp-option.h
src/libsystemd-network/dhcp-packet.h
src/libsystemd-network/dhcp-protocol.h
src/libsystemd-network/dhcp-server-internal.h
src/libsystemd-network/dhcp-server-lease-internal.h
src/libsystemd-network/dhcp6-client-internal.h
src/libsystemd-network/dhcp6-internal.h
src/libsystemd-network/dhcp6-lease-internal.h
src/libsystemd-network/dhcp6-option.h
src/libsystemd-network/dhcp6-protocol.h
src/libsystemd-network/dns-resolver-internal.h
src/libsystemd-network/icmp6-packet.h
src/libsystemd-network/icmp6-util.h
src/libsystemd-network/lldp-neighbor.h
src/libsystemd-network/lldp-rx-internal.h
src/libsystemd-network/ndisc-internal.h
src/libsystemd-network/ndisc-neighbor-internal.h
src/libsystemd-network/ndisc-redirect-internal.h
src/libsystemd-network/ndisc-router-solicit-internal.h
src/libsystemd-network/network-common.h
src/libsystemd-network/network-internal.h
src/libsystemd-network/radv-internal.h
src/libsystemd-network/sd-dns-resolver.h
src/libsystemd/sd-bus/bus-container.h
src/libsystemd/sd-bus/bus-control.h
src/libsystemd/sd-bus/bus-creds.h
src/libsystemd/sd-bus/bus-dump.h
src/libsystemd/sd-bus/bus-error.h
src/libsystemd/sd-bus/bus-forward.h
src/libsystemd/sd-bus/bus-kernel.h
src/libsystemd/sd-bus/bus-signature.h
src/libsystemd/sd-bus/bus-socket.h
src/libsystemd/sd-bus/bus-track.h
src/libsystemd/sd-bus/bus-type.h
src/libsystemd/sd-common/sd-forward.h [new file with mode: 0644]
src/libsystemd/sd-device/device-enumerator-private.h
src/libsystemd/sd-device/device-filter.h
src/libsystemd/sd-device/device-internal.h
src/libsystemd/sd-device/device-monitor-private.h
src/libsystemd/sd-device/device-private.h
src/libsystemd/sd-device/device-util.h
src/libsystemd/sd-event/event-source.h
src/libsystemd/sd-event/event-util.h
src/libsystemd/sd-hwdb/hwdb-internal.h
src/libsystemd/sd-id128/id128-util.h
src/libsystemd/sd-journal/audit-type.h
src/libsystemd/sd-journal/catalog.h
src/libsystemd/sd-journal/fsprg.h
src/libsystemd/sd-journal/journal-authenticate.h
src/libsystemd/sd-journal/journal-def.h
src/libsystemd/sd-journal/journal-file.h
src/libsystemd/sd-journal/journal-internal.h
src/libsystemd/sd-journal/journal-vacuum.h
src/libsystemd/sd-journal/lookup3.h
src/libsystemd/sd-journal/mmap-cache.h
src/libsystemd/sd-json/json-internal.h
src/libsystemd/sd-json/json-util.h
src/libsystemd/sd-netlink/netlink-genl.h
src/libsystemd/sd-netlink/netlink-internal.h
src/libsystemd/sd-netlink/netlink-slot.h
src/libsystemd/sd-netlink/netlink-types.h
src/libsystemd/sd-netlink/netlink-util.h
src/libsystemd/sd-network/network-util.h
src/libsystemd/sd-path/path-lookup.h
src/libsystemd/sd-varlink/varlink-idl-util.h
src/libsystemd/sd-varlink/varlink-internal.h
src/libsystemd/sd-varlink/varlink-util.h
src/libudev/libudev-device-internal.h
src/libudev/libudev-list-internal.h
src/libudev/libudev-util.c
src/libudev/libudev-util.h
src/locale/localed-util.h
src/locale/xkbcommon-util.h
src/login/logind-forward.h
src/login/logind-user.h
src/login/sysfs-show.h
src/machine/machine-forward.h
src/mountfsd/mountfsd-manager.h
src/network/netdev/bareudp.h
src/network/netdev/batadv.h
src/network/netdev/bond.h
src/network/netdev/bridge.h
src/network/netdev/dummy.h
src/network/netdev/fou-tunnel.h
src/network/netdev/geneve.h
src/network/netdev/l2tp-tunnel.h
src/network/netdev/macsec.h
src/network/netdev/tunnel.h
src/network/netdev/tuntap.h
src/network/netdev/vlan.h
src/network/netdev/wlan.h
src/network/netdev/xfrm.h
src/network/networkctl-dump-util.h
src/network/networkctl-link-info.h
src/network/networkctl-lldp.h
src/network/networkctl-status-system.h
src/network/networkctl-util.h
src/network/networkctl.h
src/network/networkd-address.h
src/network/networkd-bridge-fdb.h
src/network/networkd-forward.h
src/network/networkd-link.h
src/network/tc/drr.h
src/network/tc/ets.h
src/network/tc/fifo.h
src/network/tc/fq-codel.h
src/network/tc/fq-pie.h
src/network/tc/fq.h
src/network/tc/gred.h
src/network/tc/hhf.h
src/network/tc/htb.h
src/network/tc/mq.c
src/network/tc/mq.h
src/network/tc/multiq.h
src/network/tc/netem.h
src/network/tc/pie.h
src/network/tc/qfq.h
src/network/tc/sfb.h
src/network/tc/sfq.h
src/network/tc/tbf.h
src/network/tc/tc-util.h
src/network/tc/teql.h
src/network/wait-online/dns-configuration.h
src/network/wait-online/wait-online-link.h
src/network/wait-online/wait-online-manager.h
src/nspawn/nspawn-bind-user.h
src/nspawn/nspawn-cgroup.h
src/nspawn/nspawn-expose-ports.h
src/nspawn/nspawn-mount.h
src/nspawn/nspawn-network.h
src/nspawn/nspawn-oci.h
src/nspawn/nspawn-register.h
src/nspawn/nspawn-seccomp.h
src/nspawn/nspawn-settings.h
src/nspawn/nspawn-setuid.h
src/nspawn/nspawn-stub-pid1.h
src/nspawn/nspawn.h
src/nsresourced/nsresourced-manager.h
src/nsresourced/userns-registry.h
src/nsresourced/userns-restrict.h
src/nss-systemd/nss-systemd.h
src/nss-systemd/userdb-glue.h
src/oom/oomd-manager-bus.h
src/oom/oomd-manager.h
src/oom/oomd-util.h
src/pcrlock/pcrlock-firmware.h
src/portable/portable.h
src/portable/portabled-forward.h
src/resolve/dns-type.h
src/resolve/resolvectl.h
src/resolve/resolved-dns-scope.h
src/resolve/resolved-dns-server.h
src/resolve/resolved-dns-stream.h
src/resolve/resolved-dnssd-bus.h
src/resolve/resolved-forward.h
src/resolve/resolved-manager.h
src/sbsign/authenticode.h
src/shared/acl-util.h
src/shared/acpi-fpdt.h
src/shared/apparmor-util.h
src/shared/ask-password-agent.h
src/shared/ask-password-api.h
src/shared/async.h
src/shared/barrier.h
src/shared/base-filesystem.h
src/shared/battery-util.h
src/shared/bitmap.h
src/shared/blkid-util.h
src/shared/blockdev-list.h
src/shared/blockdev-util.h
src/shared/bond-util.h
src/shared/boot-entry.h
src/shared/boot-timestamps.h
src/shared/bootspec.h
src/shared/bpf-dlopen.h
src/shared/bpf-link.h
src/shared/bpf-program.h
src/shared/bridge-util.h
src/shared/btrfs-util.h
src/shared/bus-get-properties.h
src/shared/bus-locator.h
src/shared/bus-log-control-api.h
src/shared/bus-map-properties.h
src/shared/bus-message-util.h
src/shared/bus-object.h
src/shared/bus-polkit.h
src/shared/bus-print-properties.h
src/shared/bus-unit-procs.h
src/shared/bus-unit-util.h
src/shared/bus-util.h
src/shared/bus-wait-for-jobs.h
src/shared/bus-wait-for-units.h
src/shared/calendarspec.h
src/shared/cgroup-setup.h
src/shared/cgroup-show.h
src/shared/chown-recursive.h
src/shared/clean-ipc.h
src/shared/color-util.h
src/shared/common-signal.h
src/shared/compare-operator.h
src/shared/condition.h
src/shared/conf-parser.h
src/shared/copy.h
src/shared/coredump-util.h
src/shared/cpu-set-util.h
src/shared/creds-util.h
src/shared/cryptsetup-fido2.h
src/shared/cryptsetup-tpm2.h
src/shared/cryptsetup-util.h
src/shared/daemon-util.h
src/shared/data-fd-util.h
src/shared/dev-setup.h
src/shared/device-nodes.h
src/shared/discover-image.h
src/shared/dissect-image.h
src/shared/dns-domain.h
src/shared/dropin.h
src/shared/edit-util.h
src/shared/efi-api.h
src/shared/efi-loader.h
src/shared/elf-util.h
src/shared/ethtool-util.h
src/shared/exec-util.h
src/shared/exit-status.h
src/shared/extension-util.h
src/shared/factory-reset.h
src/shared/fdisk-util.h
src/shared/fdset.h
src/shared/fido2-util.h
src/shared/find-esp.h
src/shared/firewall-util.h
src/shared/fork-notify.h
src/shared/format-table.h
src/shared/fstab-util.h
src/shared/generator.h
src/shared/geneve-util.h
src/shared/gpt.h
src/shared/group-record.h
src/shared/hibernate-util.h
src/shared/hostname-setup.h
src/shared/hwdb-util.h
src/shared/id128-print.h
src/shared/idn-util.h
src/shared/ima-util.h
src/shared/image-policy.h
src/shared/import-util.h
src/shared/in-addr-prefix-util.h
src/shared/install-file.h
src/shared/install-printf.h
src/shared/install.h
src/shared/ioprio-util.h
src/shared/ip-protocol-list.h
src/shared/ipvlan-util.h
src/shared/journal-file-util.h
src/shared/journal-importer.h
src/shared/journal-util.h
src/shared/kbd-util.h
src/shared/kernel-config.h
src/shared/kernel-image.h
src/shared/killall.h
src/shared/label-util.h
src/shared/libarchive-util.h
src/shared/libaudit-util.h
src/shared/libcrypt-util.h
src/shared/libfido2-util.h
src/shared/libmount-util.h
src/shared/local-addresses.h
src/shared/locale-setup.h
src/shared/logs-show.h
src/shared/loop-util.h
src/shared/machine-bind-user.h
src/shared/machine-credential.h
src/shared/machine-id-setup.h
src/shared/machine-pool.h
src/shared/macvlan-util.h
src/shared/main-func.h
src/shared/mkdir-label.h
src/shared/mkfs-util.h
src/shared/module-util.h
src/shared/mount-setup.h
src/shared/mount-util.h
src/shared/net-condition.h
src/shared/netif-naming-scheme.h
src/shared/netif-sriov.h
src/shared/netif-util.h
src/shared/notify-recv.h
src/shared/nsflags.h
src/shared/nsresource.h
src/shared/nss-util.h
src/shared/numa-util.h
src/shared/open-file.h
src/shared/openssl-util.h
src/shared/osc-context.h
src/shared/output-mode.h
src/shared/pager.h
src/shared/pam-util.h
src/shared/parse-argument.h
src/shared/parse-helpers.h
src/shared/password-quality-util-passwdqc.h
src/shared/password-quality-util-pwquality.h
src/shared/pcre2-util.h
src/shared/pkcs11-util.h
src/shared/plymouth-util.h
src/shared/polkit-agent.h
src/shared/portable-util.h
src/shared/pretty-print.h
src/shared/prompt-util.h
src/shared/ptyfwd.h
src/shared/qrcode-util.h
src/shared/quota-util.h
src/shared/reboot-util.h
src/shared/recovery-key.h
src/shared/resize-fs.h
src/shared/resolve-util.h
src/shared/rm-rf.h
src/shared/seccomp-util.h
src/shared/securebits-util.h
src/shared/selinux-util.h
src/shared/serialize.h
src/shared/service-util.h
src/shared/shared-forward.h [new file with mode: 0644]
src/shared/shift-uid.h
src/shared/sleep-config.h
src/shared/smack-util.h
src/shared/smbios11.h
src/shared/socket-netlink.h
src/shared/specifier.h
src/shared/switch-root.h
src/shared/test-tables.h
src/shared/tests.h
src/shared/tmpfile-util-label.h
src/shared/tomoyo-util.h
src/shared/tpm2-event-log.h
src/shared/tpm2-util.h
src/shared/udev-util.h
src/shared/unit-file.h
src/shared/user-record-nss.h
src/shared/user-record-show.h
src/shared/user-record.h
src/shared/userdb-dropin.h
src/shared/userdb.h
src/shared/utmp-wtmp.h
src/shared/varlink-serialize.h
src/shared/vconsole-util.h
src/shared/verb-log-control.h
src/shared/verbs.h
src/shared/vlan-util.h
src/shared/volatile-util.h
src/shared/vpick.h
src/shared/wall.h
src/shared/watchdog.h
src/shared/web-util.h
src/shared/wifi-util.h
src/shared/xml.h
src/shutdown/detach-dm.h
src/shutdown/detach-loopback.h
src/shutdown/detach-md.h
src/shutdown/detach-swap.h
src/shutdown/umount.h
src/systemctl/systemctl-list-machines.h
src/systemctl/systemctl.h
src/sysupdate/sysupdate-forward.h
src/sysupdate/sysupdate-update-set-flags.h
src/test/nss-test-util.h
src/test/test-dlopen.c
src/test/test-sizeof.c
src/timedate/hwclock-util.h
src/timesync/timesyncd-forward.h
src/tmpfiles/offline-passwd.h
src/udev/fido_id/fido_id_desc.h
src/udev/mtd_probe/mtd_probe.h
src/udev/net/link-config.h
src/udev/udev-builtin.h
src/udev/udev-error.h
src/udev/udev-forward.h
src/udev/udev-manager.h
src/udev/udev-node.h
src/udev/udev-trace.h
src/udev/udevadm-util.h
src/udev/udevadm.h
src/userdb/userdbd-manager.h
src/vmspawn/vmspawn-mount.h
src/vmspawn/vmspawn-register.h
src/vmspawn/vmspawn-scope.h
src/vmspawn/vmspawn-settings.h
src/vmspawn/vmspawn-util.h
src/xdg-autostart-generator/xdg-autostart-service.h

index 71ebecaf3598d1314e08dec799aa11d4ea098b8e..ccbe415acdcd01773ff4a91ddfd77d5218d0e65f 100644 (file)
@@ -250,9 +250,9 @@ SPDX-License-Identifier: LGPL-2.1-or-later
     inline functions that require the full definition of a struct into the
     implementation file so that only a forward declaration of the struct is
     required and not the full definition.
-  - `src/basic/forward.h` contains forward declarations for common types. If
-    possible, only include `forward.h` in header files which makes circular
-    header dependencies a non-issue.
+  - `src/basic/basic-forward.h` contains forward declarations for common types.
+    If possible, only include `basic-forward.h` in header files which makes
+    circular header dependencies a non-issue.
 
   Bad:
 
@@ -319,13 +319,21 @@ SPDX-License-Identifier: LGPL-2.1-or-later
   incremental builds as much as possible.
 
   To avoid having to include other headers in header files, always include
-  `forward.h` in each header file and then add other required includes as
-  needed. `forward.h` already includes generic headers and contains forward
-  declarations for common types which should be sufficient for most header
-  files. For each extra include you add on top of `forward.h`, check if it can
-  be replaced by adding another forward declaration to `forward.h`. Depending on
-  the daemon, there might be a specific forward header to include (e.g.
-  `resolved-forward.h` for systemd-resolved header files).
+  the corresponding forward declaration header in each header file and then add
+  other required includes as needed. The forward declaration header already
+  includes generic headers and contains forward declarations for common types
+  which should be sufficient for most header files. For each extra include you
+  add on top of, check if it can be replaced by adding another forward
+  declaration to the forward declaration header. Depending on the daemon, there
+  might be a specific forward header to include (e.g. `resolved-forward.h` for
+  systemd-resolved header files).
+
+  For common code, there are three different forward declaration headers:
+
+  - `src/basic`: `basic-forward.h`
+  - `src/libsystemd`: `sd-forward.h`
+  - `src/libsystemd-network`: `sd-forward.h`
+  - `src/shared`: `shared-forward.h`
 
   Header files that extend other header files can include the original header
   file. For example, `iovec-util.h` includes `iovec-fundamental.h` and
@@ -352,7 +360,7 @@ SPDX-License-Identifier: LGPL-2.1-or-later
   ```c
   // source.h
 
-  #include "forward.h"
+  #include "basic-forward.h"
 
   void my_function_that_logs(size_t sz);
 
index d95dce86d58ac4cffa0501beebf61d7e52d63e27..80ea425259fcd0cdce261c82f2adc16625e0f08e 100644 (file)
@@ -2083,6 +2083,7 @@ basic_includes = [
 
 libsystemd_includes = [basic_includes, include_directories(
         'src/libsystemd/sd-bus',
+        'src/libsystemd/sd-common',
         'src/libsystemd/sd-device',
         'src/libsystemd/sd-event',
         'src/libsystemd/sd-hwdb',
index 8fa8e2e4755f56079d0d6958e518e671674ab861..b9dcc46d6c3c9b4414215c7e4883bd8a382708fe 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "unit-def.h"
 
 typedef struct BootTimes {
index ac54aa7a84270731630f60c74a739eeeea7d61e1..66fb2acd5aa6bd0e8546900e836eb2f510bcabb6 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef struct ExecCommand ExecCommand;
 typedef struct Unit Unit;
index d5b7bfcb822b888d4b58bc8a3c3436803f8c4a83..b987e272ce7553198eee13fb5ffa30ef651aed83 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum RecursiveErrors RecursiveErrors;
 
index 6b7154cb5997117678857aa2e745514b19b96ecf..b2948e916a42a964e24282c103034b8e6f9c5c33 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 const char* af_to_name(int id) _const_;
 int af_from_name(const char *name) _pure_;
index 263815c528eb79802ee832f5a1c37e2c40de9c55..577a8174faf78bb72fa527e82983374f4d20fab1 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <stdlib.h>
 
-#include "forward.h"
+#include "basic-forward.h"
 #include "memory-util.h"
 
 #if HAS_FEATURE_MEMORY_SANITIZER
index de86d36150f6557dbc3bb79331efcfa522c8e3d2..a5eea226a93d9086a51526b3ce090798c4862859 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 /* Limits the use of ANSI colors to a subset. */
 typedef enum ColorMode {
index 3793415e5d8a91a380f52cfd85d6f9bd7bd81fb4..261a9288e86062fb0e2d40eff71bdc33b389bde9 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <endian.h>     /* IWYU pragma: keep */
 
-#include "forward.h"
+#include "basic-forward.h"
 
 /* A cleaned up architecture definition. We don't want to get lost in
  * processor features, models, generations or even ABIs. Hence we
index d79bd6f22240f567d0cfd5aab0397a5931f78bbb..392f7873a4a7a052fd8e131a9fa0211da7ddcda5 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 extern int saved_argc;
 extern char **saved_argv;
index 97a1c0b248c5fed47e218f5fe703d779322c4b0f..4c2fd207d1c9dd8f263a4a9f105784a4157a0de6 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 const char* arphrd_to_name(int id) _const_;
 int arphrd_from_name(const char *name) _pure_;
index ff9ce72e0b761208f866c748cca5ab5fb71f07ba..7f06d4bb88965776163c4c6cdce553b97fbddb69 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 #define AUDIT_SESSION_INVALID UINT32_MAX
 
diff --git a/src/basic/basic-forward.h b/src/basic/basic-forward.h
new file mode 100644 (file)
index 0000000..38c3098
--- /dev/null
@@ -0,0 +1,134 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
+#pragma once
+
+/* IWYU pragma: always_keep */
+
+#include <errno.h>              /* IWYU pragma: export */
+#include <inttypes.h>           /* IWYU pragma: export */
+#include <limits.h>             /* IWYU pragma: export */
+#include <paths.h>              /* IWYU pragma: export */
+#include <stdarg.h>             /* IWYU pragma: export */
+#include <stdbool.h>            /* IWYU pragma: export */
+#include <stddef.h>             /* IWYU pragma: export */
+#include <stdint.h>             /* IWYU pragma: export */
+#include <sys/types.h>          /* IWYU pragma: export */
+#include <uchar.h>              /* IWYU pragma: export */
+
+#include "assert-util.h"        /* IWYU pragma: export */
+#include "cleanup-util.h"       /* IWYU pragma: export */
+#include "macro.h"              /* IWYU pragma: export */
+
+/* Generic types */
+
+typedef uint64_t usec_t;
+typedef uint64_t nsec_t;
+
+/* Libc/Linux forward declarations */
+
+struct dirent;
+struct ether_addr;
+struct fiemap;
+struct file_handle;
+struct glob_t;
+struct group;
+struct icmp6_hdr;
+struct in_addr;
+struct in6_addr;
+struct inotify_event;
+struct iovec;
+struct mount_attr;
+struct msghdr;
+struct passwd;
+struct pollfd;
+struct rlimit;
+struct sgrp;
+struct shadow;
+struct signalfd_siginfo;
+struct siphash;
+struct sockaddr;
+struct spwd;
+struct stat;
+struct statfs;
+struct statx_timestamp;
+struct statx;
+struct termios;
+struct tm;
+struct ucred;
+
+/* To forward declare FILE and DIR, we have to declare the internal struct names for them. Since these are
+ * used for C++ symbol name mangling, they're effectively part of the ABI and won't actually change. */
+typedef struct _IO_FILE FILE;
+typedef struct __dirstream DIR;
+
+/* 3rd-party library forward declarations */
+
+enum bpf_map_type;
+
+struct fdisk_context;
+struct fdisk_table;
+struct crypt_device;
+
+/* basic/ forward declarations */
+
+typedef void (*hash_func_t)(const void *p, struct siphash *state);
+typedef int (*compare_func_t)(const void *a, const void *b);
+typedef compare_func_t comparison_fn_t;
+typedef int (*comparison_userdata_fn_t)(const void *, const void *, void *);
+
+struct hash_ops;
+struct hw_addr_data;
+struct in_addr_data;
+struct iovec_wrapper;
+union in_addr_union;
+union sockaddr_union;
+
+typedef enum CGroupFlags CGroupFlags;
+typedef enum CGroupMask CGroupMask;
+typedef enum ChaseFlags ChaseFlags;
+typedef enum ExtractFlags ExtractFlags;
+typedef enum Glyph Glyph;
+typedef enum ImageClass ImageClass;
+typedef enum JobMode JobMode;
+typedef enum RuntimeScope RuntimeScope;
+typedef enum TimestampStyle TimestampStyle;
+typedef enum UnitActiveState UnitActiveState;
+typedef enum UnitDependency UnitDependency;
+typedef enum UnitType UnitType;
+
+typedef struct Hashmap Hashmap;
+typedef struct HashmapBase HashmapBase;
+typedef struct IteratedCache IteratedCache;
+typedef struct Iterator Iterator;
+typedef struct OrderedHashmap OrderedHashmap;
+typedef struct OrderedSet OrderedSet;
+typedef struct Set Set;
+
+typedef struct dual_timestamp dual_timestamp;
+typedef struct triple_timestamp triple_timestamp;
+typedef struct ConfFile ConfFile;
+typedef struct LockFile LockFile;
+typedef struct PidRef PidRef;
+typedef struct Prioq Prioq;
+typedef struct RateLimit RateLimit;
+typedef struct SocketAddress SocketAddress;
+
+/* Constants */
+
+/* We duplicate various commonly used constants here so we can keep most static inline functions without
+ * having to include the full header that provides these constants. */
+
+#define AT_FDCWD                -100
+#define AT_EMPTY_PATH           0x1000
+#define AT_SYMLINK_FOLLOW       0x400
+#define AT_SYMLINK_NOFOLLOW     0x100
+
+#define MODE_INVALID            ((mode_t) -1)
+
+#define UID_INVALID             ((uid_t) -1)
+#define GID_INVALID             ((gid_t) -1)
+
+#define USEC_INFINITY           ((usec_t) UINT64_MAX)
+#define NSEC_INFINITY           ((nsec_t) UINT64_MAX)
+
+/* MAX_ERRNO is defined as 4095 in linux/err.h. We use the same value here. */
+#define ERRNO_MAX               4095
index a06841a64904f7cda36803754e1ffc89b87a5849..96b4684871d497b05df57d849ac9b48faddba7df 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 /* Bit index (0-based) to mask of specified type. Assertion failure if index is out of range. */
 #define _INDEX_TO_MASK(type, i, uniq)                                   \
index 0b3ae1082c79bcac46dd783a830217ccbbfea6e9..14932704891ea81ceddc1aef69fe8b29b2bd72b8 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
-#include "forward.h"
+#include "basic-forward.h"
 
 int btrfs_validate_subvolume_name(const char *name);
 
index 3f1211e708ccb1e5aa280132b4b569e547a27e2f..83fac462cdda19ac1f0b3b4d0ec366bca4c08ff7 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 extern const char* const systemd_features;
 
index 22dd796984725ed05b95d99cc7bf210fb12a84bb..890f34716b8dd1346920120a9f54374962bcbb57 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 char* bus_label_escape(const char *s);
 char* bus_label_unescape_n(const char *f, size_t l);
index ea80ca3d5c760750e5b54286cebb84fc0ed28a19..e588e87dee0ea6b92357e1f03c5cac63a398f4b1 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 /* Space for capability_to_string() in case we write out a numeric capability because we don't know the name
  * for it. "0x3e" is the largest string we might output, in both sensese of the word "largest": two chars for
index 3c265e4064019168309491ac4d3262f6bd907e84..09b612b1e666f122daa19ea0617e49eb423fbe41 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <sys/capability.h>     /* IWYU pragma: export */
 
-#include "forward.h"
+#include "basic-forward.h"
 
 /* Special marker used when storing a capabilities mask as "unset". This would need to be updated as soon as
  * Linux learns more than 63 caps. */
index 02b00220f1ec8ca676e3280389b54f0e1bd2e0e7..1ed80a908baae04ff5669b4a05e039f8a7b21d78 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 int capsule_name_is_valid(const char *name);
index f69ebbf9530ce5ea85fdfb39f89d8cff73b2c70e..8ed8d7704cdd7d33e067f6ff6bff1831aab8fb6d 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 #define SYSTEMD_CGROUP_CONTROLLER_LEGACY "name=systemd"
 #define SYSTEMD_CGROUP_CONTROLLER_HYBRID "name=unified"
index 554ab6cadd212c0ac68f9051822ef457555d967d..948b83aad0775b7c7a26674343c6ef4609ddb9d3 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 typedef enum ChaseFlags {
         CHASE_PREFIX_ROOT        = 1 << 0,  /* The specified path will be prefixed by the specified root before beginning the iteration */
index 543843db2c2a4e3f3b9c689f2ba86882ca221bd5..1f93b3182d1a2bcc6fcb1dc4b6519a4824c1c7ff 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <linux/fs.h>
 
-#include "forward.h"
+#include "basic-forward.h"
 
 /* The chattr() flags to apply when creating a new file *before* writing to it. In particular, flags such as
  * FS_NOCOW_FL don't work if applied a-posteriori. All other flags are fine (or even necessary, think
index dcd0e4a734206d3e18d69004d462da3de273478a..d3a09126efa4a799eac312ff0e0479dbbdf467ac 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 typedef enum Compression {
         COMPRESSION_NONE,
index c5cad2084ce562ad8e6188aaea51c9965ca22e2f..f6e63120e5712a55e29b744fce8105edc89d04ef 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <sys/stat.h>
 
-#include "forward.h"
+#include "basic-forward.h"
 
 typedef enum ConfFilesFlags {
         CONF_FILES_EXECUTABLE               = 1 << 0,
index 708b3ab60455da342cab37c77bad8ababdd155ed..67206cbb292394d3d33ada54be120dfca90110cf 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 typedef enum ConfidentialVirtualization {
         CONFIDENTIAL_VIRTUALIZATION_NONE = 0,
index 4b4a81f3ca7f276a121db1a1f5d1be223982d2f8..8588b434fba795e00c4ee6ba7402d1858381991e 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <sys/sysmacros.h>
 
-#include "forward.h"
+#include "basic-forward.h"
 
 int parse_devnum(const char *s, dev_t *ret);
 
index 1f305930c6cb428177f51324944e5889a76b552e..521dbd5de7248b3b7d65ea8cf1b02aa9d9e8d229 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <dirent.h>     /* IWYU pragma: export */
 
-#include "forward.h"
+#include "basic-forward.h"
 #include "path-util.h"
 
 bool dirent_is_file(const struct dirent *de) _pure_;
index 4b054e8cb3ead3b5e5eabe293c509d2ad08bc680..e9ecd8d1e5c4b19bcd9a14c4c7617892186eb151 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <dlfcn.h>      /* IWYU pragma: export */
 
-#include "forward.h"
+#include "basic-forward.h"
 
 void* safe_dlclose(void *dl);
 
index 5c0f031df71ab031103130c55a6f0f11c1831ba0..04205e4665861b6137188305ed1282e6862b11d8 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 /* Length of a single label, with all escaping removed, excluding any trailing dot or NUL byte */
 #define DNS_LABEL_MAX 63
index dd049283f591a8ee5cf8f4f307cf324a904e2f6d..e4cbf53f55f722d183736acf3d1e79b3cb16d0fb 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 #include "sd-id128.h"
 
index b17a1804cfb1ee5cfbc448d873f1ae352fa50598..78d47f49808574070bccff1cd2aee5bea7395f2a 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 int parse_env_filev(FILE *f, const char *fname, va_list ap);
 int parse_env_file_fdv(int fd, const char *fname, va_list ap);
index 9f55a91fffe5cc69ddef98e156b1cd8aedab2365..28338a1458e07879ac0d2bcd1dcff684647b1567 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 size_t sc_arg_max(void);
 
index 2064afa0f4acf04da23751ba64a720e932afa772..cd96573ea809f0507e0809aecdf79be4cd861130 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 const char* errno_name_no_fallback(int id) _const_;
 int errno_from_name(const char *name) _pure_;
index 5fe337cfb1e48bb3bbbf8bb1a00eb319e52ec8c0..db13cd364aa846b367d13c3acd5655f76d449579 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <string.h>
 
-#include "forward.h"
+#include "basic-forward.h"
 
 /* strerror(3) says that glibc uses a maximum length of 1024 bytes. */
 #define ERRNO_BUF_LEN           1024
index 3d8a1890cf513c3627f3291cf869ac4c8beba38e..a8b68fa75c2776baaff4e8e28805c9ca74d84c93 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 /* What characters are special in the shell? */
 /* must be escaped outside and inside double-quotes */
index d2c6df444a4ca406afb5cd98ad435fa2da42aa24..cf014a95273e891f2ddb3fe8536bfd5338d02e29 100644 (file)
@@ -5,7 +5,7 @@
 #include <netinet/in.h>
 #include <net/ethernet.h>
 
-#include "forward.h"
+#include "basic-forward.h"
 
 /* This is MAX_ADDR_LEN as defined in linux/netdevice.h, but net/if_arp.h
  * defines a macro of the same name with a much lower size. */
index 2740de9189e4e3e7499ce33084d8ec6b9db28006..17b2f1a3962e5bde9c84b3ee6471018a89ff9a15 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 typedef enum ExtractFlags {
         EXTRACT_RELAX                    = 1 << 0, /* Allow unbalanced quote and eat up trailing backslash. */
index 94caf06e2fccf5732ed7ba61a52caf8e2ca828b9..95184c5783a6d377753bfb83847553fbdc82bead 100644 (file)
@@ -5,7 +5,7 @@
 #include <fcntl.h>
 #include <stdio.h>
 
-#include "forward.h"
+#include "basic-forward.h"
 
 /* maximum length of fdname */
 #define FDNAME_MAX 255
index 4d798e7e646f62e8d1a6a2bfd55a0c7bf753acda..96a8773620ccc3bf80690e8bdde31314059a9234 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 #define LONG_LINE_MAX (1U*1024U*1024U)
 
index 4d6d7e2641144eb9390e49b2fca4268d6bdc0c7f..0a6e97ef472b7c92c036fd5942b394018eee1d5b 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 #include "stat-util.h"
 
 #define FILESYSTEM_MAGIC_MAX 10
index ab3328e1d21efadf02841edba9e2ab2403c52af9..c603e99d8207cdca86103f72d942120a756a43a1 100644 (file)
@@ -2,7 +2,7 @@
 #pragma once
 
 #include "cgroup-util.h"
-#include "forward.h"
+#include "basic-forward.h"
 #include "stdio-util.h"
 
 assert_cc(sizeof(pid_t) == sizeof(int32_t));
diff --git a/src/basic/forward.h b/src/basic/forward.h
deleted file mode 100644 (file)
index a9fda3b..0000000
+++ /dev/null
@@ -1,325 +0,0 @@
-/* SPDX-License-Identifier: LGPL-2.1-or-later */
-#pragma once
-
-/* IWYU pragma: always_keep */
-
-#include <errno.h>              /* IWYU pragma: export */
-#include <inttypes.h>           /* IWYU pragma: export */
-#include <limits.h>             /* IWYU pragma: export */
-#include <paths.h>              /* IWYU pragma: export */
-#include <stdarg.h>             /* IWYU pragma: export */
-#include <stdbool.h>            /* IWYU pragma: export */
-#include <stddef.h>             /* IWYU pragma: export */
-#include <stdint.h>             /* IWYU pragma: export */
-#include <sys/types.h>          /* IWYU pragma: export */
-#include <uchar.h>              /* IWYU pragma: export */
-
-#include "assert-util.h"        /* IWYU pragma: export */
-#include "cleanup-util.h"       /* IWYU pragma: export */
-#include "macro.h"              /* IWYU pragma: export */
-
-/* Generic types */
-
-typedef uint64_t usec_t;
-typedef uint64_t nsec_t;
-
-/* Libc/Linux forward declarations */
-
-struct dirent;
-struct ether_addr;
-struct fiemap;
-struct file_handle;
-struct glob_t;
-struct group;
-struct icmp6_hdr;
-struct in_addr;
-struct in6_addr;
-struct inotify_event;
-struct iovec;
-struct mount_attr;
-struct msghdr;
-struct passwd;
-struct pollfd;
-struct rlimit;
-struct sgrp;
-struct shadow;
-struct signalfd_siginfo;
-struct siphash;
-struct sockaddr;
-struct spwd;
-struct stat;
-struct statfs;
-struct statx_timestamp;
-struct statx;
-struct termios;
-struct tm;
-struct ucred;
-
-/* To forward declare FILE and DIR, we have to declare the internal struct names for them. Since these are
- * used for C++ symbol name mangling, they're effectively part of the ABI and won't actually change. */
-typedef struct _IO_FILE FILE;
-typedef struct __dirstream DIR;
-
-/* 3rd-party library forward declarations */
-
-enum bpf_map_type;
-
-struct fdisk_context;
-struct fdisk_table;
-struct crypt_device;
-
-/* basic/ forward declarations */
-
-typedef void (*hash_func_t)(const void *p, struct siphash *state);
-typedef int (*compare_func_t)(const void *a, const void *b);
-typedef compare_func_t comparison_fn_t;
-typedef int (*comparison_userdata_fn_t)(const void *, const void *, void *);
-
-struct hash_ops;
-struct hw_addr_data;
-struct in_addr_data;
-struct iovec_wrapper;
-union in_addr_union;
-union sockaddr_union;
-
-typedef enum CGroupFlags CGroupFlags;
-typedef enum CGroupMask CGroupMask;
-typedef enum ChaseFlags ChaseFlags;
-typedef enum ExtractFlags ExtractFlags;
-typedef enum Glyph Glyph;
-typedef enum ImageClass ImageClass;
-typedef enum JobMode JobMode;
-typedef enum RuntimeScope RuntimeScope;
-typedef enum TimestampStyle TimestampStyle;
-typedef enum UnitActiveState UnitActiveState;
-typedef enum UnitDependency UnitDependency;
-
-typedef struct Hashmap Hashmap;
-typedef struct HashmapBase HashmapBase;
-typedef struct IteratedCache IteratedCache;
-typedef struct Iterator Iterator;
-typedef struct OrderedHashmap OrderedHashmap;
-typedef struct OrderedSet OrderedSet;
-typedef struct Set Set;
-
-typedef struct dual_timestamp dual_timestamp;
-typedef struct triple_timestamp triple_timestamp;
-typedef struct ConfFile ConfFile;
-typedef struct LockFile LockFile;
-typedef struct PidRef PidRef;
-typedef struct Prioq Prioq;
-typedef struct RateLimit RateLimit;
-typedef struct SocketAddress SocketAddress;
-
-/* libsystemd/ and libsystemd-network/ forward declarations */
-
-typedef void (*_sd_destroy_t)(void *userdata);
-
-typedef union sd_id128 sd_id128_t;
-
-typedef struct sd_event sd_event;
-typedef struct sd_event_source sd_event_source;
-
-typedef int (*sd_event_handler_t)(sd_event_source *s, void *userdata);
-typedef int (*sd_event_io_handler_t)(sd_event_source *s, int fd, uint32_t revents, void *userdata);
-typedef int (*sd_event_time_handler_t)(sd_event_source *s, uint64_t usec, void *userdata);
-typedef int (*sd_event_signal_handler_t)(sd_event_source *s, const struct signalfd_siginfo *si, void *userdata);
-typedef int (*sd_event_inotify_handler_t)(sd_event_source *s, const struct inotify_event *event, void *userdata);
-typedef _sd_destroy_t sd_event_destroy_t;
-
-enum ENUM_TYPE_S64(sd_json_format_flags_t);
-enum ENUM_TYPE_S64(sd_json_dispatch_flags_t);
-enum ENUM_TYPE_S64(sd_json_variant_type_t);
-enum ENUM_TYPE_S64(sd_json_parse_flags_t);
-
-typedef enum sd_json_format_flags_t sd_json_format_flags_t;
-typedef enum sd_json_dispatch_flags_t sd_json_dispatch_flags_t;
-typedef enum sd_json_variant_type_t sd_json_variant_type_t;
-typedef enum sd_json_parse_flags_t sd_json_parse_flags_t;
-
-typedef struct sd_json_variant sd_json_variant;
-
-typedef struct sd_bus sd_bus;
-typedef struct sd_bus_error sd_bus_error;
-typedef struct sd_bus_error_map sd_bus_error_map;
-typedef struct sd_bus_message sd_bus_message;
-typedef struct sd_bus_slot sd_bus_slot;
-typedef struct sd_bus_creds sd_bus_creds;
-typedef struct sd_bus_track sd_bus_track;
-typedef struct sd_bus_vtable sd_bus_vtable;
-
-typedef int (*sd_bus_message_handler_t)(sd_bus_message *m, void *userdata, sd_bus_error *ret_error);
-typedef int (*sd_bus_property_get_t)(sd_bus *bus, const char *path, const char *interface, const char *property, sd_bus_message *reply, void *userdata, sd_bus_error *ret_error);
-typedef int (*sd_bus_property_set_t)(sd_bus *bus, const char *path, const char *interface, const char *property, sd_bus_message *value, void *userdata, sd_bus_error *ret_error);
-typedef int (*sd_bus_object_find_t)(sd_bus *bus, const char *path, const char *interface, void *userdata, void **ret_found, sd_bus_error *ret_error);
-typedef int (*sd_bus_node_enumerator_t)(sd_bus *bus, const char *prefix, void *userdata, char ***ret_nodes, sd_bus_error *ret_error);
-typedef int (*sd_bus_track_handler_t)(sd_bus_track *track, void *userdata);
-typedef _sd_destroy_t sd_bus_destroy_t;
-
-enum ENUM_TYPE_S64(sd_device_action_t);
-
-typedef enum sd_device_action_t sd_device_action_t;
-
-typedef struct sd_device sd_device;
-typedef struct sd_device_enumerator sd_device_enumerator;
-typedef struct sd_device_monitor sd_device_monitor;
-
-typedef struct sd_netlink sd_netlink;
-typedef struct sd_netlink_message sd_netlink_message;
-typedef struct sd_netlink_slot sd_netlink_slot;
-
-typedef int (*sd_netlink_message_handler_t)(sd_netlink *nl, sd_netlink_message *m, void *userdata);
-typedef _sd_destroy_t sd_netlink_destroy_t;
-
-typedef struct sd_network_monitor sd_network_monitor;
-
-enum ENUM_TYPE_S64(sd_dhcp_lease_server_type_t);
-enum ENUM_TYPE_S64(sd_lldp_rx_event_t);
-enum ENUM_TYPE_S64(sd_lldp_multicast_mode_t);
-enum ENUM_TYPE_S64(sd_ndisc_event_t);
-
-typedef enum sd_dhcp_lease_server_type_t sd_dhcp_lease_server_type_t;
-typedef enum sd_lldp_rx_event_t sd_lldp_rx_event_t;
-typedef enum sd_lldp_multicast_mode_t sd_lldp_multicast_mode_t;
-typedef enum sd_ndisc_event_t sd_ndisc_event_t;
-
-typedef struct sd_ipv4ll sd_ipv4ll;
-typedef struct sd_dhcp_client sd_dhcp_client;
-typedef struct sd_dhcp_lease sd_dhcp_lease;
-typedef struct sd_dhcp_route sd_dhcp_route;
-typedef struct sd_dns_resolver sd_dns_resolver;
-typedef struct sd_dhcp_server sd_dhcp_server;
-typedef struct sd_ndisc sd_ndisc;
-typedef struct sd_radv sd_radv;
-typedef struct sd_dhcp6_client sd_dhcp6_client;
-typedef struct sd_dhcp6_lease sd_dhcp6_lease;
-typedef struct sd_lldp_tx sd_lldp_tx;
-typedef struct sd_lldp_rx sd_lldp_rx;
-typedef struct sd_lldp_neighbor sd_lldp_neighbor;
-
-typedef struct ICMP6Packet ICMP6Packet;
-
-enum ENUM_TYPE_S64(sd_varlink_method_flags_t);
-enum ENUM_TYPE_S64(sd_varlink_interface_flags_t);
-enum ENUM_TYPE_S64(sd_varlink_symbol_type_t);
-enum ENUM_TYPE_S64(sd_varlink_field_type_t);
-enum ENUM_TYPE_S64(sd_varlink_field_direction_t);
-enum ENUM_TYPE_S64(sd_varlink_field_flags_t);
-enum ENUM_TYPE_S64(sd_varlink_idl_format_flags_t);
-enum ENUM_TYPE_S64(sd_varlink_reply_flags_t);
-enum ENUM_TYPE_S64(sd_varlink_server_flags_t);
-enum ENUM_TYPE_S64(sd_varlink_invocation_flags_t);
-
-typedef enum sd_varlink_method_flags_t sd_varlink_method_flags_t;
-typedef enum sd_varlink_interface_flags_t sd_varlink_interface_flags_t;
-typedef enum sd_varlink_symbol_type_t sd_varlink_symbol_type_t;
-typedef enum sd_varlink_field_type_t sd_varlink_field_type_t;
-typedef enum sd_varlink_field_direction_t sd_varlink_field_direction_t;
-typedef enum sd_varlink_field_flags_t sd_varlink_field_flags_t;
-typedef enum sd_varlink_idl_format_flags_t sd_varlink_idl_format_flags_t;
-typedef enum sd_varlink_reply_flags_t sd_varlink_reply_flags_t;
-typedef enum sd_varlink_server_flags_t sd_varlink_server_flags_t;
-typedef enum sd_varlink_invocation_flags_t sd_varlink_invocation_flags_t;
-
-typedef struct sd_varlink sd_varlink;
-typedef struct sd_varlink_server sd_varlink_server;
-typedef struct sd_varlink_field sd_varlink_field;
-typedef struct sd_varlink_symbol sd_varlink_symbol;
-typedef struct sd_varlink_interface sd_varlink_interface;
-
-typedef struct sd_journal sd_journal;
-
-typedef struct sd_resolve sd_resolve;
-typedef struct sd_resolve_query sd_resolve_query;
-
-typedef struct sd_hwdb sd_hwdb;
-
-/* shared/ forward declarations */
-
-typedef int (*copy_progress_bytes_t)(uint64_t n_bytes, uint64_t bytes_per_second, void *userdata);
-typedef int (*copy_progress_path_t)(const char *path, const struct stat *st, void *userdata);
-
-struct local_address;
-struct in_addr_prefix;
-struct in_addr_full;
-
-typedef enum AskPasswordFlags AskPasswordFlags;
-typedef enum BootEntryTokenType BootEntryTokenType;
-typedef enum BusPrintPropertyFlags BusPrintPropertyFlags;
-typedef enum BusTransport BusTransport;
-typedef enum CatFlags CatFlags;
-typedef enum CertificateSourceType CertificateSourceType;
-typedef enum DnsCacheMode DnsCacheMode;
-typedef enum DnsOverTlsMode DnsOverTlsMode;
-typedef enum DnssecMode DnssecMode;
-typedef enum Fido2EnrollFlags Fido2EnrollFlags;
-typedef enum KeySourceType KeySourceType;
-typedef enum LabelFixFlags LabelFixFlags;
-typedef enum MountInNamespaceFlags MountInNamespaceFlags;
-typedef enum NamePolicy NamePolicy;
-typedef enum OutputFlags OutputFlags;
-typedef enum OutputMode OutputMode;
-typedef enum PagerFlags PagerFlags;
-typedef enum PatternCompileCase PatternCompileCase;
-typedef enum RemoveFlags RemoveFlags;
-typedef enum ResolveSupport ResolveSupport;
-typedef enum TPM2Flags TPM2Flags;
-typedef enum Tpm2Support Tpm2Support;
-typedef enum Tpm2UserspaceEventType Tpm2UserspaceEventType;
-typedef enum UnitFileFlags UnitFileFlags;
-typedef enum UnitFilePresetMode UnitFilePresetMode;
-typedef enum UnitFileState UnitFileState;
-typedef enum UnitType UnitType;
-typedef enum UserDBFlags UserDBFlags;
-typedef enum UserRecordLoadFlags UserRecordLoadFlags;
-typedef enum UserStorage UserStorage;
-
-typedef struct Bitmap Bitmap;
-typedef struct BPFProgram BPFProgram;
-typedef struct BusObjectImplementation BusObjectImplementation;
-typedef struct CalendarSpec CalendarSpec;
-typedef struct Condition Condition;
-typedef struct ConfigSection ConfigSection;
-typedef struct ConfigTableItem ConfigTableItem;
-typedef struct CPUSet CPUSet;
-typedef struct FDSet FDSet;
-typedef struct Fido2HmacSalt Fido2HmacSalt;
-typedef struct GroupRecord GroupRecord;
-typedef struct Image Image;
-typedef struct ImagePolicy ImagePolicy;
-typedef struct InstallInfo InstallInfo;
-typedef struct LookupPaths LookupPaths;
-typedef struct LoopDevice LoopDevice;
-typedef struct MachineBindUserContext MachineBindUserContext;
-typedef struct MachineCredentialContext MachineCredentialContext;
-typedef struct MountOptions MountOptions;
-typedef struct OpenFile OpenFile;
-typedef struct Pkcs11EncryptedKey Pkcs11EncryptedKey;
-typedef struct Table Table;
-typedef struct Tpm2Context Tpm2Context;
-typedef struct Tpm2Handle Tpm2Handle;
-typedef struct Tpm2PCRValue Tpm2PCRValue;
-typedef struct UnitInfo UnitInfo;
-typedef struct UserRecord UserRecord;
-typedef struct VeritySettings VeritySettings;
-
-/* Constants */
-
-/* We duplicate various commonly used constants here so we can keep most static inline functions without
- * having to include the full header that provides these constants. */
-
-#define AT_FDCWD                -100
-#define AT_EMPTY_PATH           0x1000
-#define AT_SYMLINK_FOLLOW       0x400
-#define AT_SYMLINK_NOFOLLOW     0x100
-
-#define MODE_INVALID            ((mode_t) -1)
-
-#define UID_INVALID             ((uid_t) -1)
-#define GID_INVALID             ((gid_t) -1)
-
-#define USEC_INFINITY           ((usec_t) UINT64_MAX)
-#define NSEC_INFINITY           ((nsec_t) UINT64_MAX)
-
-/* MAX_ERRNO is defined as 4095 in linux/err.h. We use the same value here. */
-#define ERRNO_MAX               4095
index 1c4b88e53b7fbfee19165e283564f4c48811ed75..5e7ed32a5229e5eb80700dfc700b494413905d28 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 #include "lock-util.h"
 
 /* The following macros add 1 when converting things, since 0 is a valid mode, while the pointer
index 9fab3500a53906b5d5dd45dcab5feb04f5634dcf..147a174da0026c6904977291ee3b88037bb24b13 100644 (file)
@@ -2,7 +2,7 @@
 
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 int dlopen_gcrypt(void);
 
index ea3e8693198437435c598eeb5728b8553562b0bc..7fc13648dbed899a6d60d7cd419211c4e6a3d178 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <glob.h>       /* IWYU pragma: export */
 
-#include "forward.h"
+#include "basic-forward.h"
 
 typedef DIR* (*opendir_t)(const char *);
 
index 92b325726b6bfed327a60053f5e3d4cad5e440a2..c9582ec61e5bce465db49f1881b52eb2eae51cf7 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 typedef enum Glyph {
         GLYPH_SPACE,
index 9bba03ba30b9a120ec9b7dddea6959a356482654..3ee0c4ebbe8ef32c370101d1224dcdf0592ccc53 100644 (file)
@@ -6,7 +6,7 @@
  */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 char *utf8_prev_char (const char *p);
 
index 7ce29fbe6cdf4bf583c615b061372765f12c20cb..19af1aa031229cf45544e38dfcf56d77f9996fdc 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 typedef void (*hash_func_t)(const void *p, struct siphash *state);
 typedef int (*compare_func_t)(const void *a, const void *b);
index 3e8fc28ee0767a049cbc6c9ea34fa52f654f2d03..6ae9241760aa9b50c28bdbe148be33ed8edd2f69 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 #include "hash-funcs.h"
 #include "iterator.h"
 
index 5841af0b7a6d44d2249fa0db3c43e1e1c5119009..755a0798cdc80a5df1ef3d1396290d2b818c1083 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 char octchar(int x) _const_;
 int unoctchar(char c) _const_;
index fd474f7649fea131c695f37e444878f57dabd2dd..35faf14f26e4245a3ca4ddac9733de2610e0096b 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 #include "sha256.h"
 
 /* Unoptimized implementation based on FIPS 198. 'res' has to be allocated by
index 3cbf0966ea1b84edc5ed38af26e677475ba467c2..e9e605cab0723055ca383f93ee8ceaa8d8585537 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 #include "strv.h"
 
 char* get_default_hostname_raw(void);
index cb76ef221c72072d8d718ddf047fe923aed52fd0..4148fa2e671b2250cd44089b31e7a576d5d1d401 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <netinet/in.h>
 
-#include "forward.h"
+#include "basic-forward.h"
 
 union in_addr_union {
         struct in_addr in;
index 29e47828dab4195d6f8ef303db0d4af69511414f..387c2c6717cbe981d9c76bc1171582343142be47 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 bool in_initrd(void);
 void in_initrd_force(bool value);
index a509a97f50ebaaf3d765d2e76dbe5e936c9e3642..ebd380990660b71a8d33c843b46c0b1d82618409 100644 (file)
@@ -4,7 +4,7 @@
 #include <sys/inotify.h>        /* IWYU pragma: export */
 #include <syslog.h>
 
-#include "forward.h"
+#include "basic-forward.h"
 
 #define INOTIFY_EVENT_MAX (offsetof(struct inotify_event, name) + NAME_MAX + 1)
 
index 237a9ff77f785370c6e077dd9e827996115bdeef..918108c023b68c50398b4a4f88cda54d536c6335 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 int flush_fd(int fd);
 
index f1e4be88d43d1be8f68c461707a809180401a89d..0d1d4a7a94d866408d5a6cb72d34c6111a30dba5 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <sys/uio.h>                /* IWYU pragma: export */
 
-#include "forward.h"
+#include "basic-forward.h"
 #include "iovec-util-fundamental.h" /* IWYU pragma: export */
 
 extern const struct iovec iovec_nul_byte; /* Points to a single NUL byte */
index 082d7e0ae0025d83384ae5ae802bcb210686a80d..6bc4d3905a6676e1b82af38f4a49403cd7c8f5c0 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 struct iovec_wrapper {
         struct iovec *iovec;
index be9e1a9b6bd1777f87474b41d941ce709500052d..ecdc5efca47b0d1dce9c8f46376b248eb26ccb7f 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 /* Ideally the Iterator would be an opaque struct, but it is instantiated
  * by hashmap users, so the definition has to be here. Do not use its fields
index b8a36a9ad6f311a0d14b9db55e7ec1d6fece110d..2ec12d3583eb0d3847ef0f87115431228d388db2 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <sys/keyctl.h>         /* IWYU pragma: export */
 
-#include "forward.h"
+#include "basic-forward.h"
 
 /* Like TAKE_PTR() but for key_serial_t, resetting them to -1 */
 #define TAKE_KEY_SERIAL(key_serial) TAKE_GENERIC(key_serial, key_serial_t, -1)
index 186f93d697b52f489d5072c8b70533e18288fc6d..9f8af5e4bba342065a6aed9a3b56107d5ed4f5d9 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 typedef struct LabelOps {
         int (*pre)(int dir_fd, const char *path, mode_t mode);
index 6049cfa9e9f57c2782dac36db418fd62f0a5c043..ef7ce40cde82f61d28ef1c5c1ab345488de19b01 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 uint64_t physical_memory(void);
 uint64_t physical_memory_scale(uint64_t v, uint64_t max);
index ee3405f0548013e513f3d3377c00440762c83a9e..d86002f2b3e65f00ad140a6fff3814a5043b7a46 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 /* The head of the linked list. Use this in the structure that shall
  * contain the head of the linked list */
index 1ec6d3074ef18494129ce5a645771b3abeac1d9d..1524122e09d9434da3f36a112870ee6030f00e07 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <locale.h>     /* IWYU pragma: export */
 
-#include "forward.h"
+#include "basic-forward.h"
 
 typedef enum LocaleVariable {
         /* We don't list LC_ALL here on purpose. People should be
index b9643c22a1c4196d49e1f6e73ef2589de4a9c374..d44c4e74dfd5b55299ff4f750985c04a4aa36f6c 100644 (file)
@@ -4,7 +4,7 @@
 /* Include here so consumers have LOCK_{EX,SH,NB} available. */
 #include <sys/file.h> /* IWYU pragma: export */
 
-#include "forward.h"
+#include "basic-forward.h"
 
 typedef struct LockFile {
         int dir_fd;
index a49bddd591bb6898b8d16af987b40e09ba59bded..52998707bbda2417918c0840522ff3f400dcee06 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 #include "list.h"
 
 /*
index 544d6e16e115f6a8cdd1126590d6bcb9d117e90f..a07841c6ca1769a7acebe45631301a322fff2fc2 100644 (file)
@@ -5,7 +5,7 @@
 #include <string.h>
 #include <syslog.h>
 
-#include "forward.h"
+#include "basic-forward.h"
 
 typedef enum LogTarget{
         LOG_TARGET_CONSOLE,
index fd07ed2c6e8d038b7cfb7c2bbeae4e10a2d7fb97..0b4b7b77cad50c578c0d196c07cd0280f1a17d0f 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 #define SD_LOGIND_ROOT_CHECK_INHIBITORS           (UINT64_C(1) << 0)
 #define SD_LOGIND_REBOOT_VIA_KEXEC                (UINT64_C(1) << 1)
index 2cdd655ce8c5a4178dc867e984ebd26a65cdc3a1..f3c471b1606ee3e85e7b552cbdd747aa37b033db 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <math.h>       /* IWYU pragma: export */
 
-#include "forward.h"
+#include "basic-forward.h"
 
 /* On some optimization level, iszero(x) is converted to (x == 0.0), and emits warning -Wfloat-equal.
  * The argument must be a floating point, i.e. one of float, double, or long double. */
index befe41ac436e642c8c50c3386abd7b9134436c08..2fc94f429f4e163d04ac1ccee5191c0004e253c3 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <sys/mman.h>           /* IWYU pragma: export */
 
-#include "forward.h"
+#include "basic-forward.h"
 
 int memfd_create_wrapper(const char *name, unsigned mode);
 
index c36a0cc337a3b296628ff0e8e789ef7a5af90353..1a609dea98bd82142032c597500f0a7685b3ee52 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <string.h>
 
-#include "forward.h"
+#include "basic-forward.h"
 #include "memory-util-fundamental.h" /* IWYU pragma: export */
 
 size_t page_size(void) _pure_;
index 69fbae18a5fcc55110027fda99eb9ca93bf76bf6..a6f990d124b8bec80afe0f10371e31722c3106c7 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 struct pool;
 
index 8c979c7a0ada3499f017389071612ec284e6ec52..895073be8e53ec43dcc6379607e03a433e0935c0 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 typedef struct MemStream {
         FILE *f;
index 93af446ebfe85520a6e2996226cd4365b896912e..82323b1058b003bcb22f0dc693a85bf7f259bd99 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 typedef enum MkdirFlags {
         MKDIR_FOLLOW_SYMLINK  = 1 << 0,
index 004d2b2af537379f53337214745aee8b8eb7daa7..180d75343cba31d3626710d6795678f743e33ed8 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 /* The limit used for /dev itself. 4MB should be enough since device nodes and symlinks don't
  * consume any space and udev isn't supposed to create regular file either. There's no limit on the
index e0e857b7a496e75aae11b9691d136da6e096eed2..2c4a7da29f137d2c30a330b2b3fe8d873c0f8758 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 typedef enum NamespaceType {
         NAMESPACE_CGROUP,
index 600667f3c1b3bf8777aa1049e3bd9eb84677dfad..370d650a7f7ef6f54d8d076b70469c327961eec9 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <string.h>
 
-#include "forward.h"
+#include "basic-forward.h"
 
 #define NULSTR_FOREACH(i, l)                                    \
         for (typeof(*(l)) *(i) = (l); (i) && *(i); (i) = strchr((i), 0)+1)
index fb3e53395e259d47f383a834430c34c89c0a2f4e..e25fc606e46f9c74ba8a24674c23705c262eb618 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 #include "hashmap.h"
 
 typedef struct OrderedSet OrderedSet;
index 5051a39075c70962b838bd644c2d533ae5cadfd9..a3829b4f517fe1701ce4847499e6400bdfd3c9c2 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 typedef enum ImageClass {
         IMAGE_MACHINE,
index f79be849fd6b59cd00ce6a3bcc9956bad6c027c5..4927bc9e562446fc54d2d8b2f5ce1affeab5f8c5 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 typedef unsigned long loadavg_t;
 
index a3a82574ddb122c9b4284cf664450a5e60fd3421..5b2baef4e13257c65b0b68856a39cf483913527c 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 #define PATH_SPLIT_BIN(x) x "sbin:" x "bin"
 #define PATH_SPLIT_BIN_NULSTR(x) x "sbin\0" x "bin\0"
index ff2560c40440afec9d9a5bda5ae06f5f1d76349c..d4181520a68dff362dc9e6d6552f4499d6dfef3b 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 /*
  * For details about the file format see RFC:
index 60b0d4a9ef50aa7eac0d9d58ef9c3e99481a6390..7b75654e329b15709f9dbda76ea821db525a2a9e 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 int parse_percent_unbounded(const char *p);
 int parse_percent(const char *p);
index 811d40dce9effee1fe5ed98fbef4d9ee1b53c60a..2050734ab27888dbcd465143a1c1b1c64c50b026 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <sys/pidfd.h>          /* IWYU pragma: export */
 
-#include "forward.h"
+#include "basic-forward.h"
 
 int pidfd_get_namespace(int fd, unsigned long ns_type_cmd);
 
index 4d8a084c4b940f7d45c0632049aac9259c023646..1a7ff85935e1d54fb7dcee29cb62a592cf663018 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <signal.h>
 
-#include "forward.h"
+#include "basic-forward.h"
 
 /* An embeddable structure carrying a reference to a process. Supposed to be used when tracking processes
  * continuously. This combines a PID, a modern Linux pidfd and the 64bit inode number of the pidfd into one
index 97b4f40b4ac00473a8f66a434469e981c475ef86..07cedf603c0ec7fd80af7aaaba00a42d2d1490ed 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 typedef struct Prioq Prioq;
 
index 8eb905de3d6894c95e76c87eab2efe5ea7ce0580..eee2ce24aa13ccedc5cffc53502b8c120fe09a21 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 typedef enum ProcCmdlineFlags {
         PROC_CMDLINE_STRIP_RD_PREFIX    = 1 << 0, /* automatically strip "rd." prefix if it is set (and we are in the initrd, since otherwise we'd not consider it anyway) */
index 17065420dc2da450fa313e6aa5c7db35077e51ff..b3ccb2dc35d4118c51f88dc17f03207fe55f2a13 100644 (file)
@@ -5,7 +5,7 @@
 
 #include "fileio.h"
 #include "format-util.h"
-#include "forward.h"
+#include "basic-forward.h"
 #include "string-util.h"
 
 #define procfs_file_alloca(pid, field)                                  \
index a0de848c82de53fa17dee679cfa276d64b00812c..560be323dcd974eb38ebda7f6f8eda3ff08cd416 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 int procfs_get_pid_max(uint64_t *ret);
 int procfs_get_threads_max(uint64_t *ret);
index 3029e091a4132d4ff52fb6e37e8aea78476b5006..f5e79960a81590448d215d0283a57b17d252768b 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 #include "parse-util.h"
 
 typedef enum PressureType {
index 362944efc8e55db63c56745f16b95d2be8e5ea04..1e62bc1d62791b154f5d830b2bee5e40de883eb5 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <pthread.h> /* IWYU pragma: export */
 
-#include "forward.h"
+#include "basic-forward.h"
 
 static inline pthread_mutex_t* pthread_mutex_lock_assert(pthread_mutex_t *mutex) {
         assert_se(pthread_mutex_lock(mutex) == 0);
index 28bdb583c0f6c14a7aa30d0af8df75aa6a5f1849..c0ed0488e74c8d6401a30440e8a1a4e51ef8ba83 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 void random_bytes(void *p, size_t n) _nonnull_if_nonzero_(1, 2); /* Returns random bytes suitable for most uses, but may be insecure sometimes. */
 int crypto_random_bytes(void *p, size_t n) _nonnull_if_nonzero_(1, 2); /* Returns secure random bytes after waiting for the RNG to initialize. */
index 321cfbbb44633b173e8effe5edba889b0b47dcb8..ecc1b9dd1f593baa3a6148597b1204f10876e363 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 typedef struct RateLimit {
         usec_t interval; /* Keep those two fields first so they can be initialized easily: */
index af20cde73b9cdc94d0b266bceb0304ff7d727f72..2b826bb352c80e46e1fe8e9a812e73c5324e799b 100644 (file)
@@ -3,6 +3,6 @@
 
 #include <sched.h>              /* IWYU pragma: export */
 
-#include "forward.h"
+#include "basic-forward.h"
 
 pid_t raw_clone(unsigned long flags);
index 5e9548b04668cf5638e4db7664372b334f2c78cd..68abb279f4076ef4f3cacf9f6a3a33d87567be00 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <dirent.h>
 
-#include "forward.h"
+#include "basic-forward.h"
 
 typedef enum RecurseDirFlags {
         /* Interpreted by readdir_all() */
index abaa57b503defcf68de2484bbbf48f1ad0ff8034..3f1fda65c127f9851f91a9b6dfcb181d20357b83 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 char* replace_var(const char *text, char *(*lookup)(const char *variable, void *userdata), void *userdata);
index 8b600fe1d2a9bb5c095fe3d4eac1c4176baf320a..59e9532858f16de3da62fc53792109752df5d110 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <sys/resource.h>       /* IWYU pragma: export */
 
-#include "forward.h"
+#include "basic-forward.h"
 
 #define _RLIMIT_MAX RLIMIT_NLIMITS
 
index 94c2d2ea6af89f8e4f1da1e28dbcd4af6580f0d0..4729fa1a95842c056b3a396047c42069919707a2 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 typedef enum RuntimeScope {
         RUNTIME_SCOPE_SYSTEM,           /* for the system */
index e6ce91c752bff0652a2ce8ff8993a398b2c0fdb3..52854934ad9fcbae52cdf3f2b60af06f24e33024 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 #include "hashmap.h"
 
 #define set_free_and_replace(a, b)              \
index 8ec35a3ba58a34f54b6df82dbc2b80fa66062934..afcb5810dc1c3d6d11625afbeb6b37047da8a804 100644 (file)
@@ -2,7 +2,7 @@
 
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 #include "sha256-fundamental.h" /* IWYU pragma: export */
 
 int sha256_fd(int fd, uint64_t max_size, uint8_t ret[static SHA256_DIGEST_SIZE]);
index cf7593072ddde03ba3f33e10ef4adcf576755cab..f5946a0d8788788c547e790e86d1c399606c3d9c 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 void sigbus_install(void);
 void sigbus_reset(void);
index 04f3e73c78e1e9ec825b696c4ee360913abb0b9f..f529abcd72482c2c5c787a104885140f24fd3bd8 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <signal.h>     /* IWYU pragma: export */
 
-#include "forward.h"
+#include "basic-forward.h"
 
 int reset_all_signal_handlers(void);
 int reset_signal_mask(void);
index 61d83233a58f07fa36963fdd2bb766da8e27eb95..d72233beda89bdb19769b1e8699c16ba3a5f283e 100644 (file)
@@ -2,7 +2,7 @@
 
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 struct siphash {
         uint64_t v0;
index 89b4c11b6df030cea208e6f0df51d5604589a869..6e937ffee9d3f7441ef8f2af4ea2ae4481865a14 100644 (file)
@@ -10,7 +10,7 @@
 #include <sys/socket.h>
 #include <sys/un.h>
 
-#include "forward.h"
+#include "basic-forward.h"
 #include "memory-util.h"
 #include "missing-network.h"
 
index 8b6d2aaddf38f6f758bfe804595c6610090852df..2b558d6fd84ac7c1d3202d0d50ea11951ede5797 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 void *xbsearch_r(const void *key, const void *base, size_t nmemb, size_t size,
                  comparison_userdata_fn_t compar, void *arg);
index d66e77afc2e0ddf6e07e28240177d61773c29633..c56268f4d6c494ebbeb35c273bd83eef96f6ea6b 100644 (file)
@@ -25,7 +25,7 @@
 #include <byteswap.h>
 #include <endian.h>
 
-#include "forward.h"
+#include "basic-forward.h"
 
 #ifdef __CHECKER__
 #define __sd_bitwise __attribute__((__bitwise__))
index a3c60e43c671ed2af6708625ff0ab028097d0e4b..490ee96c5f1582da8aabb2ddb691324e3abb1dfe 100644 (file)
@@ -4,7 +4,7 @@
 #include <sys/stat.h>           /* IWYU pragma: export */
 #include <sys/statfs.h>         /* IWYU pragma: export */
 
-#include "forward.h"
+#include "basic-forward.h"
 
 int stat_verify_regular(const struct stat *st);
 int verify_regular_at(int fd, const char *path, bool follow);
index 3502d192e2f9f056f0d3e3a598e0c37feb06cf65..5772d24240f8872fbc05a5146a92ce7eac884a3f 100644 (file)
@@ -2,7 +2,7 @@
 
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 typedef void (*free_func_t)(void *p);
 
index 052087ce15d8d8baa658c28984244a50e9d9432d..f8ab0f0012fb7dbf89d904b5158cbc75cb04b848 100644 (file)
@@ -4,7 +4,7 @@
 #include <printf.h>
 #include <stdio.h>
 
-#include "forward.h"
+#include "basic-forward.h"
 
 _printf_(3, 4)
 static inline char* snprintf_ok(char *buf, size_t len, const char *format, ...) {
index 68baaffb40c6ffa2188336e637a50de922d469a4..9f4a63fe922e2e3555bc526197a8ffcd314c7548 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 struct strbuf {
         char *buf;
index 7e0569a489402c2671748722a52509114ca06ce5..444de4161f36f17280cfa3a5a09dfbbcd41c5257 100644 (file)
@@ -2,7 +2,7 @@
 
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 const char* string_table_lookup_to_string(const char * const *table, size_t len, ssize_t i) _const_;
 
index 70722d9983ca6a5cf87b91bac1918f17231b2f57..79e87c89140e07dac42b62c69b44804afa62af04 100644 (file)
@@ -4,7 +4,7 @@
 #include <string.h>
 
 #include "alloc-util.h"
-#include "forward.h"
+#include "basic-forward.h"
 #include "string-util-fundamental.h" /* IWYU pragma: export */
 
 static inline char* strstr_ptr(const char *haystack, const char *needle) {
index 394376a8062dc12f98fd4915682e6abd4c9d23c5..b358ab4c2b8f6d07c660a769a36d8b530693bac1 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 #include "strv-fundamental.h"   /* IWYU pragma: export */
 
 char* strv_find(char * const *l, const char *name) _pure_;
index 7d045fe8d2219a91a96d009fd9fab0ccfd496884..b89d180fb8e82b61e5d7527b650f236dfabc0739 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 size_t strnpcpy_full(char **dest, size_t size, const char *src, size_t len, bool *ret_truncated);
 static inline size_t strnpcpy(char **dest, size_t size, const char *src, size_t len) {
index c464a656d445dee93ac372a76c497bcdae399b5c..0f6e195ec38d935bd548891200ba4ac3f806e43b 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 int fsync_directory_of_file(int fd);
 int fsync_full(int fd);
index ef08376916c5b9781ab7d1261a02f74aff287218..4055d0181f95d44a5bb8ac8687431276bfbb0cdd 100644 (file)
@@ -2,7 +2,7 @@
 #pragma once
 
 
-#include "forward.h"
+#include "basic-forward.h"
 #include "stdio-util.h"
 
 char* sysctl_normalize(char *s);
index dff09db2396c4c12c1d34caae103473cbd7a4c2b..215b175b0d91dccb4537dfe747d8a32283b9c765 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 int log_facility_unshifted_to_string_alloc(int i, char **s);
 int log_facility_unshifted_from_string(const char *s);
index d18d33a181cf91178e4ffa6c9d1695571d65e5cf..aca549bbc4cddd796c95c9d615b26daeed8c33a5 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 /* Erase characters until the end of the line */
 #define ANSI_ERASE_TO_END_OF_LINE "\x1B[K"
index 0c698eabd816f6a1f0663568d664fd843e693ea2..322a2ece6b2d00a5fdb992389cf894ce71e3b4d8 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <time.h>
 
-#include "forward.h"
+#include "basic-forward.h"
 
 #define PRI_NSEC PRIu64
 #define PRI_USEC PRIu64
index cbaae5dbb3d012b9df94de542c496237c054f0ec..3999020e01b273bee3c03871b0577cc130c8d1b1 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 int fopen_temporary_at(int dir_fd, const char *path, FILE **ret_file, char **ret_path);
 static inline int fopen_temporary(const char *path, FILE **ret_file, char **ret_path) {
index f732b6ef9b58fb2e1f75450b104fb1faf6e1ec7d..5b75c0ab7869cba1bd467c8c3472576129668e5b 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 /* The container base should have the last 16 bit set to zero */
 assert_cc((CONTAINER_UID_BASE_MIN & 0xFFFFU) == 0);
index 5f3c0335243bb035e4e23c875a12bc70ecba7673..b74ab9d3323df5706000c543f0cee4d4aac08014 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 typedef struct UIDRangeEntry {
         uid_t start, nr;
index 1f9ea2bf2b1ce3cb592fe400a30fc1ebb8891ae9..86dfcfcd31a35859a866173b5d1e0a2dcbc98b7a 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <sys/stat.h>
 
-#include "forward.h"
+#include "basic-forward.h"
 
 static inline void umaskp(mode_t *u) {
         umask(*u);
index 61ee82b7730bea52d050dec11037b639912853cb..b45fb3c3587d63bfe074b5054cd65ad1b200ccab 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <endian.h>
 
-#include "forward.h"
+#include "basic-forward.h"
 #include "unaligned-fundamental.h" /* IWYU pragma: export */
 
 /* BE */
index 7ae086c0b9fe1ac0ce1687c5961a482476d1eb7e..f42198e08e62560bb8c8728e3f0bc25c0fc5bf1b 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 /* The enum order is used to order unit jobs in the job queue
  * when other criteria (cpu weight, nice level) are identical.
index 50fe3ac8e98e259a12aed2098069d06a2316fd17..334877c2f2ee7c1af1b1d2e9f3d694d0b9157937 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 #define UNIT_NAME_MAX 256
 
index 8ce25ab35c3dfed2283c3fd02bc2ec0c407936c8..c4f2aea30951f2ad1ab0bdc6ff60f11b657db217 100644 (file)
@@ -8,7 +8,7 @@
 #include <pwd.h>
 #include <shadow.h>
 
-#include "forward.h"
+#include "basic-forward.h"
 
 /* Users managed by systemd-homed. See https://systemd.io/UIDS-GIDS for details how this range fits into the rest of the world */
 #define HOME_UID_MIN ((uid_t) 60001)
index dc97f4aee716cc50fe3ba747199c24826f241c2d..967edb401480c000f4ee95a5333d5dbe79c3b4eb 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 #define UTF8_REPLACEMENT_CHARACTER "\xef\xbf\xbd"
 #define UTF8_BYTE_ORDER_MARK "\xef\xbb\xbf"
index cac3f4496c62ea2fcb929da2d192250e57de212d..b34bfd8261faa46605ff1c629ddbdcf56f11f171 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 typedef enum Virtualization {
         VIRTUALIZATION_NONE = 0,
index f38ecf491dce5f180b79198db7883554429b7163..d8e521b9694199d27bb9ef0cf74eed910b7a483d 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "basic-forward.h"
 
 int getxattr_at_malloc(int fd, const char *path, const char *name, int at_flags, char **ret, size_t *ret_size);
 static inline int getxattr_malloc(const char *path, const char *name, char **ret, size_t *ret_size) {
index 82f77b997d122aa36d5c6ea682dd82677a094d0b..5ac2e9c40ba0d32716d3b65d911ff61f1e594368 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int verb_reboot_to_firmware(int argc, char *argv[], void *userdata);
 
index 6dfc578a0c06c6e1e7e723e6cefa4a5920bc8dfd..234a44546ed28b88af7f44959b8e0312fc320bc6 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int verb_status(int argc, char *argv[], void *userdata);
 int verb_list(int argc, char *argv[], void *userdata);
index 20c080cf85411262330f868357984b9e52dc302d..dbbd41f45c093f806103ad7bc0a03c5d6f1ae603 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int verb_kernel_identify(int argc, char *argv[], void *userdata);
 int verb_kernel_inspect(int argc, char *argv[], void *userdata);
index 4f052e67bc181f630e31fa181a73f969a8c9294c..f4d6bb40ba88c25e4935c28b563e088a7a96b954 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum InstallSource {
         INSTALL_SOURCE_IMAGE,
index 374ab53a19a1aab9ace29839ca06178ce9eaef08..d83be3715d1eb8e413918967c9ca8269782c1c03 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef struct XMLIntrospectOps {
         int (*on_path)(const char *path, void *userdata);
index 55bd357c81f0f94285b7b297afebfbb34d4ae751..4f02bdfdd09a68dd5bf5ca28295c13c3a2b49c84 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int get_core_audit_fd(void);
 void close_core_audit_fd(void);
index 84ffdc230ad32f502cd0784ca3cd2e78363f9f7f..1c6011b3d57c9e25c67595a73e726c469f9c6681 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int clock_reset_timewarp(void);
 void clock_apply_epoch(bool allow_backwards);
index a5159ba30681d39d4eaaeb9e538dc8d239fdd74f..a82a12bc08ccb9581059a279d08bfdf3611b9926 100644 (file)
@@ -2,7 +2,7 @@
 #pragma once
 
 #include "conf-parser-forward.h"        /* IWYU pragma: export */
-#include "forward.h"                    /* IWYU pragma: export */
+#include "shared-forward.h"             /* IWYU pragma: export */
 #include "unit-def.h"                   /* IWYU pragma: export */
 
 typedef enum CGroupDevicePermissions CGroupDevicePermissions;
index 4fd185fa45ed4ca675dbc29b35fcf1b685948153..379f3050b13699449881730fcd624fa197d813e1 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum CrashAction {
         CRASH_FREEZE,
index 57468231535aa809a1b53424a39c27c17020ba88..2b24cc56a9b918cf495ad163c965bde697b99dda 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "core-forward.h"
 
 int lookup_paths_mkdir_generator(LookupPaths *p);
 void lookup_paths_trim_generator(LookupPaths *p);
index 199945bc8b86a0f110f07683b34b90eb0cda46de..4bb88c9bd951f9b2dca7e1e7a126f81019cf2d24 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum KillMode {
         /* The kill mode is a property of a unit. */
index a871d573fd2ed2575cfd805da53bd3dcecded356..f892b13f025f342796c30d185a13d597ae53a1dc 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "crash-handler.h"
 
 extern bool arg_dump_core;
index b4f34f66e69590d49d4922e8990c7dea9a4ecd66..d57912f6bdc1ade4c0c5aa358ac63ec483d5ac65 100644 (file)
@@ -6,7 +6,7 @@
 #include "cgroup.h"
 #include "common-signal.h"
 #include "execute.h"
-#include "forward.h"
+#include "shared-forward.h"
 #include "log.h"
 #include "path-lookup.h"
 #include "show-status.h"
index 4e9d87e266fda28e82d6403dc1d56951a1e04b75..66a88ae3c1ed7689373b47fdf545426fedd46b5f 100644 (file)
@@ -5,7 +5,7 @@
   Copyright © 2016 Djalal Harouni
 ***/
 
-#include "forward.h"
+#include "core-forward.h"
 #include "list.h"
 #include "runtime-scope.h"
 
index 99c05650d06474e6db1df16b4fd2959b43d42596..2caa75ff739a460a2c52b71a00d801fc8bcdfaac 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int mac_selinux_setup(bool *loaded_policy);
index 38c23e6a24d647befb7cd57ff8e2d4baf20229b7..9625426fa19ee9504df0bedf2e3e8e6e73697d0c 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 /* Manager status */
 
index 4b7da569ca6ab06ffa6fe8571643aa733d70fcc5..df64d585475f8e9716198dd76839d686f1f69b75 100644 (file)
@@ -7,6 +7,6 @@
         Nathaniel Chen <nathaniel.chen@intel.com>
 ***/
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int mac_smack_setup(bool *loaded_policy);
index 36ea729f5c61b96dbcfd266947898a93b0e654f9..c0ad3db513e0411e9dd8a18a3cf56ec06892c747 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 /* Flags that identify the various "atomic" behaviours a specific dependency type implies. Each dependency is
  * a combination of one or more of these flags that define what they actually entail. */
index befd1fdde84943212b1cf55988af419ef736cb97..8e5f2363c33437b188f5e05217847cb9483b5897 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int unit_cgroup_context_build_json(sd_json_variant **ret, const char *name, void *userdata);
 int unit_cgroup_runtime_build_json(sd_json_variant **ret, const char *name, void *userdata);
index 45b47cb6612784f9ca7da97b794a629b7b1a9993..314398e438c7af34639c5f06c3ad4b0d65289ebb 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int rlimit_build_json(sd_json_variant **ret, const char *name, void *userdata);
 int rlimit_table_build_json(sd_json_variant **ret, const char *name, void *userdata);
index 5ff22418b0afff7f541bf79da8a363e0acd0a460..14bcf3191fa292e0b79b2f33fbb113a8f64c2c39 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int vl_method_get_user_record(sd_varlink *link, sd_json_variant *parameters, sd_varlink_method_flags_t flags, void *userdata);
 int vl_method_get_group_record(sd_varlink *link, sd_json_variant *parameters, sd_varlink_method_flags_t flags, void *userdata);
index f7396e12644aa1f85c701fcfc6fa21614eb8c2af..5836d5443a5c7bac90851bb1a256b008671e157a 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int vl_method_describe_manager(sd_varlink *link, sd_json_variant *parameters, sd_varlink_method_flags_t flags, void *userdata);
index 074ed651eb8ec38f38a7fe1128b6a0f54b17ce4e..431f1f832e4e03c085678372afeab54af7063b5f 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 #define VARLINK_ERROR_UNIT_NO_SUCH_UNIT "io.systemd.Unit.NoSuchUnit"
 
index 1a2d648111297e0e7f50c68b53764c81c49e0ad5..74cd4344bc1b0533fa83f39d04f80736e5ee6fff 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int coredump_vacuum(int exclude_fd, uint64_t keep_free, uint64_t max_use);
index 931ce94ac84631e99cbf77e293ae1fbf266a9d9f..7d0c25c02a957dc839c9ce5a32590e939898933d 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int load_volume_key_fido2(struct crypt_device *cd, const char *cd_node, const char *device, void *ret_vk, size_t *ret_vks);
 int enroll_fido2(struct crypt_device *cd, const struct iovec *volume_key, const char *device, Fido2EnrollFlags lock_with, int cred_alg, const char *salt_file, bool parameters_in_header);
index 40270bfeea488b8a1e885c3a710e629ec0c105f3..9097bc42c120baf73899b5c42a8cf9950fb85dde 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int list_enrolled(struct crypt_device *cd);
index f83e6274692181634fce38f996fc92c4260e1165..f0c97ced2987157e5396c7c028d0fa7b543e4924 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int load_volume_key_password(struct crypt_device *cd, const char* cd_node, void *ret_vk, size_t *ret_vks);
 int enroll_password(struct crypt_device *cd, const struct iovec *volume_key);
index 3d5d1e30228d7f490b4394876211cf8559251500..b3e6e4584af93ab21c4b310e7227d9ca5de8b5d9 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int enroll_pkcs11(struct crypt_device *cd, const struct iovec *volume_key, const char *uri);
index c8a947ca3bbf1ec00625e0e9b00d2fef3dea8268..0c76d86108a7b43bdb43639dfd428e81939b70b2 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int enroll_recovery(struct crypt_device *cd, const struct iovec *volume_key);
index 079da9271e649b1475067287f5ebe9b0cf774d7b..48f6c12b7f196d0b9d5a2b6762788dccb46ed56b 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int load_volume_key_tpm2(struct crypt_device *cd, const char *cd_node, const char *device, void *ret_vk, size_t *ret_vks);
 int enroll_tpm2(struct crypt_device *cd, const struct iovec *volume_key, const char *device, uint32_t seal_key_handle, const char *device_key, Tpm2PCRValue *hash_pcr_values, size_t n_hash_pcr_values, const char *pubkey_path, bool load_pcr_pubkey, uint32_t pubkey_pcr_mask, const char *signature_path, bool use_pin, const char *pcrlock_path, int *ret_slot_to_wipe);
index d2679c306a2a486e353befd2ffe64a7cb4669165..aa82f9dbbd34274a67ba0014d9344d71d1f93d3e 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum WipeScope WipeScope;
 
index 6a2f36c36aa40622ba452583699d7241620a2b10..613940fe97cdb972c804aa7d6429696344a1e45f 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum EnrollType {
         ENROLL_PASSWORD,
index 76c21004affef1f3d2790327967bcb007e0ef89a..87ff70d65fb8f0ff14ca839e6c3d68b0e4605b72 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int find_key_file(const char *key_file, char **search_path, const char *bindname, struct iovec *ret_key);
index 2dcacd5015c2ffb072d666148811953516497bd0..472e5d0e78c27847094ff3897528861a5663c471 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int decrypt_pkcs11_key(
                 const char *volume_name,
index cdd26fd085c3a89530c35e132d36be659f677937..68b09fc4586dbcce97769f4e8165f893a7810cde 100644 (file)
@@ -4,7 +4,7 @@
 
 #include <libcryptsetup.h>
 
-#include "forward.h"
+#include "shared-forward.h"
 
 /* crypt_dump() internal indentation magic */
 #define CRYPT_DUMP_LINE_SEP "\n\t            "
index b23f62be8d423f00044914d548fb73ec8047f173..fa02ec207b6a8b2695ec912de07e869fc5f5ebe9 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 /* for more information see libcryptsetup.h crypt-tokens section */
 
index 9f51fc81619f925ff2cf3f3541e438d897eb48fb..d233b7ad063da7111c88a89d87a9c48550d280ed 100644 (file)
@@ -2,7 +2,7 @@
 
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int acquire_luks2_key(
                 struct crypt_device *cd,
index 6e4935d555d3b9fccd011a67546d520e97e51519..a4cc7ab67dd56ccf6a0e08775db42a415504a993 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <stdio.h>
 
-#include "forward.h"
+#include "shared-forward.h"
 
 #include "fileio.h"
 #include "log.h"
index 55f344a9e655fe50bf1c91610a10344f1494bfcb..bad2cf8283007770a7bd0ba0f23682aad5de0d98 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "sd-id128.h"
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef struct KernelHibernateLocation KernelHibernateLocation;
 
index 425ad7be631f2f7caf1869d1e05022139be27eeb..0b1781d272866c6b0af0d345929ad4a7dd81aed9 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "homed-forward.h"
 
 /* Flags supported by UpdateEx() */
 #define SD_HOMED_UPDATE_OFFLINE (UINT64_C(1) << 0)
index 840dd79d1972bdc4a67a7fef92b6bc82af6e449b..9815ec8e1886f1f6b17dd36feb293637a499cfef 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int identity_add_fido2_parameters(sd_json_variant **v, const char *device, Fido2EnrollFlags lock_with, int cred_alg);
index cee12b49eda262854a8239a0e31ba8600babbb00..ca79a0f29b371d85b242611fc58a37ad778ed5df 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int identity_add_token_pin(sd_json_variant **v, const char *pin);
 int identity_add_pkcs11_key_data(sd_json_variant **v, const char *token_uri);
index 5a48f5fec10c4e7ee91e0885573cc5ddc19df6e1..b5100da0f111e9995e143ea7fe29877eb7905159 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int identity_add_recovery_key(sd_json_variant **v);
index 4adb60e8a26a62076c54981911eb3920b4522c7a..77a6838642c676cb76de454f842617daf8c1e379 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "homed-forward.h"
 
 int bus_message_read_secret(sd_bus_message *m, UserRecord **ret, sd_bus_error *error);
 int bus_message_read_home_record(sd_bus_message *m, UserRecordLoadFlags flags, UserRecord **ret, sd_bus_error *error);
index 3672b163d681d4f257349b833765b7a965957b21..18a8df8e61bb386e45c7a4906942e723ef2886aa 100644 (file)
@@ -2,7 +2,7 @@
 #pragma once
 
 #include "conf-parser-forward.h"    /* IWYU pragma: export */
-#include "forward.h"                /* IWYU pragma: export */
+#include "shared-forward.h"         /* IWYU pragma: export */
 
 typedef struct Manager Manager;
 typedef struct Home Home;
index 8fcdca32ce4a8c72f7dc3de87c90a1c734896d69..0692e56089823bc4a2592ea6a519a48c0cd2e763 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "homed-forward.h"
 #include "pidref.h"
 #include "stat-util.h"
index 21871d4deb145fd8b60185480a9f1e9f3555c6e6..04fefe6d45a3ef8d28c78b4dfeabbd709d347e6c 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h" /* IWYU pragma: export */
+#include "shared-forward.h" /* IWYU pragma: export */
 
 typedef enum HomeSetupFlags HomeSetupFlags;
 
index b76092113cd665ac942485b05fe2bfb1afe67847..36e2b3ed13167a29dd8b338389094d273f87543d 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int user_record_check_password_quality(UserRecord *hr, UserRecord *secret, sd_bus_error *error);
index 350e7457660883533cb235d5f171e1937a968ff8..3007d00b01d0102b3cd682169f107af28d122730 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <openssl/evp.h>
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int user_record_sign(UserRecord *ur, EVP_PKEY *private_key, UserRecord **ret);
 
index 31961184a8b1d4b7cff2b8ae50ddcab46d3c2876..876baa4103f05da30c86857fa7b4b5ecd3313025 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 /* We intentionally use snake_case instead of the usual camelCase here to further
  * reduce the chance of collision with a field any legitimate user record may ever
index abba49044b371f074112079a3791f2dc30ed5538..b48eeb9c436820a2192170394c859bc66ac345f9 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <curl/curl.h>
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef struct CurlGlue CurlGlue;
 
index 9bac076b35bf38468523cb953c2acaaf881c72cf..7af90919291f257c073f91114238511b66c8081b 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "import-compress.h"
 
 typedef struct RawExport RawExport;
index f261c0c8d24842e6f5916072c922e12b21452220..9eeec80dda3d1843638e447ba52731ef235a4910 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "import-compress.h"
 
 typedef struct TarExport TarExport;
index 552e68f67cf5401af087be4476fd436152927bb2..55d00ea4668c08ef5b375643ccd3690d6b8b3ae0 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum ImportFlags {
         /* Public Flags (i.e. accessible via D-Bus, must stay stable! */
index ea14038a4ff2b17b1c11928e18cf76febac48a65..6e7f0e514a1f2840aed3f5513f06f43b12cd3616 100644 (file)
@@ -10,7 +10,7 @@
 #include <zstd.h>
 #endif
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum ImportCompressType {
         IMPORT_COMPRESS_UNKNOWN,
index 9b711624090cec07b9d83a9f08439cbc781fa0a9..7c38a1f819172ca3cb653ca5f4c1f435b0d9a530 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "import-common.h"
 
 typedef struct RawImport RawImport;
index 90d432b1e003ade29f633d456c7fb0f9ecda302e..3586ba0d57d62cdf84d6e14d4f89045e27a197aa 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "import-common.h"
 
 typedef struct TarImport TarImport;
index 455b8395d2cd4b39b4acb395f74ec4bb36ffdc20..160c035a2126b93404b55df1bf7fffc6dc2a31d4 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "import-common.h"
 #include "import-util.h"
 #include "pull-job.h"
index 504185aaa9c55e5a55620dd108ae72a47e9d5e2a..b39e11929fc6c79c47c4db224682b57d65aa5c88 100644 (file)
@@ -4,7 +4,7 @@
 #include <curl/curl.h>
 #include <sys/stat.h>
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "import-compress.h"
 #include "openssl-util.h"
 
index 8ca65795903cd2ad74fd5996e22479e68eaf3188..c8126d4ff1b320ccb4230e895bead417e2209976 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "import-common.h"
 #include "import-util.h"
 
index 627cb0bcc8cd851c124f8ea5b6b24c422e06c507..8f622dff3ac9524aaf298c86c8dd5285626cd8b6 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "import-common.h"
 #include "import-util.h"
 
index edc3ceac5ff0a065b27b8c245d3d8a6943e9e743..64aa79da870d3d122fa138ff2cea831a9e110e98 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int parse_integrity_options(
                 const char *options,
index ca079dbb8dfecd124aa93825541db37b33b16f5f..6670d61756923024b5845c08dd723baac4620958 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "compress.h"
 #include "conf-parser-forward.h"
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef struct CompressionConfig {
         Compression algorithm;
index 767de11e5a850094ba0e3a386c7f00cfe90d5fa2..0e99b6600982379cd39d22250c1a464a383eddea 100644 (file)
@@ -2,7 +2,7 @@
 #pragma once
 
 #include "conf-parser-forward.h"
-#include "forward.h"
+#include "shared-forward.h"
 
 bool header_value_is_valid(const char *value);
 
index 54b984431ebd08463c28584deb3daeed8be8ca90..2ce0b86ad71c494380eb5df7490b8b65448f2978 100644 (file)
@@ -2,7 +2,7 @@
 #pragma once
 
 #include "compress.h"
-#include "forward.h"
+#include "shared-forward.h"
 #include "journal-importer.h"
 #include "journal-remote-write.h"
 
index bcf619332c22728dd52e6fd960db937db4ef2ac9..b893530250ed95dfb5943cf9e1c05c0d7b964e23 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "journal-remote-parse.h"
 #include "journal-remote-write.h"
 
index cfb30c7f844986b64fc7fc1651be1659bbbbc2e5..9ab0f535a4c061ebe44012c2fcf097f52875b911 100644 (file)
@@ -4,7 +4,7 @@
 
 #include <curl/curl.h>
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "journal-compression-util.h"
 
 typedef enum {
index 632fef5e955200109e1beb7807fe01f082c77eda..80142e24f59c58a70dcd6ca8ef6f914f16a40674 100644 (file)
@@ -5,7 +5,7 @@
 
 #include <microhttpd.h>
 
-#include "forward.h"
+#include "shared-forward.h"
 
 /* Those defines are added when options are renamed. If the old names
  * are not '#define'd, then they are not deprecated yet and there are
index d5966ab5f6e0c49e92c02a31f1ec06f2e5de8ef5..dc9474c0f043aa3c710bf04daebef5a70fd5e6ab 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int add_filters(sd_journal *j, char **matches);
index 0da319079cf3df3e840e5c712be4a78067f64966..dad0d4edbdfc7b2ca6fcb0afee658c85c3be9757 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int action_print_header(void);
 int action_verify(void);
index 4571c285408aafca564df1c4970a04bd379d9192..f237aab2b03751b16662031c474cdac732378fcd 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "logs-show.h"
 
 /* The lists below are supposed to return the superset of unit names possibly matched by rules added with
index b78d617b7ca71585e021eb3a36148adb52fdf0a1..79ffe034649ad95aad381f15b92229964945164e 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "pcre2-util.h"
 
 typedef enum JournalctlAction {
index ef597bbf114d5998048c3505de0d1faf8c707f6c..141b98024f5ee16c5a16a4205e2b2919e5ac3e55 100644 (file)
@@ -2,7 +2,7 @@
 #pragma once
 
 #include "conf-parser-forward.h"    /* IWYU pragma: export */
-#include "forward.h"                /* IWYU pragma: export */
+#include "shared-forward.h"         /* IWYU pragma: export */
 
 typedef enum Storage Storage;
 typedef enum SplitMode SplitMode;
index 4152c3a0986b6e7b4772c4dc78499196d28be9e6..5cf56c064a33fe762e29e4087a0b621ae5754764 100644 (file)
@@ -5,7 +5,7 @@
   Copyright © 2014 Axis Communications AB. All rights reserved.
 ***/
 
-#include "forward.h"
+#include "sd-forward.h"
 
 int arp_update_filter(int fd, const struct in_addr *a, const struct ether_addr *mac);
 int arp_network_bind_raw_socket(int ifindex, const struct in_addr *a, const struct ether_addr *mac);
index 2f51968758b6c10c6dcf14244f1a74b65be15d6f..8efc007a3d4a80e88539a3f50a72a49ef0e46907 100644 (file)
@@ -6,7 +6,7 @@
 #include "sd-dhcp-client-id.h"
 
 #include "dhcp-duid-internal.h"
-#include "forward.h"
+#include "sd-forward.h"
 #include "sparse-endian.h"
 
 /* RFC 2132 section 9.14: its minimum length is 2.
index 3248e1098b19d5614caec598cdf29f17ea08892d..16d5ac8630e658f46dadc48234a5e76826e7a73f 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "sd-dhcp-client.h"
 
-#include "forward.h"
+#include "sd-forward.h"
 #include "network-common.h"
 
 typedef enum DHCPState {
index c2af1fa4dd84414f17617140f25ca830e821a4fa..94a119c3e8ad09c3c2d9e35eb59e7d8747a718b6 100644 (file)
@@ -5,7 +5,7 @@
 #include "sd-id128.h"
 
 #include "ether-addr-util.h"
-#include "forward.h"
+#include "sd-forward.h"
 #include "sparse-endian.h"
 
 #define SYSTEMD_PEN    43793
index 0ed8c3fc938acca8e51a229a2068de201df827c8..93831d8720fc6c0bba71f611ae50f06bcd21d31a 100644 (file)
@@ -9,7 +9,7 @@
 
 #include "dhcp-client-id-internal.h"
 #include "dhcp-option.h"
-#include "forward.h"
+#include "sd-forward.h"
 #include "list.h"
 
 struct sd_dhcp_route {
index c493cfeee502cca8302849d1b7df79b9fbd6af25..3cc66dad9da91f1709c5c759016957f613faed26 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "sd-forward.h"
 #include "sparse-endian.h"
 
 int dhcp_network_bind_raw_socket(
index c3738b87c14c1b79f0b7f4489a2bdc7d5202e695..baaba1dcf2cd8194d56d429eb6f908238a546b7e 100644 (file)
@@ -4,7 +4,7 @@
 #include "sd-dhcp-option.h" /* IWYU pragma: export */
 
 #include "dhcp-protocol.h"
-#include "forward.h"
+#include "sd-forward.h"
 #include "hash-funcs.h"
 
 struct sd_dhcp_option {
index ba058e06c16132d1269b366f40022c33e44cd04c..967bd5d89df715a1319a48ba6e94450f63f1e3e2 100644 (file)
@@ -2,7 +2,7 @@
 #pragma once
 
 #include "dhcp-protocol.h"
-#include "forward.h"
+#include "sd-forward.h"
 
 int bootp_message_init(
                 DHCPMessage *message,
index ca872a8081572e4f3131272296d4a9c72ac5f9fa..425f730894d2bd8121bb30570e657471145f3400 100644 (file)
@@ -10,7 +10,7 @@
 
 #include "sd-dhcp-protocol.h"
 
-#include "forward.h"
+#include "sd-forward.h"
 #include "sparse-endian.h"
 #include "time-util.h"
 
index eeaed11096b84c832513da8307aabc034f44ca95..8b7c856d218af8393b799cbaa00c6ee627fc0149 100644 (file)
@@ -10,7 +10,7 @@
 
 #include "dhcp-client-id-internal.h"
 #include "dhcp-option.h"
-#include "forward.h"
+#include "sd-forward.h"
 #include "network-common.h"
 #include "sparse-endian.h"
 
index 4a36df6eadf5a0397b3a79d865ed6032f5c016f0..aeb099ff81878dd8c636084b56baec0213bcb4d4 100644 (file)
@@ -5,7 +5,7 @@
 
 #include "dhcp-client-id-internal.h"
 #include "dhcp-server-internal.h"
-#include "forward.h"
+#include "sd-forward.h"
 
 typedef struct sd_dhcp_server_lease {
         unsigned n_ref;
index 1a84053735a27dc8d82735007b86c454ebead786..2c6826350887d9934736505da0cae665df2360b7 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "sd-forward.h"
 #include "sd-dhcp6-client.h"
 
 int dhcp6_client_set_state_callback(
index 5762966c2644db80afaf7fdc4a4b9dbcf29bd3e4..faa82c230b630dc0f39aec036447c753db858795 100644 (file)
@@ -13,7 +13,7 @@
 #include "dhcp-duid-internal.h"
 #include "dhcp6-option.h"
 #include "dhcp6-protocol.h"
-#include "forward.h"
+#include "sd-forward.h"
 #include "network-common.h"
 #include "sparse-endian.h"
 
index a841ce6271288840713627a56e6577e50807ed5a..f2f4cbc6907d4110d03c15f99195dfc237e96c0a 100644 (file)
@@ -9,7 +9,7 @@
 
 #include "dhcp6-option.h"
 #include "dhcp6-protocol.h"
-#include "forward.h"
+#include "sd-forward.h"
 #include "time-util.h"
 
 struct sd_dhcp6_lease {
index 9deee41ae41f920e7c5690610c4c35f7d7c0bd5e..7142853197c6abf2df54da8a1d76b239a8d88938 100644 (file)
@@ -5,7 +5,7 @@
 
 #include "sd-dhcp6-option.h" /* IWYU pragma: export */
 
-#include "forward.h"
+#include "sd-forward.h"
 #include "list.h"
 #include "sparse-endian.h"
 
index 794b003248488d32585aae3d275131c0ed160e44..020088ba74cdc1a7fb4fec36de7eeebaf7c246da 100644 (file)
@@ -5,7 +5,7 @@
   Copyright © 2014 Intel Corporation. All rights reserved.
 ***/
 
-#include "forward.h"
+#include "sd-forward.h"
 #include "sparse-endian.h"
 
 struct DHCP6Message {
index 1ae775096dba85fb34157619228eb3b49007561f..1e53df51cf061d70c4639dbd37c3d27c45438f02 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "sd-dns-resolver.h"
 
-#include "forward.h"
+#include "sd-forward.h"
 #include "socket-netlink.h"
 
 /* https://www.iana.org/assignments/dns-svcb/dns-svcb.xhtml#dns-svcparamkeys */
index 3ae33a2039ad00a6d630f0e7f43eb7790b0d68b3..929fff1f23c91aadace754e7e587afbd32278ca6 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <netinet/in.h>
 
-#include "forward.h"
+#include "sd-forward.h"
 #include "time-util.h"
 
 typedef struct ICMP6Packet {
index a904564dfe3165ff9f4b546b3e44f80919e2dc7d..a1183724b289c70f0100cae700375c602ca03cc2 100644 (file)
@@ -7,7 +7,7 @@
 
 #include <netinet/in.h>
 
-#include "forward.h"
+#include "sd-forward.h"
 
 #define IN6_ADDR_ALL_ROUTERS_MULTICAST                                  \
         ((const struct in6_addr) { { {                                  \
index 9a2dc7d81d6ebcc7b7c86673cf4a7a40eaaf9d59..2060474e2a2d48e299cf581eb5eb300995c88829 100644 (file)
@@ -5,7 +5,7 @@
 
 #include "sd-lldp-rx.h"
 
-#include "forward.h"
+#include "sd-forward.h"
 #include "memory-util.h"
 #include "time-util.h"
 
index 9c451c183d2dfa8efd95e6dc440dceed7d4f70d0..a47eede68ac8dbe750514130d1ac237ae48a7dcd 100644 (file)
@@ -6,7 +6,7 @@
 #include "sd-lldp-rx.h" /* IWYU pragma: export */
 
 #include "network-common.h"
-#include "forward.h"
+#include "sd-forward.h"
 
 struct sd_lldp_rx {
         unsigned n_ref;
index f0488cff8d735795184b33a1ede3513b8df7b328..dfa38cd61fc9884b5460c976b1acb46235cdd8a4 100644 (file)
@@ -11,7 +11,7 @@
 #include "sd-event.h"
 #include "sd-ndisc.h" /* IWYU pragma: export */
 
-#include "forward.h"
+#include "sd-forward.h"
 #include "network-common.h"
 #include "time-util.h"
 
index 295c093b4336652084b132d4d2c0c58789fc1368..2b54aac8ed170f8012541a0d5f862e8abf43212e 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <linux/in6.h>
 
-#include "forward.h"
+#include "sd-forward.h"
 
 typedef struct sd_ndisc_neighbor {
         unsigned n_ref;
index 77d6f8b88f2eb583896207981df2358b804ad169..96a0156f37d7e9f5b927898b4118104803fc10bd 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <linux/in6.h>
 
-#include "forward.h"
+#include "sd-forward.h"
 
 typedef struct sd_ndisc_redirect {
         unsigned n_ref;
index 2186238a6fd5c79f450a8298e506045c4d040a0f..1c57e9d0b4c3bb1560e00c59ce7c7ca150369b36 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "sd-forward.h"
 
 typedef struct sd_ndisc_router_solicit {
         unsigned n_ref;
index 933ce170b7e9ca4a8b03a4dac0db8f4eaa932cd5..87a51c76fce0ac931453eafbe697cf9809547ad6 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "sd-forward.h"
 #include "log-link.h"
 #include "sparse-endian.h"
 #include "time-util.h"
index aace983d5bee6cce7ec4251a35a9d8ff50deaff7..7e22723976e7130fd7603fa6d262fcaa1d17940e 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "sd-forward.h"
 
 size_t serialize_in_addrs(FILE *f,
                           const struct in_addr *addresses,
index 0e34176e8c066946d3ecd3db45c8f0e4eb4c681f..673d863ca3169d0ebaf7625db38c5cf032bd0bba 100644 (file)
@@ -7,7 +7,7 @@
 
 #include <netinet/in.h>
 
-#include "forward.h"
+#include "sd-forward.h"
 #include "network-common.h"
 #include "time-util.h"
 
index 8a574263ccb4b390279e6879377dba264709cd9b..02f39bc90bb573aed5345776db555e597377e0e8 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "_sd-common.h"
 
-#include "forward.h"
+#include "sd-forward.h"
 
 _SD_BEGIN_DECLARATIONS;
 
index bca37304c0178e475fe34f43b61290d98cdbfe3e..2e933bd9a703b426644b55b33d6d71bdbcf7b56e 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "sd-forward.h"
 
 int bus_container_connect_socket(sd_bus *b);
index 56b4a70cdaa3bf9ebea16d80b92e5d2340882e6d..9f65eda23a02ca111a96d33a2bab3d6b5765401d 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "sd-forward.h"
 
 int bus_add_match_internal(sd_bus *bus, const char *match, uint64_t timeout_usec, uint64_t *ret_counter);
 int bus_add_match_internal_async(sd_bus *bus, sd_bus_slot **ret, const char *match, sd_bus_message_handler_t callback, void *userdata, uint64_t timeout_usec);
index 089442e88571119fab102a6ada651b147d690ebe..212da42055519d910687eda14725ec6d05d094dd 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "sd-forward.h"
 
 typedef struct sd_bus_creds {
         bool allocated;
index ba38da168610d07eb11bd8e07cb4de3917b9603e..ecf7598c8545abbb889f9717d503db9a2e52eb6d 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "sd-forward.h"
 
 int bus_creds_dump(sd_bus_creds *c, FILE *f, bool terse);
 
index 3757fe7c279e3f25f72b89409d4f059f4f1b9d29..ac3c90c0d317e487facb10df62e75c24fea09fbc 100644 (file)
@@ -4,7 +4,7 @@
 #include "sd-bus-protocol.h"
 
 #include "errno-util.h"
-#include "forward.h"
+#include "sd-forward.h"
 
 bool bus_error_is_dirty(sd_bus_error *e);
 
index 0b5433d6b640a9d1a30d21e7ad5823eb0376cc20..7208e89c1b6876cf8993291a5d912a4221e732a7 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "sd-forward.h"
 
 typedef enum BusAuth BusAuth;
 typedef enum BusSlotType BusSlotType;
index c364f62a8dc11e603e951d17da7e0a3170d707de..544ee542bc474cbe6f304069eeee1601025b9b2f 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "sd-forward.h"
 
 #define MEMFD_CACHE_MAX 32
 
index b75df7335d4b0590947e1d00b6e94763056fbfba..3af5091ed48cb1e78041992ba2edebfbb43d78d7 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "sd-forward.h"
 
 bool signature_is_single(const char *s, bool allow_dict_entry);
 bool signature_is_pair(const char *s);
index 1c1d3561eeee097f7fb1fef124cbb6564e8680c3..0356f64a4bd5992723678ca208eddbb84168c6ab 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "sd-forward.h"
 
 void bus_socket_setup(sd_bus *b);
 
index 0ecd42e6d3733997de110a68582fbc5008224c66..baa9d247d75094c17294a8a7caeeedf651a64527 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "sd-forward.h"
 
 void bus_track_dispatch(sd_bus_track *track);
 void bus_track_close(sd_bus_track *track);
index 0e851b0249ece20384239d77fffa14109f91b430..b6ec78f827975626c0c6eaf4dd1157dbe8569ff7 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "sd-forward.h"
 
 bool bus_type_is_valid(char c) _const_;
 bool bus_type_is_basic(char c) _const_;
diff --git a/src/libsystemd/sd-common/sd-forward.h b/src/libsystemd/sd-common/sd-forward.h
new file mode 100644 (file)
index 0000000..0e9e16d
--- /dev/null
@@ -0,0 +1,127 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
+#pragma once
+
+/* IWYU pragma: always_keep */
+
+#include "basic-forward.h"            /* IWYU pragma: export */
+
+typedef void (*_sd_destroy_t)(void *userdata);
+
+typedef union sd_id128 sd_id128_t;
+
+typedef struct sd_event sd_event;
+typedef struct sd_event_source sd_event_source;
+
+typedef int (*sd_event_handler_t)(sd_event_source *s, void *userdata);
+typedef int (*sd_event_io_handler_t)(sd_event_source *s, int fd, uint32_t revents, void *userdata);
+typedef int (*sd_event_time_handler_t)(sd_event_source *s, uint64_t usec, void *userdata);
+typedef int (*sd_event_signal_handler_t)(sd_event_source *s, const struct signalfd_siginfo *si, void *userdata);
+typedef int (*sd_event_inotify_handler_t)(sd_event_source *s, const struct inotify_event *event, void *userdata);
+typedef _sd_destroy_t sd_event_destroy_t;
+
+enum ENUM_TYPE_S64(sd_json_format_flags_t);
+enum ENUM_TYPE_S64(sd_json_dispatch_flags_t);
+enum ENUM_TYPE_S64(sd_json_variant_type_t);
+enum ENUM_TYPE_S64(sd_json_parse_flags_t);
+
+typedef enum sd_json_format_flags_t sd_json_format_flags_t;
+typedef enum sd_json_dispatch_flags_t sd_json_dispatch_flags_t;
+typedef enum sd_json_variant_type_t sd_json_variant_type_t;
+typedef enum sd_json_parse_flags_t sd_json_parse_flags_t;
+
+typedef struct sd_json_variant sd_json_variant;
+
+typedef struct sd_bus sd_bus;
+typedef struct sd_bus_error sd_bus_error;
+typedef struct sd_bus_error_map sd_bus_error_map;
+typedef struct sd_bus_message sd_bus_message;
+typedef struct sd_bus_slot sd_bus_slot;
+typedef struct sd_bus_creds sd_bus_creds;
+typedef struct sd_bus_track sd_bus_track;
+typedef struct sd_bus_vtable sd_bus_vtable;
+
+typedef int (*sd_bus_message_handler_t)(sd_bus_message *m, void *userdata, sd_bus_error *ret_error);
+typedef int (*sd_bus_property_get_t)(sd_bus *bus, const char *path, const char *interface, const char *property, sd_bus_message *reply, void *userdata, sd_bus_error *ret_error);
+typedef int (*sd_bus_property_set_t)(sd_bus *bus, const char *path, const char *interface, const char *property, sd_bus_message *value, void *userdata, sd_bus_error *ret_error);
+typedef int (*sd_bus_object_find_t)(sd_bus *bus, const char *path, const char *interface, void *userdata, void **ret_found, sd_bus_error *ret_error);
+typedef int (*sd_bus_node_enumerator_t)(sd_bus *bus, const char *prefix, void *userdata, char ***ret_nodes, sd_bus_error *ret_error);
+typedef int (*sd_bus_track_handler_t)(sd_bus_track *track, void *userdata);
+typedef _sd_destroy_t sd_bus_destroy_t;
+
+enum ENUM_TYPE_S64(sd_device_action_t);
+
+typedef enum sd_device_action_t sd_device_action_t;
+
+typedef struct sd_device sd_device;
+typedef struct sd_device_enumerator sd_device_enumerator;
+typedef struct sd_device_monitor sd_device_monitor;
+
+typedef struct sd_netlink sd_netlink;
+typedef struct sd_netlink_message sd_netlink_message;
+typedef struct sd_netlink_slot sd_netlink_slot;
+
+typedef int (*sd_netlink_message_handler_t)(sd_netlink *nl, sd_netlink_message *m, void *userdata);
+typedef _sd_destroy_t sd_netlink_destroy_t;
+
+typedef struct sd_network_monitor sd_network_monitor;
+
+enum ENUM_TYPE_S64(sd_dhcp_lease_server_type_t);
+enum ENUM_TYPE_S64(sd_lldp_rx_event_t);
+enum ENUM_TYPE_S64(sd_lldp_multicast_mode_t);
+enum ENUM_TYPE_S64(sd_ndisc_event_t);
+
+typedef enum sd_dhcp_lease_server_type_t sd_dhcp_lease_server_type_t;
+typedef enum sd_lldp_rx_event_t sd_lldp_rx_event_t;
+typedef enum sd_lldp_multicast_mode_t sd_lldp_multicast_mode_t;
+typedef enum sd_ndisc_event_t sd_ndisc_event_t;
+
+typedef struct sd_ipv4ll sd_ipv4ll;
+typedef struct sd_dhcp_client sd_dhcp_client;
+typedef struct sd_dhcp_lease sd_dhcp_lease;
+typedef struct sd_dhcp_route sd_dhcp_route;
+typedef struct sd_dns_resolver sd_dns_resolver;
+typedef struct sd_dhcp_server sd_dhcp_server;
+typedef struct sd_ndisc sd_ndisc;
+typedef struct sd_radv sd_radv;
+typedef struct sd_dhcp6_client sd_dhcp6_client;
+typedef struct sd_dhcp6_lease sd_dhcp6_lease;
+typedef struct sd_lldp_tx sd_lldp_tx;
+typedef struct sd_lldp_rx sd_lldp_rx;
+typedef struct sd_lldp_neighbor sd_lldp_neighbor;
+
+typedef struct ICMP6Packet ICMP6Packet;
+
+enum ENUM_TYPE_S64(sd_varlink_method_flags_t);
+enum ENUM_TYPE_S64(sd_varlink_interface_flags_t);
+enum ENUM_TYPE_S64(sd_varlink_symbol_type_t);
+enum ENUM_TYPE_S64(sd_varlink_field_type_t);
+enum ENUM_TYPE_S64(sd_varlink_field_direction_t);
+enum ENUM_TYPE_S64(sd_varlink_field_flags_t);
+enum ENUM_TYPE_S64(sd_varlink_idl_format_flags_t);
+enum ENUM_TYPE_S64(sd_varlink_reply_flags_t);
+enum ENUM_TYPE_S64(sd_varlink_server_flags_t);
+enum ENUM_TYPE_S64(sd_varlink_invocation_flags_t);
+
+typedef enum sd_varlink_method_flags_t sd_varlink_method_flags_t;
+typedef enum sd_varlink_interface_flags_t sd_varlink_interface_flags_t;
+typedef enum sd_varlink_symbol_type_t sd_varlink_symbol_type_t;
+typedef enum sd_varlink_field_type_t sd_varlink_field_type_t;
+typedef enum sd_varlink_field_direction_t sd_varlink_field_direction_t;
+typedef enum sd_varlink_field_flags_t sd_varlink_field_flags_t;
+typedef enum sd_varlink_idl_format_flags_t sd_varlink_idl_format_flags_t;
+typedef enum sd_varlink_reply_flags_t sd_varlink_reply_flags_t;
+typedef enum sd_varlink_server_flags_t sd_varlink_server_flags_t;
+typedef enum sd_varlink_invocation_flags_t sd_varlink_invocation_flags_t;
+
+typedef struct sd_varlink sd_varlink;
+typedef struct sd_varlink_server sd_varlink_server;
+typedef struct sd_varlink_field sd_varlink_field;
+typedef struct sd_varlink_symbol sd_varlink_symbol;
+typedef struct sd_varlink_interface sd_varlink_interface;
+
+typedef struct sd_journal sd_journal;
+
+typedef struct sd_resolve sd_resolve;
+typedef struct sd_resolve_query sd_resolve_query;
+
+typedef struct sd_hwdb sd_hwdb;
index bcbbf7853fd8aa1c7331f7d26df9e0cdcc47b5a0..983eddd188b0fb80059532e3789e03e6fa74b428 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "sd-forward.h"
 
 typedef enum MatchInitializedType {
         MATCH_INITIALIZED_NO,     /* only devices without a db entry */
index d72cbab7e8cc8f859551ccff087e4896ad3cfa0a..8c71aa530eb2b543e30fd225beea409393fec884 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "sd-forward.h"
 
 int update_match_strv(Hashmap **match_strv, const char *key, const char *value, bool clear_on_null);
 bool device_match_sysattr(sd_device *device, Hashmap *match_sysattr, Hashmap *nomatch_sysattr);
index 1f9cf59d512230654fe80f7dbfcf11a4995e239e..e85ac9e05e3b80457f681a9974c8c1748e76e4b5 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "sd-device.h"
 
-#include "forward.h"
+#include "sd-forward.h"
 #include "iterator.h"
 
 #define LATEST_UDEV_DATABASE_VERSION 1
index 309d4979e22bcfe302f0f5f1769dcb7bca42d774..4582108df6163c5428db5a815485e69e609aae27 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "sd-forward.h"
 
 typedef enum MonitorNetlinkGroup {
         MONITOR_GROUP_NONE,
index 5e75c2661914eb9a04ea67f485979d0fb7115ff3..74d6ffd11923c4165b166b593bdd1e11d837e4d5 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "sd-device.h" /* IWYU pragma: export */
 
-#include "forward.h"
+#include "sd-forward.h"
 
 int device_new_from_mode_and_devnum(sd_device **ret, mode_t mode, dev_t devnum);
 int device_new_from_nulstr(sd_device **ret, char *nulstr, size_t len);
index 136d399d7eb84a3ad779a9a6efaa0fd6ba7ec794..3bbe321f61649df655608e3212c4928a4e4d2054 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "sd-device.h"
 
-#include "forward.h"
+#include "sd-forward.h"
 #include "log.h"
 
 #define device_unref_and_replace(a, b)                                  \
index 7f6d5b8b50eff6e423dfd63cfe26000cb0618e17..e4dc456fae8ea1fbbbf10586a4b886da73629729 100644 (file)
@@ -6,7 +6,7 @@
 
 #include "sd-event.h"
 
-#include "forward.h"
+#include "sd-forward.h"
 #include "inotify-util.h"
 #include "list.h"
 #include "ratelimit.h"
index 7cc56a38d889501b3000d53552f37fa4bdb32080..dc3b3ed70ff1280d7a35ec43358b8fe9ca1841d6 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "sd-event.h"
 
-#include "forward.h"
+#include "sd-forward.h"
 
 extern const struct hash_ops event_source_hash_ops;
 
index 65c810416a2ef0885dea63e88f2a631380568d4d..72b2f777c8479f614d071dd4eb718172b493664c 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <sys/stat.h>
 
-#include "forward.h"
+#include "sd-forward.h"
 #include "iterator.h"
 #include "sparse-endian.h"
 
index 874fc9f4460e08648b6dcaf7459d1db708cb01f0..e64921e525823a550f4d4ab172bc5d8548644049 100644 (file)
@@ -4,7 +4,7 @@
 #include "sd-id128.h"
 
 #include "errno-util.h"
-#include "forward.h"
+#include "sd-forward.h"
 
 bool id128_is_valid(const char *s) _pure_;
 
index 85b4c47bb02b84bc5c85117e4e90f208c6140d9b..f9ed66fdf8be5867e7cfd3b602d35c423b0a7b6c 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <stdio.h>
 
-#include "forward.h"
+#include "sd-forward.h"
 
 const char* audit_type_to_string(int type);
 int audit_type_from_string(const char *s);
index b91bd188b5d16e609e102d17e6950703b4f7a15a..41dab41fbbd8d8c8f5712a04d34469004b052a1f 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "sd-forward.h"
 
 int catalog_import_file(OrderedHashmap **h, int fd, const char *path);
 int catalog_update(const char *database, const char *root, const char* const *dirs);
index f65c5f9e06aa62f52a5c5069895f41612910976a..7ad77136a73327443fed45b064138ff3ea9ae327 100644 (file)
@@ -7,7 +7,7 @@
  * Contact: fsprg@point-at-infinity.org
  */
 
-#include "forward.h"
+#include "sd-forward.h"
 
 #ifdef __cplusplus
 extern "C" {
index 21c69ad30b800e7bcc82d2eda18997d66dc0c1ee..3fa9caeaeb5479221f5ce143dbc26dd5cbc21652 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "sd-forward.h"
 #include "journal-file.h"
 
 int journal_file_append_tag(JournalFile *f);
index 96c193c3fda76b7d65108373d98546793e2b80da..f20c9a357a195618a9163f0307fa7ba94242236a 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "sd-id128.h"
 
-#include "forward.h"
+#include "sd-forward.h"
 #include "sparse-endian.h"
 
 /*
index f36db997449f4ba9c82f85205b8d3c2a08e8a9f3..472f91f546b6cd1c31f1057197c3144faeeb434d 100644 (file)
@@ -5,7 +5,7 @@
 #include <sys/stat.h>
 
 #include "compress.h"
-#include "forward.h"
+#include "sd-forward.h"
 #include "gcrypt-util.h"
 #include "journal-def.h"
 #include "mmap-cache.h"
index 15dc934db0f0167058df63bb9307b627a4324540..f0a30439748543fd729a32c069bb84a196b9eef3 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "journal-file.h"
 #include "list.h"
-#include "forward.h"
+#include "sd-forward.h"
 #include "time-util.h"
 
 #define JOURNAL_FILES_MAX 7168u
index e134a9d4b90aef5275e91683f99c4fd06cc54246..a9ded061d3b7cc5291dc4133201c672c1ee87208 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "sd-forward.h"
 
 int journal_directory_vacuum(const char *directory, uint64_t max_use, uint64_t n_max_files, usec_t max_retention_usec, usec_t *oldest_usec, bool verbose);
index e4709490e20af82459e24f26522f471a184156df..1c5a6e34076aec054b4ab2045e6d461b2e77f05f 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LicenseRef-lookup3-public-domain */
 #pragma once
 
-#include "forward.h"
+#include "sd-forward.h"
 
 uint32_t jenkins_hashword(const uint32_t *k, size_t length, uint32_t initval) _pure_;
 void jenkins_hashword2(const uint32_t *k, size_t length, uint32_t *pc, uint32_t *pb);
index bdd34945890546242db264cf0767b973fd206ad1..6361e52d0969ae1c6c945d8aad5a7ff0bedf05e5 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "sd-forward.h"
 #include "journal-def.h"
 
 typedef struct MMapCache MMapCache;
index d42d1c6be5b992eaa822edb50581bbc399956c83..badd88ac3cec7f550c99bf0dbb9a522886bfb53c 100644 (file)
@@ -2,7 +2,7 @@
 
 #pragma once
 
-#include "forward.h"
+#include "sd-forward.h"
 
 /* This header should include all prototypes only the JSON parser itself and
  * its tests need access to. Normal code consuming the JSON parser should not
index abacb298c6d69c9f715a6ffce80e51de958a3168..d0db4d8035a93b41a0be41d0b535910f00a2929a 100644 (file)
@@ -5,7 +5,7 @@
 
 #include "sd-json.h"
 
-#include "forward.h"
+#include "sd-forward.h"
 #include "log.h"
 #include "string-util.h"
 
index ea9135ac32a00b10ac7473bedfb5e7f0a489ea6b..26b2ae1cf99b5b4b4572d007fddc69fc29271cc6 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "sd-forward.h"
 
 #define CTRL_GENL_NAME "nlctrl"
 
index 479bb07ffb355c76004f733a0442f2cf3bd3b396..888637c3721fd8e169642513c22b31e947cee9f4 100644 (file)
@@ -4,7 +4,7 @@
 #include <linux/netlink.h>
 #include <sys/socket.h>
 
-#include "forward.h"
+#include "sd-forward.h"
 #include "list.h"
 #include "netlink-types.h"
 
index 9ed1746b61912e484a5b1ec0c1d42d96abca8a9d..85f12013d90bbb1f7bfdad8a215dec3db4399d60 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "sd-forward.h"
 #include "netlink-internal.h"
 
 int netlink_slot_allocate(
index 99d1246ef6dccae7711065863e571d77741745b4..c11e5d9ec001b52a2e099b4ba6f07d7161d99191 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "sd-forward.h"
 
 typedef enum NLAType {
         NETLINK_TYPE_UNSPEC,                    /* NLA_UNSPEC */
index a25e38d4732437d6ed57eec5f193f74437613064..b84018f1bce09c3cd0c6de7903cd6355e4323e44 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <linux/rtnetlink.h>
 
-#include "forward.h"
+#include "sd-forward.h"
 #include "in-addr-util.h"
 
 #define RTA_FLAGS(rta) ((rta)->rta_type & ~NLA_TYPE_MASK)
index 84ae36ad367cc5b7e92b098a77aa74dc71099a35..818c7f73bbfffe60f85cc9330bbc4789ceccecac 100644 (file)
@@ -4,7 +4,7 @@
 #include <sys/socket.h>
 
 #include "constants.h"
-#include "forward.h"
+#include "sd-forward.h"
 
 #define NETWORK_DIRS ((const char* const*) CONF_PATHS_STRV("systemd/network"))
 #define NETWORK_DIRS_NULSTR CONF_PATHS_NULSTR("systemd/network")
index b706e1a6dff918d4f952d696f2ab0cfd6715bd59..f996dcc2a6b83787e783e5965c2a881408500ef7 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "sd-path.h"
 
-#include "forward.h"
+#include "sd-forward.h"
 #include "runtime-scope.h"
 
 typedef enum LookupPathsFlags {
index 0640a269959b7cf8a390af9edfa8c90710cf560c..07a6edbfef06970f3bdb26286dfbd47ab68d91ad 100644 (file)
@@ -4,7 +4,7 @@
 #include "sd-varlink.h"
 #include "sd-varlink-idl.h"
 
-#include "forward.h"
+#include "sd-forward.h"
 
 bool varlink_idl_field_name_is_valid(const char *name);
 bool varlink_idl_symbol_name_is_valid(const char *name);
index ef848243738c7ee36029ba8190acf42e89533ff1..8041a30a5ea8ee1f468ab69fe08b073d014707fd 100644 (file)
@@ -6,7 +6,7 @@
 #include "sd-varlink.h"
 
 #include "list.h"
-#include "forward.h"
+#include "sd-forward.h"
 
 typedef enum VarlinkState {
         /* Client side states */
index 3a340b221653d8260fac3a5dd6658c68c9fb7531..c57bea07e05275e6403e097b1d52f4ac2df64d25 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "sd-varlink.h"
 
-#include "forward.h"
+#include "sd-forward.h"
 
 int varlink_get_peer_pidref(sd_varlink *v, PidRef *ret);
 
index c8729730917e14faea4d076caeb3de6a86f69424..230d1e970318ea16e9016a748dc735972c7297d5 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "libudev.h"
 
-#include "forward.h"
+#include "shared-forward.h"
 
 struct udev_device;
 
index efe394d1fd55c99beaa7a62699afd046011390bf..94dbd3ca096e20a673f284ef4bc30b1df48e75ea 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "libudev.h"
 
-#include "forward.h"
+#include "shared-forward.h"
 
 struct udev_list;
 
index 5ee9ebd03e463b02f65538cb5219d0370d5762b7..e6506768517df7855fe9a75b796f553f163af260 100644 (file)
@@ -2,7 +2,7 @@
 
 #include "libudev.h"
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "device-nodes.h"
 
 /**
index eb899f9f1dd3d47ca1216e672e201cd88ef038ee..041a14120f877dd929b1b9774e50d72c0868eba1 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "libudev.h"
 
-#include "forward.h"
+#include "shared-forward.h"
 
 /* Cleanup functions */
 DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev*, udev_unref);
index 888313b001283c44909fb2bbe20aaf83419f3995..35f86d66e37cb1e223c8ba04d7d592974c2f257e 100644 (file)
@@ -4,7 +4,7 @@
 #include <sys/stat.h>
 #include <syslog.h>
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "locale-setup.h"
 #include "vconsole-util.h"
 
index 7d4071fd79d2c5115036fb40f80f386d9c05f23c..1a709ae50c03e0c78d6ba51f7f3f442e5b076cce 100644 (file)
@@ -2,7 +2,7 @@
 #pragma once
 
 #include "dlfcn-util.h"
-#include "forward.h"
+#include "shared-forward.h"
 
 #if HAVE_XKBCOMMON
 #include <xkbcommon/xkbcommon.h>
index 308749b81f3a5857cdd96f64163f823536aaecb6..e9b9ebce376d1eaf68ddac9db73854f0237fa8fd 100644 (file)
@@ -2,7 +2,7 @@
 #pragma once
 
 #include "conf-parser-forward.h"    /* IWYU pragma: export */
-#include "forward.h"                /* IWYU pragma: export */
+#include "shared-forward.h"         /* IWYU pragma: export */
 
 typedef enum InhibitWhat InhibitWhat;
 typedef enum KillWhom KillWhom;
index f41b8888ea3edaea27eb6b350c2edd6771f42a2b..d3773996fa5d368054a145292eda8f376a266fe2 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "list.h"
 #include "logind-forward.h"
 #include "time-util.h"
index 0864419877ecead636172348c24a2a2a46177504..fe4420c6249adaeeecfc73de1d193e71d1349a35 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "output-mode.h"
 
 int show_sysfs(const char *seat, const char *prefix, unsigned columns, OutputFlags flags);
index e01550b25bae9f0cf6e5acf4b77effc61c06d2f5..ff7b98fc45c6adb2074b8cdb763d4382f7eac61a 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h" /* IWYU pragma: export */
+#include "shared-forward.h" /* IWYU pragma: export */
 
 typedef struct Machine Machine;
 typedef struct Manager Manager;
index 06bd15f09a182160755e9ed2d2080b7abe015b30..457ec0e6f20baeadd36f765a64f7d9a04434a601 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "ratelimit.h"
 
 #define MOUNTFS_WORKERS_MIN 3
index 287769fa8338e7219b4fe777e9a59f5c408c4a77..0b9ef0461daab5b5a1adb300abdcdfbd82b40941 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright © 2020 VMware, Inc. */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "netdev.h"
 
 typedef enum BareUDPProtocol {
index df6183e27c84e7a07f53baea1663b08973a7756b..20d6e8c6e0ced6c9b14579a5b51cf48daa7ab04a 100644 (file)
@@ -4,7 +4,7 @@
 
 #include <linux/batman_adv.h>
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "netdev.h"
 
 #define BATADV_GENL_NAME "batadv"
index 8ae0c9650f06dba7697ffce43a86a9d93df6c21d..fa799047c7a8ca5d0513d996ed1350f88c7df8d7 100644 (file)
@@ -2,7 +2,7 @@
 #pragma once
 
 #include "bond-util.h"
-#include "forward.h"
+#include "shared-forward.h"
 #include "netdev.h"
 
 typedef struct Bond {
index 1949f5ccd72cbc69bc4c2ec2502e35ad619c7cdb..4279c74517b2461c507d091b68fb00c6e4b1e8af 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "netdev.h"
 
 #define LINK_BRIDGE_PORT_PRIORITY_INVALID 128U
index 725f4583991822093a036ab073778ea1aae245ab..5ee79b64968c50dde08b3c2c4518663530076ee6 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "netdev.h"
 
 typedef struct Dummy {
index 0a8fabec5e56c6ef8b41b0aad6ff7260b1a5f82e..6dc051adbb5e44455959f0a8ed6e6bba5f3e416f 100644 (file)
@@ -4,7 +4,7 @@
 #include <linux/fou.h>
 
 #include "in-addr-util.h"
-#include "forward.h"
+#include "shared-forward.h"
 #include "netdev.h"
 
 typedef enum FooOverUDPEncapType {
index 9ad8eeaebb5762b56edbdffb2287672ce5f665b7..5a03830d98efc43ce14f3413651dbd2a44f90960 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <linux/if_link.h>
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "in-addr-util.h"
 #include "netdev.h"
 
index 2c4d2806fa777f88660048300564f07aa058c007..885791b20ef35e30107f14dd5ad6b6da32f0661a 100644 (file)
@@ -4,7 +4,7 @@
 #include <linux/l2tp.h>
 
 #include "in-addr-util.h"
-#include "forward.h"
+#include "shared-forward.h"
 #include "netdev.h"
 
 typedef enum L2tpL2specType {
index 3060a9a47c8fa3a842755f232325be428525e9e2..09def58d964ea2ae8a3d1967ce37acb5503ed362 100644 (file)
@@ -4,7 +4,7 @@
 #include <linux/if_macsec.h>
 #include <net/ethernet.h>
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "netdev.h"
 #include "sparse-endian.h"
 
index 0f3af1efde1338faa172d277458a2f5317352e04..0d97a71f1e43788799c693b6f302e616b22183dd 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "fou-tunnel.h"
 #include "netdev.h"
 #include "networkd-link.h"
index 406f2c3f783c0a313ec4c6085021a7146840c294..e832b3dd5ae187e597ecefcbce3884b81c6d81ae 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "netdev.h"
 
 typedef struct TunTap {
index 073f21a9f3056ecc745aeb92ad0338914c2e79ee..48ee0e5428d79ac4fdf7ae4f2e16b071fc9df688 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "netdev.h"
 
 typedef struct VLan {
index 4b4ca79b602bbca9334ba364241285be80d03581..4c63a3048a1d45d0661bf5fb607f44220ce2e6c3 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <linux/nl80211.h>
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "netdev.h"
 
 typedef struct WLan {
index aafbca8939ec4f1b497bc41d5fb274d9e642ca97..c850c72833713213e20a0ef2699523114a4b2178 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "netdev.h"
 
 typedef struct Xfrm {
index e7950a59ac0af675d1490a9809b7bc11f630a38a..cfd0dd3de0122c4d3a6732620f83036e8f545022 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int dump_list(Table *table, const char *key, char * const *l);
 int ieee_oui(sd_hwdb *hwdb, const struct ether_addr *mac, char **ret);
index 1dfd910e35bda04e0a5623c7742220e32b930c62..cb0f3a9b168240fdaad16a4841d06cbe63285161 100644 (file)
@@ -6,7 +6,7 @@
 
 #include "ether-addr-util.h"
 #include "ethtool-util.h"
-#include "forward.h"
+#include "shared-forward.h"
 #include "in-addr-util.h"
 
 typedef struct VxLanInfo {
index abbab831330ba1cac5ad534d6e3b31da936f8fe1..2225fc3abdc532c85393dd43f108907c00ae56c7 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int dump_lldp_neighbors(sd_varlink *vl, Table *table, int ifindex);
 int link_lldp_status(int argc, char *argv[], void *userdata);
index a3292a85f0fc4674ef190ad65a4acba84476aca9..1c02aa38cec7c8ebcc5e1d95da30c866fe09756f 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int system_status(sd_netlink *rtnl, sd_hwdb *hwdb);
index c8e2be8cd517c1c32e693c68c67de6ed2e35e8f1..b2721f5ea2d83087e47dd72b8bdcdc652e143329 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int varlink_connect_networkd(sd_varlink **ret_varlink);
 bool networkd_is_running(void);
index 39c81e794705ac023db81a9323de9b92255d361b..e15f5249480bdd0323714545393ad6bcc8a20712 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "pager.h"
 
 extern PagerFlags arg_pager_flags;
index 0edac279faaf9e72457d2a2ef6388cc142693511..1304e41f8ccf34e464680a366429b387ad77bdb5 100644 (file)
@@ -2,7 +2,7 @@
 #pragma once
 
 #include "firewall-util.h"
-#include "forward.h"
+#include "shared-forward.h"
 #include "in-addr-util.h"
 #include "networkd-forward.h"
 #include "networkd-util.h"
index 0c60a4ad1b9cc9e5b51bf4d2dcec55f2373e5c20..b53235a8eb5b202c20a9ae2feca3145df8de0426 100644 (file)
@@ -8,7 +8,7 @@
 #include <linux/neighbour.h>
 #include <net/ethernet.h>
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "in-addr-util.h"
 #include "networkd-forward.h"
 
index b1b385f16a819b0dccfa2470ec07501c8e3294da..f004fc6a47a9548134f21bc85527ad62f9b21718 100644 (file)
@@ -2,7 +2,7 @@
 #pragma once
 
 #include "conf-parser-forward.h"    /* IWYU pragma: export */
-#include "forward.h"                /* IWYU pragma: export */
+#include "shared-forward.h"         /* IWYU pragma: export */
 
 typedef enum NetDevLocalAddressType NetDevLocalAddressType;
 typedef enum NetworkConfigSource NetworkConfigSource;
index 02e1a5a36335c45f976d3e73f1eede6a05b22000..5622677600242e3e9a9783d64716b8254afcf920 100644 (file)
@@ -4,7 +4,7 @@
 #include <linux/nl80211.h>
 
 #include "ether-addr-util.h"
-#include "forward.h"
+#include "shared-forward.h"
 #include "network-util.h"
 #include "networkd-bridge-vlan.h"
 #include "networkd-forward.h"
index 54c6c7cafe10b396164f8d3a45296e2400e928ba..0ff95c43bcbae9cd42f69a8e289ead3904342b07 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright © 2020 VMware, Inc. */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "qdisc.h"
 #include "tclass.h"
 
index 6aa06ed15c040a43b518c2c590d0a0c8d7e02ca1..2841d342c0ea05ebf479a0aaac435bc192f49827 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <linux/pkt_sched.h>
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "qdisc.h"
 
 typedef struct EnhancedTransmissionSelection {
index 41af459f53b36408cd3a6e8ebc6c149809346b3f..111a63caa9a35dfc49943cfa1594cf11f3a64fc7 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright © 2020 VMware, Inc. */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "qdisc.h"
 
 typedef struct FirstInFirstOut {
index ac9fe045ae1fe7beaeff219547c103b7bb667e4c..ab2a3e4e5ef8fff3a209d411a5d9616011a88f92 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright © 2019 VMware, Inc. */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "qdisc.h"
 
 typedef struct FairQueueingControlledDelay {
index b5acb78bac0eb56c3c26eb8e428423d0e71e6b6b..a287bf3435e4eb0af498254fd2e7428a934acabc 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright © 2020 VMware, Inc. */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "qdisc.h"
 
 typedef struct FlowQueuePIE {
index 35fa5099838de6874ac04965c8f14b934e2d4921..0f10641573266f0f854bb854ca4bfd2d3cef28c5 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright © 2019 VMware, Inc. */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "qdisc.h"
 
 typedef struct FairQueueing {
index c68e80db15e4618381f6e20326d071bdb5e5b1e2..6c87c2534ae621847d42d3010181ed557c566797 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright © 2020 VMware, Inc. */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "qdisc.h"
 
 typedef struct GenericRandomEarlyDetection {
index 466336692c43828a296a47a237b30226ad1fe418..59c09e6f0a4cbe84dacd13ad9a4d2117dbc84257 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright © 2020 VMware, Inc. */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "qdisc.h"
 
 typedef struct HeavyHitterFilter {
index e5897377a8b62aa6bb8c033a8981719fda9ff50f..5151f1a31d6e6e1d0efe3e7c5205da958a61741e 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "qdisc.h"
 #include "tclass.h"
 
index 3f0cbbb41412c6ad89e23c655c0a69d767c661eb..e9225165d46e81f2424b68471e50d02c74e0206a 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "mq.h"
 
 const QDiscVTable mq_vtable = {
index d963f886fe7b3f086cfff8d9c61766af4368b5c2..4df71589518e2c20f5c3cf2193f0b4cd6b0a855c 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "qdisc.h"
 
 typedef struct ClassfulMultiQueueing {
index 132ffdf34df1fcb0a1de56e4b04b0c0844dc6d27..0c54f2066df3150a43563fa1ea70eeb200a181ff 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "qdisc.h"
 
 typedef struct BandMultiQueueing {
index 3d5c7208c3e4dfd5a5361629ff00a3773f983c31..7f9e5c5789ff52b577762e8c06a8e2bb8c631c38 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright © 2019 VMware, Inc. */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "qdisc.h"
 
 typedef struct NetworkEmulator {
index 09e7ee4dddbf29fbd856be36bd31436947c7cfc7..714c1971827a92bd78647038dcad13558676e932 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright © 2020 VMware, Inc. */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "qdisc.h"
 
 typedef struct ProportionalIntegralControllerEnhanced {
index f476f346c4c68ce4e13e04fc41c9ffccf305821f..4c6dbb26002f73953692b4742747659647ac0a4f 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright © 2020 VMware, Inc. */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "qdisc.h"
 #include "tclass.h"
 
index e20d62fceb7c6a02349be98ea5d03ec03dce3d79..c46c1789eb1dcd4d2d6e3df3416ea690f4372fc9 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright © 2020 VMware, Inc. */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "qdisc.h"
 
 typedef struct StochasticFairBlue {
index 3fe6a270b1e74a412a15d3b31b84fbc0da873032..bca9f6ba05ac22877c3258ab5488327652f7e89a 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright © 2019 VMware, Inc. */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "qdisc.h"
 
 typedef struct StochasticFairnessQueueing {
index 173f01cdd6d0d3f8ff4fbadac471cdf67ecd56bf..86f460a2571fa0ec76b68e86d773a29df72d2f05 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright © 2019 VMware, Inc. */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "qdisc.h"
 
 typedef struct TokenBucketFilter {
index 5c2ab002b41689dfb1377e2ee77aab164987998b..d3a4bd173e08360749fddb387398c56bb0839f95 100644 (file)
@@ -4,7 +4,7 @@
 
 #include <linux/pkt_sched.h>
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int tc_init(double *ret_ticks_in_usec, uint32_t *ret_hz);
 int tc_time_to_tick(usec_t t, uint32_t *ret);
index 99abdc6e7f62024d7f875e910cb0d44a8051d0ef..6469946681ed7184f4c84fcb1731ff84bb543184 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "qdisc.h"
 
 typedef struct TrivialLinkEqualizer {
index 535c095137bd84c354b0dfd9ed6b0d18847c7ced..e865defaab6da83f5c4d62bfb2594b506669a027 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <sys/uio.h>
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef struct DNSServer {
         struct iovec addr;
index 20b1764cfb2ae3f3d9fe8ec92665d1173bda311b..6af89ad735f4e1f9ecdb752e20a912cb7e844293 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "network-util.h"
 
 typedef struct DNSConfiguration DNSConfiguration;
index 591552dc24cbbc0621e5ddf54bbad520e9dea35e..795aef251cd9807326d8749333cda14ef127cdee 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "network-util.h"
 
 typedef struct DNSConfiguration DNSConfiguration;
index d4154218c0f3ceb52eb3fba56aaf5fd2965dbecf..672c23b25126e803be5bac2c3e82c2b9661d5e50 100644 (file)
@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int bind_user_setup(const MachineBindUserContext *c, const char *root);
index 8d61513ad52f1ec166dd71b8274277e294b16b4d..ae565bf1e1f98c4d4a5a7b7bb7b382cb614405e7 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "nspawn-settings.h"
 
 int create_subcgroup(
index 3a1717946254dca709fdccbb07c3e83d0512e314..d68349bfde196fb03c2a20988365d057b29f8baf 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "list.h"
 
 typedef struct ExposePort {
index f049cf4aee5b9dac6811fedf8c26118cc4059073..421c5dffffde47cb95faeee1c261d8eb86a7d227 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "volatile-util.h"
 
 typedef enum MountSettingsMask {
index 692c40108cbb0c41ccb9f3741d77116f120650bb..d2234d2e3a272b930f365ecc3fc3d126d3d212cc 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <linux/if.h>
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int test_network_interfaces_initialized(char **iface_pairs);
 int resolve_network_interface_names(char **iface_pairs);
index cb97c33853d05f2297743f2adcffc0ea42b18548..7c30afbcce1d0f0a445cbbd07d6031b7c46d9bbe 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "nspawn-settings.h"
 
 int oci_load(FILE *f, const char *path, Settings **ret);
index c81e4dac4521b20095dd9d0934b0b1c4ab4f300d..c4b8048606251c52cb4e2a669d3d7423f77156ac 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "nspawn-settings.h"
 
 int register_machine(
index 03c378505d2d35a2f1962c2571d7c76a3ac5bb38..31520a09300d3659834d6c606b43e57c0039faab 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int setup_seccomp(uint64_t cap_list_retain, char **syscall_allow_list, char **syscall_deny_list);
index 5b36c2ad473e5a02e8c83acf9ad87373011c44ce..5d3891647d5409b973f8c26659bab83fe45710a9 100644 (file)
@@ -6,7 +6,7 @@
 #include "capability-util.h"
 #include "conf-parser-forward.h"
 #include "cpu-set-util.h"
-#include "forward.h"
+#include "shared-forward.h"
 #include "rlimit-util.h"
 #include "seccomp-util.h"
 #include "volatile-util.h"
index 740375a43e77d4f9a4e18c91638667591137faed..79d67266a83adbda963e226ab0f946b2ba427e97 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int change_uid_gid_raw(uid_t uid, gid_t gid, const gid_t *supplementary_gids, size_t n_supplementary_gids, bool chown_stdio);
 int change_uid_gid(const char *user, bool chown_stdio, char **ret_home);
index c7889583f4c1d7641721cef6dbd51a0867477176..620065b36cb1160151f0c4ffb5d12d94daa92610 100644 (file)
@@ -3,6 +3,6 @@
 
 #include "sd-id128.h"
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int stub_pid1(sd_id128_t uuid);
index 8f1e812087e60bf844827533feab6d803ac787a7..943b22db2d4d3dad465e5380e4eece4d7ed8329e 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int userns_lchown(const char *p, uid_t uid, gid_t gid);
 int userns_mkdir(const char *root, const char *path, mode_t mode, uid_t uid, gid_t gid);
index ce8d8c690a09b6c377b02331cd873b2a8698fbcb..9acb619e9ff2b62036cc2de459b66f06b34d0664 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "ratelimit.h"
 
 #define NSRESOURCE_WORKERS_MIN 5
index c1e7c9f1f5a8966d8f601dee7168cd2d2be61c34..9d6b398b65611e15003885b74343d30e20529fab 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 #define USER_NAMESPACE_CGROUPS_DELEGATE_MAX 16U
 #define USER_NAMESPACE_NETIFS_DELEGATE_MAX 16U
index a1a29ba8f6728e9efe356d96a9e9c9ae346262cd..0246b4600e6c9b88f7bdaa584a91ee2289fb66fc 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 #if HAVE_VMLINUX_H
 #include "bpf/userns-restrict/userns-restrict-skel.h"
index 054bd4030551503761798d92de86abfbc96cb96d..e8c6c596154f38e4ba4691dab0c84fb6f9672618 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int _nss_systemd_block(bool b);
 bool _nss_systemd_is_blocked(void);
index 840329312d2e4b03ed0967655275f8d52922db85..a7205518e2f0d39f3559067b06c192f805bd5503 100644 (file)
@@ -5,7 +5,7 @@
 #include <nss.h>
 #include <pwd.h>
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "userdb.h"
 
 UserDBFlags nss_glue_userdb_flags(void);
index 70c473f15be559c73d89a02f37eb134aad3e4a5d..5147c5beff9b8bdd105f771187a4585c21a0fbe6 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 extern const BusObjectImplementation manager_object;
index 311250c6f35f31037b0bff47762a973093c74dc7..016460a7191ad73cb2b75dc0df8f3364259bc53a 100644 (file)
@@ -2,7 +2,7 @@
 #pragma once
 
 #include "conf-parser-forward.h"
-#include "forward.h"
+#include "shared-forward.h"
 #include "oomd-util.h"
 
 /* Polling interval for monitoring stats */
index cfb310ff32ce9f39af2160553c899b230083185c..a94d5c0d05536f453e7cb74c85cdf7eb9a0a69b6 100644 (file)
@@ -2,7 +2,7 @@
 #pragma once
 
 #include "cgroup-util.h"
-#include "forward.h"
+#include "shared-forward.h"
 #include "psi-util.h"
 
 #define DUMP_ON_KILL_COUNT 10u
index f87775e4bbff694029cb322c60fefcc854ea1ec2..7ec045793b87477ef0c81552630d7c8d736a1b9b 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "tpm2-event-log.h"
 
 int validate_firmware_event(
index e83ff9a787aa79a712e7a48934453f86e21e19b3..e001ba7795a88865fa13fbd29c44b6af7dd65ff9 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "runtime-scope.h"
 #include "string-util.h"
 
index 047a58e9a73a623193897348a1d45d85f173ef52..7dc8fee923328605a4a6e916e767af1c6e5e20bb 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h" /* IWYU pragma: export */
+#include "shared-forward.h" /* IWYU pragma: export */
 
 typedef struct Manager Manager;
 typedef struct Operation Operation;
index 683c7ee6efc688e6fe2b11702ef1ea530ac083b3..7c1dbf65d9c78417be4ba6e97400a8e3535d3806 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 /* DNS record types, taken from
  * http://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml.
index c6ec00816997cf11da12015e8c8dc6fe1a68792e..6752060cdfa7492e66717fe9ec30cbe25a4e9e9c 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum ExecutionMode {
         MODE_RESOLVE_HOST,
index f5f78ab65cddd8a9fc754b89224f8ea11b9a6e55..c1a5365090136bf4e30ff3fc85dc21b4eea4f1f9 100644 (file)
@@ -2,7 +2,7 @@
 #pragma once
 
 #include "dns-def.h"
-#include "forward.h"
+#include "shared-forward.h"
 #include "list.h"
 #include "ratelimit.h"
 #include "resolve-util.h"
index efc8de2f0a3213bdfaf3c87d82e4524acfb7dde7..0eaac0033206aeb3a30bca9d4ac75db038acccbf 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "in-addr-util.h"
 #include "list.h"
 #include "resolved-conf.h"
index 91f65e446a4ae261c15f9d4e2d0df10792b269fc..6c932f5e847f2c4d17ba25bea79f1bfc6090a8ac 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "list.h"
 #include "resolved-dns-packet.h"
 #include "resolved-dnstls.h"
index 04fd506cf451d873512e11814999c86a06c54b55..882e5a81b3df3bff89539f1f788b9611e470503b 100644 (file)
@@ -2,7 +2,7 @@
 
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 extern const BusObjectImplementation dnssd_object;
 
index e5be2fe939ab67c312b5186fd805e677dbc7c4c5..9a79734847ad2957f6178e9b0467eb08ea93b1c2 100644 (file)
@@ -2,7 +2,7 @@
 #pragma once
 
 #include "conf-parser-forward.h"    /* IWYU pragma: export */
-#include "forward.h"                /* IWYU pragma: export */
+#include "shared-forward.h"         /* IWYU pragma: export */
 
 typedef enum DnsAnswerFlags DnsAnswerFlags;
 typedef enum DnsCacheMode DnsCacheMode;
index 67ef4a86fa619ebcc9d8864364ad96d7fdeb14f7..47a25abd44873246c490bfbfbe35a8d81799f25d 100644 (file)
@@ -4,7 +4,7 @@
 #include <sys/stat.h>
 
 #include "common-signal.h"
-#include "forward.h"
+#include "shared-forward.h"
 #include "list.h"
 #include "resolve-util.h"
 #include "resolved-dns-browse-services.h"
index c1df94c2f995b62b6d12081f1bc1be60cf48dbd0..95d5499a8e061e4e36749b7992d3165c7a105738 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <openssl/asn1t.h>
 
-#include "forward.h"
+#include "shared-forward.h"
 
 #define SPC_INDIRECT_DATA_OBJID "1.3.6.1.4.1.311.2.1.4"
 #define SPC_PE_IMAGE_DATA_OBJID "1.3.6.1.4.1.311.2.1.15"
index 54eba92f38e76f4166cbec688b96289e2eb9ce9a..a15790b94d288ffb2b94c113f74018c8ad1856ab 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int fd_acl_make_read_only_fallback(int fd);
 int fd_acl_make_writable_fallback(int fd);
index 167813a462aca240515e706f61f68a18578d8efa..c59ef4dfbf572e751cf027f161de8e0e703bdeef 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int acpi_get_boot_usec(usec_t *ret_loader_start, usec_t *ret_loader_exit);
index 3d9df43c714b41d4c7a9a09fc91a916853f8cc8b..52f8f7834cf713d3a7511d323eefe6dc13157bad 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 #if HAVE_APPARMOR
 #  include <sys/apparmor.h>
index 610f910905f60813dfff9be6b81e85c09486bf7f..3b2e14bc651cc29e16adef9c22a559d768f2c0d6 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int ask_password_agent_open(void);
 void ask_password_agent_close(void);
index a470caf5da8f435c9058602564d43508b931e6b9..5ea37f04d60a98b32b6ba16e92fdba50b11b910e 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum AskPasswordFlags {
         ASK_PASSWORD_ACCEPT_CACHED = 1 << 0,  /* read from kernel keyring */
index d887a4ca5512ce24228f04be2c45bf65ce39e63f..2088876c83236414df267a0d81a746378425b0e7 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 /* These functions implement various potentially slow operations that are executed asynchronously. They are
  * carefully written to not use pthreads, but use fork() or clone() (without CLONE_VM) so that the child does
index 0be490bd5458ad1a832d0aa31cd61156d85115cc..9d100e5504eb92913ef06be578a3264a61a7ea00 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 /* See source file for an API description. */
 
index 5c5aa573ef05156089c46520f8b61920021d954c..9ea10622137c0a8ebcbf00d4b5269df69f639ebd 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int base_filesystem_create_fd(int fd, const char *root, uid_t uid, gid_t gid);
 int base_filesystem_create(const char *root, uid_t uid, gid_t gid);
index 3c39fc76c9aee5687900ed6b9b9796b2354d1e76..35e22d96ec7494909d781723c35798d5952578d2 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int on_ac_power(void);
 
index a12451ca0e7c5d4d4147c59bea208798231447a8..a5199f746be4ba620190bf152bf6f7cfd3d39a1b 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "iterator.h"
 
 typedef struct Bitmap {
index e1202590dcfc5ace4d29e132d6b6002ea22fbade..09502eadc4e9a50731bca77d08eec4c321696be9 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 #if HAVE_BLKID
 
index d03daffc3d8c220c130996bee30225a393474ae3..f1f1bc99497afe0f13d1633aabd2c3ee723b8951 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum BlockDevListFlags {
         BLOCKDEV_LIST_SHOW_SYMLINKS              = 1 << 0, /* Pick up symlinks to block devices too */
index 8bb890aefbbc21cc7f0b4746e4ab67b07b731ca9..87b40054da94523d8de7f72b327a097b5aea5f3a 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <sys/sysmacros.h>
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "stdio-util.h"
 
 #define SYS_BLOCK_PATH_MAX(suffix)                                      \
index 11fefedc27c8bd4a39ce423e98968f4b9774c6c1..0830c31d84292f2c2077ddd98365e6f92aaddecb 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <linux/if_bonding.h>
 
-#include "forward.h"
+#include "shared-forward.h"
 
 /*
  * Maximum number of targets supported by the kernel for a single
index 71260d4ff7b35ee2b5fcfa6473ba92411b217032..41f8a09faf507e90d25c1e2ac30682a84df30a64 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "sd-id128.h"
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum BootEntryTokenType {
         BOOT_ENTRY_TOKEN_MACHINE_ID,
index 9ccbeb2c04787c17595c8d76fb4e58a590ddb596..84cb5606824aa4da5aeed3c218a216e4b277c95f 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int boot_timestamps(const dual_timestamp *n, dual_timestamp *firmware, dual_timestamp *loader);
index b8521f61f2f42bb55a7862f57e00801782c5670b..f1bb79f08f128b472e31caa8aec92b581db4930f 100644 (file)
@@ -2,7 +2,7 @@
 
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum BootEntryType {
         BOOT_ENTRY_TYPE1,     /* Boot Loader Specification Type #1 entries: *.conf files */
index 3a985738ec78d6c1a96b6fd2abd482649a592968..ecae89003543638eed58ea5e4c04c95bc67918ee 100644 (file)
@@ -10,7 +10,7 @@
 
 #include "bpf-compat.h" /* IWYU pragma: export */
 #include "dlfcn-util.h"
-#include "forward.h"
+#include "shared-forward.h"
 
 extern DLSYM_PROTOTYPE(bpf_link__destroy);
 extern DLSYM_PROTOTYPE(bpf_link__fd);
index acd64f88eb7794b03e2ac6879852791262476278..efc3cb9850eae6f8b2c7bd4fd06a510566096be3 100644 (file)
@@ -5,7 +5,7 @@
 
 #include <bpf/libbpf.h>
 
-#include "forward.h"
+#include "shared-forward.h"
 
 bool bpf_can_link_program(struct bpf_program *prog);
 
index 3b3aae4a75b61baf2598e8cf51086e27ddf0232f..4156bc8760f78b3566c9d36dac28bc6a4d4c5a2f 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 /* This encapsulates three different concepts: the loaded BPF program, the BPF code, and the attachment to a
  * cgroup. Typically our BPF programs go through all three stages: we build the code, we load it, and finally
index c23a3acf0694b6666098908f6aacc9903c1722e9..245657a226538b8588f425fef0320975762a2c2f 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <linux/if_bridge.h>
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum BridgeState {
         NETDEV_BRIDGE_STATE_DISABLED   = BR_STATE_DISABLED,
index d002618bd80fd7c04a7a1571750f42d031d112ea..0d90ea2739138d6176218b0fc977914d0d3f7df0 100644 (file)
@@ -4,7 +4,7 @@
 #include "sd-id128.h"
 
 #include "btrfs.h"      /* IWYU pragma: export */
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef struct BtrfsSubvolInfo {
         uint64_t subvol_id;
index c6f0b73bd4fdc00d4d2d95f515898ca003999c2c..b3d77867a70d692e6b3895014bdac2acf5661398 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "sd-bus.h"
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int bus_property_get_bool(sd_bus *bus, const char *path, const char *interface, const char *property, sd_bus_message *reply, void *userdata, sd_bus_error *reterr_error);
 int bus_property_set_bool(sd_bus *bus, const char *path, const char *interface, const char *property, sd_bus_message *value, void *userdata, sd_bus_error *reterr_error);
index 9b0ac397750f2b8cbf67a42eaefb57c93964b792..adb43f8a5ee6ce22bd5c82dc6d1a50ed1bfbe566 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef struct BusLocator {
         const char *destination;
index 33453216ea138345fbfd66a20d0437c42b95f188..35f9251d3194d1d1c6c5578a957f81b060243212 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 extern const BusObjectImplementation log_control_object;
 
index e019266ac228bddd740aa45339cb63bcec6c75d8..834374ce970ab35a7529fdbc7fd225e4ddb3a6f8 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef int (*bus_property_set_t)(sd_bus *bus, const char *member, sd_bus_message *m, sd_bus_error *reterr_error, void *userdata);
 
index 4e8fb4d4e50e9fbcb94d38f046a7dcdb663a5a74..1e6d25e8b2f654305314f23b9987e814d3d40817 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int bus_message_read_id128(sd_bus_message *m, sd_id128_t *ret);
 
index 85d8a4d9d9d0c28459792532680847694af8c837..a3dbae80ae2ceb9b6550744bbd678101b6144f34 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef struct BusObjectVtablePair {
         const sd_bus_vtable *vtable;
index 86e499e03d8e6add5675495edabb732c4acf9926..9ce8de4f0227b429a4da770c22c72fe01794d883 100644 (file)
@@ -4,7 +4,7 @@
 #include "sd-json.h"
 #include "sd-varlink.h"
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum PolkitFlags {
         POLKIT_ALLOW_INTERACTIVE = 1 << 0, /* Allow interactive auth (typically not required, because can be derived from bus message/link automatically) */
index 16433de9bc837808fa40a75515c6983dbd327b4a..507188771ef1b030ea44c9ec5a84a6f9bb0509e7 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum BusPrintPropertyFlags {
         BUS_PRINT_PROPERTY_ONLY_VALUE = 1 << 0,  /* e.g. systemctl --value */
index f2665ad79b19088a0c4bbd19aed4e30765805227..22406046f7f80334155c9bbc18f4117488434f86 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int unit_show_processes(sd_bus *bus, const char *unit, const char *cgroup_path, const char *prefix, unsigned n_columns, OutputFlags flags, sd_bus_error *reterr_error);
index c07a704414a967e79f9a6ee10b1717cf4a910780..88095be27e540ba622109ab7f907a6ebe85565b1 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum ExecDirectoryFlags {
         EXEC_DIRECTORY_READ_ONLY      = 1 << 0, /* Public API via DBUS, do not change */
index 1b9d9e447b76d4d42d15ab40e6a4ea5943648ee1..b14f93d1bb50554b3aba40b18c9f6d1cb2d7f7b6 100644 (file)
@@ -4,7 +4,7 @@
 #include "sd-bus.h" /* IWYU pragma: export */
 
 #include "log.h"
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum BusTransport {
         BUS_TRANSPORT_LOCAL,
index bce4f25ac20d8cdb196bd31f8ea83ed9fe54b2bf..125a2e9ea8982e996ce5ea9fe2bec04298d1f96d 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef struct BusWaitForJobs BusWaitForJobs;
 
index eed7fd1f4b47c7baac9058bfd2fe441285ac64f1..b563249897fd2fbaaf3d8483f85ec6cc06deb163 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef struct BusWaitForUnits BusWaitForUnits;
 
index 2289d9cfed1e340999c547f1c09225307fdf9e00..ce76a7c1c624029cf37042a57c081ab8425889d5 100644 (file)
@@ -4,7 +4,7 @@
 /* A structure for specifying (possibly repetitive) points in calendar
  * time, a la cron */
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef struct CalendarComponent {
         int start;
index 4cc5c9f4cc212b95a299b42fed432ae250c9d511..33802c3624f0c1848c851540b18c3bf3b27d0266 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int cg_weight_parse(const char *s, uint64_t *ret);
 int cg_cpu_weight_parse(const char *s, uint64_t *ret);
index 9dd81d5933474488a0c11fa6155764afd219c87d..ecff0298ae515e5dfb16bd70dd935272afe87c69 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int show_cgroup_by_path(const char *path, const char *prefix, size_t n_columns, OutputFlags flags);
 int show_cgroup(const char *controller, const char *path, const char *prefix, size_t n_columns, OutputFlags flags);
index 8bf8a80d6b3203874a094a8ca1530010f73f1144..55605c4a76a0191617b1bd100072b6d03b08883f 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int path_chown_recursive(const char *path, uid_t uid, gid_t gid, mode_t mask, int flags);
 
index a1f8b9ec638a773ee1f613fb9863cb5c1b68ab39..43f9ec68730434d6e7445192a0c159e7e4d82af2 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int clean_ipc_internal(uid_t uid, gid_t gid, bool rm);
 
index 1816b7971c06cee7d0192e89360012c156b1c301..ff1de1f90c7a2c451d6e6a835f53d3cdd1c0efbf 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 void rgb_to_hsv(double r, double g, double b,
                 double *ret_h, double *ret_s, double *ret_v);
index 07bc4c5f000af61a695e951e58208015ec1c16a6..fabe94370e51f48ed8dbbb45b2d060e878260bb9 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <syslog.h>
 
-#include "forward.h"
+#include "shared-forward.h"
 
 /* All our long-running services should implement a SIGRTMIN+18 handler that can be used to trigger certain
  * actions that affect service runtime. The specific action is indicated via the "value integer" you can pass
index aa19835fd0dfc8d94d0a4d994694162c28decaec..6f934a4a882a10bfcba99667e80bfe28f106158b 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 #define COMPARE_OPERATOR_CHARS "!<=>"
 #define COMPARE_OPERATOR_WITH_FNMATCH_CHARS COMPARE_OPERATOR_CHARS "$"
index 90d896c85ce2a7fec9828f11037ad405866d440a..a258db6a8e83ce4c896b976e0898152162f14cb6 100644 (file)
@@ -2,7 +2,7 @@
 #pragma once
 
 #include "list.h"
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum ConditionType {
         CONDITION_ARCHITECTURE,
index 2f1b5ffecc6bf2cce4b3a3d2fbefb9594901cd09..ecc432ec410543a7eb2de9828749a7310341725f 100644 (file)
@@ -5,7 +5,7 @@
 
 #include "alloc-util.h"
 #include "conf-parser-forward.h"
-#include "forward.h"
+#include "shared-forward.h"
 #include "log.h"
 
 /* An abstract parser for simple, line based, shallow configuration files consisting of variable assignments only. */
index a818510e1c359581c0cb80cd6ca4cf221cf950e4..d4b131d10259a871fc6f9b2cce3b24084e93e32e 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum CopyFlags {
         COPY_REFLINK                      = 1 << 0,  /* Try to reflink */
index a39c9286eb938aa8881b47c4a2789029c1b6f3c0..77010d2779e482b5495a4f164f5527368d4737f9 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum CoredumpFilter {
         COREDUMP_FILTER_PRIVATE_ANONYMOUS = 0,
index 29582d54096e93b44f69909a72e136a8880c2eb9..a74e264e1267b6af250ea04024ab07d734ea129f 100644 (file)
@@ -4,7 +4,7 @@
 #include <sched.h>
 
 #include "conf-parser-forward.h"
-#include "forward.h"
+#include "shared-forward.h"
 
 /* This wraps the libc interface with a variable to keep the allocated size. */
 typedef struct CPUSet {
index 8991d0678c7f2df25e50fe7aba62385a7d89e2a7..d23afa6c135ea7cd0114a9d092c166306e5e55c2 100644 (file)
@@ -4,7 +4,7 @@
 #include "sd-id128.h"
 
 #include "fd-util.h"
-#include "forward.h"
+#include "shared-forward.h"
 
 #define CREDENTIAL_NAME_MAX FDNAME_MAX
 
index 63d46cd97faded241b8c4e51d4c5bd573aa2e55b..75203ae8aff8a82a697343cb4302f255b077ef05 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int acquire_fido2_key(
                 const char *volume_name,
index f66a5168872ef5ee6eff79049a4b3d09e86855ee..a3d456af4f7319cad924c972e2a48c89d8ffc6a8 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <sys/uio.h>
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int acquire_tpm2_key(
                 const char *volume_name,
index df897c208ffd9e8afbca0c54f2f73a8733ce953e..3c043292e6dbcc46f55fc6c948764eff6393947c 100644 (file)
@@ -2,7 +2,7 @@
 #pragma once
 
 #include "dlfcn-util.h"
-#include "forward.h"
+#include "shared-forward.h"
 
 #if HAVE_LIBCRYPTSETUP
 #include <libcryptsetup.h> /* IWYU pragma: export */
index 90d4a1689bbe1f6f56aa0bb318436b69d60241e7..708a32985c6c521a521890560cbc11ca806a6322 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "sd-daemon.h" /* IWYU pragma: export */
 
-#include "forward.h"
+#include "shared-forward.h"
 
 #define NOTIFY_READY_MESSAGE "READY=1\n" "STATUS=Processing requests..."
 #define NOTIFY_STOPPING_MESSAGE "STOPPING=1\n" "STATUS=Shutting down..."
index 605ba6b24e2aa03d21a22d756e9b5f80a860f3f8..11027d8ce81b0c47862cedb60a4c0183730ed2f7 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int copy_data_fd(int fd);
 int memfd_clone_fd(int fd, const char *name, int mode);
index 8844d751ac11ef9a54ddeb2cdc5a0083c5374f3b..573c7a5c0bd7006a5f3f98eebd95c0d9bdc14988 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int dev_setup(const char *prefix, uid_t uid, gid_t gid);
 
index f57378c0f6133f08256c617375cd82f253512cba..5b2e0432c1c8809fbc147410ccba776188ba8f18 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int encode_devnode_name(const char *str, char *str_enc, size_t len);
 int allow_listed_char_for_devnode(char c, const char *additional);
index 55476259d7b07e987fec4ef481ea72e8fd02a3c3..7ba44bfb79d43acf2e3501c642cce705a0e5d525 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "sd-id128.h"
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "os-util.h"
 
 typedef enum ImageType {
index a050f1070148e11a45b1c3a14fe4b766fea4d315..26ea4495145eaaf6a3ed73e79abf14759531bb1c 100644 (file)
@@ -4,7 +4,7 @@
 #include "sd-id128.h"
 
 #include "architecture.h"
-#include "forward.h"
+#include "shared-forward.h"
 #include "gpt.h"
 #include "list.h"
 
index 6b8070d0ce95b245deea1e02168384a66f4c16a6..c7730f70aa9aa2cef2283a28dbfb710aaf8ebc6a 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum DNSLabelFlags {
         DNS_LABEL_LDH                = 1 << 0, /* Follow the "LDH" rule — only letters, digits, and internal hyphens. */
index ffd4757177728c4ee51e1c446fdf04fc6f3ba389..c40a700e34f1495501c27b869b568bea9ce0aed9 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int drop_in_file(
                 const char *dir,
index 5bcdaeba16e92c7e1b18724655160caffb8139e2..427533f67c9d61796754e1b93b15195d390fe20b 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 #define DROPIN_MARKER_START "### Anything between here and the comment below will become the contents of the drop-in file"
 #define DROPIN_MARKER_END "### Edits below this comment will be discarded"
index 206e6136de40b5a452f15711a9315d8145ce1de1..6fb3efb88a9c36923641afbd64d10de43ce57789 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "sd-id128.h"
 
-#include "forward.h"
+#include "shared-forward.h"
 
 /* Various calls for interfacing with EFI variables from the official UEFI specs. */
 
index 346f3b5d8b1aaa8f18e61806f67b3cf5f4451de4..5b614cd0a7ee0289bd2844aee0d2d9763b01330a 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 /* Various calls that interface with EFI variables implementing https://systemd.io/BOOT_LOADER_INTERFACE */
 
index 41859cd169d27197dad8ecd40508b9af58b4d3a3..19c40c210744a32f832cfd84e7ca707adc5fd81a 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int dlopen_dw(void);
 int dlopen_elf(void);
index d7bb2d0a2da11694582706aa8757969cece3442c..84fbebdf1b993be5b4c24145c02d25e6acaa044e 100644 (file)
@@ -4,7 +4,7 @@
 #include <linux/ethtool.h>
 
 #include "conf-parser-forward.h"
-#include "forward.h"
+#include "shared-forward.h"
 
 #define N_ADVERTISE 4
 
index d6af5de5101050819bf84646c5115ed881d34545..bb825e9969064c2e35c7ae2e379fceb58f213f5f 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef int (*gather_stdout_callback_t) (int fd, void *arg);
 
index e9a122e31dc1808119fbdf91188da223a3f399a8..27b8d4664a0f39ce9e495ad19835b09ee8e354ae 100644 (file)
@@ -2,7 +2,7 @@
 #pragma once
 
 #include "bitmap.h"
-#include "forward.h"
+#include "shared-forward.h"
 
 /* This defines pretty names for the LSB 'start' verb exit codes. Note that they shouldn't be confused with
  * the LSB 'status' verb exit codes which are defined very differently. For details see:
index 08bdd7f33e3226e0d688288539e2fd844cdeda6f..2cfe974ce07ebd17d87c9a6047666a700711163c 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 /* Given an image name (for logging purposes), a set of os-release values from the host and a key-value pair
  * vector of extension-release variables, check that the distro and (system extension level or distro
index 06903fca182df9ab5bbbb2d04b136dcca2fa5510..262c951502660577a974972a809e31f6b936f93b 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum FactoryResetMode {
         FACTORY_RESET_UNSUPPORTED,    /* feature not available on this OS */
index eb4b3231a04c8aec197b4791fa10c2d3c5bced76..98a2ed9948fbf7a014c2432b96cadd475a6001eb 100644 (file)
@@ -5,7 +5,7 @@
 
 #include <libfdisk.h> /* IWYU pragma: export */
 
-#include "forward.h"
+#include "shared-forward.h"
 
 DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(struct fdisk_context*, fdisk_unref_context, NULL);
 DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(struct fdisk_partition*, fdisk_unref_partition, NULL);
index 96a17c78350a1df52eff635a87d9134963eac326..a0d4e6d1630d378713afa96448ca317659f9cf78 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "iterator.h"
 
 FDSet* fdset_new(void);
index 8eccf2cc0db384ef0373450829970daba8579ca2..25b3a0732dc617e0d0e31de62a62acf70d34b61a 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int fido2_generate_salt(struct iovec *ret_salt);
 int fido2_read_salt_file(const char *filename, uint64_t offset, const char *client, const char *node, struct iovec *ret_salt);
index 1dd0f486008d84f81340653df164678fb814c15f..ac62e6c51e51993c77ef551d85493eed87f0f946 100644 (file)
@@ -2,7 +2,7 @@
 
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int find_esp_and_warn_at(int rfd, const char *path, int unprivileged_mode, char **ret_path, uint32_t *ret_part, uint64_t *ret_pstart, uint64_t *ret_psize, sd_id128_t *ret_uuid, dev_t *ret_devid);
 int find_esp_and_warn(const char *root, const char *path, int unprivileged_mode, char **ret_path, uint32_t *ret_part, uint64_t *ret_pstart, uint64_t *ret_psize, sd_id128_t *ret_uuid, dev_t *ret_devid);
index 595da38ef6fa5952e25f6f562601068f6b325834..ee28aead8e9e24e4811b3a5ea64135884897a2c0 100644 (file)
@@ -2,7 +2,7 @@
 #pragma once
 
 #include "conf-parser-forward.h"
-#include "forward.h"
+#include "shared-forward.h"
 
 int fw_nftables_add_masquerade(
                 sd_netlink *nfnl,
index a14d6fd02f079734c34cf9a85c1e85b31c735369..dd6ea9f15f65c49677b1ee61f9a535d3773744ee 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int fork_notify(char * const *cmdline, PidRef *ret_pidref);
 
index 3365a8feb7bd2707ba2da9c21ea563afb56fb9a5..2222373eb33a495656739fda3d34103a1ac0c8b5 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "sd-json.h"
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "log.h"
 #include "pager.h"
 
index 59d909d44f6112fab83813728c8a720815247cf4..e3a5f663326e49e5decc2a75e0f1069397e7cb87 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 bool fstab_enabled_full(int enabled);
 static inline bool fstab_enabled(void) {
index 57c854e7907f03ca86c6398d6e4123412f942b69..81ab190c1fb5515dfd0407731c7731d6760244fa 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "main-func.h"
 
 int generator_open_unit_file_full(const char *dest, const char *source, const char *name, FILE **ret_file, char **ret_final_path, char **ret_temp_path);
index b40c4ced0e548d400d14260de1465bbf542d31fa..b5a4930443f67b2d13f2b76ade4e3f253faf6405 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <linux/if_link.h>
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum GeneveDF {
         NETDEV_GENEVE_DF_UNSET    = GENEVE_DF_UNSET,
index 0103ac2f4a128bb8d1625ad38bede727c7715979..e8a3c5eece14e75f90933fdc3867214d232f18d9 100644 (file)
@@ -5,7 +5,7 @@
 #include "sd-id128.h"
 
 #include "architecture.h"
-#include "forward.h"
+#include "shared-forward.h"
 #include "sparse-endian.h"
 
 /* maximum length of gpt label */
index 765fc613ba7d49a6b848789b2f4824132586921a..730938c3d92a8193d1133bdc798544b66fe5ded1 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "user-record.h"
 
 typedef struct GroupRecord {
index 719e2c0554c775fa4397ffba86dfdc9e707cb504..0fe2b2e11bee5b0183344042925a58670d3b0458 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 /* represents values for /sys/power/resume & /sys/power/resume_offset and the corresponding path */
 typedef struct HibernationDevice {
index d3cb59b3fccf4bf6ccad9809ec154b5468d288e1..9af57fad5649e4e96e4581e3c4d61bfbd44dba43 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum HostnameSource {
         HOSTNAME_STATIC,     /* from /etc/hostname */
index 6e41b8b588715cba00ed0a29a359779e54ae7abc..c1f14c446a5638aebd2ad2fe75686eddc628a151 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "sd-hwdb.h" /* IWYU pragma: export */
 
-#include "forward.h"
+#include "shared-forward.h"
 
 bool hwdb_should_reload(sd_hwdb *hwdb);
 int hwdb_update(const char *root, const char *hwdb_bin_dir, bool strict, bool compat);
index 0048e95729316fb9d04848785cd2a37cf63e2b08..db3c176a3411d69e4010dfbff8772fdc8cc8faf3 100644 (file)
@@ -4,7 +4,7 @@
 
 #include "sd-id128.h"
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum Id128PrettyPrintMode {
         ID128_PRINT_ID128,
index 734ec9d999ce6c97b7f230d526c00d79d406920f..27213fb6c2c57e2414e2cd9c278a48abb3fa8183 100644 (file)
@@ -8,7 +8,7 @@
 #  include <stringprep.h>
 #endif
 
-#include "forward.h"
+#include "shared-forward.h"
 
 #if HAVE_LIBIDN2 || HAVE_LIBIDN
 #include "dlfcn-util.h"
index fb864f6063fa01cb24597f475d35a79fe7812ad2..6007e768918de393414441cecf77ffb3d0cdfd4c 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 bool use_ima(void);
index 6f5c1d23d6dbbe7affb9bec756516b90b8c54852..6fdd8abe32428152426f2c0f94fa80ed3ef97f35 100644 (file)
@@ -2,7 +2,7 @@
 #pragma once
 
 #include "conf-parser-forward.h"
-#include "forward.h"
+#include "shared-forward.h"
 #include "gpt.h"
 
 typedef enum PartitionPolicyFlags {
index 8779293cdfff131a18c0a97cc66634f97fc8f83a..9621cd884d3f40a5b4b92b90ee544d475ed1f075 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum ImportType {
         IMPORT_RAW,
index b18609a1212115da901d6671516ee5a413bc40b1..6bb46b68150dbd0208e99540e8f6b87d43241720 100644 (file)
@@ -2,7 +2,7 @@
 #pragma once
 
 #include "conf-parser-forward.h"
-#include "forward.h"
+#include "shared-forward.h"
 #include "in-addr-util.h"
 
 struct in_addr_prefix {
index e72dac3e971e9dd1e9c6a25dc8c5260e33bf34b0..cb94e32cae9a2bf41e9b8c510133099add86acad 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum InstallFileFlags {
         INSTALL_REPLACE    = 1 << 0, /* Replace an existing inode */
index f88449ffe1d4082e85d3408991a81aaf7cbe669d..0d05badc47e7bf03d4a3459fe26de381a69ff68d 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int install_name_printf(
                 RuntimeScope scope,
index 39bded38b8d0fbe16768a24b90f08341ef9a4732..1d0b93d05cd3461f0652f4cb9e05eb8826be6044 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "runtime-scope.h"
 #include "unit-file.h"
 
index 468f178cd01f59df1fade11238a1a9bab85a35eb..04d44c77005eb0fa92754a6d5b1e5afc076c3eb1 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <sys/ioprio.h>         /* IWYU pragma: export */
 
-#include "forward.h"
+#include "shared-forward.h"
 
 static inline int ioprio_prio_class(int value) {
         return IOPRIO_PRIO_CLASS(value);
index cb8599787bf03380734c518ec844795584216d44..6ea91e4c277c0ba4ac5af1e8ab8370e19c05ad98 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 const char* ip_protocol_to_name(int id);
 int ip_protocol_from_name(const char *name);
index c96201742b57aa27307eaeffc35b4a9251ccd286..fdfcb759ecd0cfbf43355e0ee2c089cb97e20bea 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <linux/if_link.h>
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum IPVlanMode {
         NETDEV_IPVLAN_MODE_L2 = IPVLAN_MODE_L2,
index 978ff1c1605e73eae184d3c02f79e11f380c2999..d3ffe4e7a6dfa6ba5071f4d3113f10a9d031ac8f 100644 (file)
@@ -2,7 +2,7 @@
 #pragma once
 
 #include "journal-file.h" /* IWYU pragma: export */
-#include "forward.h"
+#include "shared-forward.h"
 
 int journal_file_set_offline(JournalFile *f, bool wait);
 bool journal_file_is_offlining(JournalFile *f);
index 13f699ae4d3da7ba11261236f1dda1619be65ff9..ce954da48300135e0b79499bba7cefd51ec117a1 100644 (file)
@@ -4,7 +4,7 @@
 
 #include "sd-id128.h"
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "iovec-wrapper.h"
 #include "time-util.h"
 
index 2805ae197636f2d5cad69b7962319157ddec615b..4e12e4b76ff940de15c1d8b83b15052a3b0406dd 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "sd-journal.h" /* IWYU pragma: export */
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int journal_access_blocked(sd_journal *j);
 int journal_access_check_and_warn(sd_journal *j, bool quiet, bool want_other_users);
index 35ae976baaf6d3c69f426f3f5aec22d616b86c7f..28c63dc791e6eae3d4f68e6d17933b260066edf3 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int keymap_directories(char ***ret);
 int get_keymaps(char ***ret);
index 2c149ba3bd1f136bcfbab7c81ffedc5ba6dc080a..faa05d34a676cb09c1688e92bea3c0b9af1d34d5 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int load_kernel_install_conf(
                 const char *root,
index 0474728050c16ce9c87c99f82e4409ee87002d7c..b9f7cf353d3e22c17a17612ed4681ba5d36ec5a6 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum KernelImageType {
         KERNEL_IMAGE_TYPE_UNKNOWN,
index 1eb198acec490d180db71c62a5e8a93c6127c54e..a39675b1192d401d0e0b5b1dc6034a27c164a656 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int broadcast_signal(int sig, bool wait_for_exit, bool send_sighup, usec_t timeout);
index b1586dd81edd1e1cf1117ae6ecfe9adc844f2e8c..c7ed307dee25aaab2123d99182a3fdee83ee67c4 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "label.h"      /* IWYU pragma: export */
 
 typedef enum LabelFixFlags {
index 5eed91db0b3fcd57cb466a3092b0e45bb88a3224..7d4ba3b6ba9dfcff5d370f882237da6367edac59 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 #if HAVE_LIBARCHIVE
 #include <archive.h>            /* IWYU pragma: export */
index f33258f9e1a9eae17faf396941db7f62ca4bbe13..759b1c757497a047293d1da82e7be9f2f0fb5886 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int dlopen_libaudit(void);
 
index 25790f9ad3fc92e3ce9811af92be85939ceb3ec6..27c5f055a389fd8300c872eec19d8c639b1a3c0b 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int make_salt(char **ret);
 int hash_password_full(const char *password, void **cd_data, int *cd_size, char **ret);
index c39cf73160f2bb67fef8965aca7d7ace5eec1038..c5d3875a0d5b5f72fe1c2f20578cc3deccf82344 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 #define FIDO2_SALT_SIZE 32U
 
index 17f8ebf0ad5234b96151f24fd198893df5571d2a..f7fc39cd9bd8f017500f4dba18a4daa39e1d3b5d 100644 (file)
@@ -5,7 +5,7 @@
 #include <libmount.h> /* IWYU pragma: export */
 
 #include "dlfcn-util.h"
-#include "forward.h"
+#include "shared-forward.h"
 
 extern DLSYM_PROTOTYPE(mnt_free_iter);
 extern DLSYM_PROTOTYPE(mnt_free_table);
index ed8aa055ce68317e18086578ea751bbb1e2ecac6..089239dac6611f1dc9bfb3c4e00b845c8bb151a4 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "in-addr-util.h"
 
 struct local_address {
index fec9046bb7b8fb258c0f4798598be4e94eafce36..8b71064cad13c46878d7eb273b03b335848736b5 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <sys/stat.h>
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "locale-util.h"
 
 typedef struct LocaleContext {
index 22b087d3e883a8832d5a9dfc4a8d2a66714808c2..ecf6bf2859d6685aa00edde1ffcbba68eeff184b 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "sd-id128.h"
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef struct LogId {
         sd_id128_t id; /* boot ID or invocation ID */
index fe9b3f1053413e7a644dde848741f6a45098ea09..d015c99751125dcee1ee7a96298e45a1d9cd1092 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 /* Some helpers for setting up loopback block devices */
 
index c0a74a704f7942879fa15e379b5c4eb99485e738..2751bc315b20367a91cd84e4e8eadf35cff36b28 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef struct MachineBindUserData {
         /* The host's user/group records */
index 244ebd6192a5bcbb41f482a93811c0b3c8fc811a..adef6a060513149b56974591881100337c26de25 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef struct MachineCredential {
         char *id;
index a5100766a44c9b97bc9f51a84148bf65761557b4..b5f76713ce882cb53e61a4c8fae40ca09f97e78c 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "sd-id128.h"
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum MachineIdSetupFlags {
         MACHINE_ID_SETUP_FORCE_TRANSIENT = 1 << 0,
index 0719ba011fea431a202954417d091102dd221a8d..feb3663b642c3e8e15088a29539185e2f27d2a33 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int setup_machine_directory(sd_bus_error *error, bool use_btrfs_subvol, bool use_btrfs_quota);
index f2e5e458c3698a51b90197e0a3c1ec0b057b8ad8..78817d2ce668faa3d9bcaa0a7ef3b40f23d755bb 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <linux/if_link.h>
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum MacVlanMode {
         NETDEV_MACVLAN_MODE_PRIVATE = MACVLAN_MODE_PRIVATE,
index ecd23fe601ce25eba28328067c761872fef81ca5..95a2ccbf18e317d1fd92b3e304300cdc1db09679 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "static-destruct.h"
 
 void main_prepare(int argc, char *argv[]);
index ef5722d035ffed8c9b029ccff60a162d7b9ec2c4..c884190a0e25f00d08e93071231f91e15ec5fd8b 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "mkdir.h"
 
 int mkdirat_label(int dirfd, const char *path, mode_t mode);
index 2e83370d03c08e638065900b1b22df30469da417..7ab78be98a62c104094d2279df8e23d7aedc153c 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "sd-id128.h"
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum MakeFilesystemFlags {
         MKFS_QUIET     = 1 << 0,  /* Suppress mkfs command output */
index e98e0049b6e9a79768673faea7d35a01943a55f2..55c81612c3a5fbc17a1c580cbd903010be630783 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 #if HAVE_KMOD
 
index 9e1787b2c5ac996c649b6c1c56ed6c4066e5f255..0f0bbaff56134a5e7908562e1d41af3eacbc94da 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 bool mount_point_is_api(const char *path) _pure_;
 bool mount_point_ignore(const char *path) _pure_;
index 902092be68b9470f44b61b202084ab4f3be76b38..c5968dc56598035a4e4279fe39ebb99ae6e7136a 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef struct SubMount {
         char *path;
index ff3f2a36b5a45ff95e3ce223e35a7fb3f7fb853c..49be68a0c4eb687b50434b9724b3bd5107dd6af3 100644 (file)
@@ -4,7 +4,7 @@
 #include <linux/nl80211.h>
 
 #include "conf-parser-forward.h"
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef struct NetMatch {
         Set *hw_addr;
index 504ffec5357bebc4871483c419baf497403841f6..0929f7ce633fe15b9949962c58e74cfac6bc40a1 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 /* So here's the deal: net_id is supposed to be an exercise in providing stable names for network devices. However, we
  * also want to keep updating the naming scheme used in future versions of net_id. These two goals of course are
index 7fc7393bd3056a4af3653f39212f34319cd8ee77..891496ffebbb634535c317562cf291ff4004309a 100644 (file)
@@ -5,7 +5,7 @@
 #include <net/ethernet.h>
 
 #include "conf-parser-forward.h"
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum SRIOVAttribute {
         SR_IOV_VF_MAC,
index 5b2ba1d11d84ad0c5acec0932e1a2bcac62bb552..cf956f42c68d4a26addcaca957fcaa6babd1b40c 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 bool netif_has_carrier(uint8_t operstate, unsigned flags);
 int net_get_type_string(sd_device *device, uint16_t iftype, char **ret);
index e260e7ef5e770dd9249cb1f5b92d28e9e91fd261..5075739d6cb65e7f93b0677adf93da415fb62fdf 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int notify_socket_prepare_full(
                 sd_event *event,
index 35bcb6a8c99bcfe7d184abe4e4c651da855dbaeb..19d3fc195e7d9b1be60f9dbde6f7685392fc9154 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <sched.h>
 
-#include "forward.h"
+#include "shared-forward.h"
 
 /* The combination of all namespace flags defined by the kernel. The right type for this isn't clear. setns() and
  * unshare() expect these flags to be passed as (signed) "int", while clone() wants them as "unsigned long". The latter
index 55937fd48308eb903e7044e7c1cbea6c366e9c7c..c06025761a5c7d2de046eac6ee5d6318374c09e2 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int nsresource_allocate_userns(const char *name, uint64_t size);
 int nsresource_register_userns(const char *name, int userns_fd);
index a4a4b5d92060ffeeceab5b5b015b23cf18ea53f5..c182237368afc33bec7b6b52b5c68042fe176d63 100644 (file)
@@ -7,7 +7,7 @@
 #include <pwd.h>
 #include <resolv.h>
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "signal-util.h"
 
 extern sd_json_dispatch_flags_t nss_json_dispatch_flags;
index 1c3482a5908819105e8c333efba593f5d26542d9..6e31c00f041814aad49716bd436c031d1055b065 100644 (file)
@@ -4,7 +4,7 @@
 #include <sys/mempolicy.h>
 
 #include "cpu-set-util.h"
-#include "forward.h"
+#include "shared-forward.h"
 
 static inline bool mpol_is_valid(int t) {
         return t >= MPOL_DEFAULT && t <= MPOL_LOCAL;
index 7c1621e6298308467aab2f1c8d07ce6cc401b9f6..d11cf471de41ad50e7b1949f115d312f82090454 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "list.h"
 
 typedef enum OpenFileFlag {
index f6c697672b3e7fa363ed650d47a4e0368e087d7a..0cead423673ed73893edc12028c9bc3f8acc450a 100644 (file)
@@ -2,7 +2,7 @@
 #pragma once
 
 #include "ask-password-api.h"
-#include "forward.h"
+#include "shared-forward.h"
 #include "iovec-util.h"
 #include "sha256.h"
 
index 8f80b2932b5a61c73ec9c6d09b344e4bc2a85812..8db6e263cb5591ecd78dd84c3b1eeb2c52853049 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "sd-id128.h"
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int osc_context_open_boot(char **ret_seq);
 int osc_context_open_container(const char *name, char **ret_seq, sd_id128_t *ret_context_id);
index 7ee17df9389b5f26944c004321aa02b239d73ecf..c700f6ca5d8dcface54572e9b0cdd330abcbde80 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum OutputMode {
         OUTPUT_SHORT,
index bbd92a2bbaa728363a511825d73b86ff56681b6b..3760cd702c64f8a6350c7c4ecf5e4ac5ccb4942b 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum PagerFlags {
         PAGER_DISABLE     = 1 << 0,
index a4d35faa115971b0713f055c4c3f768233223eed..8f31ffd2f809306df249a62d95dfaa43c4ee4c87 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 #if HAVE_PAM
 #include <security/pam_appl.h>
index 0f44223af3cb8b9ae208d72deb5764dc15140559..f1b2b63178f422c0caf0f749336c9f6480775a44 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int parse_boolean_argument(const char *optname, const char *s, bool *ret);
 int parse_tristate_argument(const char *optname, const char *s, int *ret);
index c686b9cebbff2a876c7cdcb1e95147487d2f7e67..402147cbf38a59d3f273cef91fb6e88054daa282 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum PathSimplifyWarnFlags {
         PATH_CHECK_FATAL              = 1 << 0,  /* If not set, then error message is appended with 'ignoring'. */
index bda3be544ce9ea142f471503b1465d02f0b39be2..1a0dd68e3dd5cf38fdc746873233f6c1ea9f3bf5 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 #if HAVE_PASSWDQC
 #include <passwdqc.h>
index 0d12c76ad7b6ba59e64b6e82849d3c9b84a2879a..6ef4088716ee0becf46c5564b193bf7b032db65f 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 #if HAVE_PWQUALITY
 #include <pwquality.h>
index b1c9f24f1420192bcb0ee0fd46cb8f8310348534..aa9b77dc1954398b58e5d43485a36ecbc971b93a 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 #if HAVE_PCRE2
 
index 43203ce6bb20f235f9cd2e8de1cbc8e78c7ec841..2b0aaa974cec240b30c41c9226f5ba3f2eae52b8 100644 (file)
@@ -12,7 +12,7 @@
 
 #include "ask-password-api.h"
 #include "dlfcn-util.h"
-#include "forward.h"
+#include "shared-forward.h"
 
 bool pkcs11_uri_valid(const char *uri);
 
index 86c9ec6cb851e71e6e2fd6eadf8db06c8f598ca2..c73b44567c2ee8e9f8f4ade8276b5bd39edd8a83 100644 (file)
@@ -2,7 +2,7 @@
 #pragma once
 
 #include "errno-util.h"
-#include "forward.h"
+#include "shared-forward.h"
 
 int plymouth_connect(int flags);
 int plymouth_send_raw(const void *raw, size_t size, int flags);
index 3ed13f9ba5fba00d1425c0e79104a92f4a160329..fb0be876059028c6016037acef3f9060e958be58 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int polkit_agent_open(void);
 void polkit_agent_close(void);
index b19e470452c6a85a97a08cca3a7c385818b9c74b..1d9f6d20a4a060f8622d7f12f98643fab2c5cdd6 100644 (file)
@@ -2,7 +2,7 @@
 #pragma once
 
 #include "constants.h"
-#include "forward.h"
+#include "shared-forward.h"
 
 #define PORTABLE_PROFILE_DIRS CONF_PATHS_NULSTR("systemd/portable/profile")
 
index 8ea711a09d2937215d2a7ce0701c8ebdd8e2064d..6b759dd34694567c3f4a10ca26c3abe4246cf92e 100644 (file)
@@ -6,7 +6,7 @@
 
 #include "ansi-color.h"
 #include "fileio.h"
-#include "forward.h"
+#include "shared-forward.h"
 #include "glyph-util.h"
 
 #define CYLON_BUFFER_EXTRA (2*STRLEN(ANSI_RED) + STRLEN(ANSI_HIGHLIGHT_RED) + 2*STRLEN(ANSI_NORMAL))
index 70f8f0215d1da914ed5757816ea5c32aecb78a79..2b81c1245dfc8d68ead5fff31fcc11b7f434314e 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <stdbool.h>
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum PromptFlags {
         PROMPT_MAY_SKIP        = 1 << 0, /* Question may be skipped */
index 1983a1cd16f9c62eec1bb4f7f51f2d41874cadc0..31020952d33c559168a9313fbb0d2c604e0d8f0f 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef struct PTYForward PTYForward;
 
index a635810bfe3516f680731207b203dd71482c9896..9a624e29e13b7efdcc465311d5257b6e6f3cf981 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int print_qrcode_full(
                 FILE *out,
index 2e82b94134bc54a3228c0ed2781bfe834dd0e6a5..21c80011a7d6c814405757241027461fd0d08efb 100644 (file)
@@ -4,7 +4,7 @@
 #include <linux/quota.h>        /* IWYU pragma: export */
 #include <sys/quota.h>          /* IWYU pragma: export */
 
-#include "forward.h"
+#include "shared-forward.h"
 
 /* Wrapper around the QCMD() macro of linux/quota.h that removes some undefined behaviour. A typical quota
  * command such as QCMD(Q_GETQUOTA, USRQUOTA) cannot be resolved on platforms where "int" is 32-bit, as it is
index 276361aea8eaf8f5e1574480401a54a76ecf8f4e..eaa6614df05ea8c8d15aa5a04146aac13ecda30f 100644 (file)
@@ -4,7 +4,7 @@
 #include <linux/reboot.h>       /* IWYU pragma: export */
 #include <sys/reboot.h>         /* IWYU pragma: export */
 
-#include "forward.h"
+#include "shared-forward.h"
 
 /* glibc defines the reboot() API call, which is a wrapper around the system call of the same name, but
  * without the extra "arg" parameter. Since we need that parameter for some calls, let's add a "raw" wrapper
index ec7090a1c223a027bc493128bc344d4e99aa9e11..2206021fe40cc27b04edb3933c16871a47828f85 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 /* 256 bit keys = 32 bytes */
 #define RECOVERY_KEY_MODHEX_RAW_LENGTH 32
index 8cfda5669635646bfa08dfcdfb55e3b79733b742..6f2cc0219e025d088ceaf848f61581455b1e688d 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "stat-util.h"
 
 int resize_fs(int fd, uint64_t sz, uint64_t *ret_size);
index a8f7fd41efd148227a2c7b965d9fb1719d9e72a8..102644054bc0c01e322733939fe55858fb305ffa 100644 (file)
@@ -2,7 +2,7 @@
 #pragma once
 
 #include "conf-parser-forward.h"
-#include "forward.h"
+#include "shared-forward.h"
 
 /* 127.0.0.53 in native endian (The IP address we listen on with the full DNS stub, i.e. that does LLMNR/mDNS, and stuff) */
 #define INADDR_DNS_STUB ((in_addr_t) 0x7f000035U)
index abad164e21c5fb4352637186563dd23c1538fd24..9353cafcbfc44209df3ebc17b70a71a6e12ebcac 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum RemoveFlags {
         REMOVE_ONLY_DIRECTORIES = 1 << 0, /* Only remove empty directories, no files */
index b0aa5b2a3565a8334ffffe7cda367227034fc966..e853b9e225c5131825b6a583067e7a780f0d591d 100644 (file)
@@ -2,7 +2,7 @@
 #pragma once
 
 #include "errno-util.h"
-#include "forward.h"
+#include "shared-forward.h"
 
 #if HAVE_SECCOMP
 #include <seccomp.h> /* IWYU pragma: export */
index 19b836b4e7b5a8f97785c83f21fd192f886758f0..dc61ecd57ea8b605fad876e7ca7982d51a1dc236 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <linux/securebits.h>
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int secure_bits_to_string_alloc(int i, char **s);
 int secure_bits_from_string(const char *s);
index 726cbbea08accb701817ba831d819bec8e38d9cd..e6432b3792235cdedf79588255fda291abcc52b3 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <sys/socket.h>
 
-#include "forward.h"
+#include "shared-forward.h"
 
 #if HAVE_SELINUX
 #include <selinux/avc.h>
index 45bd710d7319582290c9f6806e141ae55a46c8dd..6e5e9216ba307b70cd14fb5270ef7c6580532f28 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int serialize_item(FILE *f, const char *key, const char *value);
 int serialize_item_escaped(FILE *f, const char *key, const char *value);
index 462ba2b3fadb66171e12cd381b3e4f30163d2b2a..0529f30ad547b14cd53a92a515f0f43294c329ef 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int service_parse_argv(
                 const char *service,
diff --git a/src/shared/shared-forward.h b/src/shared/shared-forward.h
new file mode 100644 (file)
index 0000000..a15e276
--- /dev/null
@@ -0,0 +1,72 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
+#pragma once
+
+/* IWYU pragma: always_keep */
+
+#include "sd-forward.h"         /* IWYU pragma: export */
+
+typedef int (*copy_progress_bytes_t)(uint64_t n_bytes, uint64_t bytes_per_second, void *userdata);
+typedef int (*copy_progress_path_t)(const char *path, const struct stat *st, void *userdata);
+
+struct local_address;
+struct in_addr_prefix;
+struct in_addr_full;
+
+typedef enum AskPasswordFlags AskPasswordFlags;
+typedef enum BootEntryTokenType BootEntryTokenType;
+typedef enum BusPrintPropertyFlags BusPrintPropertyFlags;
+typedef enum BusTransport BusTransport;
+typedef enum CatFlags CatFlags;
+typedef enum CertificateSourceType CertificateSourceType;
+typedef enum DnsCacheMode DnsCacheMode;
+typedef enum DnsOverTlsMode DnsOverTlsMode;
+typedef enum DnssecMode DnssecMode;
+typedef enum Fido2EnrollFlags Fido2EnrollFlags;
+typedef enum KeySourceType KeySourceType;
+typedef enum LabelFixFlags LabelFixFlags;
+typedef enum MountInNamespaceFlags MountInNamespaceFlags;
+typedef enum NamePolicy NamePolicy;
+typedef enum OutputFlags OutputFlags;
+typedef enum OutputMode OutputMode;
+typedef enum PagerFlags PagerFlags;
+typedef enum PatternCompileCase PatternCompileCase;
+typedef enum RemoveFlags RemoveFlags;
+typedef enum ResolveSupport ResolveSupport;
+typedef enum TPM2Flags TPM2Flags;
+typedef enum Tpm2Support Tpm2Support;
+typedef enum Tpm2UserspaceEventType Tpm2UserspaceEventType;
+typedef enum UnitFileFlags UnitFileFlags;
+typedef enum UnitFilePresetMode UnitFilePresetMode;
+typedef enum UnitFileState UnitFileState;
+typedef enum UserDBFlags UserDBFlags;
+typedef enum UserRecordLoadFlags UserRecordLoadFlags;
+typedef enum UserStorage UserStorage;
+
+typedef struct Bitmap Bitmap;
+typedef struct BPFProgram BPFProgram;
+typedef struct BusObjectImplementation BusObjectImplementation;
+typedef struct CalendarSpec CalendarSpec;
+typedef struct Condition Condition;
+typedef struct ConfigSection ConfigSection;
+typedef struct ConfigTableItem ConfigTableItem;
+typedef struct CPUSet CPUSet;
+typedef struct FDSet FDSet;
+typedef struct Fido2HmacSalt Fido2HmacSalt;
+typedef struct GroupRecord GroupRecord;
+typedef struct Image Image;
+typedef struct ImagePolicy ImagePolicy;
+typedef struct InstallInfo InstallInfo;
+typedef struct LookupPaths LookupPaths;
+typedef struct LoopDevice LoopDevice;
+typedef struct MachineBindUserContext MachineBindUserContext;
+typedef struct MachineCredentialContext MachineCredentialContext;
+typedef struct MountOptions MountOptions;
+typedef struct OpenFile OpenFile;
+typedef struct Pkcs11EncryptedKey Pkcs11EncryptedKey;
+typedef struct Table Table;
+typedef struct Tpm2Context Tpm2Context;
+typedef struct Tpm2Handle Tpm2Handle;
+typedef struct Tpm2PCRValue Tpm2PCRValue;
+typedef struct UnitInfo UnitInfo;
+typedef struct UserRecord UserRecord;
+typedef struct VeritySettings VeritySettings;
index 59435c748d20bd0198e429644872bccf7a83178e..d980efd699ac4fecf31f042e40f57880e37ca05b 100644 (file)
@@ -2,6 +2,6 @@
 
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int path_patch_uid(const char *path, uid_t shift, uid_t range);
index 9463a23d6dcd26b8b382a3c04ba49a5d76e1837e..129c9e6b4746d9ef490abdac137ba9670e687c02 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum SleepOperation {
         SLEEP_SUSPEND,
index b778889842656eb255d55bc373df65d8efa157af..bb5b31774709c3f936172374f78a0bb26efe9e69 100644 (file)
@@ -7,7 +7,7 @@
   Author: Auke Kok <auke-jan.h.kok@intel.com>
 ***/
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum SmackAttr {
         SMACK_ATTR_ACCESS,
index 1d097c0af43f8ef197c79bf8fa8f2f243db64435..8e6d0dfb32096d22ac3bdf6ba606a76ce979cf38 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int read_smbios11_field(unsigned i, size_t max_size, char **ret_data, size_t *ret_size);
index c9b71d5100ba939158a3be5d8028073463323039..f371967c6908b286a64716fac5b5b753bc81540b 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "in-addr-util.h"
 
 int make_socket_fd(int log_level, const char* address, int type, int flags);
index 3b9d43cd85dd0e7615ed0517851519e62babd844..68cad231021ba2ac4159cf9437def00a35b220ac 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef int (*SpecifierCallback)(char specifier, const void *data, const char *root, const void *userdata, char **ret);
 
index 2b8e143251d705065ac55dfb1c69b6554dd82103..63da18179172ca55a08974f9e4bfa7bb4a273529 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum SwitchRootFlags {
         SWITCH_ROOT_DESTROY_OLD_ROOT      = 1 << 0, /* rm -rf old root when switching – under the condition
index 41b719ccce5aa4f8000319dc9f5b4d723e1a060a..a1e40addb624be71c9db793dc8b870a645cd1d28 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "string-util.h"
 
 #define _test_table(type, name, lookup, reverse, size, sparse)          \
index 5c933c48010ce4cac1776491bbd4275ff194b6b8..3f50b3dc54ce5c1507759f717e9a3aeb407bf49e 100644 (file)
@@ -5,7 +5,7 @@
 
 #include "errno-list.h"
 #include "errno-util.h"
-#include "forward.h"
+#include "shared-forward.h"
 #include "log.h"
 #include "static-destruct.h"
 #include "signal-util.h"
index 4189b2868152f3f94f181cf7efc1fed494bee994..d8920cc697f8324408e8f22981f6a33f225434ff 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 /* These functions are split out of tmpfile-util.h (and not for example just flags to the functions they
  * wrap) in order to optimize linking: this way, -lselinux is needed only for the callers of these functions
index d5c0fe8e66a15172a501fa01bf8a10275a44c14f..c539ca2d2b79338a668dea1ffe736503aaad0acb 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 bool mac_tomoyo_use(void);
index 76890fe1585e4da87a598f249447da68724fdc9f..50a8584c6e8891feef68b91ccf6040279b920204 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "tpm2-util.h"
 
 /* Definitions as per "TCG PC Client Specific Platform Firmware Profile Specification"
index 57674133bf216863f1904d7369582ab92cc28ccd..b051c8435e1adbde43e95a1c5e82bc9539b1b2b6 100644 (file)
@@ -2,7 +2,7 @@
 #pragma once
 
 #include "bitfield.h"
-#include "forward.h"
+#include "shared-forward.h"
 #include "openssl-util.h"
 
 typedef enum TPM2Flags {
index 95992f6345c6a1cd4f7d964ddbf3ee49150c55a8..6076f328f4cd65c05c47e81d20314c4feb7cc2ef 100644 (file)
@@ -2,7 +2,7 @@
 #pragma once
 
 #include "conf-parser.h"
-#include "forward.h"
+#include "shared-forward.h"
 
 int udev_parse_config_full(const ConfigTableItem config_table[]);
 int udev_parse_config(void);
index bfb6b740cc93786375ddc312ab33196352158b54..dd1cd33fdaf6c6c0021cb6b06484a3822d00c039 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "unit-def.h"
 
 typedef enum UnitFileState {
index c2f2faf16c87e3b96c658f0ca887ba733a7b5efd..835b1d686baa42db6afaff46402512e8e32d951d 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 /* Synthesize UserRecord and GroupRecord objects from NSS data */
 
index 3612fa3624d57bb2fa154647d47004d0dffd2420..7952a73431f3ed79159ee4b7ca6eb9e7e653b7b6 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 const char* user_record_state_color(const char *state);
 
index e4384e50b75a13d8e3c2f0ab77797b8acdee2f73..d0d95473eb03b38c3f3e0056af060fe9abf0882e 100644 (file)
@@ -5,7 +5,7 @@
 
 #include "bitfield.h"
 #include "rlimit-util.h"
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum UserDisposition {
         USER_INTRINSIC,   /* root and nobody */
index 170232f99d431815b647226c3f6a12cdcd03afcd..a8131fb3371539ca17ee4035ff649ca6d18738bb 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 /* This could be put together with CONF_PATHS_NULSTR, with the exception of the /run/host/ part in the
  * middle, which we use here, but not otherwise. */
index d56d9214a9a2c30ae4f062169a3d618741853878..08d602ddf7eb3a30cdb06d3d521e7805efb02979 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "group-record.h"
 #include "user-record.h"
 
index 72e8ff375b8d365fe1d4573ee1704d63033f6423..e1467eeaf394bc1835f61768f05c2bed403045d5 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 #if ENABLE_UTMP
 #include <utmpx.h>
index 9bb47b9570d6efc32dc3dce52847178575f38c3b..db5de5216145ffa2b6fb09c0019efe546e2597d4 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int varlink_server_serialize(sd_varlink_server *s, FILE *f, FDSet *fds);
 int varlink_server_deserialize_one(sd_varlink_server *s, const char *value, FDSet *fds);
index 00ccd3bbf727ac82e40e3eb0dc97e8fc88e0ba3f..13aca45204fcac226dae1b8abdc62d81f03a7ff0 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef struct X11Context {
         char *layout;
index 71c5f6c58dbf577f3b1893a37577673970d477a5..91432acce9b24d23d8da4118b16767f8aee44ddb 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int verb_log_control_common(sd_bus *bus, const char *destination, const char *verb, const char *value);
index abf1a35641c75f6d405980b19ad8224a425de5da..0fb6621af600d2eb45a36cf552fb35bc9b1d005f 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 #define VERB_ANY (UINT_MAX)
 
index 835e0f6cc24ff9fae8b8dd80741c2d83b694611e..b02001f23839765400f519d35a69c1bb5bf6fd8e 100644 (file)
@@ -2,7 +2,7 @@
 #pragma once
 
 #include "conf-parser-forward.h"
-#include "forward.h"
+#include "shared-forward.h"
 
 #define VLANID_MAX 4094
 #define VLANID_INVALID UINT16_MAX
index b9cd6c283a5b6a54ffec4d564621bc5e33d0f8fd..fd9c323fae163c58cd70b216e908d9ba77829679 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum VolatileMode {
         VOLATILE_NO,
index 3075a4b047696539da5a2f6dfd13e3e20bbfa549..3c23104ca9aec8a082dffd3c058ace71b281afc4 100644 (file)
@@ -4,7 +4,7 @@
 #include <sys/stat.h>
 
 #include "architecture.h"
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum PickFlags {
         PICK_ARCHITECTURE = 1 << 0,   /* Look for an architecture suffix */
index c622b6f652d56944d8853c74d2fa5c8f61162f20..d38e1ae472cd24525de52badac852cc2f5fe660a 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 #if ENABLE_UTMP || ENABLE_LOGIND
 
index f613689ca581dfa07aeae45d543dc4d9cd89c0f4..322614247b6ae83464ac2b2409fbe0b1ecc42199 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 const char* watchdog_get_device(void);
 usec_t watchdog_get_last_ping(clockid_t clock);
index 1bb8509da077c3abd2cc3411f61d5678b65d5235..68f868ab0a24e62c27d7e877e1e0e4d63c808925 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 bool http_url_is_valid(const char *url) _pure_;
 bool file_url_is_valid(const char *url) _pure_;
index 973a49155ad931d9af34838eb8b50be289390b2d..f590dfffa17ff06a3b08293430ebb2931520711a 100644 (file)
@@ -4,7 +4,7 @@
 
 #include <linux/nl80211.h>
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int wifi_get_interface(sd_netlink *genl, int ifindex, enum nl80211_iftype *ret_iftype, char **ret_ssid);
 int wifi_get_station(sd_netlink *genl, int ifindex, struct ether_addr *ret_bssid);
index 1ef9de147d2efd8e528d0145349e409e220760de..8deca29dd75a835eda959e3210939caa956435f2 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 enum {
         XML_END,
index 0db81350e0f67a8d1460daec7d616cba5c28ef09..50e52cf65fbc6a3bdc68aab6fd49be8702511cfe 100644 (file)
@@ -5,6 +5,6 @@
   Copyright © 2010 ProFUSION embedded systems
 ***/
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int dm_detach_all(bool *changed, bool last_try);
index 18cb2f6cfca0ccaf1f068359b2b29b5981c75544..16464a1b755f028e80bbe114f264bf3ada241763 100644 (file)
@@ -5,6 +5,6 @@
   Copyright © 2010 ProFUSION embedded systems
 ***/
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int loopback_detach_all(bool *changed, bool last_try);
index 8965a6ab65a983dc330d988b23dcc9be466e5c25..656ea01bc71e77db6cb7a9f3d00a9955adc8789c 100644 (file)
@@ -5,6 +5,6 @@
   Copyright © 2010 ProFUSION embedded systems
 ***/
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int md_detach_all(bool *changed, bool last_try);
index 64e89076e7a8e94c480646bfbff5c50148072e1a..8d267e50733c8a642bd80e1b01dc6cde27a1b783 100644 (file)
@@ -5,7 +5,7 @@
   Copyright © 2010 ProFUSION embedded systems
 ***/
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "list.h"
 
 int swapoff_all(bool *changed);
index 5fdaf76392af324ef68751d3225bb93c1d55c1c0..b168c40eef333e607eb30f046f9e6fead44142c8 100644 (file)
@@ -5,7 +5,7 @@
   Copyright © 2010 ProFUSION embedded systems
 ***/
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "list.h"
 
 int umount_all(bool *changed, bool last_try);
index 660c50cab052c76920d87ff10da5cd44b1435aa1..f1dd8353e1e5141bfddc2aed4f224ef157136066 100644 (file)
@@ -2,7 +2,7 @@
 #pragma once
 
 #include "bus-map-properties.h"
-#include "forward.h"
+#include "shared-forward.h"
 
 int verb_list_machines(int argc, char *argv[], void *userdata);
 
index 5cbdfea48c2e2454c456a2e5441f0d703c903e6c..8d4b1a614da285c7d8e1488b3d86d58f0a866211 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 enum action {
         ACTION_SYSTEMCTL,
index d6b83c0f731aca41f02e2d202f0bb63b74604fad..a92de0878ab3e6187547a2fcb57060c798b93a68 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h" /* IWYU pragma: export */
+#include "shared-forward.h" /* IWYU pragma: export */
 
 typedef struct Context Context;
 typedef struct PartitionInfo PartitionInfo;
index b0036e0b2e6412544e0bb02694af6c3974333dec..27cfab8c7c9d9ce9a9f422ea78e30b05c5777833 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum UpdateSetFlags {
         UPDATE_NEWEST     = 1 << 0,
index efd65845c57985433cee0a6597aa915bcb21adc5..cc5c78670f525d9f4b0a0770c0b149adc1d79587 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <nss.h>
 
-#include "forward.h"
+#include "shared-forward.h"
 
 const char* nss_status_to_string(enum nss_status status, char *buf, size_t buf_len);
 void* nss_open_handle(const char *dir, const char *module, int flags);
index 91e1d2f8a3870c2931051b3570cdb7b43e7687dc..b44c55fbeba7ef8a41efccfed19ff13415ee9a42 100644 (file)
@@ -3,7 +3,7 @@
 #include <dlfcn.h>
 #include <stdlib.h>
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int main(int argc, char **argv) {
         void *handles[argc - 1];
index 075cc8c5a0c851ad60c997c6fb9d7240ba9d5f17..21a7d740056a038726031e1b06426fe11efd2896 100644 (file)
@@ -12,7 +12,7 @@
 #define __STDC_WANT_IEC_60559_TYPES_EXT__
 #include <float.h>
 
-#include "forward.h"
+#include "shared-forward.h"
 
 /* Print information about various types. Useful when diagnosing
  * gcc diagnostics on an unfamiliar architecture. */
index ad24dad3a732f5df4a57fcbe6bfd46c90f5172b0..9e83d290e7c7aec36a3d55117f51ea415d04c5c6 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int hwclock_get(struct tm *tm);
 int hwclock_set(const struct tm *tm);
index 7a63e38f54e4ae2ef41e5c7b6f1f53a18562f0f5..8df2e021110e68e60044a1ddc9afce263180e3b4 100644 (file)
@@ -2,7 +2,7 @@
 #pragma once
 
 #include "conf-parser-forward.h"    /* IWYU pragma: export */
-#include "forward.h"                /* IWYU pragma: export */
+#include "shared-forward.h"         /* IWYU pragma: export */
 
 typedef enum ServerType ServerType;
 
index d031ef74c9c7dd27507580563db018469adbf8eb..d2ae211f5ecb48e87d543ab90be8b2942cd27d7e 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int name_to_uid_offline(const char *root, const char *user, uid_t *ret_uid, Hashmap **cache);
 int name_to_gid_offline(const char *root, const char *group, gid_t *ret_gid, Hashmap **cache);
index 90ae6cbdf1e232668cf8af68535c5ca27bd2e3d8..df22a420fd687aaaad9c911711cd105b48e423d3 100644 (file)
@@ -2,6 +2,6 @@
 
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int is_fido_security_token_desc(const uint8_t *desc, size_t desc_len);
index fe1f28d12fd88b0920dd2b1ad3d27aaa28c0e477..08a793952e3daa4d24b14aa438e001f6a0fe9df0 100644 (file)
@@ -22,7 +22,7 @@
 
 #include <mtd/mtd-user.h>
 
-#include "forward.h"
+#include "shared-forward.h"
 
 /* Full oob structure as written on the flash */
 struct sm_oob {
index 9342c924823ff7d483d315c95d345e59a5741292..b7d59a22d93de2bbfcc5514197de39a7086bf717 100644 (file)
@@ -6,7 +6,7 @@
 #include "cpu-set-util.h"
 #include "ether-addr-util.h"
 #include "ethtool-util.h"
-#include "forward.h"
+#include "shared-forward.h"
 #include "list.h"
 #include "net-condition.h"
 
index 62d43f8c79584df0e27976b1a5d8f9403f379e08..5f600d6a4384a260e1c16c76a5ededea6db576e2 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: GPL-2.0-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "udev-event.h"
 
 typedef struct UdevBuiltin {
index 96f9134e68ef132c045ae877d2823433f6d2a4ff..c1db12960b4e7995c0fa07fa2ab43d57fdb90b85 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: GPL-2.0-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int device_add_errno(sd_device *dev, int error);
 int device_add_exit_status(sd_device *dev, int status);
index 3d0079f1833ec559eca21d4e08fc348616431ff9..f5e9be6a1f168e43d46d2881f3afe4ceaccb6c5c 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h" /* IWYU pragma: export */
+#include "shared-forward.h" /* IWYU pragma: export */
 
 typedef struct UdevCtrl UdevCtrl;
 typedef struct UdevEvent UdevEvent;
index 2a384dcfaa22f7f4ad9ad187ccdaf607042a8a70..9bb93632400a698d35654aa9ef34ddd0ac358872 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "sd-event.h"
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "list.h"
 #include "udev-config.h"
 #include "udev-forward.h"
index 8a0a72f0e8794196d86d227f02e9eade544885b0..904421c0ec3df261626ea79f2f287574d4f5f14d 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: GPL-2.0-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int udev_node_apply_permissions(
                 sd_device *dev,
index a8ec6dabe99442492fe6f3c19723811db7fcf511..10d1e27345f13a3abe062037719054239d7545b2 100644 (file)
@@ -8,7 +8,7 @@
 #include "device-private.h"
 #include "device-util.h"
 #include "errno-util.h"
-#include "forward.h"
+#include "shared-forward.h"
 
 /* Each trace point can have different number of additional arguments. Note that when the macro is used only
  * additional arguments are listed in the macro invocation!
index 906479825ca3fc3468a1c44f15b35d2fffc04f60..af6b51519f8df0280405bad581993f9e41c3ffb8 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "sd-device.h"
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "udev-def.h"
 
 int find_device(const char *id, const char *prefix, sd_device **ret);
index 58c57fee109d80832681f2f542ff35d4bac076ae..f75fbb416f8dbbbb00d04cd5b6666f5a55a81b00 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: GPL-2.0-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int cat_main(int argc, char *argv[], void *userdata);
 int info_main(int argc, char *argv[], void *userdata);
index 40ff0ed1213af0067c5844491d19e0d79f198dcc..717c10d17d2475838c7d8eccac21dec3c080b689 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 #include "ratelimit.h"
 
 #define USERDB_WORKERS_MIN 3
index 531288a9eddc1e9d497fad34114c779b7850aa8c..9221519018e73834fa0d73de791152c80a11b256 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef struct RuntimeMount {
         bool read_only;
index 2adfabdc030714cb044d6cf55a1e04aadff370f4..c55adcf48d2f1b7612f2c5690d94be7bf317f75f 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
-#include "forward.h"
+#include "shared-forward.h"
 
 int register_machine(
                 sd_bus *bus,
index 00e73566c3c8125b9b364ddb82bd9482d3e12575..dea8ede30c242f0a25e6e1af740a67eb6a62f8b6 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef struct SocketServicePair {
         char **exec_start_pre;
index 1267dd070188b48e293d3f12b05813118aacfc8d..072102eeecda331fae39e02bc5decb91204eb51b 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef enum ConsoleMode {
         CONSOLE_INTERACTIVE,    /* ptyfwd */
index a1aa811aafade0ce879c8c113c7f484fe9aab2f7..d68000ee6b30b93ddb0b5a76da7119eb6889ad10 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 #if defined(__x86_64__) || defined(__i386__) || defined(__arm__) || defined(__aarch64__)
 #  define ARCHITECTURE_SUPPORTS_SMBIOS 1
index 83a692f708b3e0735d037cc7bc618e11f2259454..f6eff9f44a35d19ee4257ec5675d298bb3112724 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "forward.h"
+#include "shared-forward.h"
 
 typedef struct XdgAutostartService {
         char *name;