Plugins are alive!
[babeltrace.git] / include / babeltrace / plugin / notification / notification.h
index bc21a39623c9b607abc3ae081664a8334bfaf0b8..5557f919b3ac3723d495871fefb687094fcd05b5 100644 (file)
@@ -36,48 +36,47 @@ struct bt_notification;
 /**
  * Notification types. Unhandled notification types should be ignored.
  */
-enum bt_plugin_notification_type {
-       BT_PLUGIN_NOTIFICATION_TYPE_UNKNOWN = -1,
+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_PLUGIN_NOTIFICATION_TYPE_EVENT = 0,
+       BT_NOTIFICATION_TYPE_EVENT = 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_PACKET_END = 3,
+
+       /** New trace notification, see model.h */
+       BT_NOTIFICATION_TYPE_NEW_TRACE = 4,
 
-       /** New stream packet notification, see packet.h */
-       BT_PLUGIN_NOTIFICATION_TYPE_NEW_PACKET = 1,
+       /** New stream class notification, see model.h */
+       BT_NOTIFICATION_TYPE_NEW_STREAM_CLASS = 5,
+
+       /** New event class notification, see model.h */
+       BT_NOTIFICATION_TYPE_NEW_EVENT_CLASS = 6,
 
        /** End of trace notification, see eot.h */
-       BT_PLUGIN_NOTIFICATION_TYPE_EOT = 2,
+       BT_NOTIFICATION_TYPE_END_OF_TRACE = 7,
+
+       BT_NOTIFICATION_TYPE_NR, /* Not part of ABI. */
 };
 
 /**
  * Get a notification's type.
  *
  * @param notification Notification instance
- * @returns            One of #bt_plugin_notification_type
- */
-extern enum bt_plugin_notification_type bt_plugin_notification_get_type(
-               struct bt_plugin_notification *notification);
-
-/**
- * Increments the reference count of \p notifiaction.
- *
- * @param notification Notification of which to increment the reference count
- *
- * @see bt_plugin_notification_put()
- */
-extern void bt_plugin_notification_get(
-               struct bt_plugin_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_plugin_notification_get()
+ * @returns            One of #bt_notification_type
  */
-extern void bt_plugin_notification_put(
-               struct bt_plugin_notification *notification);
+extern enum bt_notification_type bt_notification_get_type(
+               struct bt_notification *notification);
 
 #ifdef __cplusplus
 }
This page took 0.026269 seconds and 4 git commands to generate.