sink.text.pretty: abort on unknown field class type
[babeltrace.git] / src / plugins / ctf / common / metadata / ast.hpp
index 1a70b566f6681e39cc8b53eb2067fc1b3a18d6e8..a6a7e9f7b947db6c4e447ca9769dfcf7702d7aef 100644 (file)
@@ -7,16 +7,17 @@
 #ifndef _CTF_AST_H
 #define _CTF_AST_H
 
+#include <glib.h>
 #include <stdint.h>
 #include <stdio.h>
-#include <glib.h>
-#include "common/list.h"
+
 #include <babeltrace2/babeltrace.h>
-#include "common/macros.h"
+
 #include "common/assert.h"
+#include "common/list.h"
 
-#include "decoder.hpp"
 #include "ctf-meta.hpp"
+#include "decoder.hpp"
 
 // the parameter name (of the reentrant 'yyparse' function)
 // data is a pointer to a 'SParserParam' structure
@@ -353,27 +354,21 @@ const char *node_type(struct ctf_node *node);
 
 struct meta_log_config;
 
-BT_HIDDEN
 struct ctf_visitor_generate_ir *
 ctf_visitor_generate_ir_create(const struct ctf_metadata_decoder_config *config);
 
 void ctf_visitor_generate_ir_destroy(struct ctf_visitor_generate_ir *visitor);
 
-BT_HIDDEN
 bt_trace_class *ctf_visitor_generate_ir_get_ir_trace_class(struct ctf_visitor_generate_ir *visitor);
 
-BT_HIDDEN
 struct ctf_trace_class *
 ctf_visitor_generate_ir_borrow_ctf_trace_class(struct ctf_visitor_generate_ir *visitor);
 
-BT_HIDDEN
 int ctf_visitor_generate_ir_visit_node(struct ctf_visitor_generate_ir *visitor,
                                        struct ctf_node *node);
 
-BT_HIDDEN
 int ctf_visitor_semantic_check(int depth, struct ctf_node *node, struct meta_log_config *log_cfg);
 
-BT_HIDDEN
 int ctf_visitor_parent_links(int depth, struct ctf_node *node, struct meta_log_config *log_cfg);
 
 static inline char *ctf_ast_concatenate_unary_strings(struct bt_list_head *head)
@@ -420,8 +415,15 @@ error:
     return g_string_free(str, TRUE);
 }
 
-static inline int ctf_ast_get_unary_uuid(struct bt_list_head *head, bt_uuid_t uuid, int log_level,
-                                         bt_self_component *self_comp)
+#ifndef BT_COMP_LOG_CUR_LVL
+#    define BT_AST_LOG_LEVEL_UNUSED_ATTR __attribute__((unused))
+#else
+#    define BT_AST_LOG_LEVEL_UNUSED_ATTR
+#endif
+
+static inline int ctf_ast_get_unary_uuid(struct bt_list_head *head, bt_uuid_t uuid,
+                                         int log_level BT_AST_LOG_LEVEL_UNUSED_ATTR,
+                                         bt_self_component *self_comp BT_AST_LOG_LEVEL_UNUSED_ATTR)
 {
     int i = 0;
     int ret = 0;
This page took 0.033865 seconds and 4 git commands to generate.