bindings: Update for input API changes.

This commit is contained in:
Martin Ling 2014-09-27 16:29:34 +01:00 committed by Bert Vermeulen
parent 753793eff5
commit 9c51e8ec56
2 changed files with 8 additions and 1 deletions

View File

@ -1289,11 +1289,16 @@ void Input::send(string data)
check(ret); check(ret);
} }
void Input::end()
{
check(sr_input_end(_structure));
}
Input::~Input() Input::~Input()
{ {
if (_device) if (_device)
delete _device; delete _device;
check(sr_input_free(_structure)); sr_input_free(_structure);
} }
InputDevice::InputDevice(shared_ptr<Input> input, InputDevice::InputDevice(shared_ptr<Input> input,

View File

@ -821,6 +821,8 @@ public:
/** Send next stream data. /** Send next stream data.
* @param data Next stream data. */ * @param data Next stream data. */
void send(string data); void send(string data);
/** Signal end of input data. */
void end();
protected: protected:
Input(shared_ptr<Context> context, const struct sr_input *structure); Input(shared_ptr<Context> context, const struct sr_input *structure);
~Input(); ~Input();