Avoid unnecessary inclusions in public headers
[babeltrace.git] / include / babeltrace / plugin / plugin.h
index 0e0bc8da54068df2fba76327ed2826e3a2b8b8f2..ae7b7c7ad3d94a71c62680eb938ed43e3be3d769 100644 (file)
  * SOFTWARE.
  */
 
+#include <stdint.h>
 #include <stddef.h>
-#include <stdbool.h>
+
+/* For bt_bool */
+#include <babeltrace/types.h>
+
+/* For enum bt_component_class_type */
 #include <babeltrace/graph/component-class.h>
 
 #ifdef __cplusplus
@@ -61,7 +66,7 @@ extern struct bt_component_class *bt_plugin_find_component_class(
 extern struct bt_plugin_set *bt_plugin_create_all_from_file(const char *path);
 
 extern struct bt_plugin_set *bt_plugin_create_all_from_dir(const char *path,
-               bool recurse);
+               bt_bool recurse);
 
 extern struct bt_plugin_set *bt_plugin_create_all_from_static(void);
 
@@ -109,10 +114,10 @@ extern enum bt_plugin_status bt_plugin_get_version(struct bt_plugin *plugin,
                unsigned int *major, unsigned int *minor, unsigned int *patch,
                const char **extra);
 
-extern int bt_plugin_get_component_class_count(struct bt_plugin *plugin);
+extern int64_t bt_plugin_get_component_class_count(struct bt_plugin *plugin);
 
-extern struct bt_component_class *bt_plugin_get_component_class(
-               struct bt_plugin *plugin, size_t index);
+extern struct bt_component_class *bt_plugin_get_component_class_by_index(
+               struct bt_plugin *plugin, uint64_t index);
 
 extern
 struct bt_component_class *bt_plugin_get_component_class_by_name_and_type(
@@ -120,11 +125,11 @@ struct bt_component_class *bt_plugin_get_component_class_by_name_and_type(
                enum bt_component_class_type type);
 
 extern
-int bt_plugin_set_get_plugin_count(struct bt_plugin_set *plugin_set);
+int64_t bt_plugin_set_get_plugin_count(struct bt_plugin_set *plugin_set);
 
 extern
 struct bt_plugin *bt_plugin_set_get_plugin(struct bt_plugin_set *plugin_set,
-               unsigned int index);
+               uint64_t index);
 
 #ifdef __cplusplus
 }
This page took 0.028256 seconds and 4 git commands to generate.