X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fplugin%2Fcomponent-factory-internal.h;h=4810e9cad450bc567ec90f58eb18edf71933f922;hb=0d884c50d1a934e65bf6893b0232b0e7fdecf70a;hp=e6d368da3b499d9f300da4d2c32f370986642fef;hpb=430b94fafd782ba50c651378cc50535e3b8f59a0;p=babeltrace.git diff --git a/include/babeltrace/plugin/component-factory-internal.h b/include/babeltrace/plugin/component-factory-internal.h index e6d368da..4810e9ca 100644 --- a/include/babeltrace/plugin/component-factory-internal.h +++ b/include/babeltrace/plugin/component-factory-internal.h @@ -1,3 +1,35 @@ +#ifndef BABELTRACE_PLUGIN_COMPONENT_FACTORY_INTERNAL_H +#define BABELTRACE_PLUGIN_COMPONENT_FACTORY_INTERNAL_H + +/* + * BabelTrace - Component Factory Internal + * + * Copyright 2015 Jérémie Galarneau + * + * 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 +#include +#include /** Component initialization functions */ /** @@ -9,6 +41,7 @@ * @param iterator_create_cb Iterator creation callback * @returns A source component instance */ +BT_HIDDEN extern struct bt_component *bt_component_source_create(const char *name, void *private_data, bt_component_destroy_cb destroy_func, bt_component_source_iterator_create_cb iterator_create_cb); @@ -22,6 +55,9 @@ extern struct bt_component *bt_component_source_create(const char *name, * @param notification_cb Notification handling callback * @returns A sink component instance */ +BT_HIDDEN extern struct bt_component *bt_component_sink_create(const char *name, void *private_data, bt_component_destroy_cb destroy_func, bt_component_sink_handle_notification_cb notification_cb); + +#endif /* BABELTRACE_PLUGIN_COMPONENT_FACTORY_INTERNAL_H */