*
*/
-#include <common/error.h>
-#include <common/macros.h>
-#include <common/mi-lttng.h>
-#include <lttng/action/action-internal.h>
-#include <lttng/action/notify-internal.h>
-#include <lttng/action/rate-policy-internal.h>
+#include <common/error.hpp>
+#include <common/macros.hpp>
+#include <common/mi-lttng.hpp>
+#include <lttng/action/action-internal.hpp>
+#include <lttng/action/notify-internal.hpp>
+#include <lttng/action/rate-policy-internal.hpp>
#include <lttng/lttng-error.h>
#define IS_NOTIFY_ACTION(action) \
{
LTTNG_ASSERT(action);
- return container_of(action, struct lttng_action_notify, parent);
+ return lttng::utils::container_of(action, <tng_action_notify::parent);
}
static const struct lttng_action_notify *action_notify_from_action_const(
{
LTTNG_ASSERT(action);
- return container_of(action, struct lttng_action_notify, parent);
+ return lttng::utils::container_of(action, <tng_action_notify::parent);
}
static
struct lttng_action_notify *notify = NULL;
struct lttng_action *action = NULL;
- notify = (lttng_action_notify *) zmalloc(sizeof(struct lttng_action_notify));
+ notify = zmalloc<lttng_action_notify>();
if (!notify) {
goto end;
}