Skip to content
Snippets Groups Projects
  1. May 11, 2006
  2. May 10, 2006
  3. May 03, 2006
  4. Apr 14, 2006
  5. Apr 13, 2006
  6. Apr 11, 2006
  7. Apr 08, 2006
  8. 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
  9. Apr 02, 2006
  10. Mar 28, 2006
  11. Mar 25, 2006
  12. Feb 27, 2006
  13. Feb 14, 2006
  14. Jan 18, 2006
  15. Dec 30, 2005
  16. Dec 04, 2005
  17. Nov 29, 2005
  18. Oct 24, 2005
  19. Sep 26, 2005
  20. Sep 14, 2005
  21. Aug 05, 2005
  22. Jul 25, 2005
  23. Jul 07, 2005
  24. Jul 05, 2005
  25. Jun 06, 2005
  26. Jun 03, 2005
  27. Apr 22, 2005
  28. Apr 21, 2005
  29. Apr 06, 2005
  30. Jan 25, 2005
Loading