mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
remove LOCAL_USER_ACF_ADD since it is now the same as LOCAL_USER_ADD
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9800 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -125,7 +125,7 @@ static int acf_curl_exec(struct ast_channel *chan, char *cmd, char *info, char *
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
LOCAL_USER_ACF_ADD(u);
|
LOCAL_USER_ADD(u);
|
||||||
|
|
||||||
AST_STANDARD_APP_ARGS(args, info);
|
AST_STANDARD_APP_ARGS(args, info);
|
||||||
|
|
||||||
|
@@ -187,7 +187,7 @@ int acf_vmcount_exec(struct ast_channel *chan, char *cmd, char *argsstr, char *b
|
|||||||
AST_APP_ARG(folder);
|
AST_APP_ARG(folder);
|
||||||
);
|
);
|
||||||
|
|
||||||
LOCAL_USER_ACF_ADD(u);
|
LOCAL_USER_ADD(u);
|
||||||
|
|
||||||
buf[0] = '\0';
|
buf[0] = '\0';
|
||||||
|
|
||||||
|
@@ -3156,7 +3156,7 @@ static int queue_function_qac(struct ast_channel *chan, char *cmd, char *data, c
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
LOCAL_USER_ACF_ADD(u);
|
LOCAL_USER_ADD(u);
|
||||||
|
|
||||||
AST_LIST_LOCK(&queues);
|
AST_LIST_LOCK(&queues);
|
||||||
|
|
||||||
@@ -3199,7 +3199,7 @@ static int queue_function_queuememberlist(struct ast_channel *chan, char *cmd, c
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
LOCAL_USER_ACF_ADD(u);
|
LOCAL_USER_ADD(u);
|
||||||
|
|
||||||
AST_LIST_LOCK(&queues);
|
AST_LIST_LOCK(&queues);
|
||||||
|
|
||||||
|
@@ -233,7 +233,7 @@ static int acf_sort_exec(struct ast_channel *chan, char *cmd, char *data, char *
|
|||||||
struct localuser *u;
|
struct localuser *u;
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
|
|
||||||
LOCAL_USER_ACF_ADD(u);
|
LOCAL_USER_ADD(u);
|
||||||
|
|
||||||
switch (sort_internal(chan, data, buf, len)) {
|
switch (sort_internal(chan, data, buf, len)) {
|
||||||
case ERROR_NOARG:
|
case ERROR_NOARG:
|
||||||
@@ -258,7 +258,7 @@ static int acf_cut_exec(struct ast_channel *chan, char *cmd, char *data, char *b
|
|||||||
int ret = -1;
|
int ret = -1;
|
||||||
struct localuser *u;
|
struct localuser *u;
|
||||||
|
|
||||||
LOCAL_USER_ACF_ADD(u);
|
LOCAL_USER_ADD(u);
|
||||||
|
|
||||||
switch (cut_internal(chan, data, buf, len)) {
|
switch (cut_internal(chan, data, buf, len)) {
|
||||||
case ERROR_NOARG:
|
case ERROR_NOARG:
|
||||||
|
@@ -99,7 +99,7 @@ static int function_enum(struct ast_channel *chan, char *cmd, char *data,
|
|||||||
}
|
}
|
||||||
*p = '\0';
|
*p = '\0';
|
||||||
|
|
||||||
LOCAL_USER_ACF_ADD(u);
|
LOCAL_USER_ADD(u);
|
||||||
|
|
||||||
res = ast_get_enum(chan, p, dest, sizeof(dest), tech, sizeof(tech), args.zone,
|
res = ast_get_enum(chan, p, dest, sizeof(dest), tech, sizeof(tech), args.zone,
|
||||||
args.options);
|
args.options);
|
||||||
@@ -141,7 +141,7 @@ static int function_txtcidname(struct ast_channel *chan, char *cmd,
|
|||||||
|
|
||||||
buf[0] = '\0';
|
buf[0] = '\0';
|
||||||
|
|
||||||
LOCAL_USER_ACF_ADD(u);
|
LOCAL_USER_ADD(u);
|
||||||
|
|
||||||
if (ast_strlen_zero(data)) {
|
if (ast_strlen_zero(data)) {
|
||||||
ast_log(LOG_WARNING, "TXTCIDNAME requires an argument (number)\n");
|
ast_log(LOG_WARNING, "TXTCIDNAME requires an argument (number)\n");
|
||||||
|
@@ -53,7 +53,7 @@ static int acf_rand_exec(struct ast_channel *chan, char *cmd,
|
|||||||
AST_APP_ARG(max);
|
AST_APP_ARG(max);
|
||||||
);
|
);
|
||||||
|
|
||||||
LOCAL_USER_ACF_ADD(u);
|
LOCAL_USER_ADD(u);
|
||||||
|
|
||||||
AST_STANDARD_APP_ARGS(args, parse);
|
AST_STANDARD_APP_ARGS(args, parse);
|
||||||
|
|
||||||
|
@@ -332,21 +332,6 @@ void ast_unregister_atexit(void (*func)(void));
|
|||||||
ast_update_use_count(); \
|
ast_update_use_count(); \
|
||||||
}
|
}
|
||||||
|
|
||||||
#define LOCAL_USER_ACF_ADD(u) { \
|
|
||||||
\
|
|
||||||
if (!(u=calloc(1,sizeof(*u)))) { \
|
|
||||||
ast_log(LOG_WARNING, "Out of memory\n"); \
|
|
||||||
return -1; \
|
|
||||||
} \
|
|
||||||
ast_mutex_lock(&localuser_lock); \
|
|
||||||
u->chan = chan; \
|
|
||||||
u->next = localusers; \
|
|
||||||
localusers = u; \
|
|
||||||
localusecnt++; \
|
|
||||||
ast_mutex_unlock(&localuser_lock); \
|
|
||||||
ast_update_use_count(); \
|
|
||||||
}
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief Remove a localuser.
|
* \brief Remove a localuser.
|
||||||
* \param u the user to add, should be of type struct localuser
|
* \param u the user to add, should be of type struct localuser
|
||||||
|
@@ -3847,7 +3847,7 @@ static int dundifunc_read(struct ast_channel *chan, char *cmd, char *num, char *
|
|||||||
struct localuser *u;
|
struct localuser *u;
|
||||||
struct dundi_result dr[MAX_RESULTS];
|
struct dundi_result dr[MAX_RESULTS];
|
||||||
|
|
||||||
LOCAL_USER_ACF_ADD(u);
|
LOCAL_USER_ADD(u);
|
||||||
|
|
||||||
buf[0] = '\0';
|
buf[0] = '\0';
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user