X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=lib%2Fgraph%2Fcomponent-class-sink-colander.c;h=582176753d4c47cc18c9d272e5356107a1a16470;hb=c5b9b4417bedfbec9b5dd23b8395ccdd4eeffc44;hp=0c91aeaa5af4232471ffa4df7e917771f9ef7c45;hpb=05e2128659970c32648a01255ed870449f05d518;p=babeltrace.git diff --git a/lib/graph/component-class-sink-colander.c b/lib/graph/component-class-sink-colander.c index 0c91aeaa..58217675 100644 --- a/lib/graph/component-class-sink-colander.c +++ b/lib/graph/component-class-sink-colander.c @@ -1,5 +1,5 @@ /* - * 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,22 +23,22 @@ #define BT_LOG_TAG "COLANDER" #include -#include -#include -#include +#include +#include +#include +#include #include #include #include #include #include -#include #include static -struct bt_private_component_class_sink *colander_comp_cls; +struct bt_component_class_sink *colander_comp_cls; struct colander_data { - bt_notification_array notifs; + bt_notification_array_const notifs; uint64_t *count_addr; struct bt_self_component_port_input_notification_iterator *notif_iter; }; @@ -102,7 +102,7 @@ static enum bt_self_component_status colander_input_port_connected( struct bt_self_component_sink *self_comp, struct bt_self_component_port_input *self_port, - struct bt_port_output *other_port) + const struct bt_port_output *other_port) { enum bt_self_component_status status = BT_SELF_COMPONENT_STATUS_OK; struct colander_data *colander_data = @@ -135,7 +135,7 @@ enum bt_self_component_status colander_consume( struct colander_data *colander_data = bt_self_component_get_data( bt_self_component_sink_as_self_component(self_comp)); - bt_notification_array notifs; + bt_notification_array_const notifs; BT_ASSERT(colander_data); @@ -180,18 +180,18 @@ struct bt_component_class_sink *bt_component_class_sink_colander_get(void) goto end; } - colander_comp_cls = bt_private_component_class_sink_create( - "colander", colander_consume); + colander_comp_cls = bt_component_class_sink_create("colander", + colander_consume); if (!colander_comp_cls) { BT_LOGE_STR("Cannot create sink colander component class."); goto end; } - (void) bt_private_component_class_sink_set_init_method( + (void) bt_component_class_sink_set_init_method( colander_comp_cls, colander_init); - (void) bt_private_component_class_sink_set_finalize_method( + (void) bt_component_class_sink_set_finalize_method( colander_comp_cls, colander_finalize); - (void) bt_private_component_class_sink_set_input_port_connected_method( + (void) bt_component_class_sink_set_input_port_connected_method( colander_comp_cls, colander_input_port_connected); end: