Refactoring: add back constness of public API structures
[lttng-ust.git] / liblttng-ust / lttng-bytecode.h
index b84a9930292f14c810fedada2d838b4b095dd1c8..ffbaf18772e46faa9474265c46a0e33800709d0c 100644 (file)
@@ -23,6 +23,7 @@
 #include <limits.h>
 #include <usterr-signal-safe.h>
 #include "bytecode.h"
+#include "ust-events-internal.h"
 
 /* Interpreter stack length, in number of entries */
 #define INTERPRETER_STACK_LEN  10      /* includes 2 dummy */
@@ -309,39 +310,32 @@ struct lttng_interpreter_output {
                        size_t nr_elem;
 
                        /* Inner type. */
-                       const struct lttng_type *nested_type;
+                       const struct lttng_ust_type_common *nested_type;
                } sequence;
        } u;
 };
 
-LTTNG_HIDDEN
-const char *lttng_bytecode_print_op(enum bytecode_op op);
+const char *lttng_bytecode_print_op(enum bytecode_op op)
+       __attribute__((visibility("hidden")));
 
-LTTNG_HIDDEN
-void lttng_bytecode_filter_sync_state(struct lttng_ust_bytecode_runtime *runtime);
-LTTNG_HIDDEN
-void lttng_bytecode_capture_sync_state(struct lttng_ust_bytecode_runtime *runtime);
+void lttng_bytecode_sync_state(struct lttng_ust_bytecode_runtime *runtime)
+       __attribute__((visibility("hidden")));
+
+int lttng_bytecode_validate(struct bytecode_runtime *bytecode)
+       __attribute__((visibility("hidden")));
 
-LTTNG_HIDDEN
-int lttng_bytecode_validate(struct bytecode_runtime *bytecode);
-LTTNG_HIDDEN
 int lttng_bytecode_specialize(const struct lttng_ust_event_desc *event_desc,
-               struct bytecode_runtime *bytecode);
-
-LTTNG_HIDDEN
-uint64_t lttng_bytecode_filter_interpret_false(void *filter_data,
-               const char *filter_stack_data);
-LTTNG_HIDDEN
-uint64_t lttng_bytecode_filter_interpret(void *filter_data,
-               const char *filter_stack_data);
-
-LTTNG_HIDDEN
-uint64_t lttng_bytecode_capture_interpret_false(void *capture_data,
-               const char *capture_stack_data,
-               struct lttng_interpreter_output *output);
-LTTNG_HIDDEN
-uint64_t lttng_bytecode_capture_interpret(void *capture_data,
-               const char *capture_stack_data,
-               struct lttng_interpreter_output *output);
+               struct bytecode_runtime *bytecode)
+       __attribute__((visibility("hidden")));
+
+int lttng_bytecode_interpret_error(struct lttng_ust_bytecode_runtime *bytecode_runtime,
+               const char *stack_data,
+               void *ctx)
+       __attribute__((visibility("hidden")));
+
+int lttng_bytecode_interpret(struct lttng_ust_bytecode_runtime *bytecode_runtime,
+               const char *stack_data,
+               void *ctx)
+       __attribute__((visibility("hidden")));
 
 #endif /* _LTTNG_BYTECODE_H */
This page took 0.032589 seconds and 4 git commands to generate.