#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
enum bt_self_component_port_status {
BT_SELF_PORT_STATUS_OK = 0,
- BT_SELF_PORT_STATUS_ERROR = -1,
};
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(
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
}