X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace2%2Fgraph%2Fcomponent-class.h;h=b8495d45d0b0bcae7437e0cd58d9ff4ae20c0936;hb=a3f0c7db90f4cfc81090a83a7442b7bc624d5789;hp=f2b85930f5acb8269016b2821cb6578be782a761;hpb=3fadfbc0c91f82c46bd36e6e0657ea93570c9db1;p=babeltrace.git diff --git a/include/babeltrace2/graph/component-class.h b/include/babeltrace2/graph/component-class.h index f2b85930..b8495d45 100644 --- a/include/babeltrace2/graph/component-class.h +++ b/include/babeltrace2/graph/component-class.h @@ -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 - * Copyright 2016 Jérémie Galarneau + * 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 @@ -24,33 +23,61 @@ * SOFTWARE. */ -/* For BT_QUERY_EXECUTOR_STATUS_* */ -#include +#ifndef __BT_IN_BABELTRACE_H +# error "Please include instead." +#endif -/* For bt_component_class */ #include -/* For bt_component_class_status */ -#include - #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 */