X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Flib%2Fgraph%2Fcomponent-sink.h;fp=src%2Flib%2Fgraph%2Fcomponent-sink.h;h=a67063518ff028c10127db724d8b904fa453b8c5;hb=578e048b5debf169e286e5b5cc747b5d6c16886d;hp=0000000000000000000000000000000000000000;hpb=68b66a256a54d32992dfefeaad11eea88b7df234;p=babeltrace.git diff --git a/src/lib/graph/component-sink.h b/src/lib/graph/component-sink.h new file mode 100644 index 00000000..a6706351 --- /dev/null +++ b/src/lib/graph/component-sink.h @@ -0,0 +1,46 @@ +#ifndef BABELTRACE_GRAPH_COMPONENT_SINK_INTERNAL_H +#define BABELTRACE_GRAPH_COMPONENT_SINK_INTERNAL_H + +/* + * Copyright 2017-2018 Philippe Proulx + * Copyright 2015 Jérémie Galarneau + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +#include "common/babeltrace.h" +#include "compat/compiler.h" +#include + +#include "component-class.h" +#include "component.h" + +struct bt_component_sink { + struct bt_component parent; + bool graph_is_configured_method_called; +}; + +BT_HIDDEN +struct bt_component *bt_component_sink_create( + const struct bt_component_class *class); + +BT_HIDDEN +void bt_component_sink_destroy(struct bt_component *component); + +#endif /* BABELTRACE_GRAPH_COMPONENT_SINK_INTERNAL_H */