X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fgraph%2Fself-component-port-input.h;h=ba3991b28ab6151297a44234fa40d485de0cd512;hb=efd923e5742993cedafc1eeeb04cfad4ddf5cc8d;hp=d25e114479890fd8077e9a04ec12c40b60a2c486;hpb=bb61965be5ec1bfe6977d0eca85e2e83da65af5f;p=babeltrace.git diff --git a/include/babeltrace/graph/self-component-port-input.h b/include/babeltrace/graph/self-component-port-input.h index d25e1144..ba3991b2 100644 --- a/include/babeltrace/graph/self-component-port-input.h +++ b/include/babeltrace/graph/self-component-port-input.h @@ -2,7 +2,7 @@ #define BABELTRACE_GRAPH_SELF_COMPONENT_PORT_INPUT_H /* - * Copyright 2017 Philippe Proulx + * Copyright 2017-2018 Philippe Proulx * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -23,30 +23,29 @@ * SOFTWARE. */ -/* For enum bt_self_component_port_status */ -#include +/* + * For bt_port_input, bt_self_component_port, + * bt_self_component_port_input + */ +#include #ifdef __cplusplus extern "C" { #endif -struct bt_port_input; -struct bt_self_component_port; -struct bt_self_component_port_input; - static inline -struct bt_self_component_port * +bt_self_component_port * bt_self_component_port_input_as_self_component_port( - struct bt_self_component_port_input *self_component_port) + bt_self_component_port_input *self_component_port) { return (void *) self_component_port; } static inline -struct bt_port_input *bt_self_component_port_input_as_port_input( - struct bt_self_component_port_input *self_component_port) +const bt_port_input *bt_self_component_port_input_as_port_input( + const bt_self_component_port_input *self_component_port) { - return (void *) self_component_port; + return (const void *) self_component_port; } #ifdef __cplusplus