add end of stream notification
[babeltrace.git] / include / babeltrace / plugin / notification / notification.h
index 3e3459b8b685d8c97fdf2a2691c2773c44fb4e97..4636f229126f6f14386637aa7c38af0c1cc5a7b4 100644 (file)
@@ -39,17 +39,37 @@ struct bt_notification;
 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 = 0,
+       BT_NOTIFICATION_TYPE_EVENT = 1,
 
-       /** New stream packet notification, see packet.h */
-       BT_NOTIFICATION_TYPE_NEW_PACKET = 1,
+       /** Start of stream packet notification, see packet.h */
+       BT_NOTIFICATION_TYPE_PACKET_START = 2,
 
        /** End of stream packet notification, see packet.h */
-       BT_NOTIFICATION_TYPE_END_PACKET = 1,
+       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 = 2,
+       BT_NOTIFICATION_TYPE_END_OF_TRACE = 8,
+
+       BT_NOTIFICATION_TYPE_NR, /* Not part of ABI. */
 };
 
 /**
@@ -61,26 +81,6 @@ enum bt_notification_type {
 extern enum bt_notification_type bt_notification_get_type(
                struct bt_notification *notification);
 
-/**
- * Increments the reference count of \p notification.
- *
- * @param notification Notification of which to increment the reference count
- *
- * @see bt_notification_put()
- */
-extern void bt_notification_get(struct bt_notification *notification);
-
-/**
- * Decrements the reference count of \p notification, destroying it when this
- * count reaches 0.
- *
- * @param notification Notification of which to decrement the reference count
- *
- * @see bt_notification_get()
- */
-extern void bt_notification_put(
-               struct bt_notification *notification);
-
 #ifdef __cplusplus
 }
 #endif
This page took 0.024518 seconds and 4 git commands to generate.