cpp-common/bt2: add C++ bindings around `bt_error *`
[babeltrace.git] / src / cpp-common / bt2 / component-class.hpp
index efee3f43cfec81c5544089a4c3a010d70ed79047..e32ba34ae6811be0558401ce3f3f05de0b91b057 100644 (file)
@@ -52,6 +52,13 @@ public:
     using typename _ThisBorrowedObject::LibObjPtr;
     using Shared = SharedObject<CommonComponentClass, LibObjT, internal::ComponentClassRefFuncs>;
 
+    enum class Type
+    {
+        SOURCE = BT_COMPONENT_CLASS_TYPE_SOURCE,
+        FILTER = BT_COMPONENT_CLASS_TYPE_FILTER,
+        SINK = BT_COMPONENT_CLASS_TYPE_SINK,
+    };
+
     explicit CommonComponentClass(const LibObjPtr libObjPtr) noexcept :
         _ThisBorrowedObject {libObjPtr}
     {
This page took 0.022363 seconds and 4 git commands to generate.