Refactoring: add back constness of public API structures
[lttng-ust.git] / liblttng-ust / lttng-bytecode.h
index 846d11a42c4f82852b1e3467dad0c6be33a1f556..ffbaf18772e46faa9474265c46a0e33800709d0c 100644 (file)
@@ -120,7 +120,7 @@ struct bytecode_get_index_data {
         * interpreter needs to find it from the event fields and types to
         * support variants.
         */
-       struct lttng_ust_event_field *field;
+       const struct lttng_ust_event_field *field;
        struct {
                size_t len;
                enum object_type type;
@@ -132,7 +132,7 @@ struct bytecode_get_index_data {
 struct vstack_load {
        enum load_type type;
        enum object_type object_type;
-       struct lttng_ust_event_field *field;
+       const struct lttng_ust_event_field *field;
        bool rev_bo;    /* reverse byte order */
 };
 
@@ -310,32 +310,32 @@ struct lttng_interpreter_output {
                        size_t nr_elem;
 
                        /* Inner type. */
-                       struct lttng_ust_type_common *nested_type;
+                       const struct lttng_ust_type_common *nested_type;
                } sequence;
        } u;
 };
 
-__attribute__((visibility("hidden")))
-const char *lttng_bytecode_print_op(enum bytecode_op op);
+const char *lttng_bytecode_print_op(enum bytecode_op op)
+       __attribute__((visibility("hidden")));
 
-__attribute__((visibility("hidden")))
-void lttng_bytecode_sync_state(struct lttng_ust_bytecode_runtime *runtime);
+void lttng_bytecode_sync_state(struct lttng_ust_bytecode_runtime *runtime)
+       __attribute__((visibility("hidden")));
 
-__attribute__((visibility("hidden")))
-int lttng_bytecode_validate(struct bytecode_runtime *bytecode);
+int lttng_bytecode_validate(struct bytecode_runtime *bytecode)
+       __attribute__((visibility("hidden")));
 
-__attribute__((visibility("hidden")))
-int lttng_bytecode_specialize(struct lttng_ust_event_desc *event_desc,
-               struct bytecode_runtime *bytecode);
+int lttng_bytecode_specialize(const struct lttng_ust_event_desc *event_desc,
+               struct bytecode_runtime *bytecode)
+       __attribute__((visibility("hidden")));
 
-__attribute__((visibility("hidden")))
 int lttng_bytecode_interpret_error(struct lttng_ust_bytecode_runtime *bytecode_runtime,
                const char *stack_data,
-               void *ctx);
+               void *ctx)
+       __attribute__((visibility("hidden")));
 
-__attribute__((visibility("hidden")))
 int lttng_bytecode_interpret(struct lttng_ust_bytecode_runtime *bytecode_runtime,
                const char *stack_data,
-               void *ctx);
+               void *ctx)
+       __attribute__((visibility("hidden")));
 
 #endif /* _LTTNG_BYTECODE_H */
This page took 0.02841 seconds and 4 git commands to generate.