lib: make public reference count functions have strict types
[babeltrace.git] / include / babeltrace / trace-ir / field-path-internal.h
index 92423d8392ea32e9be692215729f9665d6e3bf74..d0d6524687c9fdc40c3ef7bd05e419ed2bf78e86 100644 (file)
@@ -2,7 +2,7 @@
 #define BABELTRACE_TRACE_IR_FIELD_PATH_INTERNAL
 
 /*
- * Copyright 2016 Philippe Proulx <pproulx@efficios.com>
+ * Copyright 2016-2018 Philippe Proulx <pproulx@efficios.com>
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to deal
@@ -27,7 +27,7 @@
  */
 
 #include <babeltrace/object-internal.h>
-#include <babeltrace/trace-ir/field-path.h>
+#include <babeltrace/trace-ir/field-path-const.h>
 #include <babeltrace/assert-internal.h>
 #include <glib.h>
 
@@ -44,7 +44,7 @@ struct bt_field_path *bt_field_path_create(void);
 
 static inline
 uint64_t bt_field_path_get_index_by_index_inline(
-               struct bt_field_path *field_path, uint64_t index)
+               const struct bt_field_path *field_path, uint64_t index)
 {
        BT_ASSERT(field_path);
        BT_ASSERT(index < field_path->indexes->len);
This page took 0.024244 seconds and 4 git commands to generate.