-#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 <pproulx@efficios.com>
- * Copyright 2016 Jérémie Galarneau <jeremie.galarneau@efficios.com>
+ * 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
* SOFTWARE.
*/
-#include <stdint.h>
-
-/* For bt_self_component_status */
-#include <babeltrace2/graph/self-component.h>
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
-/* For bt_self_message_iterator_status */
-#include <babeltrace2/graph/self-message-iterator.h>
+#include <stdint.h>
-/* For bt_query_status */
#include <babeltrace2/graph/component-class.h>
-
-/* For bt_component_class_status */
-#include <babeltrace2/graph/component-class-const.h>
-
-/*
- * 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 <babeltrace2/types.h>
-
-/* For bt_logging_level */
#include <babeltrace2/logging.h>
#ifdef __cplusplus
extern "C" {
#endif
-typedef bt_self_component_status
+typedef bt_component_class_init_method_status
(*bt_component_class_filter_init_method)(
bt_self_component_filter *self_component,
const bt_value *params, void *init_method_data);
typedef void (*bt_component_class_filter_finalize_method)(
bt_self_component_filter *self_component);
-typedef bt_self_message_iterator_status
+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_component_filter *self_component,
(*bt_component_class_filter_message_iterator_finalize_method)(
bt_self_message_iterator *message_iterator);
-typedef bt_self_message_iterator_status
+typedef bt_component_class_message_iterator_next_method_status
(*bt_component_class_filter_message_iterator_next_method)(
bt_self_message_iterator *message_iterator,
bt_message_array_const msgs, uint64_t capacity,
uint64_t *count);
-typedef bt_self_message_iterator_status
+typedef bt_component_class_message_iterator_seek_ns_from_origin_method_status
(*bt_component_class_filter_message_iterator_seek_ns_from_origin_method)(
bt_self_message_iterator *message_iterator,
int64_t ns_from_origin);
-typedef bt_self_message_iterator_status
+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);
(*bt_component_class_filter_message_iterator_can_seek_beginning_method)(
bt_self_message_iterator *message_iterator);
-typedef bt_query_status
+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);
+ const bt_value **result);
-typedef bt_self_component_status
+typedef bt_component_class_port_connected_method_status
(*bt_component_class_filter_input_port_connected_method)(
bt_self_component_filter *self_component,
bt_self_component_port_input *self_port,
const bt_port_output *other_port);
-typedef bt_self_component_status
+typedef bt_component_class_port_connected_method_status
(*bt_component_class_filter_output_port_connected_method)(
bt_self_component_filter *self_component,
bt_self_component_port_output *self_port,
const char *name,
bt_component_class_filter_message_iterator_next_method method);
-extern bt_component_class_status
+extern bt_component_class_set_method_status
bt_component_class_filter_set_init_method(
bt_component_class_filter *comp_class,
bt_component_class_filter_init_method method);
-extern bt_component_class_status
+extern bt_component_class_set_method_status
bt_component_class_filter_set_finalize_method(
bt_component_class_filter *comp_class,
bt_component_class_filter_finalize_method method);
-extern bt_component_class_status
+extern bt_component_class_set_method_status
bt_component_class_filter_set_input_port_connected_method(
bt_component_class_filter *comp_class,
bt_component_class_filter_input_port_connected_method method);
-extern bt_component_class_status
+extern bt_component_class_set_method_status
bt_component_class_filter_set_output_port_connected_method(
bt_component_class_filter *comp_class,
bt_component_class_filter_output_port_connected_method method);
-extern bt_component_class_status
+extern bt_component_class_set_method_status
bt_component_class_filter_set_query_method(
bt_component_class_filter *comp_class,
bt_component_class_filter_query_method method);
-extern bt_component_class_status
+extern bt_component_class_set_method_status
bt_component_class_filter_set_message_iterator_init_method(
bt_component_class_filter *comp_class,
bt_component_class_filter_message_iterator_init_method method);
-extern bt_component_class_status
+extern bt_component_class_set_method_status
bt_component_class_filter_set_message_iterator_finalize_method(
bt_component_class_filter *comp_class,
bt_component_class_filter_message_iterator_finalize_method method);
-extern bt_component_class_status
+extern bt_component_class_set_method_status
bt_component_class_filter_set_message_iterator_seek_ns_from_origin_method(
bt_component_class_filter *comp_class,
bt_component_class_filter_message_iterator_seek_ns_from_origin_method method);
-extern bt_component_class_status
+extern bt_component_class_set_method_status
bt_component_class_filter_set_message_iterator_seek_beginning_method(
bt_component_class_filter *comp_class,
bt_component_class_filter_message_iterator_seek_beginning_method method);
-extern bt_bool
+extern bt_component_class_set_method_status
bt_component_class_filter_set_message_iterator_can_seek_ns_from_origin_method(
bt_component_class_filter *comp_class,
bt_component_class_filter_message_iterator_can_seek_ns_from_origin_method method);
-extern bt_bool
+extern bt_component_class_set_method_status
bt_component_class_filter_set_message_iterator_can_seek_beginning_method(
bt_component_class_filter *comp_class,
bt_component_class_filter_message_iterator_can_seek_beginning_method method);
}
#endif
-#endif /* BABELTRACE_GRAPH_COMPONENT_CLASS_FILTER_H */
+#endif /* BABELTRACE2_GRAPH_COMPONENT_CLASS_FILTER_H */