lib: update copyrights
[babeltrace.git] / include / babeltrace / graph / notification-packet-internal.h
index 4d519544f289a1642a7c80cade6f12809042f026..20fe61342704b3befe38667be40a4f87258de02f 100644 (file)
@@ -1,13 +1,10 @@
-#ifndef BABELTRACE_COMPONENT_NOTIFICATION_PACKET_INTERNAL_H
-#define BABELTRACE_COMPONENT_NOTIFICATION_PACKET_INTERNAL_H
+#ifndef BABELTRACE_GRAPH_NOTIFICATION_PACKET_INTERNAL_H
+#define BABELTRACE_GRAPH_NOTIFICATION_PACKET_INTERNAL_H
 
 /*
- * BabelTrace - Packet-related Notifications
- *
+ * Copyright 2017-2018 Philippe Proulx <pproulx@efficios.com>
  * Copyright 2016 Jérémie Galarneau <jeremie.galarneau@efficios.com>
  *
- * Author: Jérémie Galarneau <jeremie.galarneau@efficios.com>
- *
  * 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
  */
 
 #include <babeltrace/compiler-internal.h>
-#include <babeltrace/ctf-ir/packet.h>
+#include <babeltrace/trace-ir/packet.h>
 #include <babeltrace/graph/notification-internal.h>
+#include <babeltrace/assert-internal.h>
 
-struct bt_notification_packet_begin {
+struct bt_notification_packet_beginning {
        struct bt_notification parent;
-       struct bt_ctf_packet *packet;
+       struct bt_packet *packet;
 };
 
 struct bt_notification_packet_end {
        struct bt_notification parent;
-       struct bt_ctf_packet *packet;
+       struct bt_packet *packet;
 };
 
-static inline
-struct bt_ctf_packet *bt_notification_packet_begin_borrow_packet(
-               struct bt_notification *notif)
-{
-       struct bt_notification_packet_begin *notif_packet_begin =
-               container_of(notif,
-                       struct bt_notification_packet_begin, parent);
+BT_HIDDEN
+struct bt_notification *bt_notification_packet_beginning_new(
+               struct bt_graph *graph);
+BT_HIDDEN
+void bt_notification_packet_beginning_recycle(struct bt_notification *notif);
+
+BT_HIDDEN
+void bt_notification_packet_beginning_destroy(struct bt_notification *notif);
 
-       assert(notif_packet_begin);
-       return notif_packet_begin->packet;
-}
+BT_HIDDEN
+struct bt_notification *bt_notification_packet_end_new(struct bt_graph *graph);
 
-static inline
-struct bt_ctf_packet *bt_notification_packet_end_borrow_packet(
-               struct bt_notification *notif)
-{
-       struct bt_notification_packet_end *notif_packet_end =
-               container_of(notif,
-                       struct bt_notification_packet_end, parent);
+BT_HIDDEN
+void bt_notification_packet_end_recycle(struct bt_notification *notif);
 
-       assert(notif_packet_end);
-       return notif_packet_end->packet;
-}
+BT_HIDDEN
+void bt_notification_packet_end_destroy(struct bt_notification *notif);
 
-#endif /* BABELTRACE_COMPONENT_NOTIFICATION_PACKET_INTERNAL_H */
+#endif /* BABELTRACE_GRAPH_NOTIFICATION_PACKET_INTERNAL_H */
This page took 0.024174 seconds and 4 git commands to generate.