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 committed 2014-09-04 09:45:16 +08:00
1 parent f0b9407cca
commit 31f78d8cac
6 files changed
+34

No files matched your search

+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);
};