lib: rename bt_plugin_create_all_*() -> bt_plugin_find_all_*()
[babeltrace.git] / include / babeltrace / graph / notification-iterator.h
index bcf6a659ab00120adbc9119d4101d2916c58d71e..bd58398cf61d90672448182420cd47c550e80c08 100644 (file)
@@ -2,12 +2,9 @@
 #define BABELTRACE_GRAPH_NOTIFICATION_ITERATOR_H
 
 /*
- * BabelTrace - Notification Iterator
- *
+ * 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
  * SOFTWARE.
  */
 
-/* For bt_object_get_ref() */
-#include <babeltrace/object.h>
-
-#include <stdint.h>
+/* For bt_notification, bt_notification_iterator */
+#include <babeltrace/types.h>
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_notification;
-struct bt_notification_iterator;
-
-/**
- * Status code. Errors are always negative.
- */
 enum bt_notification_iterator_status {
-       /** Canceled. */
-       BT_NOTIFICATION_ITERATOR_STATUS_CANCELED = 125,
-       /** No notifications available for now. Try again later. */
-       BT_NOTIFICATION_ITERATOR_STATUS_AGAIN = 11,
-       /** No more notifications to be delivered. */
-       BT_NOTIFICATION_ITERATOR_STATUS_END = 1,
-       /** No error, okay. */
        BT_NOTIFICATION_ITERATOR_STATUS_OK = 0,
-       /** Invalid arguments. */
-       BT_NOTIFICATION_ITERATOR_STATUS_INVALID = -22,
-       /** General error. */
+       BT_NOTIFICATION_ITERATOR_STATUS_END = 1,
+       BT_NOTIFICATION_ITERATOR_STATUS_AGAIN = 11,
+       BT_NOTIFICATION_ITERATOR_STATUS_CANCELED = 125,
        BT_NOTIFICATION_ITERATOR_STATUS_ERROR = -1,
-       /** Out of memory. */
        BT_NOTIFICATION_ITERATOR_STATUS_NOMEM = -12,
-       /** Unsupported iterator feature. */
-       BT_NOTIFICATION_ITERATOR_STATUS_UNSUPPORTED = -2,
 };
 
 #ifdef __cplusplus
This page took 0.024072 seconds and 4 git commands to generate.