bindings: Add Session::context().
This commit is contained in:
parent
57621c6d60
commit
624d16100e
|
@ -1147,6 +1147,11 @@ string Session::filename()
|
|||
return _filename;
|
||||
}
|
||||
|
||||
shared_ptr<Context> Session::context()
|
||||
{
|
||||
return _context;
|
||||
}
|
||||
|
||||
Packet::Packet(shared_ptr<Device> device,
|
||||
const struct sr_datafeed_packet *structure) :
|
||||
UserOwned(structure),
|
||||
|
|
|
@ -706,6 +706,8 @@ public:
|
|||
void append(void *data, size_t length, unsigned int unit_size);
|
||||
/** Get current trigger setting. */
|
||||
shared_ptr<Trigger> trigger();
|
||||
/** Get the context. */
|
||||
shared_ptr<Context> context();
|
||||
/** Set trigger setting.
|
||||
* @param trigger Trigger object to use. */
|
||||
void set_trigger(shared_ptr<Trigger> trigger);
|
||||
|
|
Loading…
Reference in New Issue