lib: add aliases for Babeltrace structure types
[babeltrace.git] / plugins / lttng-utils / debug-info.c
index d34b2c4e972b3c8f5c7c8edfea03ac9edc766880..614b1b43c025327969d948a6b74e3e5b1fdd6f40 100644 (file)
@@ -28,7 +28,7 @@
 #define BT_LOG_TAG "PLUGIN-CTF-LTTNG-UTILS-DEBUG-INFO-FLT"
 #include "logging.h"
 
-#include <assert.h>
+#include <babeltrace/assert-internal.h>
 #include <glib.h>
 #include "debug-info.h"
 #include "bin-info.h"
@@ -373,7 +373,7 @@ end:
 
 static
 void handle_statedump_build_id_event(FILE *err, struct debug_info *debug_info,
-               struct bt_event *event)
+               const bt_event *event)
 {
        struct proc_debug_info_sources *proc_dbg_info_src;
        struct bin_info *bin = NULL;
@@ -439,7 +439,7 @@ end:
 
 static
 void handle_statedump_debug_link_event(FILE *err, struct debug_info *debug_info,
-               struct bt_event *event)
+               const bt_event *event)
 {
        struct proc_debug_info_sources *proc_dbg_info_src;
        struct bin_info *bin = NULL;
@@ -508,7 +508,7 @@ end:
 
 static
 void handle_bin_info_event(FILE *err, struct debug_info *debug_info,
-               struct bt_event *event, bool has_pic_field)
+               const bt_event *event, bool has_pic_field)
 {
        struct proc_debug_info_sources *proc_dbg_info_src;
        struct bin_info *bin;
@@ -614,21 +614,21 @@ end:
 
 static inline
 void handle_statedump_bin_info_event(FILE *err, struct debug_info *debug_info,
-               struct bt_event *event)
+               const bt_event *event)
 {
        handle_bin_info_event(err, debug_info, event, true);
 }
 
 static inline
 void handle_lib_load_event(FILE *err, struct debug_info *debug_info,
-               struct bt_event *event)
+               const bt_event *event)
 {
        handle_bin_info_event(err, debug_info, event, false);
 }
 
 static inline
 void handle_lib_unload_event(FILE *err, struct debug_info *debug_info,
-               struct bt_event *event)
+               const bt_event *event)
 {
        struct proc_debug_info_sources *proc_dbg_info_src;
        uint64_t baddr;
@@ -666,7 +666,7 @@ end:
 
 static
 void handle_statedump_start(FILE *err, struct debug_info *debug_info,
-               struct bt_event *event)
+               const bt_event *event)
 {
        struct proc_debug_info_sources *proc_dbg_info_src;
        int64_t vpid;
@@ -692,10 +692,10 @@ end:
 }
 
 BT_HIDDEN
-void debug_info_handle_event(FILE *err, struct bt_event *event,
+void debug_info_handle_event(FILE *err, const bt_event *event,
                struct debug_info *debug_info)
 {
-       struct bt_event_class *event_class;
+       const bt_event_class *event_class;
        const char *event_name;
        GQuark q_event_name;
 
@@ -741,7 +741,7 @@ void debug_info_handle_event(FILE *err, struct bt_event *event,
        }
 
 end_put_class:
-       bt_put(event_class);
+       bt_event_class_put_ref(event_class);
 end:
        return;
 }
This page took 0.024083 seconds and 4 git commands to generate.