Plugins are alive!
[babeltrace.git] / lib / plugin-system / notification / notification.c
index a8bb0882da0ee71a1d7387704d83e4c5d68bf469..50aca6f7749f956ee96863c527d1dd9f4fdba9ea 100644 (file)
 
 #include <babeltrace/plugin/notification/notification-internal.h>
 
+BT_HIDDEN
+void bt_notification_init(struct bt_notification *notification,
+               enum bt_notification_type type,
+               bt_object_release_func release)
+{
+       assert(type > BT_NOTIFICATION_TYPE_ALL &&
+                       type < BT_NOTIFICATION_TYPE_NR);
+       notification->type = type;
+       bt_object_init(&notification->base, release);
+}
+
 enum bt_notification_type bt_notification_get_type(
                struct bt_notification *notification)
 {
This page took 0.022931 seconds and 4 git commands to generate.