Skip to content
  1. Feb 15, 2016
    • Alexander Larsson's avatar
      Support versions of GTypes · 0d89ba77
      Alexander Larsson authored
      This adds support for registrating multiple versions of the same
      typename by adding "@@" and a version name when you register the type.
      
      This allows you to include a static library in your module that uses
      gtypes. Normally such types would conflicts if another library also
      statically linked to the library with the same gtype names, but a
      different version. However, since the version names are different
      we avoid this conflict.
      
      You can also use this in public types if you want to allow using two
      libraries with similarly named types to be used in the same process.
      However, in addition to the gtype versions you then need to solve the
      symbol name conflicts. This can be done for instance by using dlopen
      with RTLD_LOCAL, or by introducing ELF symbol versioning.
      
      You can query the versions of a type with g_type_[q]version (), and
      you can look up a name by name and version with
      g_type_from_name_and_version(). g_type_from_name() returns the
      unversioned name if one exists (thus putting th...
      0d89ba77
  2. Feb 13, 2016
  3. Feb 12, 2016
  4. Feb 10, 2016
  5. Feb 08, 2016
  6. Feb 06, 2016
  7. Feb 05, 2016
  8. Feb 04, 2016
  9. Feb 03, 2016
  10. Feb 02, 2016
  11. Feb 01, 2016
  12. Jan 31, 2016
  13. Jan 28, 2016