projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: make graph API const-correct
[babeltrace.git]
/
include
/
babeltrace
/
graph
/
self-component.h
diff --git
a/include/babeltrace/graph/self-component.h
b/include/babeltrace/graph/self-component.h
index b5d8f551d5e4d5af7c10b11f810706dc8b14f02b..924ef154fb943f86c99cdd496dbffe5a5f475bc2 100644
(file)
--- a/
include/babeltrace/graph/self-component.h
+++ b/
include/babeltrace/graph/self-component.h
@@
-40,14
+40,14
@@
enum bt_self_component_status {
};
static inline
};
static inline
-struct bt_component *bt_self_component_as_component(
+
const
struct bt_component *bt_self_component_as_component(
struct bt_self_component *self_component)
{
struct bt_self_component *self_component)
{
- return (void *) self_component;
+ return (
const
void *) self_component;
}
extern void *bt_self_component_get_data(
}
extern void *bt_self_component_get_data(
- struct bt_self_component *private_component);
+
const
struct bt_self_component *private_component);
extern void bt_self_component_set_data(
struct bt_self_component *private_component, void *data);
extern void bt_self_component_set_data(
struct bt_self_component *private_component, void *data);
This page took
0.02403 seconds
and
4
git commands to generate.