Various fixes for prototype branch
[lttng-tools.git] / include / lttng / notification / notification-internal.h
index d37db1ee5cd57c49815e8cffa630b75f3e1bbaff..fc213ac048d9f8e6168e0950d9a0e77a8a00762f 100644 (file)
 
 #include <lttng/notification/notification.h>
 #include <common/macros.h>
+#include <stdint.h>
 
 struct lttng_notification {
        struct lttng_condition *condition;
        struct lttng_evaluation *evaluation;
 };
 
+struct lttng_notification_comm {
+       /* length excludes its own length. */
+       uint32_t length;
+       /* A condition and evaluation object follow. */
+       char payload[];
+} LTTNG_PACKED;
+
 LTTNG_HIDDEN
 struct lttng_notification *lttng_notification_create(
                struct lttng_condition *condition,
                struct lttng_evaluation *evaluation);
 
+LTTNG_HIDDEN
+ssize_t lttng_notification_serialize(struct lttng_notification *notification,
+               char *buf);
+
+LTTNG_HIDDEN
+ssize_t lttng_notification_create_from_buffer(const char *buf,
+               struct lttng_notification **notification);
+
 #endif /* LTTNG_NOTIFICATION_INTERNAL_H */
This page took 0.025226 seconds and 5 git commands to generate.