#define BABELTRACE_GRAPH_SELF_COMPONENT_H
/*
- * Copyright 2017 Philippe Proulx <pproulx@efficios.com>
+ * Copyright 2017-2018 Philippe Proulx <pproulx@efficios.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
};
static inline
-struct bt_component *bt_self_component_borrow_component(
+const struct bt_component *bt_self_component_as_component(
struct bt_self_component *self_component)
{
- return (void *) self_component;
+ return (const void *) self_component;
}
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);