[asterisk-commits] file: trunk r92811 - in /trunk: apps/ include/asterisk/ res/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Dec 13 14:23:49 CST 2007
Author: file
Date: Thu Dec 13 14:23:48 2007
New Revision: 92811
URL: http://svn.digium.com/view/asterisk?view=rev&rev=92811
Log:
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)
Modified:
trunk/apps/app_rpt.c
trunk/include/asterisk/app.h
trunk/include/asterisk/module.h
trunk/res/res_agi.c
Modified: trunk/apps/app_rpt.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_rpt.c?view=diff&rev=92811&r1=92810&r2=92811
==============================================================================
--- trunk/apps/app_rpt.c (original)
+++ trunk/apps/app_rpt.c Thu Dec 13 14:23:48 2007
@@ -286,10 +286,6 @@
char *discstr = "!!DISCONNECT!!";
static char *remote_rig_ft897 = "ft897";
static char *remote_rig_rbi = "rbi";
-
-#ifdef OLD_ASTERISK
-STANDARD_LOCAL_USER;
-#endif
#define MSWAIT 200
#define HANGTIME 5000
Modified: trunk/include/asterisk/app.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/app.h?view=diff&rev=92811&r1=92810&r2=92811
==============================================================================
--- trunk/include/asterisk/app.h (original)
+++ trunk/include/asterisk/app.h Thu Dec 13 14:23:48 2007
@@ -394,7 +394,7 @@
... do any argument parsing here ...
if (ast_parseoptions(my_app_options, &opts, opt_args, options)) {
- LOCAL_USER_REMOVE(u);
+ ast_module_user_remove(u);
return -1;
}
}
Modified: trunk/include/asterisk/module.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/module.h?view=diff&rev=92811&r1=92810&r2=92811
==============================================================================
--- trunk/include/asterisk/module.h (original)
+++ trunk/include/asterisk/module.h Thu Dec 13 14:23:48 2007
@@ -97,7 +97,7 @@
* This function calulates use counts and notifies anyone trying to keep track
* 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);
Modified: trunk/res/res_agi.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_agi.c?view=diff&rev=92811&r1=92810&r2=92811
==============================================================================
--- trunk/res/res_agi.c (original)
+++ trunk/res/res_agi.c Thu Dec 13 14:23:48 2007
@@ -2457,7 +2457,7 @@
/* Answer if need be */
if (chan->_state != AST_STATE_UP) {
if (ast_answer(chan)) {
- LOCAL_USER_REMOVE(u);
+ ast_module_user_remove(u);
return -1;
}
}
More information about the asterisk-commits
mailing list