X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fgraph%2Fnotification-stream-internal.h;h=708d0fae1da091580e49df304f0eb55644775aa4;hb=312c056ae3d374b253fa0cfe5ed576c0b0e5e569;hp=df1b3dcb3a565d95fd516450b27a9c0bad7d8f11;hpb=50842bdc4c21f3de2b63e29cdac730af8b6dcca6;p=babeltrace.git diff --git a/include/babeltrace/graph/notification-stream-internal.h b/include/babeltrace/graph/notification-stream-internal.h index df1b3dcb..708d0fae 100644 --- a/include/babeltrace/graph/notification-stream-internal.h +++ b/include/babeltrace/graph/notification-stream-internal.h @@ -1,5 +1,5 @@ -#ifndef BABELTRACE_COMPONENT_NOTIFICATION_STREAM_INTERNAL_H -#define BABELTRACE_COMPONENT_NOTIFICATION_STREAM_INTERNAL_H +#ifndef BABELTRACE_GRAPH_NOTIFICATION_STREAM_INTERNAL_H +#define BABELTRACE_GRAPH_NOTIFICATION_STREAM_INTERNAL_H /* * BabelTrace - Stream-related Notifications @@ -30,6 +30,7 @@ #include #include #include +#include struct bt_notification_stream_begin { struct bt_notification parent; @@ -41,28 +42,4 @@ struct bt_notification_stream_end { struct bt_stream *stream; }; -static inline -struct bt_stream *bt_notification_stream_begin_borrow_stream( - struct bt_notification *notif) -{ - struct bt_notification_stream_begin *notif_stream_begin = - container_of(notif, - struct bt_notification_stream_begin, parent); - - assert(notif_stream_begin); - return notif_stream_begin->stream; -} - -static inline -struct bt_stream *bt_notification_stream_end_borrow_stream( - struct bt_notification *notif) -{ - struct bt_notification_stream_end *notif_stream_end = - container_of(notif, - struct bt_notification_stream_end, parent); - - assert(notif_stream_end); - return notif_stream_end->stream; -} - -#endif /* BABELTRACE_COMPONENT_NOTIFICATION_STREAM_INTERNAL_H */ +#endif /* BABELTRACE_GRAPH_NOTIFICATION_STREAM_INTERNAL_H */