]> sigrok.org Git - libsigrok.git/blobdiff - bindings/cxx/include/libsigrok/libsigrok.hpp
bindings: Add Packet.get_type() method.
[libsigrok.git] / bindings / cxx / include / libsigrok / libsigrok.hpp
index 7a99f325b3503c232f803274b2c542f17ef6b9a3..87e41e6a55cec0e99a9443b027b16a8438ef4392 100644 (file)
@@ -477,6 +477,8 @@ protected:
 class SR_API Packet
 {
 public:
+       /** Type of this packet. */
+       const PacketType *get_type();
        /** Payload of this packet. */
        PacketPayload *get_payload();
 protected: