projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: make trace IR API const-correct
[babeltrace.git]
/
lib
/
graph
/
notification
/
event.c
diff --git
a/lib/graph/notification/event.c
b/lib/graph/notification/event.c
index 09dece0bc58234af9a8712d15b82d817b290d2a3..9b09bc42f4414f200586f2023bd03574af423346 100644
(file)
--- a/
lib/graph/notification/event.c
+++ b/
lib/graph/notification/event.c
@@
-77,13
+77,11
@@
end:
struct bt_private_notification *bt_private_notification_event_create(
struct bt_self_notification_iterator *self_notif_iter,
struct bt_private_notification *bt_private_notification_event_create(
struct bt_self_notification_iterator *self_notif_iter,
- struct bt_
private_event_class *priv_
event_class,
- struct bt_p
rivate_packet *priv_
packet)
+ struct bt_
event_class *
event_class,
+ struct bt_p
acket *
packet)
{
struct bt_self_component_port_input_notification_iterator *notif_iter =
(void *) self_notif_iter;
{
struct bt_self_component_port_input_notification_iterator *notif_iter =
(void *) self_notif_iter;
- struct bt_event_class *event_class = (void *) priv_event_class;
- struct bt_packet *packet = (void *) priv_packet;
struct bt_notification_event *notification = NULL;
struct bt_event *event;
struct bt_notification_event *notification = NULL;
struct bt_event *event;
@@
-179,8
+177,8
@@
void bt_notification_event_recycle(struct bt_notification *notif)
bt_object_pool_recycle_object(&graph->event_notif_pool, notif);
}
bt_object_pool_recycle_object(&graph->event_notif_pool, notif);
}
-st
ruct bt_event *bt_notification_event_borrow_event(
-
struct bt_notification *notification)
+st
atic inline
+
struct bt_event *borrow_event(
struct bt_notification *notification)
{
struct bt_notification_event *event_notification;
{
struct bt_notification_event *event_notification;
@@
-191,9
+189,14
@@
struct bt_event *bt_notification_event_borrow_event(
return event_notification->event;
}
return event_notification->event;
}
-struct bt_
private_
event *bt_private_notification_event_borrow_event(
+struct bt_event *bt_private_notification_event_borrow_event(
struct bt_private_notification *notification)
{
struct bt_private_notification *notification)
{
- return (void *) bt_notification_event_borrow_event(
- (void *) notification);
+ return borrow_event((void *) notification);
+}
+
+const struct bt_event *bt_notification_event_borrow_event(
+ struct bt_notification *notification)
+{
+ return borrow_event(notification);
}
}
This page took
0.03003 seconds
and
4
git commands to generate.