Force usage of assert() condition when NDEBUG is defined
[lttng-tools.git] / include / lttng / event-expr-internal.h
index 048aaff18665b3a73de50ca38829a4f504442e7a..9d717b8674c0e1a9e08ad635c03717f358ed91b0 100644 (file)
@@ -8,11 +8,11 @@
 #ifndef LTTNG_EVENT_EXPR_INTERNAL_H
 #define LTTNG_EVENT_EXPR_INTERNAL_H
 
-#include <assert.h>
 #include <common/macros.h>
 #include <lttng/event-expr.h>
 
 struct lttng_bytecode;
+struct mi_writer;
 
 struct lttng_event_expr {
        enum lttng_event_expr_type type;
@@ -50,7 +50,7 @@ struct lttng_event_expr_array_field_element {
 static inline
 bool lttng_event_expr_is_lvalue(const struct lttng_event_expr *expr)
 {
-       assert(expr);
+       LTTNG_ASSERT(expr);
        return expr->type == LTTNG_EVENT_EXPR_TYPE_EVENT_PAYLOAD_FIELD ||
                        expr->type == LTTNG_EVENT_EXPR_TYPE_CHANNEL_CONTEXT_FIELD ||
                        expr->type == LTTNG_EVENT_EXPR_TYPE_APP_SPECIFIC_CONTEXT_FIELD ||
@@ -61,4 +61,9 @@ LTTNG_HIDDEN
 int lttng_event_expr_to_bytecode(const struct lttng_event_expr *expr,
                struct lttng_bytecode **bytecode_out);
 
+LTTNG_HIDDEN
+enum lttng_error_code lttng_event_expr_mi_serialize(
+               const struct lttng_event_expr *expression,
+               struct mi_writer *writer);
+
 #endif /* LTTNG_EVENT_EXPR_INTERNAL_H */
This page took 0.025503 seconds and 4 git commands to generate.