projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cpp-common/bt2: add C++ bindings around `bt_error *`
[babeltrace.git]
/
src
/
cpp-common
/
bt2
/
wrap.hpp
diff --git
a/src/cpp-common/bt2/wrap.hpp
b/src/cpp-common/bt2/wrap.hpp
index 3b8a86f8e15de0d377806e549795932c4675ffda..c3b177cc089ba4640173f50e66dd2a8a19fa7504 100644
(file)
--- a/
src/cpp-common/bt2/wrap.hpp
+++ b/
src/cpp-common/bt2/wrap.hpp
@@
-12,6
+12,7
@@
#include "clock-class.hpp"
#include "clock-snapshot.hpp"
#include "component-port.hpp"
#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 "field-class.hpp"
#include "field.hpp"
#include "graph.hpp"
@@
-30,6
+31,11
@@
namespace bt2 {
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 Graph wrap(bt_graph * const libObjPtr) noexcept
{
return Graph {libObjPtr};
This page took
0.023023 seconds
and
4
git commands to generate.