X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fnotify.c;fp=src%2Fcommon%2Fnotify.c;h=0000000000000000000000000000000000000000;hp=00d1a0ef4e0e9828f0a55d150fb408e55b843a57;hb=1831ae68b70dece8e9b847081526495adbbf05e5;hpb=25357057de5ae4dd2a572e8f9b893c1b90cbd60a diff --git a/src/common/notify.c b/src/common/notify.c deleted file mode 100644 index 00d1a0ef4..000000000 --- a/src/common/notify.c +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2017 Jérémie Galarneau - * - * SPDX-License-Identifier: LGPL-2.1-only - * - */ - -#include -#include -#include -#include - -static -void lttng_action_notify_destroy(struct lttng_action *action) -{ - free(action); -} - -static -int lttng_action_notify_serialize(struct lttng_action *action, - struct lttng_dynamic_buffer *buf) -{ - return 0; -} - -struct lttng_action *lttng_action_notify_create(void) -{ - struct lttng_action_notify *notify; - - notify = zmalloc(sizeof(struct lttng_action_notify)); - if (!notify) { - goto end; - } - - notify->parent.type = LTTNG_ACTION_TYPE_NOTIFY; - notify->parent.serialize = lttng_action_notify_serialize; - notify->parent.destroy = lttng_action_notify_destroy; -end: - return ¬ify->parent; -}