notification_send callback takes const event_notifier parameter
[lttng-ust.git] / include / lttng / ust-events.h
index ceb9cb379c533c792d3f5c9edbda698cf6138065..95b4698de089bb08440687bbcb226f7ca461bcd2 100644 (file)
@@ -174,12 +174,19 @@ struct lttng_ust_type_enum {
        const struct lttng_ust_type_common *container_type;
 };
 
+/*
+ * The alignment field in structure, array, and sequence types is a
+ * minimum alignment requirement. The actual alignment of a type may be
+ * larger than this explicit alignment value if its nested types have a
+ * larger alignment.
+ */
+
 struct lttng_ust_type_array {
        struct lttng_ust_type_common parent;
        uint32_t struct_size;
        const struct lttng_ust_type_common *elem_type;
-       unsigned int length;                    /* Num. elems. */
-       unsigned int alignment;
+       unsigned int length;            /* Num. elems. */
+       unsigned int alignment;         /* Minimum alignment for this type. */
        enum lttng_ust_string_encoding encoding;
 };
 
@@ -188,7 +195,7 @@ struct lttng_ust_type_sequence {
        uint32_t struct_size;
        const char *length_name;        /* Length field name. */
        const struct lttng_ust_type_common *elem_type;
-       unsigned int alignment;         /* Alignment before elements. */
+       unsigned int alignment;         /* Minimum alignment before elements. */
        enum lttng_ust_string_encoding encoding;
 };
 
@@ -197,7 +204,7 @@ struct lttng_ust_type_struct {
        uint32_t struct_size;
        unsigned int nr_fields;
        const struct lttng_ust_event_field **fields;    /* Array of pointers to fields. */
-       unsigned int alignment;
+       unsigned int alignment;         /* Minimum alignment for this type. */
 };
 
 /*
@@ -342,7 +349,7 @@ struct lttng_ust_event_common {
 
        int enabled;
        int eval_filter;                                /* Need to evaluate filters */
-       int (*run_filter)(struct lttng_ust_event_common *event,
+       int (*run_filter)(const struct lttng_ust_event_common *event,
                const char *stack_data,
                void *filter_ctx);
 
@@ -415,7 +422,7 @@ struct lttng_ust_event_notifier {
        struct lttng_ust_event_notifier_private *priv;  /* Private event notifier interface */
 
        int eval_capture;                               /* Need to evaluate capture */
-       void (*notification_send)(struct lttng_ust_event_notifier *event_notifier,
+       void (*notification_send)(const struct lttng_ust_event_notifier *event_notifier,
                const char *stack_data,
                struct lttng_ust_notification_ctx *notif_ctx);
 
This page took 0.037314 seconds and 4 git commands to generate.