Add query executor
[babeltrace.git] / include / babeltrace / graph / component-class.h
index a4d1e7a26569878f0964632e1cc6ee9601e9c234..466bd549f90f2b7ac628bc852a8233a9ade5a81b 100644 (file)
@@ -28,6 +28,7 @@
 #include <stdint.h>
 #include <babeltrace/graph/component-status.h>
 #include <babeltrace/graph/notification-iterator.h>
+#include <babeltrace/graph/query-executor.h>
 #include <babeltrace/types.h>
 
 #ifdef __cplusplus
@@ -41,6 +42,7 @@ struct bt_private_port;
 struct bt_port;
 struct bt_value;
 struct bt_private_notification_iterator;
+struct bt_query_executor;
 
 /**
  * Component class type.
@@ -63,6 +65,11 @@ struct bt_notification_iterator_next_return {
        enum bt_notification_iterator_status status;
 };
 
+struct bt_component_class_query_return {
+       struct bt_value *result;
+       enum bt_query_status status;
+};
+
 typedef enum bt_component_status (*bt_component_class_init_method)(
                struct bt_private_component *private_component,
                struct bt_value *params, void *init_method_data);
@@ -86,8 +93,9 @@ typedef enum bt_notification_iterator_status
                struct bt_private_notification_iterator *private_notification_iterator,
                int64_t time);
 
-typedef struct bt_value *(*bt_component_class_query_method)(
+typedef struct bt_component_class_query_return (*bt_component_class_query_method)(
                struct bt_component_class *component_class,
+               struct bt_query_executor *query_executor,
                const char *object, struct bt_value *params);
 
 typedef enum bt_component_status (*bt_component_class_accept_port_connection_method)(
@@ -163,10 +171,6 @@ extern const char *bt_component_class_get_description(
 extern const char *bt_component_class_get_help(
                struct bt_component_class *component_class);
 
-extern struct bt_value *bt_component_class_query(
-               struct bt_component_class *component_class,
-               const char *object, struct bt_value *params);
-
 /**
  * Get a component class' type.
  *
This page took 0.023081 seconds and 4 git commands to generate.