babeltraceplugininclude_HEADERS = \
babeltrace/plugin/plugin.h \
babeltrace/plugin/component.h \
- babeltrace/plugin/component-class.h \
babeltrace/plugin/component-factory.h \
babeltrace/plugin/source.h \
babeltrace/plugin/sink.h \
babeltrace/plugin/filter.h \
babeltrace/plugin/plugin-lib.h \
babeltrace/plugin/plugin-system.h \
+ babeltrace/plugin/notification/eot.h \
babeltrace/plugin/notification/notification.h \
babeltrace/plugin/notification/event.h \
- babeltrace/plugin/notification/eot.h \
babeltrace/plugin/notification/iterator.h \
+ babeltrace/plugin/notification/notification.h \
babeltrace/plugin/notification/packet.h
noinst_HEADERS = \
babeltrace/compat/mman.h \
babeltrace/endian.h \
babeltrace/mmap-align.h \
- babeltrace/plugin/sink-internal.h \
- babeltrace/plugin/component-internal.h \
- babeltrace/plugin/component-class-internal.h \
babeltrace/plugin/component-factory-internal.h \
- babeltrace/plugin/source-internal.h \
+ babeltrace/plugin/component-internal.h \
babeltrace/plugin/filter-internal.h \
+ babeltrace/plugin/sink-internal.h \
+ babeltrace/plugin/source-internal.h \
+ babeltrace/plugin/notification/eot-internal.h \
babeltrace/plugin/notification/event-internal.h \
+ babeltrace/plugin/notification/iterator-internal.h \
babeltrace/plugin/notification/notification-internal.h \
- babeltrace/plugin/notification/iterator-internal.h
+ babeltrace/plugin/notification/packet-internal.h
extern "C" {
#endif
-struct bt_plugin_notification_event {
- struct bt_plugin_notification parent;
+struct bt_notification_event {
+ struct bt_notification parent;
struct bt_ctf_trace *trace;
struct bt_ctf_stream *stream;
struct bt_ctf_event *event;
extern "C" {
#endif
-struct bt_plugin_notification;
+struct bt_notification;
struct bt_ctf_trace;
struct bt_ctf_stream;
struct bt_ctf_event;
* @param event The event
* @returns An event notification instance
*
- * @see #bt_plugin_notification_type
+ * @see #bt_notification_type
*/
-extern struct bt_plugin_notification *bt_plugin_notification_event_create(
+extern struct bt_notification *bt_notification_event_create(
struct bt_ctf_trace *trace, struct bt_ctf_stream *stream,
struct bt_ctf_event *event);
*
* @see #bt_ctf_trace
*/
-extern struct bt_ctf_trace *bt_plugin_notification_event_get_trace(
- struct bt_plugin_notification *notification);
+extern struct bt_ctf_trace *bt_notification_event_get_trace(
+ struct bt_notification *notification);
/**
* Get an event notification's associated stream.
*
* @see #bt_ctf_stream
*/
-extern struct bt_ctf_stream *bt_plugin_notification_event_get_stream(
- struct bt_plugin_notification *notification);
+extern struct bt_ctf_stream *bt_notification_event_get_stream(
+ struct bt_notification *notification);
/**
* Get an event notification's event.
*
* @see #bt_ctf_event
*/
-extern struct bt_ctf_event *bt_plugin_notification_event_get_event(
- struct bt_plugin_notification *notification);
+extern struct bt_ctf_event *bt_notification_event_get_event(
+ struct bt_notification *notification);
#ifdef __cplusplus
}
#include <babeltrace/ctf-writer/ref-internal.h>
#include <babeltrace/babeltrace-internal.h>
#include <babeltrace/plugin/notification/notification.h>
-#include <glib.h>
#ifdef __cplusplus
extern "C" {
#endif
-struct bt_plugin_notification {
+struct bt_notification {
struct bt_ctf_ref ref_count;
- enum bt_plugin_notification_type type;
+ enum bt_notification_type type;
};
#ifdef __cplusplus
/**
* 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,
/** Event delivery notification, see event.h */
- BT_PLUGIN_NOTIFICATION_TYPE_EVENT = 0,
+ BT_NOTIFICATION_TYPE_EVENT = 0,
/** New stream packet notification, see packet.h */
- BT_PLUGIN_NOTIFICATION_TYPE_NEW_PACKET = 1,
+ BT_NOTIFICATION_TYPE_NEW_PACKET = 1,
+
+ /** End of stream packet notification, see packet.h */
+ BT_NOTIFICATION_TYPE_END_PACKET = 1,
/** End of trace notification, see eot.h */
- BT_PLUGIN_NOTIFICATION_TYPE_EOT = 2,
+ BT_NOTIFICATION_TYPE_END_OF_TRACE = 2,
};
/**
* Get a notification's type.
*
* @param notification Notification instance
- * @returns One of #bt_plugin_notification_type
+ * @returns One of #bt_notification_type
*/
-extern enum bt_plugin_notification_type bt_plugin_notification_get_type(
- struct bt_plugin_notification *notification);
+extern enum bt_notification_type bt_notification_get_type(
+ struct bt_notification *notification);
/**
- * Increments the reference count of \p notifiaction.
+ * Increments the reference count of \p notification.
*
* @param notification Notification of which to increment the reference count
*
- * @see bt_plugin_notification_put()
+ * @see bt_notification_put()
*/
-extern void bt_plugin_notification_get(
- struct bt_plugin_notification *notification);
+extern void bt_notification_get(struct bt_notification *notification);
/**
* Decrements the reference count of \p notification, destroying it when this
*
* @param notification Notification of which to decrement the reference count
*
- * @see bt_plugin_notification_get()
+ * @see bt_notification_get()
*/
-extern void bt_plugin_notification_put(
- struct bt_plugin_notification *notification);
+extern void bt_notification_put(
+ struct bt_notification *notification);
#ifdef __cplusplus
}
#define BABELTRACE_PLUGIN_NOTIFICATION_PACKET_H
/*
- * BabelTrace - Plug-in New Packet Notification
+ * BabelTrace - Plug-in Packet Notifications
*
* Copyright 2015 Jérémie Galarneau <jeremie.galarneau@efficios.com>
*
}
#endif
-#endif /* BABELTRACE_PLUGIN_NOTIFICATION_NEW_PACKET_H */
+#endif /* BABELTRACE_PLUGIN_NOTIFICATION_PACKET_H */