bindings: Update for input API changes.
This commit is contained in:
parent
753793eff5
commit
9c51e8ec56
|
@ -1289,11 +1289,16 @@ void Input::send(string data)
|
|||
check(ret);
|
||||
}
|
||||
|
||||
void Input::end()
|
||||
{
|
||||
check(sr_input_end(_structure));
|
||||
}
|
||||
|
||||
Input::~Input()
|
||||
{
|
||||
if (_device)
|
||||
delete _device;
|
||||
check(sr_input_free(_structure));
|
||||
sr_input_free(_structure);
|
||||
}
|
||||
|
||||
InputDevice::InputDevice(shared_ptr<Input> input,
|
||||
|
|
|
@ -821,6 +821,8 @@ public:
|
|||
/** Send next stream data.
|
||||
* @param data Next stream data. */
|
||||
void send(string data);
|
||||
/** Signal end of input data. */
|
||||
void end();
|
||||
protected:
|
||||
Input(shared_ptr<Context> context, const struct sr_input *structure);
|
||||
~Input();
|
||||
|
|
Loading…
Reference in New Issue