Remove extern "C" from internal headers
[lttng-tools.git] / src / common / bytecode / bytecode.h
index 151ca8a0fb00d0d0273d5304b415984b9f84759f..386f58241713147de80106ccebf63ebb476224a9 100644 (file)
@@ -43,10 +43,6 @@ struct literal_double {
        double v;
 } LTTNG_PACKED;
 
-struct literal_string {
-       char string[0];
-} LTTNG_PACKED;
-
 enum bytecode_op {
        BYTECODE_OP_UNKNOWN                             = 0,
 
@@ -234,17 +230,28 @@ struct lttng_bytecode_alloc {
        struct lttng_bytecode b;
 };
 
-LTTNG_HIDDEN int bytecode_init(struct lttng_bytecode_alloc **fb);
-LTTNG_HIDDEN int32_t bytecode_reserve(struct lttng_bytecode_alloc **fb,
-               uint32_t align, uint32_t len);
-LTTNG_HIDDEN int bytecode_push(struct lttng_bytecode_alloc **fb,
+int bytecode_init(struct lttng_bytecode_alloc **fb);
+int bytecode_push(struct lttng_bytecode_alloc **fb,
                const void *data, uint32_t align, uint32_t len);
-LTTNG_HIDDEN int bytecode_push_logical(struct lttng_bytecode_alloc **fb,
+int bytecode_push_logical(struct lttng_bytecode_alloc **fb,
                struct logical_op *data, uint32_t align, uint32_t len,
                uint16_t *skip_offset);
-LTTNG_HIDDEN struct lttng_bytecode *lttng_bytecode_copy(
+struct lttng_bytecode *lttng_bytecode_copy(
                const struct lttng_bytecode *orig_f);
 
+int bytecode_push_get_payload_root(
+               struct lttng_bytecode_alloc **bytecode);
+int bytecode_push_get_context_root(
+               struct lttng_bytecode_alloc **bytecode);
+int bytecode_push_get_app_context_root(
+               struct lttng_bytecode_alloc **bytecode);
+int bytecode_push_get_index_u64(
+               struct lttng_bytecode_alloc **bytecode, uint64_t index);
+int bytecode_push_get_symbol(
+               struct lttng_bytecode_alloc **bytecode,
+               struct lttng_bytecode_alloc **bytecode_reloc,
+               const char *symbol);
+
 static inline
 unsigned int bytecode_get_len(struct lttng_bytecode *bytecode)
 {
This page took 0.023801 seconds and 4 git commands to generate.