lib: private functions: do not repeat `private` word
[babeltrace.git] / plugins / text / pretty / pretty.h
index 272e06cff3a05f19784e5e1b81150cb5df2fb7b8..ff573e8b568631060cc5e6369e7f69aa1063a28b 100644 (file)
 
 #include <stdbool.h>
 #include <babeltrace/babeltrace-internal.h>
-#include <babeltrace/graph/component.h>
-#include <babeltrace/graph/private-component.h>
-#include <babeltrace/graph/private-port.h>
-#include <babeltrace/ctf-ir/event.h>
+#include <babeltrace/babeltrace.h>
 
 enum pretty_default {
        PRETTY_DEFAULT_UNSET,
@@ -83,15 +80,16 @@ struct pretty_component {
        bool start_line;
        GString *string;
        GString *tmp_string;
-       struct bt_value *plugin_opt_map;        /* Temporary parameter map. */
+       struct bt_private_value *plugin_opt_map; /* Temporary parameter map. */
        bool use_colors;
-       bool error;
 
        uint64_t last_cycles_timestamp;
        uint64_t delta_cycles;
 
        uint64_t last_real_timestamp;
        uint64_t delta_real_timestamp;
+
+       bool negative_timestamp_warning_done;
 };
 
 enum stream_packet_context_quarks_enum {
@@ -104,6 +102,7 @@ enum stream_packet_context_quarks_enum {
        STREAM_PACKET_CONTEXT_QUARKS_LEN, /* Always the last one of this enum. */
 };
 
+extern
 GQuark stream_packet_context_quarks[STREAM_PACKET_CONTEXT_QUARKS_LEN];
 
 BT_HIDDEN
@@ -116,7 +115,7 @@ BT_HIDDEN
 enum bt_component_status pretty_consume(struct bt_private_component *component);
 
 BT_HIDDEN
-void pretty_port_connected(
+enum bt_component_status pretty_port_connected(
                struct bt_private_component *component,
                struct bt_private_port *self_port,
                struct bt_port *other_port);
@@ -129,8 +128,7 @@ enum bt_component_status pretty_print_event(struct pretty_component *pretty,
                struct bt_notification *event_notif);
 
 BT_HIDDEN
-enum bt_component_status pretty_print_discarded_elements(
-               struct pretty_component *pretty,
-               struct bt_notification *notif);
+enum bt_component_status pretty_print_packet(struct pretty_component *pretty,
+               struct bt_notification *packet_beginning_notif);
 
 #endif /* BABELTRACE_PLUGIN_TEXT_PRETTY_PRETTY_H */
This page took 0.030115 seconds and 4 git commands to generate.