projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: use powers of two for object type enumerators
[babeltrace.git]
/
include
/
babeltrace2
/
graph
/
component-class-const.h
diff --git
a/include/babeltrace2/graph/component-class-const.h
b/include/babeltrace2/graph/component-class-const.h
index ad018311e3af7b3733c0b0492dc800fae7e1ff11..da46d290cbfa6eaac47920bcbf0348eaea1e9234 100644
(file)
--- a/
include/babeltrace2/graph/component-class-const.h
+++ b/
include/babeltrace2/graph/component-class-const.h
@@
-1,9
+1,8
@@
-#ifndef BABELTRACE_GRAPH_COMPONENT_CLASS_CONST_H
-#define BABELTRACE_GRAPH_COMPONENT_CLASS_CONST_H
+#ifndef BABELTRACE
2
_GRAPH_COMPONENT_CLASS_CONST_H
+#define BABELTRACE
2
_GRAPH_COMPONENT_CLASS_CONST_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
*
* 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,22
+23,20
@@
* SOFTWARE.
*/
* SOFTWARE.
*/
-/* For bt_bool, bt_component_class */
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <babeltrace2/types.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <babeltrace2/types.h>
#ifdef __cplusplus
extern "C" {
#endif
-typedef enum bt_component_class_status {
- BT_COMPONENT_CLASS_STATUS_OK = 0,
- BT_COMPONENT_CLASS_STATUS_NOMEM = -12,
-} bt_component_class_status;
-
typedef enum bt_component_class_type {
typedef enum bt_component_class_type {
- BT_COMPONENT_CLASS_TYPE_SOURCE
=
0,
- BT_COMPONENT_CLASS_TYPE_FILTER
=
1,
- BT_COMPONENT_CLASS_TYPE_SINK
=
2,
+ BT_COMPONENT_CLASS_TYPE_SOURCE
= 1 <<
0,
+ BT_COMPONENT_CLASS_TYPE_FILTER
= 1 <<
1,
+ BT_COMPONENT_CLASS_TYPE_SINK
= 1 <<
2,
} bt_component_class_type;
extern const char *bt_component_class_get_name(
} bt_component_class_type;
extern const char *bt_component_class_get_name(
@@
-101,4
+98,4
@@
extern void bt_component_class_put_ref(
}
#endif
}
#endif
-#endif /* BABELTRACE_GRAPH_COMPONENT_CLASS_CONST_H */
+#endif /* BABELTRACE
2
_GRAPH_COMPONENT_CLASS_CONST_H */
This page took
0.024598 seconds
and
4
git commands to generate.