2 * SPDX-License-Identifier: MIT
4 * Copyright 2017-2018 Philippe Proulx <pproulx@efficios.com>
5 * Copyright 2017 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8 #ifndef BABELTRACE_GRAPH_PORT_INTERNAL_H
9 #define BABELTRACE_GRAPH_PORT_INTERNAL_H
11 #include <babeltrace2/graph/port.h>
14 struct bt_object base
;
15 enum bt_port_type type
;
17 struct bt_connection
*connection
;
23 struct bt_port
*bt_port_create(struct bt_component
*parent_component
,
24 enum bt_port_type type
, const char *name
, void *user_data
);
26 void bt_port_set_connection(struct bt_port
*port
,
27 struct bt_connection
*connection
);
30 struct bt_component
*bt_port_borrow_component_inline(const struct bt_port
*port
)
33 return (void *) bt_object_borrow_parent(&port
->base
);
37 const char *bt_port_type_string(enum bt_port_type port_type
)
40 case BT_PORT_TYPE_INPUT
:
42 case BT_PORT_TYPE_OUTPUT
:
49 #endif /* BABELTRACE_GRAPH_PORT_INTERNAL_H */
This page took 0.031534 seconds and 4 git commands to generate.