[asterisk-commits] eliel: branch eliel/manager-xmldoc r196166 - in /team/eliel/manager-xmldoc: ....
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri May 22 09:28:59 CDT 2009
Author: eliel
Date: Fri May 22 09:28:36 2009
New Revision: 196166
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=196166
Log:
Merged revisions 196072,196114 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r196072 | kpfleming | 2009-05-21 17:13:09 -0400 (Thu, 21 May 2009) | 16 lines
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/
........
r196114 | eliel | 2009-05-22 09:34:01 -0400 (Fri, 22 May 2009) | 5 lines
Avoid using prototypes when not necessary (it is already defined in the header
file).
Make log_match_char_tree() static to main/pbx.c (only used there).
........
Modified:
team/eliel/manager-xmldoc/ (props changed)
team/eliel/manager-xmldoc/apps/app_adsiprog.c
team/eliel/manager-xmldoc/apps/app_alarmreceiver.c
team/eliel/manager-xmldoc/apps/app_amd.c
team/eliel/manager-xmldoc/apps/app_authenticate.c
team/eliel/manager-xmldoc/apps/app_cdr.c
team/eliel/manager-xmldoc/apps/app_chanisavail.c
team/eliel/manager-xmldoc/apps/app_channelredirect.c
team/eliel/manager-xmldoc/apps/app_chanspy.c
team/eliel/manager-xmldoc/apps/app_confbridge.c
team/eliel/manager-xmldoc/apps/app_controlplayback.c
team/eliel/manager-xmldoc/apps/app_dahdibarge.c
team/eliel/manager-xmldoc/apps/app_dahdiras.c
team/eliel/manager-xmldoc/apps/app_db.c
team/eliel/manager-xmldoc/apps/app_dial.c
team/eliel/manager-xmldoc/apps/app_dictate.c
team/eliel/manager-xmldoc/apps/app_directed_pickup.c
team/eliel/manager-xmldoc/apps/app_directory.c
team/eliel/manager-xmldoc/apps/app_disa.c
team/eliel/manager-xmldoc/apps/app_dumpchan.c
team/eliel/manager-xmldoc/apps/app_echo.c
team/eliel/manager-xmldoc/apps/app_exec.c
team/eliel/manager-xmldoc/apps/app_externalivr.c
team/eliel/manager-xmldoc/apps/app_fax.c
team/eliel/manager-xmldoc/apps/app_festival.c
team/eliel/manager-xmldoc/apps/app_flash.c
team/eliel/manager-xmldoc/apps/app_followme.c
team/eliel/manager-xmldoc/apps/app_forkcdr.c
team/eliel/manager-xmldoc/apps/app_getcpeid.c
team/eliel/manager-xmldoc/apps/app_ices.c
team/eliel/manager-xmldoc/apps/app_image.c
team/eliel/manager-xmldoc/apps/app_ivrdemo.c
team/eliel/manager-xmldoc/apps/app_jack.c
team/eliel/manager-xmldoc/apps/app_macro.c
team/eliel/manager-xmldoc/apps/app_meetme.c
team/eliel/manager-xmldoc/apps/app_milliwatt.c
team/eliel/manager-xmldoc/apps/app_minivm.c
team/eliel/manager-xmldoc/apps/app_mixmonitor.c
team/eliel/manager-xmldoc/apps/app_morsecode.c
team/eliel/manager-xmldoc/apps/app_mp3.c
team/eliel/manager-xmldoc/apps/app_nbscat.c
team/eliel/manager-xmldoc/apps/app_originate.c
team/eliel/manager-xmldoc/apps/app_osplookup.c
team/eliel/manager-xmldoc/apps/app_page.c
team/eliel/manager-xmldoc/apps/app_parkandannounce.c
team/eliel/manager-xmldoc/apps/app_playback.c
team/eliel/manager-xmldoc/apps/app_playtones.c
team/eliel/manager-xmldoc/apps/app_privacy.c
team/eliel/manager-xmldoc/apps/app_queue.c
team/eliel/manager-xmldoc/apps/app_read.c
team/eliel/manager-xmldoc/apps/app_readexten.c
team/eliel/manager-xmldoc/apps/app_readfile.c
team/eliel/manager-xmldoc/apps/app_record.c
team/eliel/manager-xmldoc/apps/app_rpt.c
team/eliel/manager-xmldoc/apps/app_sayunixtime.c
team/eliel/manager-xmldoc/apps/app_senddtmf.c
team/eliel/manager-xmldoc/apps/app_sendtext.c
team/eliel/manager-xmldoc/apps/app_setcallerid.c
team/eliel/manager-xmldoc/apps/app_skel.c
team/eliel/manager-xmldoc/apps/app_sms.c
team/eliel/manager-xmldoc/apps/app_softhangup.c
team/eliel/manager-xmldoc/apps/app_speech_utils.c
team/eliel/manager-xmldoc/apps/app_stack.c
team/eliel/manager-xmldoc/apps/app_system.c
team/eliel/manager-xmldoc/apps/app_talkdetect.c
team/eliel/manager-xmldoc/apps/app_test.c
team/eliel/manager-xmldoc/apps/app_transfer.c
team/eliel/manager-xmldoc/apps/app_url.c
team/eliel/manager-xmldoc/apps/app_userevent.c
team/eliel/manager-xmldoc/apps/app_verbose.c
team/eliel/manager-xmldoc/apps/app_voicemail.c
team/eliel/manager-xmldoc/apps/app_waitforring.c
team/eliel/manager-xmldoc/apps/app_waitforsilence.c
team/eliel/manager-xmldoc/apps/app_waituntil.c
team/eliel/manager-xmldoc/apps/app_while.c
team/eliel/manager-xmldoc/apps/app_zapateller.c
team/eliel/manager-xmldoc/cdr/cdr_adaptive_odbc.c
team/eliel/manager-xmldoc/cdr/cdr_sqlite.c
team/eliel/manager-xmldoc/cdr/cdr_sqlite3_custom.c
team/eliel/manager-xmldoc/channels/chan_agent.c
team/eliel/manager-xmldoc/channels/chan_alsa.c
team/eliel/manager-xmldoc/channels/chan_console.c
team/eliel/manager-xmldoc/channels/chan_dahdi.c
team/eliel/manager-xmldoc/channels/chan_iax2.c
team/eliel/manager-xmldoc/channels/chan_mgcp.c
team/eliel/manager-xmldoc/channels/chan_misdn.c
team/eliel/manager-xmldoc/channels/chan_nbs.c
team/eliel/manager-xmldoc/channels/chan_oss.c
team/eliel/manager-xmldoc/channels/chan_sip.c
team/eliel/manager-xmldoc/channels/chan_skinny.c
team/eliel/manager-xmldoc/channels/chan_unistim.c
team/eliel/manager-xmldoc/channels/console_gui.c
team/eliel/manager-xmldoc/channels/iax2-parser.c
team/eliel/manager-xmldoc/channels/misdn/chan_misdn_config.h
team/eliel/manager-xmldoc/channels/misdn_config.c
team/eliel/manager-xmldoc/channels/vcodecs.c
team/eliel/manager-xmldoc/formats/format_gsm.c
team/eliel/manager-xmldoc/funcs/func_devstate.c
team/eliel/manager-xmldoc/funcs/func_odbc.c
team/eliel/manager-xmldoc/funcs/func_strings.c
team/eliel/manager-xmldoc/include/asterisk/abstract_jb.h
team/eliel/manager-xmldoc/include/asterisk/agi.h
team/eliel/manager-xmldoc/include/asterisk/app.h
team/eliel/manager-xmldoc/include/asterisk/cli.h
team/eliel/manager-xmldoc/include/asterisk/extconf.h
team/eliel/manager-xmldoc/include/asterisk/features.h
team/eliel/manager-xmldoc/include/asterisk/image.h
team/eliel/manager-xmldoc/include/asterisk/module.h
team/eliel/manager-xmldoc/include/asterisk/pbx.h
team/eliel/manager-xmldoc/include/asterisk/speech.h
team/eliel/manager-xmldoc/include/asterisk/strings.h
team/eliel/manager-xmldoc/include/asterisk/taskprocessor.h
team/eliel/manager-xmldoc/include/asterisk/utils.h
team/eliel/manager-xmldoc/main/abstract_jb.c
team/eliel/manager-xmldoc/main/app.c
team/eliel/manager-xmldoc/main/ast_expr2.fl
team/eliel/manager-xmldoc/main/asterisk.c
team/eliel/manager-xmldoc/main/astobj2.c
team/eliel/manager-xmldoc/main/cdr.c
team/eliel/manager-xmldoc/main/channel.c
team/eliel/manager-xmldoc/main/cli.c
team/eliel/manager-xmldoc/main/dsp.c
team/eliel/manager-xmldoc/main/features.c
team/eliel/manager-xmldoc/main/frame.c
team/eliel/manager-xmldoc/main/image.c
team/eliel/manager-xmldoc/main/loader.c
team/eliel/manager-xmldoc/main/manager.c
team/eliel/manager-xmldoc/main/pbx.c
team/eliel/manager-xmldoc/main/taskprocessor.c
team/eliel/manager-xmldoc/main/udptl.c
team/eliel/manager-xmldoc/main/ulaw.c
team/eliel/manager-xmldoc/main/utils.c
team/eliel/manager-xmldoc/pbx/dundi-parser.c
team/eliel/manager-xmldoc/pbx/pbx_ael.c
team/eliel/manager-xmldoc/pbx/pbx_config.c
team/eliel/manager-xmldoc/res/res_agi.c
team/eliel/manager-xmldoc/res/res_clioriginate.c
team/eliel/manager-xmldoc/res/res_jabber.c
team/eliel/manager-xmldoc/res/res_limit.c
team/eliel/manager-xmldoc/res/res_monitor.c
team/eliel/manager-xmldoc/res/res_musiconhold.c
team/eliel/manager-xmldoc/res/res_odbc.c
team/eliel/manager-xmldoc/res/res_rtp_asterisk.c
team/eliel/manager-xmldoc/res/res_speech.c
team/eliel/manager-xmldoc/utils/conf2ael.c
team/eliel/manager-xmldoc/utils/extconf.c
Propchange: team/eliel/manager-xmldoc/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Fri May 22 09:28:36 2009
@@ -1,1 +1,1 @@
-/trunk:1-196007
+/trunk:1-196115
Modified: team/eliel/manager-xmldoc/apps/app_adsiprog.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/eliel/manager-xmldoc/apps/app_adsiprog.c?view=diff&rev=196166&r1=196165&r2=196166
==============================================================================
--- team/eliel/manager-xmldoc/apps/app_adsiprog.c (original)
+++ team/eliel/manager-xmldoc/apps/app_adsiprog.c Fri May 22 09:28:36 2009
@@ -74,7 +74,7 @@
char *name;
};
-static struct adsi_event events[] = {
+static const struct adsi_event events[] = {
{ 1, "CALLERID" },
{ 2, "VMWI" },
{ 3, "NEARANSWER" },
@@ -101,7 +101,7 @@
{ 24, "CPEID" },
};
-static struct adsi_event justify[] = {
+static const struct adsi_event justify[] = {
{ 0, "CENTER" },
{ 1, "RIGHT" },
{ 2, "LEFT" },
@@ -232,7 +232,7 @@
return 0;
}
-static char *get_token(char **buf, char *script, int lineno)
+static char *get_token(char **buf, const char *script, int lineno)
{
char *tmp = *buf, *keyword;
int quoted = 0;
@@ -264,7 +264,7 @@
static char *validdtmf = "123456789*0#ABCD";
-static int send_dtmf(char *buf, char *name, int id, char *args, struct adsi_script *state, char *script, int lineno)
+static int send_dtmf(char *buf, char *name, int id, char *args, struct adsi_script *state, const char *script, int lineno)
{
char dtmfstr[80], *a;
int bytes = 0;
@@ -294,7 +294,7 @@
return bytes;
}
-static int goto_line(char *buf, char *name, int id, char *args, struct adsi_script *state, char *script, int lineno)
+static int goto_line(char *buf, char *name, int id, char *args, struct adsi_script *state, const char *script, int lineno)
{
char *page = get_token(&args, script, lineno);
char *gline = get_token(&args, script, lineno);
@@ -327,7 +327,7 @@
return 2;
}
-static int goto_line_rel(char *buf, char *name, int id, char *args, struct adsi_script *state, char *script, int lineno)
+static int goto_line_rel(char *buf, char *name, int id, char *args, struct adsi_script *state, const char *script, int lineno)
{
char *dir = get_token(&args, script, lineno);
char *gline = get_token(&args, script, lineno);
@@ -360,7 +360,7 @@
return 2;
}
-static int send_delay(char *buf, char *name, int id, char *args, struct adsi_script *state, char *script, int lineno)
+static int send_delay(char *buf, char *name, int id, char *args, struct adsi_script *state, const char *script, int lineno)
{
char *gtime = get_token(&args, script, lineno);
int ms;
@@ -385,7 +385,7 @@
return 2;
}
-static int set_state(char *buf, char *name, int id, char *args, struct adsi_script *istate, char *script, int lineno)
+static int set_state(char *buf, char *name, int id, char *args, struct adsi_script *istate, const char *script, int lineno)
{
char *gstate = get_token(&args, script, lineno);
int state;
@@ -406,7 +406,7 @@
return 2;
}
-static int cleartimer(char *buf, char *name, int id, char *args, struct adsi_script *istate, char *script, int lineno)
+static int cleartimer(char *buf, char *name, int id, char *args, struct adsi_script *istate, const char *script, int lineno)
{
char *tok = get_token(&args, script, lineno);
@@ -424,7 +424,7 @@
return 2;
}
-static struct adsi_flag *getflagbyname(struct adsi_script *state, char *name, char *script, int lineno, int create)
+static struct adsi_flag *getflagbyname(struct adsi_script *state, char *name, const char *script, int lineno, int create)
{
int x;
@@ -449,7 +449,7 @@
return &state->flags[state->numflags-1];
}
-static int setflag(char *buf, char *name, int id, char *args, struct adsi_script *state, char *script, int lineno)
+static int setflag(char *buf, char *name, int id, char *args, struct adsi_script *state, const char *script, int lineno)
{
char *tok = get_token(&args, script, lineno);
char sname[80];
@@ -476,7 +476,7 @@
return 2;
}
-static int clearflag(char *buf, char *name, int id, char *args, struct adsi_script *state, char *script, int lineno)
+static int clearflag(char *buf, char *name, int id, char *args, struct adsi_script *state, const char *script, int lineno)
{
char *tok = get_token(&args, script, lineno);
struct adsi_flag *flag;
@@ -503,7 +503,7 @@
return 2;
}
-static int starttimer(char *buf, char *name, int id, char *args, struct adsi_script *istate, char *script, int lineno)
+static int starttimer(char *buf, char *name, int id, char *args, struct adsi_script *istate, const char *script, int lineno)
{
char *tok = get_token(&args, script, lineno);
int secs;
@@ -549,7 +549,7 @@
return -1;
}
-static struct adsi_soft_key *getkeybyname(struct adsi_script *state, char *name, char *script, int lineno)
+static struct adsi_soft_key *getkeybyname(struct adsi_script *state, char *name, const char *script, int lineno)
{
int x;
@@ -570,7 +570,7 @@
return &state->keys[state->numkeys-1];
}
-static struct adsi_subscript *getsubbyname(struct adsi_script *state, char *name, char *script, int lineno)
+static struct adsi_subscript *getsubbyname(struct adsi_script *state, char *name, const char *script, int lineno)
{
int x;
@@ -591,7 +591,7 @@
return &state->subs[state->numsubs-1];
}
-static struct adsi_state *getstatebyname(struct adsi_script *state, char *name, char *script, int lineno, int create)
+static struct adsi_state *getstatebyname(struct adsi_script *state, char *name, const char *script, int lineno, int create)
{
int x;
@@ -616,7 +616,7 @@
return &state->states[state->numstates-1];
}
-static struct adsi_display *getdisplaybyname(struct adsi_script *state, char *name, char *script, int lineno, int create)
+static struct adsi_display *getdisplaybyname(struct adsi_script *state, char *name, const char *script, int lineno, int create)
{
int x;
@@ -641,7 +641,7 @@
return &state->displays[state->numdisplays-1];
}
-static int showkeys(char *buf, char *name, int id, char *args, struct adsi_script *state, char *script, int lineno)
+static int showkeys(char *buf, char *name, int id, char *args, struct adsi_script *state, const char *script, int lineno)
{
char *tok, newkey[80];
int bytes, x, flagid = 0;
@@ -688,7 +688,7 @@
return 2 + x;
}
-static int showdisplay(char *buf, char *name, int id, char *args, struct adsi_script *state, char *script, int lineno)
+static int showdisplay(char *buf, char *name, int id, char *args, struct adsi_script *state, const char *script, int lineno)
{
char *tok, dispname[80];
int line = 0, flag = 0, cmd = 3;
@@ -739,7 +739,7 @@
return 3;
}
-static int cleardisplay(char *buf, char *name, int id, char *args, struct adsi_script *istate, char *script, int lineno)
+static int cleardisplay(char *buf, char *name, int id, char *args, struct adsi_script *istate, const char *script, int lineno)
{
char *tok = get_token(&args, script, lineno);
@@ -751,7 +751,7 @@
return 2;
}
-static int digitdirect(char *buf, char *name, int id, char *args, struct adsi_script *istate, char *script, int lineno)
+static int digitdirect(char *buf, char *name, int id, char *args, struct adsi_script *istate, const char *script, int lineno)
{
char *tok = get_token(&args, script, lineno);
@@ -763,7 +763,7 @@
return 2;
}
-static int clearcbone(char *buf, char *name, int id, char *args, struct adsi_script *istate, char *script, int lineno)
+static int clearcbone(char *buf, char *name, int id, char *args, struct adsi_script *istate, const char *script, int lineno)
{
char *tok = get_token(&args, script, lineno);
@@ -775,7 +775,7 @@
return 2;
}
-static int digitcollect(char *buf, char *name, int id, char *args, struct adsi_script *istate, char *script, int lineno)
+static int digitcollect(char *buf, char *name, int id, char *args, struct adsi_script *istate, const char *script, int lineno)
{
char *tok = get_token(&args, script, lineno);
@@ -787,7 +787,7 @@
return 2;
}
-static int subscript(char *buf, char *name, int id, char *args, struct adsi_script *state, char *script, int lineno)
+static int subscript(char *buf, char *name, int id, char *args, struct adsi_script *state, const char *script, int lineno)
{
char *tok = get_token(&args, script, lineno);
char subscr[80];
@@ -812,7 +812,7 @@
return 2;
}
-static int onevent(char *buf, char *name, int id, char *args, struct adsi_script *state, char *script, int lineno)
+static int onevent(char *buf, char *name, int id, char *args, struct adsi_script *state, const char *script, int lineno)
{
char *tok = get_token(&args, script, lineno);
char subscr[80], sname[80];
@@ -879,10 +879,10 @@
struct adsi_key_cmd {
char *name;
int id;
- int (*add_args)(char *buf, char *name, int id, char *args, struct adsi_script *state, char *script, int lineno);
+ int (*add_args)(char *buf, char *name, int id, char *args, struct adsi_script *state, const char *script, int lineno);
};
-static struct adsi_key_cmd kcmds[] = {
+static const struct adsi_key_cmd kcmds[] = {
{ "SENDDTMF", 0, send_dtmf },
/* Encoded DTMF would go here */
{ "ONHOOK", 0x81 },
@@ -924,7 +924,7 @@
{ "EXIT", 0xa0 },
};
-static struct adsi_key_cmd opcmds[] = {
+static const struct adsi_key_cmd opcmds[] = {
/* 1 - Branch on event -- handled specially */
{ "SHOWKEYS", 2, showkeys },
@@ -944,7 +944,7 @@
};
-static int process_returncode(struct adsi_soft_key *key, char *code, char *args, struct adsi_script *state, char *script, int lineno)
+static int process_returncode(struct adsi_soft_key *key, char *code, char *args, struct adsi_script *state, const char *script, int lineno)
{
int x, res;
char *unused;
@@ -973,7 +973,7 @@
return -1;
}
-static int process_opcode(struct adsi_subscript *sub, char *code, char *args, struct adsi_script *state, char *script, int lineno)
+static int process_opcode(struct adsi_subscript *sub, char *code, char *args, struct adsi_script *state, const char *script, int lineno)
{
int x, res, max = sub->id ? MAX_SUB_LEN : MAX_MAIN_LEN;
char *unused;
@@ -1010,7 +1010,7 @@
return -1;
}
-static int adsi_process(struct adsi_script *state, char *buf, char *script, int lineno)
+static int adsi_process(struct adsi_script *state, char *buf, const char *script, int lineno)
{
char *keyword = get_token(&buf, script, lineno);
char *args, vname[256], tmp[80], tmp2[80];
@@ -1358,7 +1358,7 @@
return 0;
}
-static struct adsi_script *compile_script(char *script)
+static struct adsi_script *compile_script(const char *script)
{
FILE *f;
char fn[256], buf[256], *c;
@@ -1451,7 +1451,7 @@
}
#endif
-static int adsi_prog(struct ast_channel *chan, char *script)
+static int adsi_prog(struct ast_channel *chan, const char *script)
{
struct adsi_script *scr;
int x, bytes;
@@ -1562,7 +1562,7 @@
return 0;
}
-static int adsi_exec(struct ast_channel *chan, void *data)
+static int adsi_exec(struct ast_channel *chan, const char *data)
{
int res = 0;
Modified: team/eliel/manager-xmldoc/apps/app_alarmreceiver.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/eliel/manager-xmldoc/apps/app_alarmreceiver.c?view=diff&rev=196166&r1=196165&r2=196166
==============================================================================
--- team/eliel/manager-xmldoc/apps/app_alarmreceiver.c (original)
+++ team/eliel/manager-xmldoc/apps/app_alarmreceiver.c Fri May 22 09:28:36 2009
@@ -416,7 +416,7 @@
*
* The function will return 0 when the caller hangs up, else a -1 if there was a problem.
*/
-static int receive_ademco_contact_id( struct ast_channel *chan, void *data, int fdto, int sdto, int tldn, event_node_t **ehead)
+static int receive_ademco_contact_id(struct ast_channel *chan, const void *data, int fdto, int sdto, int tldn, event_node_t **ehead)
{
int i, j;
int res = 0;
@@ -564,7 +564,7 @@
* This is the main function called by Asterisk Core whenever the App is invoked in the extension logic.
* This function will always return 0.
*/
-static int alarmreceiver_exec(struct ast_channel *chan, void *data)
+static int alarmreceiver_exec(struct ast_channel *chan, const char *data)
{
int res = 0;
event_node_t *elp, *efree;
Modified: team/eliel/manager-xmldoc/apps/app_amd.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/eliel/manager-xmldoc/apps/app_amd.c?view=diff&rev=196166&r1=196165&r2=196166
==============================================================================
--- team/eliel/manager-xmldoc/apps/app_amd.c (original)
+++ team/eliel/manager-xmldoc/apps/app_amd.c Fri May 22 09:28:36 2009
@@ -143,7 +143,7 @@
/* Set to the lowest ms value provided in amd.conf or application parameters */
static int dfltMaxWaitTimeForFrame = 50;
-static void isAnsweringMachine(struct ast_channel *chan, void *data)
+static void isAnsweringMachine(struct ast_channel *chan, const char *data)
{
int res = 0;
struct ast_frame *f = NULL;
@@ -404,7 +404,7 @@
}
-static int amd_exec(struct ast_channel *chan, void *data)
+static int amd_exec(struct ast_channel *chan, const char *data)
{
isAnsweringMachine(chan, data);
Modified: team/eliel/manager-xmldoc/apps/app_authenticate.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/eliel/manager-xmldoc/apps/app_authenticate.c?view=diff&rev=196166&r1=196165&r2=196166
==============================================================================
--- team/eliel/manager-xmldoc/apps/app_authenticate.c (original)
+++ team/eliel/manager-xmldoc/apps/app_authenticate.c Fri May 22 09:28:36 2009
@@ -105,7 +105,7 @@
</application>
***/
-static int auth_exec(struct ast_channel *chan, void *data)
+static int auth_exec(struct ast_channel *chan, const char *data)
{
int res = 0, retries, maxdigits;
char passwd[256], *prompt = "agent-pass", *argcopy = NULL;
Modified: team/eliel/manager-xmldoc/apps/app_cdr.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/eliel/manager-xmldoc/apps/app_cdr.c?view=diff&rev=196166&r1=196165&r2=196166
==============================================================================
--- team/eliel/manager-xmldoc/apps/app_cdr.c (original)
+++ team/eliel/manager-xmldoc/apps/app_cdr.c Fri May 22 09:28:36 2009
@@ -44,9 +44,9 @@
</application>
***/
-static char *nocdr_app = "NoCDR";
+static const char nocdr_app[] = "NoCDR";
-static int nocdr_exec(struct ast_channel *chan, void *data)
+static int nocdr_exec(struct ast_channel *chan, const char *data)
{
if (chan->cdr)
ast_set_flag(chan->cdr, AST_CDR_FLAG_POST_DISABLED);
Modified: team/eliel/manager-xmldoc/apps/app_chanisavail.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/eliel/manager-xmldoc/apps/app_chanisavail.c?view=diff&rev=196166&r1=196165&r2=196166
==============================================================================
--- team/eliel/manager-xmldoc/apps/app_chanisavail.c (original)
+++ team/eliel/manager-xmldoc/apps/app_chanisavail.c Fri May 22 09:28:36 2009
@@ -92,7 +92,7 @@
</application>
***/
-static int chanavail_exec(struct ast_channel *chan, void *data)
+static int chanavail_exec(struct ast_channel *chan, const char *data)
{
int inuse=-1, option_state=0, string_compare=0, option_all_avail=0;
int status;
Modified: team/eliel/manager-xmldoc/apps/app_channelredirect.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/eliel/manager-xmldoc/apps/app_channelredirect.c?view=diff&rev=196166&r1=196165&r2=196166
==============================================================================
--- team/eliel/manager-xmldoc/apps/app_channelredirect.c (original)
+++ team/eliel/manager-xmldoc/apps/app_channelredirect.c Fri May 22 09:28:36 2009
@@ -62,7 +62,7 @@
***/
static char *app = "ChannelRedirect";
-static int asyncgoto_exec(struct ast_channel *chan, void *data)
+static int asyncgoto_exec(struct ast_channel *chan, const char *data)
{
int res = -1;
char *info;
Modified: team/eliel/manager-xmldoc/apps/app_chanspy.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/eliel/manager-xmldoc/apps/app_chanspy.c?view=diff&rev=196166&r1=196165&r2=196166
==============================================================================
--- team/eliel/manager-xmldoc/apps/app_chanspy.c (original)
+++ team/eliel/manager-xmldoc/apps/app_chanspy.c Fri May 22 09:28:36 2009
@@ -963,7 +963,7 @@
return res;
}
-static int chanspy_exec(struct ast_channel *chan, void *data)
+static int chanspy_exec(struct ast_channel *chan, const char *data)
{
char *myenforced = NULL;
char *mygroup = NULL;
@@ -985,9 +985,9 @@
AST_APP_ARG(options);
);
char *opts[OPT_ARG_ARRAY_SIZE];
-
- data = ast_strdupa(data);
- AST_STANDARD_APP_ARGS(args, data);
+ char *parse = ast_strdupa(data);
+
+ AST_STANDARD_APP_ARGS(args, parse);
if (args.spec && !strcmp(args.spec, "all"))
args.spec = NULL;
@@ -1078,7 +1078,7 @@
return res;
}
-static int extenspy_exec(struct ast_channel *chan, void *data)
+static int extenspy_exec(struct ast_channel *chan, const char *data)
{
char *ptr, *exten = NULL;
char *mygroup = NULL;
@@ -1099,10 +1099,9 @@
AST_APP_ARG(context);
AST_APP_ARG(options);
);
-
- data = ast_strdupa(data);
-
- AST_STANDARD_APP_ARGS(args, data);
+ char *parse = ast_strdupa(data);
+
+ AST_STANDARD_APP_ARGS(args, parse);
if (!ast_strlen_zero(args.context) && (ptr = strchr(args.context, '@'))) {
exten = args.context;
*ptr++ = '\0';
@@ -1199,7 +1198,7 @@
return res;
}
-static int dahdiscan_exec(struct ast_channel *chan, void *data)
+static int dahdiscan_exec(struct ast_channel *chan, const char *data)
{
const char *spec = "DAHDI";
struct ast_flags flags;
Modified: team/eliel/manager-xmldoc/apps/app_confbridge.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/eliel/manager-xmldoc/apps/app_confbridge.c?view=diff&rev=196166&r1=196165&r2=196166
==============================================================================
--- team/eliel/manager-xmldoc/apps/app_confbridge.c (original)
+++ team/eliel/manager-xmldoc/apps/app_confbridge.c Fri May 22 09:28:36 2009
@@ -683,7 +683,7 @@
}
/*! \brief The ConfBridge application */
-static int confbridge_exec(struct ast_channel *chan, void *data)
+static int confbridge_exec(struct ast_channel *chan, const char *data)
{
int res = 0, volume_adjustments[2];
char *parse;
Modified: team/eliel/manager-xmldoc/apps/app_controlplayback.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/eliel/manager-xmldoc/apps/app_controlplayback.c?view=diff&rev=196166&r1=196165&r2=196166
==============================================================================
--- team/eliel/manager-xmldoc/apps/app_controlplayback.c (original)
+++ team/eliel/manager-xmldoc/apps/app_controlplayback.c Fri May 22 09:28:36 2009
@@ -125,7 +125,7 @@
return 0;
}
-static int controlplayback_exec(struct ast_channel *chan, void *data)
+static int controlplayback_exec(struct ast_channel *chan, const char *data)
{
int res = 0;
int skipms = 0;
Modified: team/eliel/manager-xmldoc/apps/app_dahdibarge.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/eliel/manager-xmldoc/apps/app_dahdibarge.c?view=diff&rev=196166&r1=196165&r2=196166
==============================================================================
--- team/eliel/manager-xmldoc/apps/app_dahdibarge.c (original)
+++ team/eliel/manager-xmldoc/apps/app_dahdibarge.c Fri May 22 09:28:36 2009
@@ -258,7 +258,7 @@
return ret;
}
-static int conf_exec(struct ast_channel *chan, void *data)
+static int conf_exec(struct ast_channel *chan, const char *data)
{
int res = -1;
int retrycnt = 0;
Modified: team/eliel/manager-xmldoc/apps/app_dahdiras.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/eliel/manager-xmldoc/apps/app_dahdiras.c?view=diff&rev=196166&r1=196165&r2=196166
==============================================================================
--- team/eliel/manager-xmldoc/apps/app_dahdiras.c (original)
+++ team/eliel/manager-xmldoc/apps/app_dahdiras.c Fri May 22 09:28:36 2009
@@ -187,7 +187,7 @@
ast_safe_fork_cleanup();
}
-static int dahdiras_exec(struct ast_channel *chan, void *data)
+static int dahdiras_exec(struct ast_channel *chan, const char *data)
{
int res=-1;
char *args;
Modified: team/eliel/manager-xmldoc/apps/app_db.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/eliel/manager-xmldoc/apps/app_db.c?view=diff&rev=196166&r1=196165&r2=196166
==============================================================================
--- team/eliel/manager-xmldoc/apps/app_db.c (original)
+++ team/eliel/manager-xmldoc/apps/app_db.c Fri May 22 09:28:36 2009
@@ -83,7 +83,7 @@
static char *d_app = "DBdel";
static char *dt_app = "DBdeltree";
-static int deltree_exec(struct ast_channel *chan, void *data)
+static int deltree_exec(struct ast_channel *chan, const char *data)
{
char *argv, *family, *keytree;
@@ -114,7 +114,7 @@
return 0;
}
-static int del_exec(struct ast_channel *chan, void *data)
+static int del_exec(struct ast_channel *chan, const char *data)
{
char *argv, *family, *key;
static int deprecation_warning = 0;
Modified: team/eliel/manager-xmldoc/apps/app_dial.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/eliel/manager-xmldoc/apps/app_dial.c?view=diff&rev=196166&r1=196165&r2=196166
==============================================================================
--- team/eliel/manager-xmldoc/apps/app_dial.c (original)
+++ team/eliel/manager-xmldoc/apps/app_dial.c Fri May 22 09:28:36 2009
@@ -1634,7 +1634,7 @@
bconfig->end_bridge_callback_data = originator;
}
-static int dial_exec_full(struct ast_channel *chan, void *data, struct ast_flags64 *peerflags, int *continue_exec)
+static int dial_exec_full(struct ast_channel *chan, const char *data, struct ast_flags64 *peerflags, int *continue_exec)
{
int res = -1; /* default: error */
char *rest, *cur; /* scan the list of destinations */
@@ -2423,7 +2423,7 @@
return res;
}
-static int dial_exec(struct ast_channel *chan, void *data)
+static int dial_exec(struct ast_channel *chan, const char *data)
{
struct ast_flags64 peerflags;
@@ -2432,7 +2432,7 @@
return dial_exec_full(chan, data, &peerflags, NULL);
}
-static int retrydial_exec(struct ast_channel *chan, void *data)
+static int retrydial_exec(struct ast_channel *chan, const char *data)
{
char *parse;
const char *context = NULL;
Modified: team/eliel/manager-xmldoc/apps/app_dictate.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/eliel/manager-xmldoc/apps/app_dictate.c?view=diff&rev=196166&r1=196165&r2=196166
==============================================================================
--- team/eliel/manager-xmldoc/apps/app_dictate.c (original)
+++ team/eliel/manager-xmldoc/apps/app_dictate.c Fri May 22 09:28:36 2009
@@ -81,7 +81,7 @@
return res;
}
-static int dictate_exec(struct ast_channel *chan, void *data)
+static int dictate_exec(struct ast_channel *chan, const char *data)
{
char *path = NULL, filein[256], *filename = "";
char *parse;
Modified: team/eliel/manager-xmldoc/apps/app_directed_pickup.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/eliel/manager-xmldoc/apps/app_directed_pickup.c?view=diff&rev=196166&r1=196165&r2=196166
==============================================================================
--- team/eliel/manager-xmldoc/apps/app_directed_pickup.c (original)
+++ team/eliel/manager-xmldoc/apps/app_directed_pickup.c Fri May 22 09:28:36 2009
@@ -262,7 +262,7 @@
}
/* application entry point for Pickup() */
-static int pickup_exec(struct ast_channel *chan, void *data)
+static int pickup_exec(struct ast_channel *chan, const char *data)
{
int res = 0;
char *tmp = ast_strdupa(data);
@@ -291,7 +291,7 @@
}
/* application entry point for PickupChan() */
-static int pickupchan_exec(struct ast_channel *chan, void *data)
+static int pickupchan_exec(struct ast_channel *chan, const char *data)
{
int res = 0;
char *tmp = ast_strdupa(data);
Modified: team/eliel/manager-xmldoc/apps/app_directory.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/eliel/manager-xmldoc/apps/app_directory.c?view=diff&rev=196166&r1=196165&r2=196166
==============================================================================
--- team/eliel/manager-xmldoc/apps/app_directory.c (original)
+++ team/eliel/manager-xmldoc/apps/app_directory.c Fri May 22 09:28:36 2009
@@ -714,7 +714,7 @@
return res;
}
-static int directory_exec(struct ast_channel *chan, void *data)
+static int directory_exec(struct ast_channel *chan, const char *data)
{
int res = 0, digit = 3;
struct ast_config *cfg, *ucfg;
Modified: team/eliel/manager-xmldoc/apps/app_disa.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/eliel/manager-xmldoc/apps/app_disa.c?view=diff&rev=196166&r1=196165&r2=196166
==============================================================================
--- team/eliel/manager-xmldoc/apps/app_disa.c (original)
+++ team/eliel/manager-xmldoc/apps/app_disa.c Fri May 22 09:28:36 2009
@@ -140,7 +140,7 @@
}
}
-static int disa_exec(struct ast_channel *chan, void *data)
+static int disa_exec(struct ast_channel *chan, const char *data)
{
int i = 0, j, k = 0, did_ignore = 0, special_noanswer = 0;
int firstdigittimeout = (chan->pbx ? chan->pbx->rtimeoutms : 20000);
Modified: team/eliel/manager-xmldoc/apps/app_dumpchan.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/eliel/manager-xmldoc/apps/app_dumpchan.c?view=diff&rev=196166&r1=196165&r2=196166
==============================================================================
--- team/eliel/manager-xmldoc/apps/app_dumpchan.c (original)
+++ team/eliel/manager-xmldoc/apps/app_dumpchan.c Fri May 22 09:28:36 2009
@@ -147,7 +147,7 @@
return 0;
}
-static int dumpchan_exec(struct ast_channel *chan, void *data)
+static int dumpchan_exec(struct ast_channel *chan, const char *data)
{
struct ast_str *vars = ast_str_thread_get(&ast_str_thread_global_buf, 16);
char info[1024];
Modified: team/eliel/manager-xmldoc/apps/app_echo.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/eliel/manager-xmldoc/apps/app_echo.c?view=diff&rev=196166&r1=196165&r2=196166
==============================================================================
--- team/eliel/manager-xmldoc/apps/app_echo.c (original)
+++ team/eliel/manager-xmldoc/apps/app_echo.c Fri May 22 09:28:36 2009
@@ -48,7 +48,7 @@
static char *app = "Echo";
-static int echo_exec(struct ast_channel *chan, void *data)
+static int echo_exec(struct ast_channel *chan, const char *data)
{
int res = -1;
int format;
Modified: team/eliel/manager-xmldoc/apps/app_exec.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/eliel/manager-xmldoc/apps/app_exec.c?view=diff&rev=196166&r1=196165&r2=196166
==============================================================================
--- team/eliel/manager-xmldoc/apps/app_exec.c (original)
+++ team/eliel/manager-xmldoc/apps/app_exec.c Fri May 22 09:28:36 2009
@@ -129,7 +129,7 @@
static char *app_tryexec = "TryExec";
static char *app_execif = "ExecIf";
-static int exec_exec(struct ast_channel *chan, void *data)
+static int exec_exec(struct ast_channel *chan, const char *data)
{
int res = 0;
char *s, *appname, *endargs;
@@ -163,7 +163,7 @@
return res;
}
-static int tryexec_exec(struct ast_channel *chan, void *data)
+static int tryexec_exec(struct ast_channel *chan, const char *data)
{
int res = 0;
char *s, *appname, *endargs;
@@ -198,7 +198,7 @@
return 0;
}
-static int execif_exec(struct ast_channel *chan, void *data)
+static int execif_exec(struct ast_channel *chan, const char *data)
{
int res = 0;
char *truedata = NULL, *falsedata = NULL, *end, *firstcomma, *firstquestion;
Modified: team/eliel/manager-xmldoc/apps/app_externalivr.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/eliel/manager-xmldoc/apps/app_externalivr.c?view=diff&rev=196166&r1=196165&r2=196166
==============================================================================
--- team/eliel/manager-xmldoc/apps/app_externalivr.c (original)
+++ team/eliel/manager-xmldoc/apps/app_externalivr.c Fri May 22 09:28:36 2009
@@ -311,7 +311,7 @@
return entry;
}
-static int app_exec(struct ast_channel *chan, void *data)
+static int app_exec(struct ast_channel *chan, const char *data)
{
struct ast_flags flags = { 0, };
char *opts[0];
Modified: team/eliel/manager-xmldoc/apps/app_fax.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/eliel/manager-xmldoc/apps/app_fax.c?view=diff&rev=196166&r1=196165&r2=196166
==============================================================================
--- team/eliel/manager-xmldoc/apps/app_fax.c (original)
+++ team/eliel/manager-xmldoc/apps/app_fax.c Fri May 22 09:28:36 2009
@@ -705,7 +705,7 @@
/* === Application functions === */
-static int sndfax_exec(struct ast_channel *chan, void *data)
+static int sndfax_exec(struct ast_channel *chan, const char *data)
{
int res = 0;
char *parse;
@@ -749,7 +749,7 @@
return res;
}
-static int rcvfax_exec(struct ast_channel *chan, void *data)
+static int rcvfax_exec(struct ast_channel *chan, const char *data)
{
int res = 0;
char *parse;
Modified: team/eliel/manager-xmldoc/apps/app_festival.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/eliel/manager-xmldoc/apps/app_festival.c?view=diff&rev=196166&r1=196165&r2=196166
==============================================================================
--- team/eliel/manager-xmldoc/apps/app_festival.c (original)
+++ team/eliel/manager-xmldoc/apps/app_festival.c Fri May 22 09:28:36 2009
@@ -264,7 +264,7 @@
return res;
}
-static int festival_exec(struct ast_channel *chan, void *vdata)
+static int festival_exec(struct ast_channel *chan, const char *vdata)
{
int usecache;
int res = 0;
Modified: team/eliel/manager-xmldoc/apps/app_flash.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/eliel/manager-xmldoc/apps/app_flash.c?view=diff&rev=196166&r1=196165&r2=196166
==============================================================================
--- team/eliel/manager-xmldoc/apps/app_flash.c (original)
+++ team/eliel/manager-xmldoc/apps/app_flash.c Fri May 22 09:28:36 2009
@@ -72,7 +72,7 @@
return j;
}
-static int flash_exec(struct ast_channel *chan, void *data)
+static int flash_exec(struct ast_channel *chan, const char *data)
{
int res = -1;
int x;
Modified: team/eliel/manager-xmldoc/apps/app_followme.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/eliel/manager-xmldoc/apps/app_followme.c?view=diff&rev=196166&r1=196165&r2=196166
==============================================================================
--- team/eliel/manager-xmldoc/apps/app_followme.c (original)
+++ team/eliel/manager-xmldoc/apps/app_followme.c Fri May 22 09:28:36 2009
@@ -275,18 +275,19 @@
}
/*! \brief Add a new number */
-static struct number *create_followme_number(char *number, int timeout, int numorder)
+static struct number *create_followme_number(const char *number, int timeout, int numorder)
{
struct number *cur;
+ char *buf = ast_strdupa(number);
char *tmp;
if (!(cur = ast_calloc(1, sizeof(*cur))))
return NULL;
cur->timeout = timeout;
- if ((tmp = strchr(number, ',')))
+ if ((tmp = strchr(buf, ',')))
*tmp = '\0';
- ast_copy_string(cur->number, number, sizeof(cur->number));
+ ast_copy_string(cur->number, buf, sizeof(cur->number));
[... 5669 lines stripped ...]
More information about the asterisk-commits
mailing list