Rename ctf_stream_event to ctf_event_definition
authorJulien Desfossez <julien.desfossez@efficios.com>
Fri, 30 Mar 2012 19:47:37 +0000 (15:47 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 30 Mar 2012 19:47:37 +0000 (15:47 -0400)
Signed-off-by: Julien Desfossez <julien.desfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
formats/ctf-text/ctf-text.c
formats/ctf/callbacks.c
formats/ctf/ctf.c
include/babeltrace/ctf-ir/metadata.h
include/babeltrace/ctf/events-internal.h

index 8aeae362c69522a4691496ee329472a893e95515..a4316e8fd6d0fccf37f03fa021c2bd3a1380f5b9 100644 (file)
@@ -219,7 +219,7 @@ int ctf_text_write_event(struct stream_pos *ppos, struct ctf_stream *stream)
        struct ctf_stream_declaration *stream_class = stream->stream_class;
        int field_nr_saved;
        struct ctf_event *event_class;
-       struct ctf_stream_event *event;
+       struct ctf_event_definition *event;
        uint64_t id;
        int ret;
        int dom_print = 0;
index ea41344a72ef1ff5c5957383fe96e9a49de28daf..6130911fec112da82f429fa60fd676e94883e96c 100644 (file)
@@ -146,11 +146,11 @@ int bt_ctf_iter_add_callback(struct bt_ctf_iter *iter,
 }
 
 static
-struct ctf_stream_event *extract_ctf_stream_event(struct ctf_stream *stream)
+struct ctf_event_definition *extract_ctf_stream_event(struct ctf_stream *stream)
 {
        struct ctf_stream_declaration *stream_class = stream->stream_class;
        struct ctf_event *event_class;
-       struct ctf_stream_event *event;
+       struct ctf_event_definition *event;
        uint64_t id = stream->event_id;
 
        if (id >= stream_class->events_by_id->len) {
index 494ba990b09a835b51c107e2797c4621e91ace79..22a55e64b50c813fa02827a31cf5c322075cd784 100644 (file)
@@ -226,7 +226,7 @@ int ctf_read_event(struct stream_pos *ppos, struct ctf_stream *stream)
        struct ctf_stream_pos *pos =
                container_of(ppos, struct ctf_stream_pos, parent);
        struct ctf_stream_declaration *stream_class = stream->stream_class;
-       struct ctf_stream_event *event;
+       struct ctf_event_definition *event;
        uint64_t id = 0;
        int ret;
 
@@ -338,7 +338,7 @@ static
 int ctf_write_event(struct stream_pos *pos, struct ctf_stream *stream)
 {
        struct ctf_stream_declaration *stream_class = stream->stream_class;
-       struct ctf_stream_event *event;
+       struct ctf_event_definition *event;
        uint64_t id;
        int ret;
 
@@ -898,11 +898,11 @@ end_stream:
 }
 
 static
-struct ctf_stream_event *create_event_definitions(struct ctf_trace *td,
+struct ctf_event_definition *create_event_definitions(struct ctf_trace *td,
                                                  struct ctf_stream *stream,
                                                  struct ctf_event *event)
 {
-       struct ctf_stream_event *stream_event = g_new0(struct ctf_stream_event, 1);
+       struct ctf_event_definition *stream_event = g_new0(struct ctf_event_definition, 1);
 
        if (event->context_decl) {
                struct definition *definition =
@@ -988,7 +988,7 @@ int create_stream_definitions(struct ctf_trace *td, struct ctf_stream *stream)
        g_ptr_array_set_size(stream->events_by_id, stream_class->events_by_id->len);
        for (i = 0; i < stream->events_by_id->len; i++) {
                struct ctf_event *event = g_ptr_array_index(stream_class->events_by_id, i);
-               struct ctf_stream_event *stream_event;
+               struct ctf_event_definition *stream_event;
 
                if (!event)
                        continue;
@@ -1001,7 +1001,7 @@ int create_stream_definitions(struct ctf_trace *td, struct ctf_stream *stream)
 
 error_event:
        for (i = 0; i < stream->events_by_id->len; i++) {
-               struct ctf_stream_event *stream_event = g_ptr_array_index(stream->events_by_id, i);
+               struct ctf_event_definition *stream_event = g_ptr_array_index(stream->events_by_id, i);
                if (stream_event)
                        g_free(stream_event);
        }
index 75697396a2c2d1d437c8595f234d1fda64bbe029..f3e7b68ce01a817831b70d8b04bc13409a1a142f 100644 (file)
@@ -47,7 +47,7 @@ struct ctf_stream {
        struct definition_struct *stream_packet_context;
        struct definition_struct *stream_event_header;
        struct definition_struct *stream_event_context;
-       GPtrArray *events_by_id;                /* Array of struct ctf_stream_event pointers indexed by id */
+       GPtrArray *events_by_id;                /* Array of struct ctf_event_definition pointers indexed by id */
        struct definition_scope *parent_def_scope;      /* for initialization */
        int stream_definitions_created;
 
@@ -59,7 +59,7 @@ struct ctf_stream {
        uint64_t prev_timestamp_end;    /* End-of-packet timestamp */
 };
 
-struct ctf_stream_event {
+struct ctf_event_definition {
        struct definition_struct *event_context;
        struct definition_struct *event_fields;
 };
index 9f579a060ded3cc272e40eeccfab3ef34475e46c..c3ee8fcda401e28557d1545407e62e45aa7f10f5 100644 (file)
 #include <glib.h>
 
 struct ctf_stream;
-struct ctf_stream_event;
+struct ctf_event_definition;
 /*
  * the structure to manipulate events
  */
 struct bt_ctf_event {
        struct ctf_stream *stream;
-       struct ctf_stream_event *event;
+       struct ctf_event_definition *event;
 };
 
 struct bt_ctf_iter {
This page took 0.041052 seconds and 4 git commands to generate.