* SOFTWARE.
*/
-#include <babeltrace/ctf-writer/ref-internal.h>
+#include <babeltrace/ref-internal.h>
#include <babeltrace/babeltrace-internal.h>
+#include <babeltrace/object-internal.h>
#include <babeltrace/plugin/notification/notification.h>
+#include <babeltrace/ctf-ir/stream.h>
#ifdef __cplusplus
extern "C" {
#endif
+typedef struct bt_ctf_stream *(*get_stream_func)(
+ struct bt_notification *notification);
+
struct bt_notification {
- struct bt_ctf_ref ref_count;
+ struct bt_object base;
enum bt_notification_type type;
+ get_stream_func get_stream;
};
+BT_HIDDEN
+void bt_notification_init(struct bt_notification *notification,
+ enum bt_notification_type type,
+ bt_object_release_func release);
+
#ifdef __cplusplus
}
#endif