]> sigrok.org Git - libsigrok.git/blobdiff - bindings/cxx/include/libsigrokcxx/libsigrokcxx.hpp
bindings: Add Output::format()
[libsigrok.git] / bindings / cxx / include / libsigrokcxx / libsigrokcxx.hpp
index 80888af61c5064a81c97110af4e6568740126371..9fc5061c07e16fb596ebcebaf5d8a823ef0916ad 100644 (file)
@@ -287,6 +287,8 @@ public:
                vector<shared_ptr<Channel> > channels,
                const float *data_pointer, unsigned int num_samples, const Quantity *mq,
                const Unit *unit, vector<const QuantityFlag *> mqflags);
+       /** Create an end packet. */
+       shared_ptr<Packet> create_end_packet();
        /** Load a saved session.
         * @param filename File name string. */
        shared_ptr<Session> load_session(string filename);
@@ -1014,6 +1016,8 @@ public:
        /** Update output with data from the given packet.
         * @param packet Packet to handle. */
        string receive(shared_ptr<Packet> packet);
+       /** Output format in use for this output */
+       shared_ptr<OutputFormat> format();
 private:
        Output(shared_ptr<OutputFormat> format, shared_ptr<Device> device);
        Output(shared_ptr<OutputFormat> format,