X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fgraph%2Fnotification-stream.h;h=ac9ee65b2e007236ff073a23530893fca14e01d8;hb=c8db321922f3730c70628a5e452baf8a046e70fd;hp=e016117ae9c2691ee5955b4f264b2767f9d76c47;hpb=5c5632787fc9cafa602c89a28966bcfd01ec0204;p=babeltrace.git diff --git a/include/babeltrace/graph/notification-stream.h b/include/babeltrace/graph/notification-stream.h index e016117a..ac9ee65b 100644 --- a/include/babeltrace/graph/notification-stream.h +++ b/include/babeltrace/graph/notification-stream.h @@ -2,12 +2,9 @@ #define BABELTRACE_GRAPH_NOTIFICATION_STREAM_H /* - * BabelTrace - Plug-in Stream-related Notifications - * + * Copyright 2017-2018 Philippe Proulx * Copyright 2016 Jérémie Galarneau * - * Author: Jérémie Galarneau - * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights @@ -27,45 +24,34 @@ * SOFTWARE. */ -/* For bt_get() */ -#include +/* For bt_notification, bt_self_notification_iterator, bt_stream */ +#include #ifdef __cplusplus extern "C" { #endif -struct bt_notification; -struct bt_stream; - extern -struct bt_notification *bt_notification_stream_begin_create( - struct bt_graph *graph, - struct bt_stream *stream); +bt_notification *bt_notification_stream_beginning_create( + bt_self_notification_iterator *notification_iterator, + bt_stream *stream); extern -struct bt_notification *bt_notification_stream_end_create( - struct bt_graph *graph, - struct bt_stream *stream); +bt_notification *bt_notification_stream_end_create( + bt_self_notification_iterator *notification_iterator, + bt_stream *stream); -extern struct bt_stream *bt_notification_stream_begin_borrow_stream( - struct bt_notification *notification); +extern bt_stream *bt_notification_stream_beginning_borrow_stream( + bt_notification *notification); -static inline -struct bt_stream *bt_notification_stream_begin_get_stream( - struct bt_notification *notification) -{ - return bt_get(bt_notification_stream_begin_borrow_stream(notification)); -} +extern void bt_notification_stream_beginning_set_default_clock_value( + bt_notification *notif, uint64_t value_cycles); -extern struct bt_stream *bt_notification_stream_end_borrow_stream( - struct bt_notification *notification); +extern bt_stream *bt_notification_stream_end_borrow_stream( + bt_notification *notification); -static inline -struct bt_stream *bt_notification_stream_end_get_stream( - struct bt_notification *notification) -{ - return bt_get(bt_notification_stream_end_borrow_stream(notification)); -} +extern void bt_notification_stream_end_set_default_clock_value( + bt_notification *notif, uint64_t value_cycles); #ifdef __cplusplus }