lib: make public reference count functions have strict types
[babeltrace.git] / include / babeltrace / graph / self-component-sink.h
index b98e764b71535deaa14d93e1b805ff5c8bdf75cb..0a389038418eb7857c546d4ea64bbdc88b048d47 100644 (file)
@@ -2,7 +2,7 @@
 #define BABELTRACE_GRAPH_SELF_COMPONENT_SINK_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
@@ -38,18 +38,18 @@ struct bt_self_component_sink;
 struct bt_self_component_port_input;
 
 static inline
-struct bt_self_component *bt_self_component_sink_borrow_self_component(
+struct bt_self_component *bt_self_component_sink_as_self_component(
                struct bt_self_component_sink *self_comp_sink)
 {
        return (void *) self_comp_sink;
 }
 
 static inline
-struct bt_component_sink *
-bt_self_component_sink_borrow_component_sink(
+const struct bt_component_sink *
+bt_self_component_sink_as_component_sink(
                struct bt_self_component_sink *self_comp_sink)
 {
-       return (void *) self_comp_sink;
+       return (const void *) self_comp_sink;
 }
 
 extern struct bt_self_component_port_input *
This page took 0.023579 seconds and 4 git commands to generate.