]> sigrok.org Git - libsigrok.git/blobdiff - bindings/cxx/classes.cpp
Add Doxyfile for C++ bindings and adaptations to C++ header file.
[libsigrok.git] / bindings / cxx / classes.cpp
index c75f09a00037d847b98559a630c5ee460520b8c3..f8065fd7a6f79de667b42f1f7e849c52ea29e7d4 100644 (file)
@@ -939,6 +939,11 @@ Packet::~Packet()
        delete payload;
 }
 
+const PacketType *Packet::get_type()
+{
+       return PacketType::get(structure->type);
+}
+
 PacketPayload *Packet::get_payload()
 {
        return payload;