Skip to content
  • Emmanuele Bassi's avatar
    dc86ad19
    Drop TypeNode reference counting · dc86ad19
    Emmanuele Bassi authored and Philip Withnall's avatar Philip Withnall committed
    We don't allow unloading types, both static and dynamic, since 2013. The
    code that deals with reference counting is mostly dead code, and makes
    reasoning about the type system more complicated than necessary.
    
    Since type classes and interfaces can only be instantiated, we introduce
    explicit getter functions that create a GTypeClass or a GTypeInterface
    vtable; the ref() and unref() API gets a "soft" deprecation (explicitly
    not using `GOBJECT_DEPRECATED_IN_*` yet), to allow people to
    progressively port their code.
    dc86ad19
    Drop TypeNode reference counting
    Emmanuele Bassi authored and Philip Withnall's avatar Philip Withnall committed
    We don't allow unloading types, both static and dynamic, since 2013. The
    code that deals with reference counting is mostly dead code, and makes
    reasoning about the type system more complicated than necessary.
    
    Since type classes and interfaces can only be instantiated, we introduce
    explicit getter functions that create a GTypeClass or a GTypeInterface
    vtable; the ref() and unref() API gets a "soft" deprecation (explicitly
    not using `GOBJECT_DEPRECATED_IN_*` yet), to allow people to
    progressively port their code.
Loading