mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 20:51:58 +00:00
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:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user