lib: metadata: add missing non-const borrowing accessors
[deliverable/babeltrace.git] / include / babeltrace / trace-ir / field-path-const.h
index 066bc4568761446ecaaabdfd50bc1766bb9d9ea0..be75b758c2c77f0bc9c8329899d8024d7c06e3f7 100644 (file)
 
 #include <stdint.h>
 
+/* For bt_field_path */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_field_path;
-
-enum bt_scope {
-       BT_SCOPE_PACKET_HEADER,
+typedef enum bt_scope {
        BT_SCOPE_PACKET_CONTEXT,
-       BT_SCOPE_EVENT_HEADER,
        BT_SCOPE_EVENT_COMMON_CONTEXT,
        BT_SCOPE_EVENT_SPECIFIC_CONTEXT,
        BT_SCOPE_EVENT_PAYLOAD,
-};
+} bt_scope;
 
-extern enum bt_scope bt_field_path_get_root_scope(
-               const struct bt_field_path *field_path);
+extern bt_scope bt_field_path_get_root_scope(
+               const bt_field_path *field_path);
 
 extern uint64_t bt_field_path_get_index_count(
-               const struct bt_field_path *field_path);
+               const bt_field_path *field_path);
 
 extern uint64_t bt_field_path_get_index_by_index(
-               const struct bt_field_path *field_path, uint64_t index);
+               const bt_field_path *field_path, uint64_t index);
 
-extern void bt_field_path_get_ref(const struct bt_field_path *field_path);
+extern void bt_field_path_get_ref(const bt_field_path *field_path);
 
-extern void bt_field_path_put_ref(const struct bt_field_path *field_path);
+extern void bt_field_path_put_ref(const bt_field_path *field_path);
 
 #define BT_FIELD_PATH_PUT_REF_AND_RESET(_var)          \
        do {                                            \
This page took 0.025228 seconds and 5 git commands to generate.