Skip to content
  • Lubomir Rintel's avatar
    libnm: use the o.fd.DBus.ObjectManager API for object management · 1f5b48a5
    Lubomir Rintel authored
    This speeds up the initial object tree load significantly. Also, it
    reduces the object management complexity by shifting the duties to
    GDBusObjectManager.
    
    The lifetime of all NMObjects is now managed by the NMClient via the
    object manager. The NMClient creates the NMObjects for GDBus objects,
    triggers the initialization and serves as an object registry (replaces
    the nm-cache).
    
    The ObjectManager uses the o.fd.DBus.ObjectManager API to learn of the
    object creation, removal and property changes. It takes care of the
    property changes so that we don't have to and lets us always see a
    consistent object state.  Thus at the time we learn of a new object we
    already know its properties.
    
    The NMObject unfortunately can't be made synchronously initializable as
    the NMRemoteConnection's settings are not managed with standard
    o.fd.DBus Properties and ObjectManager APIs and thus are not known to
    the ObjectManager.  Thus most of the asynchronous object pro...
    1f5b48a5