bin: compile lttng-sessiond as C++
[lttng-tools.git] / include / lttng / condition / event-rule-matches-internal.h
index 29a2b27b587ccc2e083798be4c709af7f35f7d72..4aac9f991e3517df7eac0395ce77dd19c2e63108 100644 (file)
@@ -5,8 +5,8 @@
  *
  */
 
-#ifndef LTTNG_CONDITION_ON_EVENT_INTERNAL_H
-#define LTTNG_CONDITION_ON_EVENT_INTERNAL_H
+#ifndef LTTNG_CONDITION_EVENT_RULE_MATCHES_INTERNAL_H
+#define LTTNG_CONDITION_EVENT_RULE_MATCHES_INTERNAL_H
 
 #include <lttng/condition/condition-internal.h>
 #include <common/buffer-view.h>
 #include <common/dynamic-array.h>
 #include <lttng/event-field-value.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 struct lttng_capture_descriptor {
        struct lttng_event_expr *event_expression;
        struct lttng_bytecode *bytecode;
 };
 
-struct lttng_condition_on_event {
+struct lttng_condition_event_rule_matches {
        struct lttng_condition parent;
        struct lttng_event_rule *rule;
 
@@ -35,7 +39,7 @@ struct lttng_condition_on_event {
        struct lttng_dynamic_pointer_array capture_descriptors;
 };
 
-struct lttng_evaluation_on_event {
+struct lttng_evaluation_event_rule_matches {
        struct lttng_evaluation parent;
 
        /* MessagePack-encoded captured event field values. */
@@ -51,45 +55,43 @@ struct lttng_evaluation_on_event {
        struct lttng_event_field_value *captured_values;
 };
 
-LTTNG_HIDDEN
-ssize_t lttng_condition_on_event_create_from_payload(
+ssize_t lttng_condition_event_rule_matches_create_from_payload(
                struct lttng_payload_view *view,
                struct lttng_condition **condition);
 
-LTTNG_HIDDEN
 enum lttng_condition_status
-lttng_condition_on_event_borrow_rule_mutable(
+lttng_condition_event_rule_matches_borrow_rule_mutable(
                const struct lttng_condition *condition,
                struct lttng_event_rule **rule);
 
-LTTNG_HIDDEN
-void lttng_condition_on_event_set_error_counter_index(
-               struct lttng_condition *condition, uint64_t error_counter_index);
+void lttng_condition_event_rule_matches_set_error_counter_index(
+               struct lttng_condition *condition,
+               uint64_t error_counter_index);
 
-LTTNG_HIDDEN
-uint64_t lttng_condition_on_event_get_error_counter_index(
+uint64_t lttng_condition_event_rule_matches_get_error_counter_index(
                const struct lttng_condition *condition);
 
-LTTNG_HIDDEN
-struct lttng_evaluation *lttng_evaluation_on_event_create(
-               const struct lttng_condition_on_event *condition,
-               const char *capture_payload, size_t capture_payload_size,
+struct lttng_evaluation *lttng_evaluation_event_rule_matches_create(
+               const struct lttng_condition_event_rule_matches *condition,
+               const char *capture_payload,
+               size_t capture_payload_size,
                bool decode_capture_payload);
 
-LTTNG_HIDDEN
-ssize_t lttng_evaluation_on_event_create_from_payload(
-               const struct lttng_condition_on_event *condition,
+ssize_t lttng_evaluation_event_rule_matches_create_from_payload(
+               const struct lttng_condition_event_rule_matches *condition,
                struct lttng_payload_view *view,
                struct lttng_evaluation **_evaluation);
 
-LTTNG_HIDDEN
 enum lttng_error_code
-lttng_condition_on_event_generate_capture_descriptor_bytecode(
+lttng_condition_event_rule_matches_generate_capture_descriptor_bytecode(
                struct lttng_condition *condition);
 
-LTTNG_HIDDEN
 const struct lttng_bytecode *
-lttng_condition_on_event_get_capture_bytecode_at_index(
+lttng_condition_event_rule_matches_get_capture_bytecode_at_index(
                const struct lttng_condition *condition, unsigned int index);
 
-#endif /* LTTNG_CONDITION_ON_EVENT_INTERNAL_H */
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* LTTNG_CONDITION_EVENT_RULE_MATCHES_INTERNAL_H */
This page took 0.025337 seconds and 4 git commands to generate.