Const-ify the world (or at least a good part of it)
authorKevin P. Fleming <kpfleming@digium.com>
Thu, 21 May 2009 21:13:09 +0000 (21:13 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Thu, 21 May 2009 21:13:09 +0000 (21:13 +0000)
commite6b2e9a7501b5d2e351a5e626fa13dfc3c113f1e
treeb40d978190102dbe6f14458ab8a70f358db533e4
parent88bda581ec7c524050bca769c6705ee5c66357ad
Const-ify the world (or at least a good part of it)

This patch adds 'const' tags to a number of Asterisk APIs where they are appropriate (where the API already demanded that the function argument not be modified, but the compiler was not informed of that fact). The list includes:

- CLI command handlers
- CLI command handler arguments
- AGI command handlers
- AGI command handler arguments
- Dialplan application handler arguments
- Speech engine API function arguments

In addition, various file-scope and function-scope constant arrays got 'const' and/or 'static' qualifiers where they were missing.

Review: https://reviewboard.asterisk.org/r/251/

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@196072 65c4cc65-6c06-0410-ace0-fbb531ad65f3
145 files changed:
apps/app_adsiprog.c
apps/app_alarmreceiver.c
apps/app_amd.c
apps/app_authenticate.c
apps/app_cdr.c
apps/app_chanisavail.c
apps/app_channelredirect.c
apps/app_chanspy.c
apps/app_confbridge.c
apps/app_controlplayback.c
apps/app_dahdibarge.c
apps/app_dahdiras.c
apps/app_db.c
apps/app_dial.c
apps/app_dictate.c
apps/app_directed_pickup.c
apps/app_directory.c
apps/app_disa.c
apps/app_dumpchan.c
apps/app_echo.c
apps/app_exec.c
apps/app_externalivr.c
apps/app_fax.c
apps/app_festival.c
apps/app_flash.c
apps/app_followme.c
apps/app_forkcdr.c
apps/app_getcpeid.c
apps/app_ices.c
apps/app_image.c
apps/app_ivrdemo.c
apps/app_jack.c
apps/app_macro.c
apps/app_meetme.c
apps/app_milliwatt.c
apps/app_minivm.c
apps/app_mixmonitor.c
apps/app_morsecode.c
apps/app_mp3.c
apps/app_nbscat.c
apps/app_originate.c
apps/app_osplookup.c
apps/app_page.c
apps/app_parkandannounce.c
apps/app_playback.c
apps/app_playtones.c
apps/app_privacy.c
apps/app_queue.c
apps/app_read.c
apps/app_readexten.c
apps/app_readfile.c
apps/app_record.c
apps/app_rpt.c
apps/app_sayunixtime.c
apps/app_senddtmf.c
apps/app_sendtext.c
apps/app_setcallerid.c
apps/app_skel.c
apps/app_sms.c
apps/app_softhangup.c
apps/app_speech_utils.c
apps/app_stack.c
apps/app_system.c
apps/app_talkdetect.c
apps/app_test.c
apps/app_transfer.c
apps/app_url.c
apps/app_userevent.c
apps/app_verbose.c
apps/app_voicemail.c
apps/app_waitforring.c
apps/app_waitforsilence.c
apps/app_waituntil.c
apps/app_while.c
apps/app_zapateller.c
cdr/cdr_adaptive_odbc.c
cdr/cdr_sqlite.c
cdr/cdr_sqlite3_custom.c
channels/chan_agent.c
channels/chan_alsa.c
channels/chan_console.c
channels/chan_dahdi.c
channels/chan_iax2.c
channels/chan_mgcp.c
channels/chan_misdn.c
channels/chan_nbs.c
channels/chan_oss.c
channels/chan_sip.c
channels/chan_skinny.c
channels/chan_unistim.c
channels/console_gui.c
channels/iax2-parser.c
channels/misdn/chan_misdn_config.h
channels/misdn_config.c
channels/vcodecs.c
formats/format_gsm.c
funcs/func_devstate.c
funcs/func_odbc.c
funcs/func_strings.c
include/asterisk/abstract_jb.h
include/asterisk/agi.h
include/asterisk/app.h
include/asterisk/cli.h
include/asterisk/extconf.h
include/asterisk/features.h
include/asterisk/image.h
include/asterisk/module.h
include/asterisk/pbx.h
include/asterisk/speech.h
include/asterisk/strings.h
include/asterisk/taskprocessor.h
include/asterisk/utils.h
main/abstract_jb.c
main/app.c
main/ast_expr2.fl
main/asterisk.c
main/astobj2.c
main/cdr.c
main/channel.c
main/cli.c
main/dsp.c
main/features.c
main/frame.c
main/image.c
main/loader.c
main/manager.c
main/pbx.c
main/taskprocessor.c
main/udptl.c
main/ulaw.c
main/utils.c
pbx/dundi-parser.c
pbx/pbx_ael.c
pbx/pbx_config.c
res/res_agi.c
res/res_clioriginate.c
res/res_jabber.c
res/res_limit.c
res/res_monitor.c
res/res_musiconhold.c
res/res_odbc.c
res/res_rtp_asterisk.c
res/res_speech.c
utils/conf2ael.c
utils/extconf.c