Move IAX firmware related functionality into separate files.
authorSean Bright <sean@malleable.com>
Thu, 31 Jan 2013 19:52:48 +0000 (19:52 +0000)
committerSean Bright <sean@malleable.com>
Thu, 31 Jan 2013 19:52:48 +0000 (19:52 +0000)
commitd6e05d5bf3509c3d1c1f8ddb2937acc65db180bc
tree9fb64874bcf958f201578f8f5e32c65cf5a61af7
parentc1b4a93f4987bbf7066ab32ad023979f591446e1
Move IAX firmware related functionality into separate files.

This patch is mostly a reorganization of existing code with a few exceptions:

* Added doxygen comments to all of the extracted functions.

* Split reload_firmware(int unload) into iax_firmware_reload() and
  iax_firmware_unload() for readability.

* Create iax_firmware_traverse() to support the 'iax2 show firmware' CLI
  command.

* Renamed iax_check_version() to iax_firmware_get_version() and change its
  arguments and return value so that it returns a success/failure value and sets
  the selected version into an out parameter to avoid confusion with failure and
  version 0.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@380695 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_iax2.c
channels/iax2/firmware.c [new file with mode: 0644]
channels/iax2/include/firmware.h [new file with mode: 0644]
channels/iax2/include/parser.h