lib: update copyrights
[babeltrace.git] / include / babeltrace / graph / self-component-port.h
index f8866b1b177ea6f3da3422a564ee5e187e55bf87..7af4102a0f404b6a2961c0342e6f6fb26c04ff99 100644 (file)
@@ -2,7 +2,7 @@
 #define BABELTRACE_GRAPH_SELF_COMPONENT_PORT_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
@@ -37,10 +37,10 @@ enum bt_self_component_port_status {
 };
 
 static inline
-struct bt_port *bt_self_component_port_borrow_port(
+const struct bt_port *bt_self_component_port_as_port(
                struct bt_self_component_port *self_port)
 {
-       return (void *) self_port;
+       return (const void *) self_port;
 }
 
 extern struct bt_self_component *bt_self_component_port_borrow_component(
@@ -51,7 +51,7 @@ bt_self_component_port_remove_from_component(
                struct bt_self_component_port *self_port);
 
 extern void *bt_self_component_port_get_data(
-               struct bt_self_component_port *self_port);
+               const struct bt_self_component_port *self_port);
 
 #ifdef __cplusplus
 }
This page took 0.024651 seconds and 4 git commands to generate.