lib: add internal object pool API and use it; adapt plugins/tests
[babeltrace.git] / include / babeltrace / graph / notification.h
index d17973372d99db698de2885a812411840ca8822f..ce4c374f3ad05d2be77f63765aa0cf0b1a95c52a 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef BABELTRACE_COMPONENT_NOTIFICATION_NOTIFICATION_H
-#define BABELTRACE_COMPONENT_NOTIFICATION_NOTIFICATION_H
+#ifndef BABELTRACE_GRAPH_NOTIFICATION_H
+#define BABELTRACE_GRAPH_NOTIFICATION_H
 
 /*
  * BabelTrace - Plug-in Notification
@@ -37,38 +37,15 @@ struct bt_notification;
  * Notification types. Unhandled notification types should be ignored.
  */
 enum bt_notification_type {
-       BT_NOTIFICATION_TYPE_UNKNOWN = -1,
-
-       /**
-        * All types of notifications (used to register to notification
-        * delivery).
-        */
-       BT_NOTIFICATION_TYPE_ALL = 0,
-
-       /** Event delivery notification, see event.h */
-       BT_NOTIFICATION_TYPE_EVENT = 1,
-
-       /** Beginning of stream packet notification, see packet.h */
-       BT_NOTIFICATION_TYPE_PACKET_BEGIN = 2,
-
-       /** End of stream packet notification, see packet.h */
-       BT_NOTIFICATION_TYPE_PACKET_END = 3,
-
-       /** End of stream packet notification, see stream.h */
-       BT_NOTIFICATION_TYPE_STREAM_END = 4,
-
-       /** New trace notification, see model.h */
-       BT_NOTIFICATION_TYPE_NEW_TRACE = 5,
-
-       /** New stream class notification, see model.h */
-       BT_NOTIFICATION_TYPE_NEW_STREAM_CLASS = 6,
-
-       /** New event class notification, see model.h */
-       BT_NOTIFICATION_TYPE_NEW_EVENT_CLASS = 7,
-
-       /** End of trace notification, see eot.h */
-       BT_NOTIFICATION_TYPE_END_OF_TRACE = 8,
-
+       BT_NOTIFICATION_TYPE_UNKNOWN =                  -1,
+       BT_NOTIFICATION_TYPE_EVENT =                    0,
+       BT_NOTIFICATION_TYPE_INACTIVITY =               1,
+       BT_NOTIFICATION_TYPE_STREAM_BEGIN =             2,
+       BT_NOTIFICATION_TYPE_STREAM_END =               3,
+       BT_NOTIFICATION_TYPE_PACKET_BEGIN =             4,
+       BT_NOTIFICATION_TYPE_PACKET_END =               5,
+       BT_NOTIFICATION_TYPE_DISCARDED_EVENTS =         6,
+       BT_NOTIFICATION_TYPE_DISCARDED_PACKETS =        7,
        BT_NOTIFICATION_TYPE_NR, /* Not part of ABI. */
 };
 
@@ -85,4 +62,4 @@ extern enum bt_notification_type bt_notification_get_type(
 }
 #endif
 
-#endif /* BABELTRACE_COMPONENT_NOTIFICATION_NOTIFICATION_H */
+#endif /* BABELTRACE_GRAPH_NOTIFICATION_H */
This page took 0.024902 seconds and 4 git commands to generate.