• Dan Winship's avatar
    libnm-glib: simplify property getter methods · 5afcee46
    Dan Winship authored
    Rather than having every property getter method have code to fetch
    that specific property's value, just call the new
    _nm_object_ensure_inited() (which makes sure that we've read all the
    property values on the object at least once), and then return the
    cached value. (After we've read the initial property values, the
    PropertiesChanged signal handler will ensure that the values are kept
    up to date, so we can always just return cached property values after
    that point.)
    This then lets us get rid of _nm_object_get_property() and its
nm-dhcp4-config.c 6.28 KB