Skip to content
Snippets Groups Projects
  1. Apr 13, 2015
    • Matt Jordan's avatar
      git migration: Refactor the ASTERISK_FILE_VERSION macro · 4a582616
      Matt Jordan authored
      Git does not support the ability to replace a token with a version
      string during check-in. While it does have support for replacing a
      token on clone, this is somewhat sub-optimal: the token is replaced
      with the object hash, which is not particularly easy for human
      consumption. What's more, in practice, the source file version was often
      not terribly useful. Generally, when triaging bugs, the overall version
      of Asterisk is far more useful than an individual SVN version of a file. As a
      result, this patch removes Asterisk's support for showing source file
      versions.
      
      Specifically, it does the following:
      
      * Rename ASTERISK_FILE_VERSION macro to ASTERISK_REGISTER_FILE, and
        remove passing the version in with the macro. Other facilities
        than 'core show file version' make use of the file names, such as
        setting a debug level only on a specific file. As such, the act of
        registering source files with the Asterisk core still has use. The
        macro rename now reflects the new macro purpose.
      
      * main/asterisk:
        - Refactor the file_version structure to reflect that it no longer
          tracks a version field.
        - Remove the "core show file version" CLI command. Without the file
          version, it is no longer useful.
        - Remove the ast_file_version_find function. The file version is no
          longer tracked.
        - Rename ast_register_file_version/ast_unregister_file_version to
          ast_register_file/ast_unregister_file, respectively.
      
      * main/manager: Remove value from the Version key of the ModuleCheck
        Action. The actual key itself has not been removed, as doing so would
        absolutely constitute a backwards incompatible change. However, since
        the file version is no longer tracked, there is no need to attempt to
        include it in the Version key.
      
      * UPGRADE: Add notes for:
        - Modification to the ModuleCheck AMI Action
        - Removal of the "core show file version" CLI command
      
      Change-Id: I6cf0ff280e1668bf4957dc21f32a5ff43444a40e
      4a582616
  2. Aug 16, 2011
  3. Jul 14, 2011
  4. Jul 09, 2010
  5. Feb 09, 2010
    • Russell Bryant's avatar
      Various updates to the unit test API. · bbed34f7
      Russell Bryant authored
      1) It occurred to me that the difference in usage between the error ast_str and
      the ast_test_update_status() usage has turned out to be a bit ambiguous in
      practice.  In a lot of cases, the same message was being sent to both.
      In other cases, it was only sent to one or the other.  My opinion now is that
      in every case, I think it makes sense to do both; we should output it to the
      CLI as well as save it off for logging purposes.
      
      This change results in most of the changes in this diff, since it required
      changes to all existing unit tests.  It also allowed for some simplifications
      of unit test API implementation code.
      
      2) Update ast_test_status_update() to include the file, function, and line
      number for the code providing the update.
      
      3) There are some formatting tweaks here and there.  Hopefully they aren't too
      distracting for code review purposes.  Reviewboard's diff viewer seems to do a
      pretty good job of pointing out when something is a whitespace change.
      
      4) I moved the md5_test and sha1_test into the test_utils module.  It seemed
      like a better approach since these tests are so tiny.
      
      5) I changed the number of nodes used in heap_test_2 from 1 million to
      100 thousand.  The only reason for this was to reduce the time it took
      for this test to run.
      
      6) Remove an unused function prototype that was at the bottom of utils.h.
      
      7) Simplify test_insert() using the LIST_INSERT_SORTALPHA() macro.  The one
      minor difference in behavior is that it no longer checks for a test registered
      with the same name.
      
      8) Expand the code in test_alloc() to provide specific error messages for each
      failure case, to clearly inform developers if they forget to set the name,
      summary, description, etc.
      
      9) Tweak the output of the "test show registered" CLI command.  I swapped the
      name and category to have the category first.  It seemed more natural since
      that is the sort key.
      
      10) Don't output the status ast_str in the "test show results" CLI command.
      This is going to tend to be pretty verbose, so just leave that for the
      detailed test logs (test generate results).
      
      Review: https://reviewboard.asterisk.org/r/493/
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@245864 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      bbed34f7
  6. Jan 25, 2010
  7. Jan 22, 2010
  8. May 04, 2009
  9. Jan 03, 2008
  10. Nov 21, 2007
  11. Nov 19, 2007
  12. Nov 16, 2007
    • Luigi Rizzo's avatar
      Start untangling header inclusion in a way that does not affect · fdb7f7ba
      Luigi Rizzo authored
      build times - tested, there is no measureable difference before and
      after this commit.
      
      In this change:
      
      use asterisk/compat.h to include a small set of system headers:
      inttypes.h, unistd.h, stddef.h, stddint.h, sys/types.h, stdarg.h,
      stdlib.h, alloca.h, stdio.h
      
      Where available, the inclusion is conditional on HAVE_FOO_H as determined
      by autoconf.
      
      Normally, source files should not include any of the above system headers,
      and instead use either "asterisk.h" or "asterisk/compat.h" which does it
      better. 
      
      For the time being I have left alone second-level directories
      (main/db1-ast, etc.).
      
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89333 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      fdb7f7ba
  13. Oct 31, 2007
    • Jason Parker's avatar
      More changes to change return values from load_module functions. · 59c9ff7e
      Jason Parker authored
      (issue #11096)
      Patches:
            codec_adpcm.c.patch uploaded by moy (license 222)
            codec_alaw.c.patch uploaded by moy (license 222)
            codec_a_mu.c.patch uploaded by moy (license 222)
            codec_g722.c.patch uploaded by moy (license 222)
            codec_g726.c.diff uploaded by moy (license 222)
            codec_gsm.c.patch uploaded by moy (license 222)
            codec_ilbc.c.patch uploaded by moy (license 222)
            codec_lpc10.c.patch uploaded by moy (license 222)
            codec_speex.c.patch uploaded by moy (license 222)
            codec_ulaw.c.patch uploaded by moy (license 222)
            codec_zap.c.patch uploaded by moy (license 222)
            format_g723.c.patch uploaded by moy (license 222)
            format_g726.c.patch uploaded by moy (license 222)
            format_g729.c.patch uploaded by moy (license 222)
            format_gsm.c.patch uploaded by moy (license 222)
            format_h263.c.patch uploaded by moy (license 222)
            format_h264.c.patch uploaded by moy (license 222)
            format_ilbc.c.patch uploaded by moy (license 222)
            format_jpeg.c.patch uploaded by moy (license 222)
            format_ogg_vorbis.c.patch uploaded by moy (license 222)
            format_pcm.c.patch uploaded by moy (license 222)
            format_sln.c.patch uploaded by moy (license 222)
            format_vox.c.patch uploaded by moy (license 222)
            format_wav.c.patch uploaded by moy (license 222)
            format_wav_gsm.c.patch uploaded by moy (license 222)
            res_adsi.c.patch uploaded by eliel (license 64)
            res_ael_share.c.patch uploaded by eliel (license 64)
            res_clioriginate.c.patch uploaded by eliel (license 64)
            res_convert.c.patch uploaded by eliel (license 64)
            res_indications.c.patch uploaded by eliel (license 64)
            res_musiconhold.c.patch uploaded by eliel (license 64)
            res_smdi.c.patch uploaded by eliel (license 64)
            res_speech.c.patch uploaded by eliel (license 64)
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@87889 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      59c9ff7e
  14. Aug 15, 2007
Loading