lib: introduce bt_message_iterator_class
[babeltrace.git] / include / babeltrace2 / graph / component-class.h
index f2b85930f5acb8269016b2821cb6578be782a761..b8495d45d0b0bcae7437e0cd58d9ff4ae20c0936 100644 (file)
@@ -1,9 +1,8 @@
-#ifndef BABELTRACE_GRAPH_COMPONENT_CLASS_H
-#define BABELTRACE_GRAPH_COMPONENT_CLASS_H
+#ifndef BABELTRACE2_GRAPH_COMPONENT_CLASS_H
+#define BABELTRACE2_GRAPH_COMPONENT_CLASS_H
 
 /*
- * Copyright 2017-2018 Philippe Proulx <pproulx@efficios.com>
- * Copyright 2016 Jérémie Galarneau <jeremie.galarneau@efficios.com>
+ * Copyright (c) 2010-2019 EfficiOS Inc. and Linux Foundation
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to deal
  * SOFTWARE.
  */
 
-/* For BT_QUERY_EXECUTOR_STATUS_* */
-#include <babeltrace2/graph/query-executor-const.h>
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
 
-/* For bt_component_class */
 #include <babeltrace2/types.h>
 
-/* For bt_component_class_status */
-#include <babeltrace2/graph/component-class-const.h>
-
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-typedef enum bt_query_status {
-       BT_QUERY_STATUS_OK = BT_QUERY_EXECUTOR_STATUS_OK,
-       BT_QUERY_STATUS_AGAIN = BT_QUERY_EXECUTOR_STATUS_AGAIN,
-       BT_QUERY_STATUS_ERROR = BT_QUERY_EXECUTOR_STATUS_ERROR,
-       BT_QUERY_STATUS_NOMEM = BT_QUERY_EXECUTOR_STATUS_NOMEM,
-       BT_QUERY_STATUS_INVALID_OBJECT = BT_QUERY_EXECUTOR_STATUS_INVALID_OBJECT,
-       BT_QUERY_STATUS_INVALID_PARAMS = BT_QUERY_EXECUTOR_STATUS_INVALID_PARAMS,
-} bt_query_status;
+typedef enum bt_component_class_get_supported_mip_versions_method_status {
+       BT_COMPONENT_CLASS_GET_SUPPORTED_MIP_VERSIONS_METHOD_STATUS_OK                  = __BT_FUNC_STATUS_OK,
+       BT_COMPONENT_CLASS_GET_SUPPORTED_MIP_VERSIONS_METHOD_STATUS_ERROR               = __BT_FUNC_STATUS_ERROR,
+       BT_COMPONENT_CLASS_GET_SUPPORTED_MIP_VERSIONS_METHOD_STATUS_MEMORY_ERROR        = __BT_FUNC_STATUS_MEMORY_ERROR,
+} bt_component_class_get_supported_mip_versions_method_status;
 
-extern bt_component_class_status bt_component_class_set_description(
-               bt_component_class *component_class,
+typedef enum bt_component_class_initialize_method_status {
+       BT_COMPONENT_CLASS_INITIALIZE_METHOD_STATUS_OK                  = __BT_FUNC_STATUS_OK,
+       BT_COMPONENT_CLASS_INITIALIZE_METHOD_STATUS_ERROR               = __BT_FUNC_STATUS_ERROR,
+       BT_COMPONENT_CLASS_INITIALIZE_METHOD_STATUS_MEMORY_ERROR        = __BT_FUNC_STATUS_MEMORY_ERROR,
+} bt_component_class_initialize_method_status;
+
+typedef enum bt_component_class_port_connected_method_status {
+       BT_COMPONENT_CLASS_PORT_CONNECTED_METHOD_STATUS_OK              = __BT_FUNC_STATUS_OK,
+       BT_COMPONENT_CLASS_PORT_CONNECTED_METHOD_STATUS_ERROR           = __BT_FUNC_STATUS_ERROR,
+       BT_COMPONENT_CLASS_PORT_CONNECTED_METHOD_STATUS_MEMORY_ERROR    = __BT_FUNC_STATUS_MEMORY_ERROR,
+} bt_component_class_port_connected_method_status;
+
+typedef enum bt_component_class_query_method_status {
+       BT_COMPONENT_CLASS_QUERY_METHOD_STATUS_OK               = __BT_FUNC_STATUS_OK,
+       BT_COMPONENT_CLASS_QUERY_METHOD_STATUS_AGAIN            = __BT_FUNC_STATUS_AGAIN,
+       BT_COMPONENT_CLASS_QUERY_METHOD_STATUS_ERROR            = __BT_FUNC_STATUS_ERROR,
+       BT_COMPONENT_CLASS_QUERY_METHOD_STATUS_MEMORY_ERROR     = __BT_FUNC_STATUS_MEMORY_ERROR,
+       BT_COMPONENT_CLASS_QUERY_METHOD_STATUS_UNKNOWN_OBJECT   = __BT_FUNC_STATUS_UNKNOWN_OBJECT,
+} bt_component_class_query_method_status;
+
+typedef enum bt_component_class_set_method_status {
+       BT_COMPONENT_CLASS_SET_METHOD_STATUS_OK =       __BT_FUNC_STATUS_OK,
+} bt_component_class_set_method_status;
+
+typedef enum bt_component_class_set_description_status {
+       BT_COMPONENT_CLASS_SET_DESCRIPTION_STATUS_OK            = __BT_FUNC_STATUS_OK,
+       BT_COMPONENT_CLASS_SET_DESCRIPTION_STATUS_MEMORY_ERROR  = __BT_FUNC_STATUS_MEMORY_ERROR,
+} bt_component_class_set_description_status;
+
+extern bt_component_class_set_description_status
+bt_component_class_set_description(bt_component_class *component_class,
                const char *description);
 
-extern bt_component_class_status bt_component_class_set_help(
+typedef enum bt_component_class_set_help_status {
+       BT_COMPONENT_CLASS_SET_HELP_STATUS_OK           = __BT_FUNC_STATUS_OK,
+       BT_COMPONENT_CLASS_SET_HELP_STATUS_MEMORY_ERROR = __BT_FUNC_STATUS_MEMORY_ERROR,
+} bt_component_class_set_help_status;
+
+extern bt_component_class_set_help_status bt_component_class_set_help(
                bt_component_class *component_class,
                const char *help);
 
@@ -58,4 +85,4 @@ extern bt_component_class_status bt_component_class_set_help(
 }
 #endif
 
-#endif /* BABELTRACE_GRAPH_COMPONENT_CLASS_H */
+#endif /* BABELTRACE2_GRAPH_COMPONENT_CLASS_H */
This page took 0.025038 seconds and 4 git commands to generate.