mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-14 15:24:13 +00:00
switch some usages of switch_event_add_header to switch_event_add_header_string
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9309 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
f921389078
commit
05b01a6c03
16 files changed
+312
-312
No files matched your search
@@ -195,7 +195,7 @@ static JSBool request_add_header(JSContext * cx, JSObject * obj, uintN argc, jsv
|
||||
if (argc > 1) {
|
||||
char *hname = JS_GetStringBytes(JS_ValueToString(cx, argv[0]));
|
||||
char *hval = JS_GetStringBytes(JS_ValueToString(cx, argv[1]));
|
||||
switch_event_add_header(ro->stream->param_event, SWITCH_STACK_BOTTOM, hname, "%s", hval);
|
||||
switch_event_add_header_string(ro->stream->param_event, SWITCH_STACK_BOTTOM, hname, hval);
|
||||
*rval = BOOLEAN_TO_JSVAL(JS_TRUE);
|
||||
return JS_TRUE;
|
||||
}
|
||||
@@ -547,7 +547,7 @@ static JSBool event_add_header(JSContext * cx, JSObject * obj, uintN argc, jsval
|
||||
if (argc > 1) {
|
||||
char *hname = JS_GetStringBytes(JS_ValueToString(cx, argv[0]));
|
||||
char *hval = JS_GetStringBytes(JS_ValueToString(cx, argv[1]));
|
||||
switch_event_add_header(eo->event, SWITCH_STACK_BOTTOM, hname, "%s", hval);
|
||||
switch_event_add_header_string(eo->event, SWITCH_STACK_BOTTOM, hname, hval);
|
||||
*rval = BOOLEAN_TO_JSVAL(JS_TRUE);
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user