lib: graph: add "self" and some "private" APIs
[babeltrace.git] / include / babeltrace / graph / component-class-sink.h
index e2cf85e2395f31c2aefd6a98333d01fedf3d8583..45e701399e29f0d6d2c06302e4ac7c268e739a72 100644 (file)
@@ -1,9 +1,7 @@
-#ifndef BABELTRACE_COMPONENT_COMPONENT_CLASS_SINK_H
-#define BABELTRACE_COMPONENT_COMPONENT_CLASS_SINK_H
+#ifndef BABELTRACE_GRAPH_COMPONENT_CLASS_SINK_H
+#define BABELTRACE_GRAPH_COMPONENT_CLASS_SINK_H
 
 /*
- * Babeltrace - Component Class Interface.
- *
  * Copyright 2016 Jérémie Galarneau <jeremie.galarneau@efficios.com>
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * SOFTWARE.
  */
 
-#include <babeltrace/graph/private-component.h>
-
 #ifdef __cplusplus
 extern "C" {
 #endif
 
 struct bt_component_class;
-
-typedef enum bt_component_status (*bt_component_class_sink_consume_method)(
-        struct bt_private_component *private_component);
-
-extern
-struct bt_component_class *bt_component_class_sink_create(const char *name,
-               bt_component_class_sink_consume_method consume_method);
+struct bt_component_class_sink;
+
+static inline
+struct bt_component_class *
+bt_component_class_sink_borrow_component_class(
+               struct bt_component_class_sink *comp_cls_sink)
+{
+       return (void *) comp_cls_sink;
+}
 
 #ifdef __cplusplus
 }
 #endif
 
-#endif /* BABELTRACE_COMPONENT_COMPONENT_CLASS_SINK_H */
+#endif /* BABELTRACE_GRAPH_COMPONENT_CLASS_SINK_H */
This page took 0.023676 seconds and 4 git commands to generate.