Clean-up: modernize pretty_xml.cpp
[lttng-tools.git] / include / lttng / condition / event-rule-matches.h
index 75d1c88af7e6c00b0cf0ce4217633b43bfa7db14..c579a1864cd6f43d7304b1e5cff87f06d6e49c52 100644 (file)
@@ -8,9 +8,10 @@
 #ifndef LTTNG_CONDITION_EVENT_RULE_MATCHES_H
 #define LTTNG_CONDITION_EVENT_RULE_MATCHES_H
 
-#include <lttng/event-rule/event-rule.h>
 #include <lttng/condition/condition.h>
 #include <lttng/condition/evaluation.h>
+#include <lttng/event-rule/event-rule.h>
+#include <lttng/lttng-export.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -42,8 +43,8 @@ enum lttng_evaluation_event_rule_matches_status {
  * Returns a new condition on success, NULL on failure. This condition must be
  * destroyed using lttng_condition_destroy().
  */
-extern struct lttng_condition *lttng_condition_event_rule_matches_create(
-               struct lttng_event_rule *rule);
+LTTNG_EXPORT extern struct lttng_condition *
+lttng_condition_event_rule_matches_create(struct lttng_event_rule *rule);
 
 /*
  * Get the rule property of an Event Rule Matches condition.
@@ -55,9 +56,9 @@ extern struct lttng_condition *lttng_condition_event_rule_matches_create(
  * Returns LTTNG_CONDITION_STATUS_OK and a pointer to the condition's rule
  * on success, LTTNG_CONDITION_STATUS_INVALID if an invalid
  * parameter is passed. */
-extern enum lttng_condition_status lttng_condition_event_rule_matches_get_rule(
-               const struct lttng_condition *condition,
-               const struct lttng_event_rule **rule);
+LTTNG_EXPORT extern enum lttng_condition_status
+lttng_condition_event_rule_matches_get_rule(const struct lttng_condition *condition,
+                                           const struct lttng_event_rule **rule);
 
 /**
  * lttng_evaluation_event_rule_matches_hit are specialised lttng_evaluations
@@ -89,10 +90,10 @@ extern enum lttng_condition_status lttng_condition_event_rule_matches_get_rule(
  * `LTTNG_EVALUATION_EVENT_RULE_MATCHES_STATUS_NONE`:
  *     * The condition of `evaluation` has no capture descriptors.
  */
-extern enum lttng_evaluation_event_rule_matches_status
+LTTNG_EXPORT extern enum lttng_evaluation_event_rule_matches_status
 lttng_evaluation_event_rule_matches_get_captured_values(
-               const struct lttng_evaluation *evaluation,
-               const struct lttng_event_field_value **field_val);
+       const struct lttng_evaluation *evaluation,
+       const struct lttng_event_field_value **field_val);
 
 /*
  * Appends (transfering the ownership) the capture descriptor `expr` to
@@ -122,10 +123,9 @@ lttng_evaluation_event_rule_matches_get_captured_values(
  * `LTTNG_CONDITION_STATUS_UNSUPPORTED`:
  *     * The associated event-rule does not support runtime capture.
  */
-extern enum lttng_condition_status
-lttng_condition_event_rule_matches_append_capture_descriptor(
-               struct lttng_condition *condition,
-               struct lttng_event_expr *expr);
+LTTNG_EXPORT extern enum lttng_condition_status
+lttng_condition_event_rule_matches_append_capture_descriptor(struct lttng_condition *condition,
+                                                            struct lttng_event_expr *expr);
 
 /*
  * Sets `*count` to the number of capture descriptors in the Event Rule Matches
@@ -142,9 +142,9 @@ lttng_condition_event_rule_matches_append_capture_descriptor(
  *       `LTTNG_CONDITION_TYPE_EVENT_RULE_MATCHES`.
  *     * `count` is `NULL`.
  */
-extern enum lttng_condition_status
+LTTNG_EXPORT extern enum lttng_condition_status
 lttng_condition_event_rule_matches_get_capture_descriptor_count(
-               const struct lttng_condition *condition, unsigned int *count);
+       const struct lttng_condition *condition, unsigned int *count);
 
 /*
  * Returns the capture descriptor (borrowed) of the Event Rule Matches condition
@@ -157,9 +157,9 @@ lttng_condition_event_rule_matches_get_capture_descriptor_count(
  *   descriptors in `condition` (as returned by
  *   lttng_condition_event_rule_matches_get_capture_descriptor_count()).
  */
-extern const struct lttng_event_expr *
+LTTNG_EXPORT extern const struct lttng_event_expr *
 lttng_condition_event_rule_matches_get_capture_descriptor_at_index(
-               const struct lttng_condition *condition, unsigned int index);
+       const struct lttng_condition *condition, unsigned int index);
 
 #ifdef __cplusplus
 }
This page took 0.028654 seconds and 4 git commands to generate.