lib: add aliases for Babeltrace structure types
[babeltrace.git] / include / babeltrace / graph / component-class-filter.h
index 1f4dc4ff7ea230debc4902841cab051c10fa22ea..d7832cff0bb23da71bcb3b513f0fa91501d130d5 100644 (file)
@@ -26,9 +26,6 @@
 
 #include <stdint.h>
 
-/* For enum bt_notification_array_const */
-#include <babeltrace/graph/notification-const.h>
-
 /* For enum bt_self_component_status */
 #include <babeltrace/graph/self-component.h>
 
 /* For enum bt_query_status */
 #include <babeltrace/graph/component-class.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_notification_array_const
+ */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_component_class;
-struct bt_component_class_filter;
-struct bt_port_input;
-struct bt_port_output;
-struct bt_query_executor;
-struct bt_self_component_class_filter;
-struct bt_self_component_filter;
-struct bt_self_component_port_input;
-struct bt_self_component_port_output;
-struct bt_value;
-
 typedef enum bt_self_component_status
 (*bt_component_class_filter_init_method)(
-               struct bt_self_component_filter *self_component,
-               const struct bt_value *params, void *init_method_data);
+               bt_self_component_filter *self_component,
+               const bt_value *params, void *init_method_data);
 
 typedef void (*bt_component_class_filter_finalize_method)(
-               struct bt_self_component_filter *self_component);
+               bt_self_component_filter *self_component);
 
 typedef enum bt_self_notification_iterator_status
 (*bt_component_class_filter_notification_iterator_init_method)(
-               struct bt_self_notification_iterator *notification_iterator,
-               struct bt_self_component_filter *self_component,
-               struct bt_self_component_port_output *port);
+               bt_self_notification_iterator *notification_iterator,
+               bt_self_component_filter *self_component,
+               bt_self_component_port_output *port);
 
 typedef void
 (*bt_component_class_filter_notification_iterator_finalize_method)(
-               struct bt_self_notification_iterator *notification_iterator);
+               bt_self_notification_iterator *notification_iterator);
 
 typedef enum bt_self_notification_iterator_status
 (*bt_component_class_filter_notification_iterator_next_method)(
-               struct bt_self_notification_iterator *notification_iterator,
+               bt_self_notification_iterator *notification_iterator,
                bt_notification_array_const notifs, uint64_t capacity,
                uint64_t *count);
 
 typedef enum bt_query_status
 (*bt_component_class_filter_query_method)(
-               struct bt_self_component_class_filter *comp_class,
-               const struct bt_query_executor *query_executor,
-               const char *object, const struct bt_value *params,
-               const struct bt_value **result);
+               bt_self_component_class_filter *comp_class,
+               const bt_query_executor *query_executor,
+               const char *object, const bt_value *params,
+               const bt_value **result);
 
 typedef enum bt_self_component_status
 (*bt_component_class_filter_accept_input_port_connection_method)(
-               struct bt_self_component_filter *self_component,
-               struct bt_self_component_port_input *self_port,
-               const struct bt_port_output *other_port);
+               bt_self_component_filter *self_component,
+               bt_self_component_port_input *self_port,
+               const bt_port_output *other_port);
 
 typedef enum bt_self_component_status
 (*bt_component_class_filter_accept_output_port_connection_method)(
-               struct bt_self_component_filter *self_component,
-               struct bt_self_component_port_output *self_port,
-               const struct bt_port_input *other_port);
+               bt_self_component_filter *self_component,
+               bt_self_component_port_output *self_port,
+               const bt_port_input *other_port);
 
 typedef enum bt_self_component_status
 (*bt_component_class_filter_input_port_connected_method)(
-               struct bt_self_component_filter *self_component,
-               struct bt_self_component_port_input *self_port,
-               const struct bt_port_output *other_port);
+               bt_self_component_filter *self_component,
+               bt_self_component_port_input *self_port,
+               const bt_port_output *other_port);
 
 typedef enum bt_self_component_status
 (*bt_component_class_filter_output_port_connected_method)(
-               struct bt_self_component_filter *self_component,
-               struct bt_self_component_port_output *self_port,
-               const struct bt_port_input *other_port);
+               bt_self_component_filter *self_component,
+               bt_self_component_port_output *self_port,
+               const bt_port_input *other_port);
 
 typedef void
 (*bt_component_class_filter_input_port_disconnected_method)(
-               struct bt_self_component_filter *self_component,
-               struct bt_self_component_port_input *self_port);
+               bt_self_component_filter *self_component,
+               bt_self_component_port_input *self_port);
 
 typedef void
 (*bt_component_class_filter_output_port_disconnected_method)(
-               struct bt_self_component_filter *self_component,
-               struct bt_self_component_port_output *self_port);
+               bt_self_component_filter *self_component,
+               bt_self_component_port_output *self_port);
 
 static inline
-struct bt_component_class *bt_component_class_filter_as_component_class(
-               struct bt_component_class_filter *comp_cls_filter)
+bt_component_class *bt_component_class_filter_as_component_class(
+               bt_component_class_filter *comp_cls_filter)
 {
        return (void *) comp_cls_filter;
 }
 
 extern
-struct bt_component_class_filter *bt_component_class_filter_create(
+bt_component_class_filter *bt_component_class_filter_create(
                const char *name,
                bt_component_class_filter_notification_iterator_next_method method);
 
 extern int bt_component_class_filter_set_init_method(
-               struct bt_component_class_filter *comp_class,
+               bt_component_class_filter *comp_class,
                bt_component_class_filter_init_method method);
 
 extern int bt_component_class_filter_set_finalize_method(
-               struct bt_component_class_filter *comp_class,
+               bt_component_class_filter *comp_class,
                bt_component_class_filter_finalize_method method);
 
 extern int bt_component_class_filter_set_accept_input_port_connection_method(
-               struct bt_component_class_filter *comp_class,
+               bt_component_class_filter *comp_class,
                bt_component_class_filter_accept_input_port_connection_method method);
 
 extern int bt_component_class_filter_set_accept_output_port_connection_method(
-               struct bt_component_class_filter *comp_class,
+               bt_component_class_filter *comp_class,
                bt_component_class_filter_accept_output_port_connection_method method);
 
 extern int bt_component_class_filter_set_input_port_connected_method(
-               struct bt_component_class_filter *comp_class,
+               bt_component_class_filter *comp_class,
                bt_component_class_filter_input_port_connected_method method);
 
 extern int bt_component_class_filter_set_output_port_connected_method(
-               struct bt_component_class_filter *comp_class,
+               bt_component_class_filter *comp_class,
                bt_component_class_filter_output_port_connected_method method);
 
 extern int bt_component_class_filter_set_input_port_disconnected_method(
-               struct bt_component_class_filter *comp_class,
+               bt_component_class_filter *comp_class,
                bt_component_class_filter_input_port_disconnected_method method);
 
 extern int bt_component_class_filter_set_output_port_disconnected_method(
-               struct bt_component_class_filter *comp_class,
+               bt_component_class_filter *comp_class,
                bt_component_class_filter_output_port_disconnected_method method);
 
 extern int bt_component_class_filter_set_query_method(
-               struct bt_component_class_filter *comp_class,
+               bt_component_class_filter *comp_class,
                bt_component_class_filter_query_method method);
 
 extern int bt_component_class_filter_set_notification_iterator_init_method(
-               struct bt_component_class_filter *comp_class,
+               bt_component_class_filter *comp_class,
                bt_component_class_filter_notification_iterator_init_method method);
 
 extern int bt_component_class_filter_set_notification_iterator_finalize_method(
-               struct bt_component_class_filter *comp_class,
+               bt_component_class_filter *comp_class,
                bt_component_class_filter_notification_iterator_finalize_method method);
 
 #ifdef __cplusplus
This page took 0.033525 seconds and 4 git commands to generate.