libnm: use obj_properties array in libnm and cleanup

System Internals / NetworkManager - Thomas Haller [redhat.com] - 18 October 2019 20:09 EDT

This is not merely cosmetic. I will need the obj_properties array to lookup GParamSpec by their PROP_* enum value. The alternative would be lookup by name, which is more expensive.

e761d230c libnm: use obj_properties array in libnm and cleanup
libnm/nm-access-point.c | 143 ++++++--------
libnm/nm-active-connection.c | 210 +++++++++-----------
libnm/nm-checkpoint.c | 44 ++---
libnm/nm-client.c | 445 +++++++++++++++++++-----------------------
libnm/nm-device-6lowpan.c | 18 +-
libnm/nm-device-adsl.c | 23 +--
libnm/nm-device-bond.c | 53 +++--
libnm/nm-device-bridge.c | 53 +++--
libnm/nm-device-bt.c | 54 +++--
libnm/nm-device-dummy.c | 26 ++-
libnm/nm-device-ethernet.c | 73 +++----
libnm/nm-device-generic.c | 39 ++--
libnm/nm-device-infiniband.c | 39 ++--
libnm/nm-device-ip-tunnel.c | 148 +++++++-------
libnm/nm-device-macsec.c | 114 +++++------
libnm/nm-device-macvlan.c | 73 +++----
libnm/nm-device-modem.c | 74 ++++---
libnm/nm-device-olpc-mesh.c | 52 +++--
libnm/nm-device-team.c | 64 +++---
libnm/nm-device-tun.c | 95 ++++-----
libnm/nm-device-vlan.c | 62 +++---
libnm/nm-device-vxlan.c | 216 +++++++++-----------
libnm/nm-device-wifi.c | 144 ++++++--------
libnm/nm-device-wimax.c | 138 ++++++-------
libnm/nm-device-wpan.c | 31 ++-
libnm/nm-device.c | 359 +++++++++++++++-------------------
libnm/nm-dhcp-config.c | 36 ++--
libnm/nm-dns-manager.c | 51 +++--
libnm/nm-ip-config.c | 102 +++++-----
libnm/nm-manager.c | 380 +++++++++++++++++-------------------
libnm/nm-object.c | 66 +++----
libnm/nm-remote-connection.c | 59 +++---
libnm/nm-remote-settings.c | 88 ++++-----
libnm/nm-vpn-connection.c | 55 +++---
libnm/nm-vpn-plugin-old.c | 167 ++++++++--------
libnm/nm-vpn-service-plugin.c | 180 ++++++++---------
libnm/nm-wimax-nsp.c | 49 ++---
37 files changed, 1823 insertions(+), 2200 deletions(-)

Upstream: cgit.freedesktop.org


  • Share