lib: make public reference count functions have strict types
[babeltrace.git] / include / babeltrace / graph / self-component-class-filter.h
index d1a447cddddab86b8622e69b8e1cc05a9dd9baef..a171821e6e9bce136bdbb9a0b03020c67c1da41a 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
@@ -31,11 +32,11 @@ 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(
+const struct bt_component_class_filter *
+bt_self_component_class_filter_as_component_class_filter(
                struct 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.025847 seconds and 4 git commands to generate.