X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Fnative_bt_graph.i.h;h=a7193497fa5cb5dff0da393805f40cf8d7accfdf;hp=bccc18257109766e2dbd70c26305fa832cdbdd38;hb=66964f3f7b0b7e3b774ddb043b0f197018d23730;hpb=ab1cea3f45de3ad0f4d70165c723f321a0eae10c diff --git a/src/bindings/python/bt2/bt2/native_bt_graph.i.h b/src/bindings/python/bt2/bt2/native_bt_graph.i.h index bccc1825..a7193497 100644 --- a/src/bindings/python/bt2/bt2/native_bt_graph.i.h +++ b/src/bindings/python/bt2/bt2/native_bt_graph.i.h @@ -513,3 +513,45 @@ end: Py_XDECREF(py_listener_id); return py_listener_ids; } + +static +bt_graph_add_component_status +bt_bt2_graph_add_source_component( + bt_graph *graph, + const bt_component_class_source *component_class, + const char *name, const bt_value *params, + PyObject *obj, bt_logging_level log_level, + const bt_component_source **component) +{ + return bt_graph_add_source_component_with_init_method_data(graph, + component_class, name, params, obj == Py_None ? NULL : obj, + log_level, component); +} + +static +bt_graph_add_component_status +bt_bt2_graph_add_filter_component( + bt_graph *graph, + const bt_component_class_filter *component_class, + const char *name, const bt_value *params, + PyObject *obj, bt_logging_level log_level, + const bt_component_filter **component) +{ + return bt_graph_add_filter_component_with_init_method_data(graph, + component_class, name, params, obj == Py_None ? NULL : obj, + log_level, component); +} + +static +bt_graph_add_component_status +bt_bt2_graph_add_sink_component( + bt_graph *graph, + const bt_component_class_sink *component_class, + const char *name, const bt_value *params, + PyObject *obj, bt_logging_level log_level, + const bt_component_sink **component) +{ + return bt_graph_add_sink_component_with_init_method_data(graph, + component_class, name, params, obj == Py_None ? NULL : obj, + log_level, component); +}