lib: make trace IR API const-correct
[babeltrace.git] / include / babeltrace / trace-ir / utils-internal.h
index 4c3f8c0392a1fbdfd2c904dc7227f419711b74ee..36cb29085510d566705e6420ca9a416738d3b8e1 100644 (file)
@@ -2,8 +2,6 @@
 #define BABELTRACE_TRACE_IR_UTILS_INTERNAL_H
 
 /*
- * Babeltrace - Internal Trace IR utilities
- *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to deal
  * in the Software without restriction, including without limitation the rights
@@ -24,7 +22,7 @@
  */
 
 #include <babeltrace/babeltrace-internal.h>
-#include <babeltrace/trace-ir/field-types.h>
+#include <babeltrace/trace-ir/field-classes.h>
 #include <babeltrace/trace-ir/clock-class-internal.h>
 #include <stdint.h>
 
@@ -55,8 +53,8 @@ uint64_t bt_util_ns_from_value(uint64_t frequency, uint64_t value_cycles)
 }
 
 static inline
-int bt_util_ns_from_origin(struct bt_clock_class *clock_class, uint64_t value,
-               int64_t *ns_from_origin)
+int bt_util_ns_from_origin(const struct bt_clock_class *clock_class,
+               uint64_t value, int64_t *ns_from_origin)
 {
        int ret = 0;
        uint64_t value_ns_unsigned;
This page took 0.023763 seconds and 4 git commands to generate.