add api.getTime()

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12149 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2009-02-19 00:43:11 +00:00
parent 1ca5e2265e
commit 072ec6a7f2
12 changed files with 403 additions and 84 deletions
+3
View File
@@ -104,11 +104,13 @@ SWITCH_DECLARE(void) consoleCleanLog(char *msg);
class API {
protected:
char *last_data;
char time_buf[64];
public:
SWITCH_DECLARE_CONSTRUCTOR API(void);
virtual SWITCH_DECLARE_CONSTRUCTOR ~ API();
SWITCH_DECLARE(const char *) execute(const char *command, const char *data);
SWITCH_DECLARE(const char *) executeString(const char *command);
SWITCH_DECLARE(char *) getTime(void);
};
@@ -398,6 +400,7 @@ SWITCH_DECLARE_NONSTD(switch_status_t) dtmf_callback(switch_core_session_t *sess
void *input, switch_input_type_t itype, void *buf, unsigned int buflen);
#ifdef __cplusplus
}
#endif