X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fplugin%2Fnotification%2Fevent.h;h=39d3e03be1c1d0e94656ef54ac52c3b5cfab5445;hb=9900dfa70bfcad56a2647a1ec9e0edd44403849f;hp=93d1d68afed956d6f8c4f6c8e5a91d695ec9d640;hpb=611c29fb84107322f4ff9830e41c6069ca84a30a;p=babeltrace.git diff --git a/include/babeltrace/plugin/notification/event.h b/include/babeltrace/plugin/notification/event.h index 93d1d68a..39d3e03b 100644 --- a/include/babeltrace/plugin/notification/event.h +++ b/include/babeltrace/plugin/notification/event.h @@ -2,7 +2,7 @@ #define BABELTRACE_PLUGIN_NOTIFICATION_EVENT_H /* - * BabelTrace - Plug-in Notification + * BabelTrace - Plug-in Event Notification * * Copyright 2015 Jérémie Galarneau * @@ -27,16 +27,60 @@ * SOFTWARE. */ -#include - #ifdef __cplusplus extern "C" { #endif -struct bt_notification; +struct bt_plugin_notification; +struct bt_ctf_trace; +struct bt_ctf_stream; struct bt_ctf_event; -struct bt_ctf_event *bt_plugin_notification_event_get_event( +/** + * Create an event notification. + * + * @param trace The event's trace + * @param stream The event's stream + * @param event The event + * @returns An event notification instance + * + * @see #bt_plugin_notification_type + */ +extern struct bt_plugin_notification *bt_plugin_notification_event_create( + struct bt_ctf_trace *trace, struct bt_ctf_stream *stream, + struct bt_ctf_event *event); + +/** + * Get an event notification's associated trace. + * + * @param notification Event notification instance + * @returns A trace instance + * + * @see #bt_ctf_trace + */ +extern struct bt_ctf_trace *bt_plugin_notification_event_get_trace( + struct bt_plugin_notification *notification); + +/** + * Get an event notification's associated stream. + * + * @param notification Event notification instance + * @returns A stream instance + * + * @see #bt_ctf_stream + */ +extern struct bt_ctf_stream *bt_plugin_notification_event_get_stream( + struct bt_plugin_notification *notification); + +/** + * Get an event notification's event. + * + * @param notification Event notification instance + * @returns An event instance + * + * @see #bt_ctf_event + */ +extern struct bt_ctf_event *bt_plugin_notification_event_get_event( struct bt_plugin_notification *notification); #ifdef __cplusplus