add ability to read from a stream

do not use this unless you understand what you are doing and you want to take the risk,
you are warnned
This commit is contained in:
Seven Du
2014-09-04 09:00:38 +08:00
parent f0b9407cca
commit 31f78d8cac
6 changed files with 34 additions and 0 deletions
+2
View File
@@ -43,6 +43,8 @@
%newobject API::execute;
%newobject API::executeString;
%include "std_string.i"
/**
* tell swig to grok everything defined in these header files and
* build all sorts of c wrappers and lua shadows of the c wrappers.
@@ -22,7 +22,9 @@ class Stream {
Stream(void);
Stream(switch_stream_handle_t *);
virtual ~ Stream();
string read();
void write(const char *data);
void raw_write(void *data, int len);
const char *get_data(void);
};