• Thomas Haller's avatar
    core: fix wrongly exporting object before instance is fully constructed · 8a8ecc46
    Thomas Haller authored
    Exporting the object already in the *_init() function will later
    break because the object is not yet fully initialized at that point.
    Add a convenient flag so that the NMExportedObject parent implementation
    automatically can export itself. This saves the derived class from
    overwriting the constructed() method.
    Also add an assertion to catch such bugs.
nm-dhcp4-config.c 4.58 KB