projects
/
deliverable
/
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++
[deliverable/babeltrace.git]
/
include
/
babeltrace
/
graph
/
component-source-const.h
diff --git
a/include/babeltrace/graph/component-source-const.h
b/include/babeltrace/graph/component-source-const.h
index f0d9ee51b7cf9620022f8fff3fb0514ca1f0b592..628f22dbf77b98a47d70ca2815e1a31c7ecd6f39 100644
(file)
--- a/
include/babeltrace/graph/component-source-const.h
+++ b/
include/babeltrace/graph/component-source-const.h
@@
-26,7
+26,10
@@
#include <stdint.h>
#include <stdint.h>
-/* For bt_component, bt_component_filter, bt_port_output */
+/*
+ * For bt_component, bt_component_filter, bt_port_output,
+ * __BT_UPCAST_CONST
+ */
#include <babeltrace/types.h>
#ifdef __cplusplus
#include <babeltrace/types.h>
#ifdef __cplusplus
@@
-37,7
+40,7
@@
static inline
const bt_component *bt_component_source_as_component_const(
const bt_component_source *component)
{
const bt_component *bt_component_source_as_component_const(
const bt_component_source *component)
{
- return
(void *) component
;
+ return
__BT_UPCAST_CONST(bt_component, component)
;
}
extern uint64_t bt_component_source_get_output_port_count(
}
extern uint64_t bt_component_source_get_output_port_count(
This page took
0.033707 seconds
and
5
git commands to generate.