From: Philippe Proulx Date: Fri, 30 Nov 2018 22:22:43 +0000 (-0500) Subject: lib: move plugin set API declarations to `babeltrace/plugin/plugin-set.h` X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=50d2011c37045e3f34c1b5877205bda4b7e3381a lib: move plugin set API declarations to `babeltrace/plugin/plugin-set.h` Signed-off-by: Philippe Proulx --- diff --git a/include/Makefile.am b/include/Makefile.am index 9b8d925b..a84dfbba 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -146,7 +146,8 @@ babeltracetraceirinclude_HEADERS = \ babeltracepluginincludedir = "$(includedir)/babeltrace/plugin" babeltraceplugininclude_HEADERS = \ babeltrace/plugin/plugin-dev.h \ - babeltrace/plugin/plugin.h + babeltrace/plugin/plugin.h \ + babeltrace/plugin/plugin-set.h # Graph, component, and notification API babeltracegraphincludedir = "$(includedir)/babeltrace/graph" diff --git a/include/babeltrace/babeltrace.h b/include/babeltrace/babeltrace.h index bd5a69d1..e50ec203 100644 --- a/include/babeltrace/babeltrace.h +++ b/include/babeltrace/babeltrace.h @@ -90,6 +90,7 @@ /* Plugin and plugin development API */ #include +#include #include /* Graph, component, and notification API */ diff --git a/include/babeltrace/plugin/plugin-set.h b/include/babeltrace/plugin/plugin-set.h new file mode 100644 index 00000000..8ec2be12 --- /dev/null +++ b/include/babeltrace/plugin/plugin-set.h @@ -0,0 +1,48 @@ +#ifndef BABELTRACE_PLUGIN_PLUGIN_SET_H +#define BABELTRACE_PLUGIN_PLUGIN_SET_H + +/* + * Copyright 2016 Jérémie Galarneau + * Copyright 2017 Philippe Proulx + * + * Author: 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 + +#ifdef __cplusplus +extern "C" { +#endif + +struct bt_plugin; +struct bt_plugin_set; + +extern uint64_t bt_plugin_set_get_plugin_count( + struct bt_plugin_set *plugin_set); + +extern struct bt_plugin *bt_plugin_set_borrow_plugin_by_index( + struct bt_plugin_set *plugin_set, uint64_t index); + +#ifdef __cplusplus +} +#endif + +#endif /* BABELTRACE_PLUGIN_PLUGIN_SET_H */ diff --git a/include/babeltrace/plugin/plugin.h b/include/babeltrace/plugin/plugin.h index 667486ea..7aed1877 100644 --- a/include/babeltrace/plugin/plugin.h +++ b/include/babeltrace/plugin/plugin.h @@ -120,12 +120,6 @@ extern struct bt_component_class_sink * bt_plugin_borrow_sink_component_class_by_name(struct bt_plugin *plugin, const char *name); -extern uint64_t bt_plugin_set_get_plugin_count( - struct bt_plugin_set *plugin_set); - -extern struct bt_plugin *bt_plugin_set_borrow_plugin_by_index( - struct bt_plugin_set *plugin_set, uint64_t index); - #ifdef __cplusplus } #endif