lib: make the "port connected" method return a status
[babeltrace.git] / plugins / text / pretty / pretty.h
index 554fc72f8742523cb42feb2dccf992680c69a08e..5659035ed21aa8e5f56950551769e03b39c3f11a 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,
@@ -85,7 +82,6 @@ struct pretty_component {
        GString *tmp_string;
        struct bt_value *plugin_opt_map;        /* Temporary parameter map. */
        bool use_colors;
-       bool error;
 
        uint64_t last_cycles_timestamp;
        uint64_t delta_cycles;
@@ -106,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
@@ -118,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);
This page took 0.024513 seconds and 4 git commands to generate.