X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;ds=sidebyside;f=plugins%2Ftext%2Ftext.c;h=e6631763122d8f944c9a6ea8d8bafad8098ebcda;hb=2b4c4a7ca098cb220ebbec83e05b7d1fa238c812;hp=44887b6fe11498470cac076f4d4deb9661a70318;hpb=a263021c7b3cf7e563cb55b3985b46248320a545;p=babeltrace.git diff --git a/plugins/text/text.c b/plugins/text/text.c index 44887b6f..e6631763 100644 --- a/plugins/text/text.c +++ b/plugins/text/text.c @@ -665,6 +665,25 @@ void set_use_colors(struct text_component *text) } } +static +void init_stream_packet_context_quarks(void) +{ + stream_packet_context_quarks[Q_TIMESTAMP_BEGIN] = + g_quark_from_string("timestamp_begin"); + stream_packet_context_quarks[Q_TIMESTAMP_BEGIN] = + g_quark_from_string("timestamp_begin"); + stream_packet_context_quarks[Q_TIMESTAMP_END] = + g_quark_from_string("timestamp_end"); + stream_packet_context_quarks[Q_EVENTS_DISCARDED] = + g_quark_from_string("events_discarded"); + stream_packet_context_quarks[Q_CONTENT_SIZE] = + g_quark_from_string("content_size"); + stream_packet_context_quarks[Q_PACKET_SIZE] = + g_quark_from_string("packet_size"); + stream_packet_context_quarks[Q_PACKET_SEQ_NUM] = + g_quark_from_string("packet_seq_num"); +} + static enum bt_component_status text_component_init( struct bt_component *component, struct bt_value *params, @@ -698,6 +717,9 @@ enum bt_component_status text_component_init( if (ret != BT_COMPONENT_STATUS_OK) { goto error; } + + init_stream_packet_context_quarks(); + end: return ret; error: @@ -715,4 +737,3 @@ BT_PLUGIN_SINK_COMPONENT_CLASS_INIT_METHOD(text, text_component_init); BT_PLUGIN_SINK_COMPONENT_CLASS_DESTROY_METHOD(text, destroy_text); BT_PLUGIN_SINK_COMPONENT_CLASS_DESCRIPTION(text, "Formats CTF-IR to text. Formerly known as ctf-text."); -