mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-21 18:50:30 +01:00
The "closure" annotation needs to be set on the callback parameter
instead of on the data for the callback function.
This patch fixes the following warning:
"""
../src/libnm-core-impl/nm-utils.c:3632: Warning: NM: invalid "closure" annotation: only valid on callback parameters
../src/libnm-client-impl/nm-client.c:4778: Warning: NM: invalid "closure" annotation: only valid on callback parameters
../src/libnm-client-impl/nm-client.c:5776: Warning: NM: invalid "closure" annotation: only valid on callback parameters
../src/libnm-client-impl/nm-client.c:5849: Warning: NM: invalid "closure" annotation: only valid on callback parameters
../src/libnm-client-impl/nm-client.c:5976: Warning: NM: invalid "closure" annotation: only valid on callback parameters
../src/libnm-client-impl/nm-client.c:6091: Warning: NM: invalid "closure" annotation: only valid on callback parameters
../src/libnm-client-impl/nm-client.c:6448: Warning: NM: invalid "closure" annotation: only valid on callback parameters
../src/libnm-client-impl/nm-client.c:6521: Warning: NM: invalid "closure" annotation: only valid on callback parameters
../src/libnm-client-impl/nm-client.c:6581: Warning: NM: invalid "closure" annotation: only valid on callback parameters
../src/libnm-client-impl/nm-client.c:6663: Warning: NM: invalid "closure" annotation: only valid on callback parameters
../src/libnm-client-impl/nm-client.c:6728: Warning: NM: invalid "closure" annotation: only valid on callback parameters
../src/libnm-client-impl/nm-secret-agent-old.c:974: Warning: NM: invalid "closure" annotation: only valid on callback parameters
../src/libnm-client-impl/nm-secret-agent-old.c:1014: Warning: NM: invalid "closure" annotation: only valid on callback parameters
../src/libnm-client-impl/nm-secret-agent-old.c:1041: Warning: NM: invalid "closure" annotation: only valid on callback parameters
../src/libnm-client-impl/nm-secret-agent-old.c:974: Warning: NM: invalid "closure" annotation: only valid on callback parameters
../src/libnm-client-impl/nm-secret-agent-old.c:1014: Warning: NM: invalid "closure" annotation: only valid on callback parameters
../src/libnm-client-impl/nm-secret-agent-old.c:1041: Warning: NM: invalid "closure" annotation: only valid on callback parameters
"""
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| tests | ||
| libnm.pc.in | ||
| libnm.ver | ||
| meson.build | ||
| nm-access-point.c | ||
| nm-active-connection.c | ||
| nm-checkpoint.c | ||
| nm-client.c | ||
| nm-conn-utils.c | ||
| nm-dbus-helpers.c | ||
| nm-dbus-helpers.h | ||
| nm-default-libnm.h | ||
| nm-device-6lowpan.c | ||
| nm-device-adsl.c | ||
| nm-device-bond.c | ||
| nm-device-bridge.c | ||
| nm-device-bt.c | ||
| nm-device-dummy.c | ||
| nm-device-ethernet.c | ||
| nm-device-generic.c | ||
| nm-device-hsr.c | ||
| nm-device-infiniband.c | ||
| nm-device-ip-tunnel.c | ||
| nm-device-loopback.c | ||
| nm-device-macsec.c | ||
| nm-device-macvlan.c | ||
| nm-device-modem.c | ||
| nm-device-olpc-mesh.c | ||
| nm-device-ovs-bridge.c | ||
| nm-device-ovs-interface.c | ||
| nm-device-ovs-port.c | ||
| nm-device-ppp.c | ||
| nm-device-private.h | ||
| nm-device-team.c | ||
| nm-device-tun.c | ||
| nm-device-veth.c | ||
| nm-device-vlan.c | ||
| nm-device-vrf.c | ||
| nm-device-vxlan.c | ||
| nm-device-wifi-p2p.c | ||
| nm-device-wifi.c | ||
| nm-device-wimax.c | ||
| nm-device-wireguard.c | ||
| nm-device-wpan.c | ||
| nm-device.c | ||
| nm-dhcp-config.c | ||
| nm-dhcp4-config.c | ||
| nm-dhcp4-config.h | ||
| nm-dhcp6-config.c | ||
| nm-dhcp6-config.h | ||
| nm-dns-manager.c | ||
| nm-dns-manager.h | ||
| nm-ip-config.c | ||
| nm-ip4-config.c | ||
| nm-ip4-config.h | ||
| nm-ip6-config.c | ||
| nm-ip6-config.h | ||
| nm-libnm-utils.c | ||
| nm-libnm-utils.h | ||
| nm-object-private.h | ||
| nm-object.c | ||
| nm-remote-connection-private.h | ||
| nm-remote-connection.c | ||
| nm-secret-agent-old.c | ||
| nm-vpn-connection.c | ||
| nm-vpn-editor.c | ||
| nm-vpn-plugin-old.c | ||
| nm-vpn-service-plugin.c | ||
| nm-wifi-p2p-peer.c | ||
| nm-wimax-nsp.c | ||
| README.md | ||
libnm-client-impl
libnm is NetworkManager's client API. This API consists of two parts:
- the handling of connections (
NMConnection), implemented by libnm-core-impl. - the caching of D-Bus API (
NMClient), implemented by libnm-client-impl.
This directory contains the implementation of the second part. As such, it will be statically linked with libnm-core-impl to make libnm. Also, it cannot be used by the daemon.