lib: make the "port connected" method return a status
[babeltrace.git] / include / babeltrace / graph / notification-discarded-packets.h
index 44600816a49b2db0e3d15b6e0d4f7c769b8b1c7a..1627f2490068f7952daa3f62a5d35de39d6ee00e 100644 (file)
@@ -23,6 +23,9 @@
  * SOFTWARE.
  */
 
+/* For bt_get() */
+#include <babeltrace/ref.h>
+
 #include <stdint.h>
 
 #ifdef __cplusplus
@@ -31,27 +34,50 @@ extern "C" {
 
 struct bt_notification;
 struct bt_clock_class_priority_map;
-struct bt_ctf_clock_class;
-struct bt_ctf_stream;
+struct bt_clock_class;
+struct bt_stream;
 
-extern struct bt_ctf_clock_value *
-bt_notification_discarded_packets_get_begin_clock_value(
+extern struct bt_clock_value *
+bt_notification_discarded_packets_borrow_begin_clock_value(
                struct bt_notification *notification);
 
-extern struct bt_ctf_clock_value *
-bt_notification_discarded_packets_get_end_clock_value(
+static inline
+struct bt_clock_value *
+bt_notification_discarded_packets_get_begin_clock_value(
+               struct bt_notification *notification)
+{
+       return bt_get(
+               bt_notification_discarded_packets_borrow_begin_clock_value(
+                       notification));
+}
+
+extern struct bt_clock_value *
+bt_notification_discarded_packets_borrow_end_clock_value(
                struct bt_notification *notification);
 
-extern int bt_notification_discarded_packets_set_count(
-               struct bt_notification *notification,
-               uint64_t count);
+static inline
+struct bt_clock_value *
+bt_notification_discarded_packets_get_end_clock_value(
+               struct bt_notification *notification)
+{
+       return bt_get(bt_notification_discarded_packets_borrow_end_clock_value(
+               notification));
+}
 
 extern int64_t bt_notification_discarded_packets_get_count(
                struct bt_notification *notification);
 
-extern struct bt_ctf_stream *bt_notification_discarded_packets_get_stream(
+extern struct bt_stream *bt_notification_discarded_packets_borrow_stream(
                struct bt_notification *notification);
 
+static inline
+struct bt_stream *bt_notification_discarded_packets_get_stream(
+               struct bt_notification *notification)
+{
+       return bt_get(bt_notification_discarded_packets_borrow_stream(
+               notification));
+}
+
 #ifdef __cplusplus
 }
 #endif
This page took 0.024245 seconds and 4 git commands to generate.