mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-12 12:58:30 +00:00
Move usage of the old LOCAL_USER_* macros to the new ast_module_user_* functions in a few documentation places.
(closes issue #11533) Reported by: IgorG Patches: oldmacroclean.v1.diff uploaded by IgorG (license 20) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@92811 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -287,10 +287,6 @@ char *discstr = "!!DISCONNECT!!";
|
|||||||
static char *remote_rig_ft897 = "ft897";
|
static char *remote_rig_ft897 = "ft897";
|
||||||
static char *remote_rig_rbi = "rbi";
|
static char *remote_rig_rbi = "rbi";
|
||||||
|
|
||||||
#ifdef OLD_ASTERISK
|
|
||||||
STANDARD_LOCAL_USER;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define MSWAIT 200
|
#define MSWAIT 200
|
||||||
#define HANGTIME 5000
|
#define HANGTIME 5000
|
||||||
#define TOTIME 180000
|
#define TOTIME 180000
|
||||||
|
|||||||
@@ -394,7 +394,7 @@ struct ast_app_option {
|
|||||||
... do any argument parsing here ...
|
... do any argument parsing here ...
|
||||||
|
|
||||||
if (ast_parseoptions(my_app_options, &opts, opt_args, options)) {
|
if (ast_parseoptions(my_app_options, &opts, opt_args, options)) {
|
||||||
LOCAL_USER_REMOVE(u);
|
ast_module_user_remove(u);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ int ast_unload_resource(const char *resource_name, enum ast_module_unload_mode);
|
|||||||
* This function calulates use counts and notifies anyone trying to keep track
|
* This function calulates use counts and notifies anyone trying to keep track
|
||||||
* of them. It should be called whenever your module's usecount changes.
|
* of them. It should be called whenever your module's usecount changes.
|
||||||
*
|
*
|
||||||
* \note The LOCAL_USER macros take care of calling this function for you.
|
* \note The ast_module_user_* functions take care of calling this function for you.
|
||||||
*/
|
*/
|
||||||
void ast_update_use_count(void);
|
void ast_update_use_count(void);
|
||||||
|
|
||||||
|
|||||||
@@ -2457,7 +2457,7 @@ static int agi_exec_full(struct ast_channel *chan, void *data, int enhanced, int
|
|||||||
/* Answer if need be */
|
/* Answer if need be */
|
||||||
if (chan->_state != AST_STATE_UP) {
|
if (chan->_state != AST_STATE_UP) {
|
||||||
if (ast_answer(chan)) {
|
if (ast_answer(chan)) {
|
||||||
LOCAL_USER_REMOVE(u);
|
ast_module_user_remove(u);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user