X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace2%2Fgraph%2Fcomponent-class-filter.h;h=1907fc0f292f52533bb497a06d169b73c20e053c;hb=8d8b141db4c46135a35be19e4a1c192f6a36d67b;hp=49a52872831ec3f3e92ad6a9cdc402c6a14be4d9;hpb=d24d56638469189904fb6ddbb3c725817b3e9417;p=babeltrace.git diff --git a/include/babeltrace2/graph/component-class-filter.h b/include/babeltrace2/graph/component-class-filter.h index 49a52872..1907fc0f 100644 --- a/include/babeltrace2/graph/component-class-filter.h +++ b/include/babeltrace2/graph/component-class-filter.h @@ -1,9 +1,8 @@ -#ifndef BABELTRACE_GRAPH_COMPONENT_CLASS_FILTER_H -#define BABELTRACE_GRAPH_COMPONENT_CLASS_FILTER_H +#ifndef BABELTRACE2_GRAPH_COMPONENT_CLASS_FILTER_H +#define BABELTRACE2_GRAPH_COMPONENT_CLASS_FILTER_H /* - * Copyright 2017-2018 Philippe Proulx - * Copyright 2016 Jérémie Galarneau + * Copyright (c) 2010-2019 EfficiOS Inc. and Linux Foundation * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -24,30 +23,31 @@ * SOFTWARE. */ +#ifndef __BT_IN_BABELTRACE_H +# error "Please include instead." +#endif + #include -/* For bt_component_class_*_status */ #include - -/* - * For bt_component_class, bt_component_class_filter, bt_port_input, - * bt_port_output, bt_query_executor, bt_self_component_class_filter, - * bt_self_component_filter, bt_self_component_port_input, - * bt_self_component_port_output, bt_value, bt_message_array_const, - * bt_bool, bt_self_message_iterator, __BT_UPCAST - */ #include - -/* For bt_logging_level */ #include #ifdef __cplusplus extern "C" { #endif +typedef bt_component_class_get_supported_mip_versions_method_status +(*bt_component_class_filter_get_supported_mip_versions_method)( + bt_self_component_class_filter *comp_class, + const bt_value *params, void *init_method_data, + bt_logging_level log_level, + bt_integer_range_set_unsigned *supported_versions); + typedef bt_component_class_init_method_status (*bt_component_class_filter_init_method)( bt_self_component_filter *self_component, + bt_self_component_filter_configuration *config, const bt_value *params, void *init_method_data); typedef void (*bt_component_class_filter_finalize_method)( @@ -56,6 +56,7 @@ typedef void (*bt_component_class_filter_finalize_method)( typedef bt_component_class_message_iterator_init_method_status (*bt_component_class_filter_message_iterator_init_method)( bt_self_message_iterator *message_iterator, + bt_self_message_iterator_configuration *config, bt_self_component_filter *self_component, bt_self_component_port_output *port); @@ -78,21 +79,21 @@ typedef bt_component_class_message_iterator_seek_beginning_method_status (*bt_component_class_filter_message_iterator_seek_beginning_method)( bt_self_message_iterator *message_iterator); -typedef bt_bool +typedef bt_component_class_message_iterator_can_seek_ns_from_origin_method_status (*bt_component_class_filter_message_iterator_can_seek_ns_from_origin_method)( bt_self_message_iterator *message_iterator, - int64_t ns_from_origin); + int64_t ns_from_origin, bt_bool *can_seek); -typedef bt_bool +typedef bt_component_class_message_iterator_can_seek_beginning_method_status (*bt_component_class_filter_message_iterator_can_seek_beginning_method)( - bt_self_message_iterator *message_iterator); + bt_self_message_iterator *message_iterator, bt_bool *can_seek); typedef bt_component_class_query_method_status (*bt_component_class_filter_query_method)( bt_self_component_class_filter *comp_class, - const bt_query_executor *query_executor, + bt_private_query_executor *query_executor, const char *object, const bt_value *params, - bt_logging_level logging_level, const bt_value **result); + void *method_data, const bt_value **result); typedef bt_component_class_port_connected_method_status (*bt_component_class_filter_input_port_connected_method)( @@ -118,6 +119,11 @@ bt_component_class_filter *bt_component_class_filter_create( const char *name, bt_component_class_filter_message_iterator_next_method method); +extern bt_component_class_set_method_status +bt_component_class_filter_set_get_supported_mip_versions_method( + bt_component_class_filter *comp_class, + bt_component_class_filter_get_supported_mip_versions_method method); + extern bt_component_class_set_method_status bt_component_class_filter_set_init_method( bt_component_class_filter *comp_class, @@ -177,4 +183,4 @@ bt_component_class_filter_set_message_iterator_can_seek_beginning_method( } #endif -#endif /* BABELTRACE_GRAPH_COMPONENT_CLASS_FILTER_H */ +#endif /* BABELTRACE2_GRAPH_COMPONENT_CLASS_FILTER_H */