List detected component classes
[babeltrace.git] / include / babeltrace / plugin / component-class-internal.h
index e516478b779f894a0ae4e07db1755bdb1a09779f..f23f256672b0655e97d397e5d5af60783e157f0e 100644 (file)
  */
 
 #include <babeltrace/babeltrace-internal.h>
-#include <babeltrace/ref-internal.h>
 #include <babeltrace/plugin/component-factory-internal.h>
 #include <babeltrace/plugin/plugin-internal.h>
+#include <babeltrace/object-internal.h>
 
 struct bt_component_class {
-       struct bt_ref ref;
+       struct bt_object base;
        enum bt_component_type type;
        GString *name;
+       GString *description;
        struct bt_plugin *plugin;
+       bt_component_init_cb init;
 };
 
 BT_HIDDEN
-struct bt_component_class *bt_component_class_create(
-               enum bt_component_type type, const char *name,
-               struct bt_plugin *plugin);
-
-BT_HIDDEN
-void bt_component_class_get(struct bt_component_class *class);
+int bt_component_class_init(
+               struct bt_component_class *class, enum bt_component_type type,
+               const char *name);
 
 BT_HIDDEN
-void bt_component_class_put(struct bt_component_class *class);
+struct bt_component_class *bt_component_class_create(
+               enum bt_component_type type, const char *name,
+               const char *description, struct bt_plugin *plugin);
 
 #endif /* BABELTRACE_PLUGIN_COMPONENT_CLASS_INTERNAL_H */
This page took 0.025936 seconds and 4 git commands to generate.