FreeSWITCH API Documentation
1.7.0
|
#include <switch_cpp.h>
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) |
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 | ) |
|
virtual |
Definition at line 230 of file switch_cpp.cpp.
API::API | ( | CoreSession * | s = NULL | ) |
|
virtual |
const char * API::execute | ( | const char * | command, |
const char * | data = NULL |
||
) |
Definition at line 236 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::execute | ( | const char * | command, |
const char * | data = NULL |
||
) |
const char* API::executeString | ( | const char * | command | ) |
const char * API::executeString | ( | const char * | command | ) |
Definition at line 264 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 255 of file switch_cpp.cpp.
References switch_micro_time_now(), and SWITCH_TIME_T_FMT.
char* API::getTime | ( | void | ) |
|
protected |
Definition at line 110 of file switch_cpp.h.
Referenced by API().
|
protected |
Definition at line 109 of file switch_cpp.h.