tap-driver.sh: flush stdout after each test result
[babeltrace.git] / plugins / utils / counter / counter.h
index aa6e7c8dc868b6b965e61e2b08347c84e1e89ffe..c29f0fd5335ff046a410ef35ec08637fff596bde 100644 (file)
  */
 
 #include <glib.h>
-#include <babeltrace/babeltrace.h>
+#include <babeltrace2/babeltrace.h>
 #include <stdbool.h>
 #include <stdint.h>
 
 struct counter {
-       struct bt_notification_iterator *notif_iter;
+       bt_self_component_port_input_message_iterator *msg_iter;
        struct {
                uint64_t event;
                uint64_t stream_begin;
                uint64_t stream_end;
+               uint64_t stream_activity_begin;
+               uint64_t stream_activity_end;
                uint64_t packet_begin;
                uint64_t packet_end;
-               uint64_t inactivity;
-               uint64_t discarded_events_notifs;
-               uint64_t discarded_events;
-               uint64_t discarded_packets_notifs;
-               uint64_t discarded_packets;
+               uint64_t disc_events;
+               uint64_t disc_packets;
+               uint64_t msg_iter_inactivity;
                uint64_t other;
        } count;
        uint64_t last_printed_total;
@@ -49,13 +49,19 @@ struct counter {
        bool hide_zero;
 };
 
-enum bt_component_status counter_init(struct bt_private_component *component,
-               struct bt_value *params, void *init_method_data);
-void counter_finalize(struct bt_private_component *component);
-enum bt_component_status counter_port_connected(
-               struct bt_private_component *component,
-               struct bt_private_port *self_port,
-               struct bt_port *other_port);
-enum bt_component_status counter_consume(struct bt_private_component *component);
+BT_HIDDEN
+bt_self_component_status counter_init(
+               bt_self_component_sink *component,
+               const bt_value *params, void *init_method_data);
+
+BT_HIDDEN
+void counter_finalize(bt_self_component_sink *component);
+
+BT_HIDDEN
+bt_self_component_status counter_graph_is_configured(
+               bt_self_component_sink *component);
+
+BT_HIDDEN
+bt_self_component_status counter_consume(bt_self_component_sink *component);
 
 #endif /* BABELTRACE_PLUGINS_UTILS_COUNTER_H */
This page took 0.024192 seconds and 4 git commands to generate.