struct bt_component_class *component_class);
const char *bt_component_class_get_description(
struct bt_component_class *component_class);
+const char *bt_component_class_get_help(
+ struct bt_component_class *component_class);
enum bt_component_class_type bt_component_class_get_type(
struct bt_component_class *component_class);
/* Component class creation functions (called from Python module) */
static int bt_py3_cc_set_optional_attrs_methods(struct bt_component_class *cc,
- const char *description)
+ const char *description, const char *help)
{
int ret = 0;
}
}
+ if (help) {
+ ret = bt_component_class_set_help(cc, help);
+ if (ret) {
+ goto end;
+ }
+ }
+
ret = bt_component_class_set_init_method(cc, bt_py3_cc_init);
if (ret) {
goto end;
static struct bt_component_class *bt_py3_component_class_source_create(
PyObject *py_cls, const char *name, const char *description,
- bool has_seek_time)
+ const char *help, bool has_seek_time)
{
struct bt_component_class *cc;
int ret;
goto end;
}
- ret = bt_py3_cc_set_optional_attrs_methods(cc, description);
+ ret = bt_py3_cc_set_optional_attrs_methods(cc, description, help);
if (ret) {
BT_PUT(cc);
goto end;
static struct bt_component_class *bt_py3_component_class_filter_create(
PyObject *py_cls, const char *name, const char *description,
- bool has_seek_time)
+ const char *help, bool has_seek_time)
{
struct bt_component_class *cc;
int ret;
goto end;
}
- ret = bt_py3_cc_set_optional_attrs_methods(cc, description);
+ ret = bt_py3_cc_set_optional_attrs_methods(cc, description, help);
if (ret) {
BT_PUT(cc);
goto end;
}
static struct bt_component_class *bt_py3_component_class_sink_create(
- PyObject *py_cls, const char *name, const char *description)
+ PyObject *py_cls, const char *name, const char *description,
+ const char *help)
{
struct bt_component_class *cc;
int ret;
goto end;
}
- ret = bt_py3_cc_set_optional_attrs_methods(cc, description);
+ ret = bt_py3_cc_set_optional_attrs_methods(cc, description, help);
if (ret) {
BT_PUT(cc);
goto end;
struct bt_component_class *bt_py3_component_class_source_create(
PyObject *py_cls, const char *name, const char *description,
- bool has_seek_time);
+ const char *help, bool has_seek_time);
struct bt_component_class *bt_py3_component_class_filter_create(
PyObject *py_cls, const char *name, const char *description,
- bool has_seek_time);
+ const char *help, bool has_seek_time);
struct bt_component_class *bt_py3_component_class_sink_create(
- PyObject *py_cls, const char *name, const char *description);
+ PyObject *py_cls, const char *name, const char *description,
+ const char *help);
void bt_py3_component_create(
struct bt_component_class *comp_class, PyObject *py_self,
const char *name);