rdisc: hide internal fields from NMRDisc API

System Internals / NetworkManager - Thomas Haller [redhat.com] - 8 July 2016 05:25 UTC

Hide the mutable fields that were exposed to the user of the NMRDisc API. Instead, only expose a constant NMRDiscData structure.

15b4867 rdisc: hide internal fields from NMRDisc API
src/devices/nm-device.c | 39 +++----
src/nm-iface-helper.c | 23 ++--
src/rdisc/nm-fake-rdisc.c | 13 ++-
src/rdisc/nm-lndp-rdisc.c | 15 ++-
src/rdisc/nm-rdisc-private.h | 11 ++
src/rdisc/nm-rdisc.c | 224 ++++++++++++++++++++++++-------------
src/rdisc/nm-rdisc.h | 34 ++++--
src/rdisc/tests/test-rdisc-fake.c | 176 +++++++++++++++++------------
8 files changed, 331 insertions(+), 204 deletions(-)

Upstream: cgit.freedesktop.org


  • Share