X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fsession.hpp;h=8f1860dc466b4622a5fc4e9e35891b445e5947a5;hp=ba07fdcf648ddacd86ec660086eb457482c394a7;hb=3cc9ad7b867853315473df611612c562d562ed8a;hpb=f3d66e52ed6b454ea7a0662d5e6367e230116a2b diff --git a/pv/session.hpp b/pv/session.hpp index ba07fdcf..8f1860dc 100644 --- a/pv/session.hpp +++ b/pv/session.hpp @@ -38,13 +38,13 @@ struct srd_decoder; struct srd_channel; namespace sigrok { - class Analog; - class Channel; - class Device; - class Logic; - class Meta; - class Packet; - class Session; +class Analog; +class Channel; +class Device; +class Logic; +class Meta; +class Packet; +class Session; } namespace pv { @@ -94,7 +94,11 @@ public: */ void set_device(std::shared_ptr device); - void set_file(const std::string &name); + /** + * Sets a sigrok session file as the capture device. + * @param name the path to the file. + */ + void set_session_file(const std::string &name); void set_default_device();