_trigger = trigger;
}
+string Session::filename()
+{
+ return _filename;
+}
+
Packet::Packet(shared_ptr<Device> device,
const struct sr_datafeed_packet *structure) :
UserOwned(structure),
/** Set trigger setting.
* @param trigger Trigger object to use. */
void set_trigger(shared_ptr<Trigger> trigger);
+ /** Get filename this session was loaded from. */
+ string filename();
protected:
Session(shared_ptr<Context> context);
Session(shared_ptr<Context> context, string filename);
%attributestring(sigrok::Session,
std::shared_ptr<sigrok::Trigger>, trigger, trigger, set_trigger);
+%attributestring(sigrok::Session, std::string, filename, filename);
+
%attribute(sigrok::Packet,
const sigrok::PacketType *, type, type);
%attributestring(sigrok::Packet,