X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=liblttng-ust%2Flttng-bytecode.h;fp=liblttng-ust%2Flttng-bytecode.h;h=ffbaf18772e46faa9474265c46a0e33800709d0c;hb=4e48b5d2debaf6c0c598489c183cc6cb2125c8a3;hp=29ae7b20110baa40a8ae9191417900aa8f170b0e;hpb=5152f6df156d6ccb234965d1b3d26b167bd6b94e;p=lttng-ust.git diff --git a/liblttng-ust/lttng-bytecode.h b/liblttng-ust/lttng-bytecode.h index 29ae7b20..ffbaf187 100644 --- a/liblttng-ust/lttng-bytecode.h +++ b/liblttng-ust/lttng-bytecode.h @@ -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,7 +310,7 @@ 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; }; @@ -324,7 +324,7 @@ void lttng_bytecode_sync_state(struct lttng_ust_bytecode_runtime *runtime) int lttng_bytecode_validate(struct bytecode_runtime *bytecode) __attribute__((visibility("hidden"))); -int lttng_bytecode_specialize(struct lttng_ust_event_desc *event_desc, +int lttng_bytecode_specialize(const struct lttng_ust_event_desc *event_desc, struct bytecode_runtime *bytecode) __attribute__((visibility("hidden")));