Skip to content
Snippets Groups Projects
  1. Apr 08, 2006
  2. Apr 06, 2006
    • Luigi Rizzo's avatar
      small cleanups to module.h and loader.c to start playing with · a60d8196
      Luigi Rizzo authored
      new-style modules using static symbols.
      
      Everything will still work as before, but new-style modules
      can now be defined by putting a '#define STATIC_MODULE' somewhere
      before including module.h, then declaring STATIC_MODULE the
      various methods (load, unload, key...) that the module is
      supposed to supply, and adding a 'STD_MOD(MOD_1, reload_fn, NULL, NULL)'
      macro call at the end.
      A module compiled in this way will be loaded RTLD_NOW|RTLD_LOCAL
      so symbol pollution is reduced, and symbols are resolved immediately.
      Removing just the '#define STATIC_MODULE' will restore the old
      behaviour.
      
      In order for a module to be loaded RTLD_NOW|RTLD_LOCAL, it must not
      export any symbol[1], and all the modules it depends on (e.g. res_*)
      must be loaded already.
      
      [1] Mechanisms are in place, and will be enabled later, to still
      allow such modules to 'export' symbols and resolving the dependencies
      irrespective of the load order.
      
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17790 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      a60d8196
  3. Apr 02, 2006
  4. Mar 28, 2006
  5. Mar 25, 2006
  6. Feb 27, 2006
  7. Feb 14, 2006
  8. Jan 18, 2006
  9. Dec 30, 2005
  10. Dec 04, 2005
  11. Nov 29, 2005
  12. Oct 24, 2005
  13. Sep 26, 2005
  14. Sep 14, 2005
  15. Aug 05, 2005
  16. Jul 25, 2005
  17. Jul 07, 2005
  18. Jul 05, 2005
  19. Jun 06, 2005
  20. Jun 03, 2005
  21. Apr 22, 2005
  22. Apr 21, 2005
  23. Apr 06, 2005
  24. Jan 25, 2005
  25. Jan 21, 2005
  26. Jan 16, 2005
  27. Jan 10, 2005
  28. Jan 04, 2005
  29. Dec 27, 2004
  30. Nov 17, 2004
  31. Nov 13, 2004
  32. Oct 16, 2004
Loading