lib: make trace IR API const-correct
[babeltrace.git] / include / babeltrace / trace-ir / utils-internal.h
index 9e859546cee22b42f3e44508f8d987709882d5a1..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
@@ -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.023986 seconds and 4 git commands to generate.