lib: add aliases for Babeltrace structure types
[babeltrace.git] / include / babeltrace / graph / self-component-class-sink.h
index 01dacaa3bc58cf6c09bb9e9b4ca9387291d5a726..8f40385e4d76378a3e54e74f3d2f65717a784b98 100644 (file)
@@ -2,6 +2,7 @@
 #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
This page took 0.025907 seconds and 4 git commands to generate.