projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: add "borrow" functions where "get" functions exist
[babeltrace.git]
/
include
/
babeltrace
/
graph
/
notification-discarded-events.h
diff --git
a/include/babeltrace/graph/notification-discarded-events.h
b/include/babeltrace/graph/notification-discarded-events.h
index 6a760f863434174d9dcc5ac8bcde852219579e1d..901088202d7c0c38b0b0f690ab2727bf494a6680 100644
(file)
--- a/
include/babeltrace/graph/notification-discarded-events.h
+++ b/
include/babeltrace/graph/notification-discarded-events.h
@@
-23,6
+23,9
@@
* SOFTWARE.
*/
* SOFTWARE.
*/
+/* For bt_get() */
+#include <babeltrace/ref.h>
+
#include <stdint.h>
#ifdef __cplusplus
#include <stdint.h>
#ifdef __cplusplus
@@
-35,19
+38,45
@@
struct bt_clock_class;
struct bt_stream;
extern struct bt_clock_value *
struct bt_stream;
extern struct bt_clock_value *
-bt_notification_discarded_events_
get
_begin_clock_value(
+bt_notification_discarded_events_
borrow
_begin_clock_value(
struct bt_notification *notification);
struct bt_notification *notification);
+static inline
+struct bt_clock_value *
+bt_notification_discarded_events_get_begin_clock_value(
+ struct bt_notification *notification)
+{
+ return bt_get(bt_notification_discarded_events_borrow_begin_clock_value(
+ notification));
+}
+
extern struct bt_clock_value *
extern struct bt_clock_value *
-bt_notification_discarded_events_
get
_end_clock_value(
+bt_notification_discarded_events_
borrow
_end_clock_value(
struct bt_notification *notification);
struct bt_notification *notification);
+static inline
+struct bt_clock_value *
+bt_notification_discarded_events_get_end_clock_value(
+ struct bt_notification *notification)
+{
+ return bt_get(bt_notification_discarded_events_borrow_end_clock_value(
+ notification));
+}
+
extern int64_t bt_notification_discarded_events_get_count(
struct bt_notification *notification);
extern int64_t bt_notification_discarded_events_get_count(
struct bt_notification *notification);
-extern struct bt_stream *bt_notification_discarded_events_
get
_stream(
+extern struct bt_stream *bt_notification_discarded_events_
borrow
_stream(
struct bt_notification *notification);
struct bt_notification *notification);
+static inline
+struct bt_stream *bt_notification_discarded_events_get_stream(
+ struct bt_notification *notification)
+{
+ return bt_get(bt_notification_discarded_events_borrow_stream(
+ notification));
+}
+
#ifdef __cplusplus
}
#endif
#ifdef __cplusplus
}
#endif
This page took
0.023528 seconds
and
4
git commands to generate.