lib: add aliases for Babeltrace structure types
[babeltrace.git] / include / babeltrace / graph / self-component-class-filter.h
index d1a447cddddab86b8622e69b8e1cc05a9dd9baef..2d209ac241c21f44ebe4848b4d8554fb6c7091ce 100644 (file)
@@ -2,6 +2,7 @@
 #define BABELTRACE_GRAPH_SELF_COMPONENT_CLASS_FILTER_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_filter, bt_self_component_class_filter */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_component_class_filter;
-struct bt_self_component_class_filter;
-
 static inline
-struct bt_component_class_filter *
-bt_self_component_class_filter_borrow_component_class_filter(
-               struct bt_self_component_class_filter *self_comp_cls_filter)
+const bt_component_class_filter *
+bt_self_component_class_filter_as_component_class_filter(
+               bt_self_component_class_filter *self_comp_cls_filter)
 {
-       return (void *) self_comp_cls_filter;
+       return (const void *) self_comp_cls_filter;
 }
 
 #ifdef __cplusplus
This page took 0.024455 seconds and 4 git commands to generate.