lib: graph: add "self" and some "private" APIs
[babeltrace.git] / include / babeltrace / graph / component-class-filter.h
index b27eb37633fb4e652a20fb22a545928f4ba78e58..beddfa10bf8aad1703994e1471b77652fc8175c5 100644 (file)
@@ -2,8 +2,6 @@
 #define BABELTRACE_GRAPH_COMPONENT_CLASS_FILTER_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;
-
-extern
-struct bt_component_class *bt_component_class_filter_create(const char *name,
-               bt_component_class_notification_iterator_next_method method);
-
-extern
-int bt_component_class_filter_set_notification_iterator_init_method(
-               struct bt_component_class *component_class,
-               bt_component_class_notification_iterator_init_method method);
-
-extern
-int bt_component_class_filter_set_notification_iterator_finalize_method(
-               struct bt_component_class *component_class,
-               bt_component_class_notification_iterator_finalize_method method);
+struct bt_component_class_filter;
+
+static inline
+struct bt_component_class *
+bt_component_class_filter_borrow_component_class(
+               struct bt_component_class_filter *comp_cls_filter)
+{
+       return (void *) comp_cls_filter;
+}
 
 #ifdef __cplusplus
 }
This page took 0.024982 seconds and 4 git commands to generate.