2 * Copyright (C) 2017 Jérémie Galarneau <jeremie.galarneau@efficios.com>
4 * SPDX-License-Identifier: LGPL-2.1-only
8 #include <lttng/action/action-internal.h>
9 #include <lttng/action/notify-internal.h>
10 #include <common/macros.h>
14 void lttng_action_notify_destroy(struct lttng_action
*action
)
20 int lttng_action_notify_serialize(struct lttng_action
*action
,
21 struct lttng_dynamic_buffer
*buf
)
26 struct lttng_action
*lttng_action_notify_create(void)
28 struct lttng_action_notify
*notify
;
30 notify
= zmalloc(sizeof(struct lttng_action_notify
));
35 notify
->parent
.type
= LTTNG_ACTION_TYPE_NOTIFY
;
36 notify
->parent
.serialize
= lttng_action_notify_serialize
;
37 notify
->parent
.destroy
= lttng_action_notify_destroy
;
39 return ¬ify
->parent
;