cpp-common/bt2: add C++ bindings around `bt_error *`
[babeltrace.git] / src / cpp-common / bt2 / wrap.hpp
index 2d745154df5074c533fe10e686d6fc9bf74b0a19..c3b177cc089ba4640173f50e66dd2a8a19fa7504 100644 (file)
 #include "clock-class.hpp"
 #include "clock-snapshot.hpp"
 #include "component-port.hpp"
+#include "error.hpp"
 #include "field-class.hpp"
 #include "field.hpp"
+#include "graph.hpp"
 #include "integer-range-set.hpp"
 #include "integer-range.hpp"
 #include "message-iterator.hpp"
 
 namespace bt2 {
 
+inline ConstErrorCause wrap(const bt_error_cause * const libObjPtr) noexcept
+{
+    return ConstErrorCause {libObjPtr};
+}
+
+inline Graph wrap(bt_graph * const libObjPtr) noexcept
+{
+    return Graph {libObjPtr};
+}
+
 inline ClockClass wrap(bt_clock_class * const libObjPtr) noexcept
 {
     return ClockClass {libObjPtr};
This page took 0.031481 seconds and 4 git commands to generate.