|
RTS API Documentation
1.10.11
|
#include <switch_cpp.h>
Collaboration diagram for API:Public Member Functions | |
| API (CoreSession *s=NULL) | |
| virtual | ~ API () |
| const char * | execute (const char *command, const char *data=NULL) |
| const char * | executeString (const char *command) |
| char * | getTime (void) |
Protected Attributes | |
| char | time_buf [64] |
| switch_core_session_t * | session |
Definition at line 107 of file switch_cpp.h.
| API::API | ( | CoreSession * | s = NULL | ) |
Definition at line 222 of file switch_cpp.cpp.
References CoreSession::session, and SWITCH_DECLARE_CONSTRUCTOR.
|
virtual |
| const char * API::execute | ( | const char * | command, |
| const char * | data = NULL |
||
| ) |
Definition at line 237 of file switch_cpp.cpp.
References switch_stream_handle::data, switch_api_execute(), SWITCH_CHANNEL_SESSION_LOG, SWITCH_LOG_ERROR, switch_log_printf(), SWITCH_STANDARD_STREAM, this_check, switch_stream_handle::write_function, and zstr.
| const char * API::executeString | ( | const char * | command | ) |
Definition at line 265 of file switch_cpp.cpp.
References switch_stream_handle::data, switch_api_execute(), switch_assert, SWITCH_CHANNEL_SESSION_LOG, SWITCH_LOG_ERROR, switch_log_printf(), switch_safe_free, SWITCH_STANDARD_STREAM, this_check, switch_stream_handle::write_function, and zstr.
| char * API::getTime | ( | void | ) |
Definition at line 256 of file switch_cpp.cpp.
References switch_micro_time_now(), and SWITCH_TIME_T_FMT.
|
protected |
Definition at line 110 of file switch_cpp.h.
|
protected |
Definition at line 109 of file switch_cpp.h.
1.8.13