#define BABELTRACE_GRAPH_SELF_COMPONENT_CLASS_SINK_H
/*
+ * Copyright 2017-2018 Philippe Proulx <pproulx@efficios.com>
* Copyright 2016 Jérémie Galarneau <jeremie.galarneau@efficios.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* SOFTWARE.
*/
+/* For bt_component_class_sink, bt_self_component_class_sink */
+#include <babeltrace/types.h>
+
#ifdef __cplusplus
extern "C" {
#endif
-struct bt_component_class_sink;
-struct bt_self_component_class_sink;
-
static inline
-struct bt_component_class_sink *
+const bt_component_class_sink *
bt_self_component_class_sink_as_component_class_sink(
- struct bt_self_component_class_sink *self_comp_cls_sink)
+ bt_self_component_class_sink *self_comp_cls_sink)
{
- return (void *) self_comp_cls_sink;
+ return (const void *) self_comp_cls_sink;
}
#ifdef __cplusplus