lib: add bt_{graph,query_executor}_add_interrupter()
[babeltrace.git] / include / babeltrace2 / graph / self-component-sink.h
index a55fba752bff82fc44c82d4af37baa4713fb2038..224c6781b9ebeb5fd57c2d9db869420885a389a7 100644 (file)
@@ -2,7 +2,7 @@
 #define BABELTRACE2_GRAPH_SELF_COMPONENT_SINK_H
 
 /*
- * Copyright 2017-2018 Philippe Proulx <pproulx@efficios.com>
+ * Copyright (c) 2010-2019 EfficiOS Inc. and Linux Foundation
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to deal
  * SOFTWARE.
  */
 
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
 #include <stdint.h>
 
-/* For bt_self_component_*_status */
 #include <babeltrace2/graph/self-component.h>
-
-/*
- * For bt_component_sink, bt_self_component, bt_self_component_sink,
- * bt_self_component_port_input, __BT_UPCAST, __BT_UPCAST_CONST
- */
 #include <babeltrace2/types.h>
 
 #ifdef __cplusplus
@@ -68,6 +66,9 @@ bt_self_component_sink_add_input_port(
                const char *name, void *user_data,
                bt_self_component_port_input **self_component_port);
 
+extern bt_bool bt_self_component_sink_is_interrupted(
+               const bt_self_component_sink *self_component);
+
 #ifdef __cplusplus
 }
 #endif
This page took 0.024132 seconds and 4 git commands to generate.