mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-30 07:04:17 +00:00
create macro to define api command prototypes.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5167 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
493fdf5ba8
commit
521eac756e
12 files changed
+132
-128
No files matched your search
@@ -2739,15 +2739,15 @@ static void js_thread_launch(const char *text)
|
||||
}
|
||||
|
||||
|
||||
static switch_status_t launch_async(const char *text, switch_core_session_t *session, switch_stream_handle_t *stream)
|
||||
SWITCH_STANDARD_API(launch_async)
|
||||
{
|
||||
|
||||
if (switch_strlen_zero(text)) {
|
||||
if (switch_strlen_zero(cmd)) {
|
||||
stream->write_function(stream, "USAGE: %s\n", js_run_interface.syntax);
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
js_thread_launch(text);
|
||||
js_thread_launch(cmd);
|
||||
stream->write_function(stream, "OK\n");
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user