ctf.fs: bt_ctf_notif_iter_create(): assert() that all medops exist
[babeltrace.git] / include / babeltrace / types.h
index b2bcf0e8b46b1b48f2d867a5d3c90973be207102..b4198c8f8b7c01017c79a4ab27c38899c64a89ba 100644 (file)
@@ -79,7 +79,7 @@ struct definition_scope {
 };
 
 struct bt_declaration {
-       enum ctf_type_id id;
+       enum bt_ctf_type_id id;
        size_t alignment;       /* type alignment, in bits */
        int ref;                /* number of references to the type */
        /*
@@ -125,7 +125,7 @@ struct bt_stream_pos {
 static inline
 int generic_rw(struct bt_stream_pos *pos, struct bt_definition *definition)
 {
-       enum ctf_type_id dispatch_id = definition->declaration->id;
+       enum bt_ctf_type_id dispatch_id = definition->declaration->id;
        rw_dispatch call;
 
        assert(pos->rw_table[dispatch_id] != NULL);
@@ -148,6 +148,10 @@ struct declaration_integer {
        struct ctf_clock *clock;
 };
 
+#ifdef ENABLE_DEBUG_INFO
+struct debug_info_source;
+#endif
+
 struct definition_integer {
        struct bt_definition p;
        struct declaration_integer *declaration;
@@ -156,6 +160,17 @@ struct definition_integer {
                uint64_t _unsigned;
                int64_t _signed;
        } value;
+
+#ifdef ENABLE_DEBUG_INFO
+       /*
+        * Debug infos (NULL if not set).
+        *
+        * This is extended debug informations set by the CTF input plugin
+        * itself when available. If it's set, then this integer definition
+        * is the "_ip" field of the stream event context.
+        */
+       struct debug_info_source *debug_info_src;
+#endif
 };
 
 struct declaration_float {
@@ -527,6 +542,8 @@ void bt_append_scope_path(const char *path, GArray *q);
  */
 struct bt_definition *bt_lookup_definition(const struct bt_definition *definition,
                                     const char *field_name);
+struct bt_definition *bt_lookup_definition_by_quark(const struct bt_definition *definition,
+                                    GQuark quark);
 struct definition_integer *bt_lookup_integer(const struct bt_definition *definition,
                                          const char *field_name,
                                          int signedness);
This page took 0.024015 seconds and 4 git commands to generate.