projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: force user to include `<babeltrace2/babeltrace.h>`
[babeltrace.git]
/
include
/
babeltrace2
/
graph
/
graph-const.h
diff --git
a/include/babeltrace2/graph/graph-const.h
b/include/babeltrace2/graph/graph-const.h
index 97672b7b905abd402791dd4449c0c28f21590804..8fd9a5d6dae2035c653f8558e943355fb9ea112c 100644
(file)
--- 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 BABELTRACE
2
_GRAPH_GRAPH_CONST_H
+#define BABELTRACE
2
_GRAPH_GRAPH_CONST_H
/*
* Copyright 2017-2018 Philippe Proulx <pproulx@efficios.com>
/*
* Copyright 2017-2018 Philippe Proulx <pproulx@efficios.com>
@@
-24,6
+24,10
@@
* SOFTWARE.
*/
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
/* For bt_bool, bt_graph */
#include <babeltrace2/types.h>
/* For bt_bool, bt_graph */
#include <babeltrace2/types.h>
@@
-31,15
+35,6
@@
extern "C" {
#endif
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_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);
extern bt_bool bt_graph_is_canceled(const bt_graph *graph);
extern void bt_graph_get_ref(const bt_graph *graph);
@@
-63,4
+58,4
@@
extern void bt_graph_put_ref(const bt_graph *graph);
}
#endif
}
#endif
-#endif /* BABELTRACE_GRAPH_GRAPH_CONST_H */
+#endif /* BABELTRACE
2
_GRAPH_GRAPH_CONST_H */
This page took
0.029251 seconds
and
4
git commands to generate.