Put Python plugin support in a separate shared object
[babeltrace.git] / include / babeltrace / component / component-internal.h
index dadaa75b22665b93a54bc2d7eda4f6fb95c6cfdc..e70f9e96a6ce389a103fbe865341e233f121a1cc 100644 (file)
 #include <babeltrace/babeltrace-internal.h>
 #include <babeltrace/component/component.h>
 #include <babeltrace/component/component-class-internal.h>
+#include <babeltrace/component/port-internal.h>
 #include <babeltrace/object-internal.h>
 #include <glib.h>
 #include <stdio.h>
 
+#define DEFAULT_INPUT_PORT_NAME                "default"
+#define DEFAULT_OUTPUT_PORT_NAME       "default"
+
 struct bt_component {
        struct bt_object base;
        struct bt_component_class *class;
@@ -61,6 +65,39 @@ enum bt_component_status bt_component_init(struct bt_component *component,
 
 BT_HIDDEN
 struct bt_notification_iterator *bt_component_create_iterator(
-               struct bt_component *component);
+               struct bt_component *component, void *init_method_data);
+
+BT_HIDDEN
+enum bt_component_status bt_component_new_connection(
+               struct bt_component *component, struct bt_port *own_port,
+               struct bt_connection *connection);
+
+BT_HIDDEN
+void bt_component_set_graph(struct bt_component *component,
+               struct bt_graph *graph);
+
+BT_HIDDEN
+int bt_component_init_input_ports(struct bt_component *component,
+               GPtrArray **input_ports);
+
+BT_HIDDEN
+int bt_component_init_output_ports(struct bt_component *component,
+               GPtrArray **output_ports);
+
+BT_HIDDEN
+struct bt_port *bt_component_get_port(GPtrArray *ports, const char *name);
+
+BT_HIDDEN
+struct bt_port *bt_component_get_port_at_index(GPtrArray *ports, int index);
+
+BT_HIDDEN
+struct bt_port *bt_component_add_port(
+               struct bt_component *component,GPtrArray *ports,
+               enum bt_port_type port_type, const char *name);
+
+BT_HIDDEN
+enum bt_component_status bt_component_remove_port(
+               struct bt_component *component, GPtrArray *ports,
+               const char *name);
 
 #endif /* BABELTRACE_COMPONENT_COMPONENT_INTERNAL_H */
This page took 0.025602 seconds and 4 git commands to generate.