projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: headers: make static inline upcasts compatible with C++
[babeltrace.git]
/
include
/
babeltrace
/
graph
/
self-component-sink.h
diff --git
a/include/babeltrace/graph/self-component-sink.h
b/include/babeltrace/graph/self-component-sink.h
index 9f2d6bd6d7504d9b11b68339fb2788407ad5da8b..04b8d206a19d639582f0f918175415eaf7ba9735 100644
(file)
--- a/
include/babeltrace/graph/self-component-sink.h
+++ b/
include/babeltrace/graph/self-component-sink.h
@@
-30,7
+30,7
@@
/*
* For bt_component_sink, bt_self_component, bt_self_component_sink,
/*
* For bt_component_sink, bt_self_component, bt_self_component_sink,
- * bt_self_component_port_input
+ * bt_self_component_port_input
, __BT_UPCAST, __BT_UPCAST_CONST
*/
#include <babeltrace/types.h>
*/
#include <babeltrace/types.h>
@@
-42,7
+42,7
@@
static inline
bt_self_component *bt_self_component_sink_as_self_component(
bt_self_component_sink *self_comp_sink)
{
bt_self_component *bt_self_component_sink_as_self_component(
bt_self_component_sink *self_comp_sink)
{
- return
(void *) self_comp_sink
;
+ return
__BT_UPCAST(bt_self_component, self_comp_sink)
;
}
static inline
}
static inline
@@
-50,7
+50,7
@@
const bt_component_sink *
bt_self_component_sink_as_component_sink(
bt_self_component_sink *self_comp_sink)
{
bt_self_component_sink_as_component_sink(
bt_self_component_sink *self_comp_sink)
{
- return
(const void *) self_comp_sink
;
+ return
__BT_UPCAST_CONST(bt_component_sink, self_comp_sink)
;
}
extern bt_self_component_port_input *
}
extern bt_self_component_port_input *
This page took
0.023418 seconds
and
4
git commands to generate.