Rename ctf_stream to ctf_stream_definition
authorJulien Desfossez <julien.desfossez@efficios.com>
Fri, 30 Mar 2012 19:48:00 +0000 (15:48 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 30 Mar 2012 19:48:00 +0000 (15:48 -0400)
Signed-off-by: Julien Desfossez <julien.desfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 files changed:
formats/bt-dummy/bt-dummy.c
formats/ctf-text/ctf-text.c
formats/ctf/callbacks.c
formats/ctf/ctf.c
formats/ctf/events-private.h
include/babeltrace/ctf-ir/metadata.h
include/babeltrace/ctf/callbacks-internal.h
include/babeltrace/ctf/events-internal.h
include/babeltrace/ctf/metadata.h
include/babeltrace/ctf/types.h
include/babeltrace/types.h
lib/iterator.c

index 5f7a1a5abc947f06304cadb35e3bc1d47c1cf470..2e94421f7366759b350608d15b7fb33924014fd5 100644 (file)
@@ -31,7 +31,7 @@
 #include <stdlib.h>
 
 static
-int bt_dummy_write_event(struct stream_pos *ppos, struct ctf_stream *stream)
+int bt_dummy_write_event(struct stream_pos *ppos, struct ctf_stream_definition *stream)
 {
        return 0;
 }
index a4316e8fd6d0fccf37f03fa021c2bd3a1380f5b9..aa07b7cab770a55e25d59a09bdcef8270cc9aaa1 100644 (file)
@@ -211,7 +211,7 @@ const char *print_loglevel(int value)
 }
 
 static
-int ctf_text_write_event(struct stream_pos *ppos, struct ctf_stream *stream)
+int ctf_text_write_event(struct stream_pos *ppos, struct ctf_stream_definition *stream)
                         
 {
        struct ctf_text_stream_pos *pos =
index 6130911fec112da82f429fa60fd676e94883e96c..e27a6a3d31c18c31245c5c23c983281d14c97057 100644 (file)
@@ -146,7 +146,7 @@ int bt_ctf_iter_add_callback(struct bt_ctf_iter *iter,
 }
 
 static
-struct ctf_event_definition *extract_ctf_stream_event(struct ctf_stream *stream)
+struct ctf_event_definition *extract_ctf_stream_event(struct ctf_stream_definition *stream)
 {
        struct ctf_stream_declaration *stream_class = stream->stream_class;
        struct ctf_event *event_class;
@@ -172,7 +172,7 @@ struct ctf_event_definition *extract_ctf_stream_event(struct ctf_stream *stream)
 }
 
 void process_callbacks(struct bt_ctf_iter *iter,
-                      struct ctf_stream *stream)
+                      struct ctf_stream_definition *stream)
 {
        struct bt_stream_callbacks *bt_stream_cb;
        struct bt_callback_chain *bt_chain;
index 22a55e64b50c813fa02827a31cf5c322075cd784..22051f18b027c922470b6bd5a069562a87f744e2 100644 (file)
@@ -125,7 +125,7 @@ struct format ctf_format = {
  * Update stream current timestamp, keep at clock frequency.
  */
 static
-void ctf_update_timestamp(struct ctf_stream *stream,
+void ctf_update_timestamp(struct ctf_stream_definition *stream,
                          struct definition_integer *integer_definition)
 {
        struct declaration_integer *integer_declaration =
@@ -156,7 +156,7 @@ void ctf_update_timestamp(struct ctf_stream *stream,
  * applying offsets as needed (unix time).
  */
 void ctf_print_timestamp(FILE *fp,
-                       struct ctf_stream *stream,
+                       struct ctf_stream_definition *stream,
                        uint64_t timestamp)
 {
        uint64_t ts_sec = 0, ts_nsec;
@@ -221,7 +221,7 @@ end:
 }
 
 static
-int ctf_read_event(struct stream_pos *ppos, struct ctf_stream *stream)
+int ctf_read_event(struct stream_pos *ppos, struct ctf_stream_definition *stream)
 {
        struct ctf_stream_pos *pos =
                container_of(ppos, struct ctf_stream_pos, parent);
@@ -335,7 +335,7 @@ error:
 }
 
 static
-int ctf_write_event(struct stream_pos *pos, struct ctf_stream *stream)
+int ctf_write_event(struct stream_pos *pos, struct ctf_stream_definition *stream)
 {
        struct ctf_stream_declaration *stream_class = stream->stream_class;
        struct ctf_event_definition *event;
@@ -899,7 +899,7 @@ end_stream:
 
 static
 struct ctf_event_definition *create_event_definitions(struct ctf_trace *td,
-                                                 struct ctf_stream *stream,
+                                                 struct ctf_stream_definition *stream,
                                                  struct ctf_event *event)
 {
        struct ctf_event_definition *stream_event = g_new0(struct ctf_event_definition, 1);
@@ -937,7 +937,7 @@ error:
 }
 
 static
-int create_stream_definitions(struct ctf_trace *td, struct ctf_stream *stream)
+int create_stream_definitions(struct ctf_trace *td, struct ctf_stream_definition *stream)
 {
        struct ctf_stream_declaration *stream_class;
        int ret;
@@ -1236,7 +1236,7 @@ int create_stream_packet_index(struct ctf_trace *td,
 }
 
 static
-int create_trace_definitions(struct ctf_trace *td, struct ctf_stream *stream)
+int create_trace_definitions(struct ctf_trace *td, struct ctf_stream_definition *stream)
 {
        int ret;
 
index bc1dfbd98f3767a77fd41552ad27531b2b2f1c38..4ea19be583d55fb9b02849b4e3a00cb504045eae 100644 (file)
@@ -26,7 +26,7 @@
 #include <babeltrace/ctf-ir/metadata.h>
 
 static inline
-uint64_t ctf_get_timestamp_raw(struct ctf_stream *stream,
+uint64_t ctf_get_timestamp_raw(struct ctf_stream_definition *stream,
                        uint64_t timestamp)
 {
        uint64_t ts_nsec;
@@ -41,7 +41,7 @@ uint64_t ctf_get_timestamp_raw(struct ctf_stream *stream,
 }
 
 static inline
-uint64_t ctf_get_timestamp(struct ctf_stream *stream,
+uint64_t ctf_get_timestamp(struct ctf_stream_definition *stream,
                        uint64_t timestamp)
 {
        uint64_t ts_nsec;
index f3e7b68ce01a817831b70d8b04bc13409a1a142f..fb78439b5491e0c2d907775899fa5ebea253f5ec 100644 (file)
 
 struct ctf_trace;
 struct ctf_stream_declaration;
-struct ctf_stream;
+struct ctf_stream_definition;
 struct ctf_event;
-struct ctf_stream;
+struct ctf_stream_definition;
 struct ctf_clock;
 
-struct ctf_stream {
+struct ctf_stream_definition {
        struct ctf_stream_declaration *stream_class;
        uint64_t timestamp;                     /* Current timestamp, in ns */
        uint64_t event_id;                      /* Current event ID */
@@ -137,7 +137,7 @@ struct ctf_trace {
        /* innermost definition scope. to be used as parent of stream. */
        struct definition_scope *definition_scope;
        GPtrArray *streams;                     /* Array of struct ctf_stream_declaration pointers */
-       struct ctf_stream *metadata;
+       struct ctf_stream_definition *metadata;
        GHashTable *clocks;
        struct ctf_clock *single_clock;         /* currently supports only one clock */
        struct trace_collection *collection;    /* Container of this trace */
@@ -204,7 +204,7 @@ struct ctf_stream_declaration {
                CTF_STREAM_stream_id =  (1 << 0),
        } field_mask;
 
-       GPtrArray *streams;     /* Array of struct ctf_stream pointers */
+       GPtrArray *streams;     /* Array of struct ctf_stream_definition pointers */
 };
 
 #define CTF_EVENT_SET_FIELD(ctf_event, field)                          \
index 611851ae97665e57a36d4169834b256d8635c120..b76f82e180ce8ea208ef0b0a7508470a3fcb6872 100644 (file)
@@ -52,6 +52,6 @@ struct bt_dependencies {
        int refcount;                   /* free when decremented to 0 */
 };
 
-void process_callbacks(struct bt_ctf_iter *iter, struct ctf_stream *stream);
+void process_callbacks(struct bt_ctf_iter *iter, struct ctf_stream_definition *stream);
 
 #endif /* _BABELTRACE_CALLBACKS_INTERNAL_H */
index c3ee8fcda401e28557d1545407e62e45aa7f10f5..2ff37545ffb0ff984373d7223fbd9b68c07166ba 100644 (file)
 #include <babeltrace/ctf/callbacks-internal.h>
 #include <glib.h>
 
-struct ctf_stream;
+struct ctf_stream_definition;
 struct ctf_event_definition;
 /*
  * the structure to manipulate events
  */
 struct bt_ctf_event {
-       struct ctf_stream *stream;
+       struct ctf_stream_definition *stream;
        struct ctf_event_definition *event;
 };
 
index 82b017086f9a0056e2a5d4c229db0aaab1941012..5262f44a19e2264a8a4c9dd01524bc18373c3af9 100644 (file)
@@ -34,7 +34,7 @@
 #define TSDL_MAGIC     0x75D11D57
 
 struct ctf_file_stream {
-       struct ctf_stream parent;
+       struct ctf_stream_definition parent;
        struct ctf_stream_pos pos;      /* current stream position */
 };
 
index faa653ea475056597da9c2c7af4f69079a09028f..9e429bd34763f1791de7c4e5392b8bd6e08b369c 100644 (file)
@@ -200,7 +200,7 @@ void ctf_pos_get_event(struct ctf_stream_pos *pos)
        }
 }
 
-void ctf_print_timestamp(FILE *fp, struct ctf_stream *stream,
+void ctf_print_timestamp(FILE *fp, struct ctf_stream_definition *stream,
                        uint64_t timestamp);
 
 #endif /* _BABELTRACE_CTF_TYPES_H */
index 9addebb20e7405c05e65593d785ae535c88be662..845a8ae91500a4744e82c520cd2cfc8c9cd8320d 100644 (file)
@@ -34,7 +34,7 @@
 /* Preallocate this many fields for structures */
 #define DEFAULT_NR_STRUCT_FIELDS 8
 
-struct ctf_stream;
+struct ctf_stream_definition;
 struct stream_pos;
 struct format;
 struct definition;
@@ -106,7 +106,7 @@ struct stream_pos {
        /* read/write dispatch table. Specific to plugin used for stream. */
        rw_dispatch *rw_table;  /* rw dispatch table */
        int (*event_cb)(struct stream_pos *pos,
-                       struct ctf_stream *stream);
+                       struct ctf_stream_definition *stream);
 };
 
 static inline
index 1658a7230ea45fd335d63936a258030e41afb8bc..784166f2bf167caa672144716df4aa5dde315832 100644 (file)
@@ -149,7 +149,7 @@ static int seek_ctf_trace_by_timestamp(struct ctf_trace *tin,
                stream_class = g_ptr_array_index(tin->streams, i);
                /* for each file_stream */
                for (j = 0; j < stream_class->streams->len; j++) {
-                       struct ctf_stream *stream;
+                       struct ctf_stream_definition *stream;
                        struct ctf_file_stream *cfs;
 
                        stream = g_ptr_array_index(stream_class->streams, j);
@@ -191,7 +191,7 @@ int bt_iter_set_pos(struct bt_iter *iter, const struct bt_iter_pos *iter_pos)
                                i++) {
                        struct stream_saved_pos *saved_pos;
                        struct ctf_stream_pos *stream_pos;
-                       struct ctf_stream *stream;
+                       struct ctf_stream_definition *stream;
 
                        saved_pos = &g_array_index(
                                        iter_pos->u.restore->stream_saved_pos,
@@ -332,7 +332,7 @@ struct bt_iter_pos *bt_iter_get_pos(struct bt_iter *iter)
                        for (stream_id = 0;
                                        stream_id < stream_class->streams->len;
                                        stream_id++) {
-                               struct ctf_stream *stream;
+                               struct ctf_stream_definition *stream;
                                struct ctf_file_stream *cfs;
                                struct stream_saved_pos saved_pos;
 
This page took 0.048107 seconds and 4 git commands to generate.