lib: graph: add "self" and some "private" APIs
[babeltrace.git] / include / babeltrace / graph / component-class-sink.h
index 6e06e1e5f51f792081bd2e0f42df9f9095711080..45e701399e29f0d6d2c06302e4ac7c268e739a72 100644 (file)
@@ -2,8 +2,6 @@
 #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.
  */
 
-/* For component class method type definitions */
-#include <babeltrace/graph/component-class.h>
-
 #ifdef __cplusplus
 extern "C" {
 #endif
 
 struct bt_component_class;
-struct bt_private_component;
-
-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
 }
This page took 0.023968 seconds and 4 git commands to generate.