lib: add internal object pool API and use it; adapt plugins/tests
[babeltrace.git] / include / babeltrace / graph / notification-heap.h
index 8eb2f7f80b96a962353692811a5512809763c9a4..3efb541ee3ad1e89adc4f69a8ddff151e11ada93 100644 (file)
  */
 
 #include <stddef.h>
-#include <stdbool.h>
-#include <babeltrace/graph/notification.h>
-#include <babeltrace/babeltrace-internal.h>
+
+/* For bt_bool */
+#include <babeltrace/types.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+struct bt_notification;
 
 /**
  * bt_notification_time_compare - Compare two notifications' timestamps
@@ -40,7 +46,7 @@
  * used to order the notifications. This criterion shall ensure a consistent
  * ordering over multiple runs.
  */
-typedef bool (*bt_notification_time_compare_func)(
+typedef bt_bool (*bt_notification_time_compare_func)(
                struct bt_notification *a, struct bt_notification *b,
                void *user_data);
 
@@ -90,4 +96,8 @@ extern struct bt_notification *bt_notification_heap_peek(
 extern struct bt_notification *bt_notification_heap_pop(
                struct bt_notification_heap *heap);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* BABELTRACE_GRAPH_NOTIFICATION_HEAP_H */
This page took 0.031488 seconds and 4 git commands to generate.