lib: use object pool for event and packet notifications
[babeltrace.git] / include / babeltrace / graph / component-internal.h
index 540faf4c5d5333ce79a1d7a535aee43dab815368..65f5e4d82bac46e1fded9cf378f7e17078d8ea7c 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef BABELTRACE_COMPONENT_COMPONENT_INTERNAL_H
-#define BABELTRACE_COMPONENT_COMPONENT_INTERNAL_H
+#ifndef BABELTRACE_GRAPH_COMPONENT_INTERNAL_H
+#define BABELTRACE_GRAPH_COMPONENT_INTERNAL_H
 
 /*
  * BabelTrace - Component internal
@@ -69,13 +69,6 @@ struct bt_component {
        bool initialized;
 };
 
-static inline
-struct bt_component *bt_component_borrow_from_private(
-               struct bt_private_component *private_component)
-{
-       return (void *) private_component;
-}
-
 static inline
 struct bt_private_component *bt_private_component_from_component(
                struct bt_component *component)
@@ -83,13 +76,6 @@ struct bt_private_component *bt_private_component_from_component(
        return (void *) component;
 }
 
-static inline
-struct bt_graph *bt_component_borrow_graph(struct bt_component *comp)
-{
-       BT_ASSERT(comp);
-       return (void *) comp->base.parent;
-}
-
 BT_HIDDEN
 enum bt_component_status bt_component_create(
                struct bt_component_class *component_class,
@@ -185,4 +171,4 @@ const char *bt_component_status_string(enum bt_component_status status)
        }
 }
 
-#endif /* BABELTRACE_COMPONENT_COMPONENT_INTERNAL_H */
+#endif /* BABELTRACE_GRAPH_COMPONENT_INTERNAL_H */
This page took 0.028665 seconds and 4 git commands to generate.