lib: rename bt_plugin_create_all_*() -> bt_plugin_find_all_*()
[babeltrace.git] / include / babeltrace / graph / notification-internal.h
index 662ffdeecb01d7d8242318ccb648851fb7a54688..1375bc8bc3fcf26956b36520706d9aef5588ed0f 100644 (file)
@@ -2,10 +2,9 @@
 #define BABELTRACE_GRAPH_NOTIFICATION_NOTIFICATION_INTERNAL_H
 
 /*
+ * Copyright 2017-2018 Philippe Proulx <pproulx@efficios.com>
  * Copyright 2015 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
@@ -29,7 +28,7 @@
 #include <babeltrace/object-internal.h>
 #include <babeltrace/assert-internal.h>
 #include <babeltrace/graph/graph.h>
-#include <babeltrace/graph/notification.h>
+#include <babeltrace/graph/notification-const.h>
 #include <babeltrace/trace-ir/stream.h>
 #include <babeltrace/object-pool-internal.h>
 #include <babeltrace/types.h>
@@ -48,7 +47,7 @@ struct bt_notification {
 };
 
 #define BT_ASSERT_PRE_NOTIF_IS_TYPE(_notif, _type)                     \
-       BT_ASSERT_PRE((_notif)->type == (_type),                        \
+       BT_ASSERT_PRE(((struct bt_notification *) (_notif))->type == (_type), \
                "Notification has the wrong type: expected-type=%s, "   \
                "%![notif-]+n", bt_notification_type_string(_type),     \
                (_notif))
@@ -115,18 +114,16 @@ static inline
 const char *bt_notification_type_string(enum bt_notification_type type)
 {
        switch (type) {
-       case BT_NOTIFICATION_TYPE_UNKNOWN:
-               return "BT_NOTIFICATION_TYPE_UNKNOWN";
        case BT_NOTIFICATION_TYPE_EVENT:
                return "BT_NOTIFICATION_TYPE_EVENT";
        case BT_NOTIFICATION_TYPE_INACTIVITY:
                return "BT_NOTIFICATION_TYPE_INACTIVITY";
-       case BT_NOTIFICATION_TYPE_STREAM_BEGIN:
-               return "BT_NOTIFICATION_TYPE_STREAM_BEGIN";
+       case BT_NOTIFICATION_TYPE_STREAM_BEGINNING:
+               return "BT_NOTIFICATION_TYPE_STREAM_BEGINNING";
        case BT_NOTIFICATION_TYPE_STREAM_END:
                return "BT_NOTIFICATION_TYPE_STREAM_END";
-       case BT_NOTIFICATION_TYPE_PACKET_BEGIN:
-               return "BT_NOTIFICATION_TYPE_PACKET_BEGIN";
+       case BT_NOTIFICATION_TYPE_PACKET_BEGINNING:
+               return "BT_NOTIFICATION_TYPE_PACKET_BEGINNING";
        case BT_NOTIFICATION_TYPE_PACKET_END:
                return "BT_NOTIFICATION_TYPE_PACKET_END";
        default:
This page took 0.023976 seconds and 4 git commands to generate.