X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace2%2Fgraph%2Fgraph-const.h;h=8fd9a5d6dae2035c653f8558e943355fb9ea112c;hb=4fa90f321f51af8f5bfc48eee1435e2f41d853b3;hp=c2dd64cd27ca8a3835b08dd67acee23fadae6a04;hpb=3fadfbc0c91f82c46bd36e6e0657ea93570c9db1;p=babeltrace.git diff --git a/include/babeltrace2/graph/graph-const.h b/include/babeltrace2/graph/graph-const.h index c2dd64cd..8fd9a5d6 100644 --- a/include/babeltrace2/graph/graph-const.h +++ b/include/babeltrace2/graph/graph-const.h @@ -1,5 +1,5 @@ -#ifndef BABELTRACE_GRAPH_GRAPH_CONST_H -#define BABELTRACE_GRAPH_GRAPH_CONST_H +#ifndef BABELTRACE2_GRAPH_GRAPH_CONST_H +#define BABELTRACE2_GRAPH_GRAPH_CONST_H /* * Copyright 2017-2018 Philippe Proulx @@ -24,6 +24,10 @@ * SOFTWARE. */ +#ifndef __BT_IN_BABELTRACE_H +# error "Please include instead." +#endif + /* For bt_bool, bt_graph */ #include @@ -31,16 +35,6 @@ extern "C" { #endif -typedef enum bt_graph_status { - BT_GRAPH_STATUS_OK = 0, - BT_GRAPH_STATUS_END = 1, - BT_GRAPH_STATUS_AGAIN = 11, - BT_GRAPH_STATUS_COMPONENT_REFUSES_PORT_CONNECTION = 111, - BT_GRAPH_STATUS_CANCELED = 125, - BT_GRAPH_STATUS_ERROR = -1, - BT_GRAPH_STATUS_NOMEM = -12, -} bt_graph_status; - extern bt_bool bt_graph_is_canceled(const bt_graph *graph); extern void bt_graph_get_ref(const bt_graph *graph); @@ -64,4 +58,4 @@ extern void bt_graph_put_ref(const bt_graph *graph); } #endif -#endif /* BABELTRACE_GRAPH_GRAPH_CONST_H */ +#endif /* BABELTRACE2_GRAPH_GRAPH_CONST_H */