[asterisk-commits] russell: trunk r184693 - in /trunk: apps/ include/asterisk/ main/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Mar 27 11:21:16 CDT 2009
Author: russell
Date: Fri Mar 27 11:21:10 2009
New Revision: 184693
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=184693
Log:
Change global_app_buf to ast_str_thread_global_buf.
Modified:
trunk/apps/app_dumpchan.c
trunk/apps/app_queue.c
trunk/apps/app_voicemail.c
trunk/include/asterisk/app.h
trunk/main/app.c
trunk/main/cli.c
Modified: trunk/apps/app_dumpchan.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/apps/app_dumpchan.c?view=diff&rev=184693&r1=184692&r2=184693
==============================================================================
--- trunk/apps/app_dumpchan.c (original)
+++ trunk/apps/app_dumpchan.c Fri Mar 27 11:21:10 2009
@@ -149,7 +149,7 @@
static int dumpchan_exec(struct ast_channel *chan, void *data)
{
- struct ast_str *vars = ast_str_thread_get(&global_app_buf, 16);
+ struct ast_str *vars = ast_str_thread_get(&ast_str_thread_global_buf, 16);
char info[1024];
int level = 0;
static char *line = "================================================================================";
Modified: trunk/apps/app_queue.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/apps/app_queue.c?view=diff&rev=184693&r1=184692&r2=184693
==============================================================================
--- trunk/apps/app_queue.c (original)
+++ trunk/apps/app_queue.c Fri Mar 27 11:21:10 2009
@@ -2319,7 +2319,7 @@
/*! \brief convert "\n" to "\nVariable: " ready for manager to use */
static char *vars2manager(struct ast_channel *chan, char *vars, size_t len)
{
- struct ast_str *buf = ast_str_thread_get(&global_app_buf, len + 1);
+ struct ast_str *buf = ast_str_thread_get(&ast_str_thread_global_buf, len + 1);
char *tmp;
if (pbx_builtin_serialize_variables(chan, &buf)) {
Modified: trunk/apps/app_voicemail.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/apps/app_voicemail.c?view=diff&rev=184693&r1=184692&r2=184693
==============================================================================
--- trunk/apps/app_voicemail.c (original)
+++ trunk/apps/app_voicemail.c Fri Mar 27 11:21:10 2009
@@ -10267,7 +10267,7 @@
char *current;
/* Add 16 for fudge factor */
- struct ast_str *str = ast_str_thread_get(&global_app_buf, strlen(value) + 16);
+ struct ast_str *str = ast_str_thread_get(&ast_str_thread_global_buf, strlen(value) + 16);
ast_str_reset(str);
Modified: trunk/include/asterisk/app.h
URL: http://svn.digium.com/svn-view/asterisk/trunk/include/asterisk/app.h?view=diff&rev=184693&r1=184692&r2=184693
==============================================================================
--- trunk/include/asterisk/app.h (original)
+++ trunk/include/asterisk/app.h Fri Mar 27 11:21:10 2009
@@ -32,7 +32,7 @@
extern "C" {
#endif
-AST_THREADSTORAGE_EXTERNAL(global_app_buf);
+AST_THREADSTORAGE_EXTERNAL(ast_str_thread_global_buf);
/* IVR stuff */
Modified: trunk/main/app.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/main/app.c?view=diff&rev=184693&r1=184692&r2=184693
==============================================================================
--- trunk/main/app.c (original)
+++ trunk/main/app.c Fri Mar 27 11:21:10 2009
@@ -52,7 +52,7 @@
#include "asterisk/linkedlists.h"
#include "asterisk/threadstorage.h"
-AST_THREADSTORAGE_PUBLIC(global_app_buf);
+AST_THREADSTORAGE_PUBLIC(ast_str_thread_global_buf);
#define MAX_OTHER_FORMATS 10
Modified: trunk/main/cli.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/main/cli.c?view=diff&rev=184693&r1=184692&r2=184693
==============================================================================
--- trunk/main/cli.c (original)
+++ trunk/main/cli.c Fri Mar 27 11:21:10 2009
@@ -1259,7 +1259,7 @@
{
struct ast_channel *c=NULL;
struct timeval now;
- struct ast_str *out = ast_str_thread_get(&global_app_buf, 16);
+ struct ast_str *out = ast_str_thread_get(&ast_str_thread_global_buf, 16);
char cdrtime[256];
char nf[256], wf[256], rf[256];
long elapsed_seconds=0;
More information about the asterisk-commits
mailing list