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
/
trace-ir
/
packet-const.h
diff --git
a/include/babeltrace2/trace-ir/packet-const.h
b/include/babeltrace2/trace-ir/packet-const.h
index 2aa39eb6d96738335653095cb94e8c9fb440c8a3..5390a165f5862229d76b7dfeff23533507ef0349 100644
(file)
--- a/
include/babeltrace2/trace-ir/packet-const.h
+++ b/
include/babeltrace2/trace-ir/packet-const.h
@@
-1,5
+1,5
@@
-#ifndef BABELTRACE_TRACE_IR_PACKET_CONST_H
-#define BABELTRACE_TRACE_IR_PACKET_CONST_H
+#ifndef BABELTRACE
2
_TRACE_IR_PACKET_CONST_H
+#define BABELTRACE
2
_TRACE_IR_PACKET_CONST_H
/*
* Copyright 2016-2018 Philippe Proulx <pproulx@efficios.com>
/*
* Copyright 2016-2018 Philippe Proulx <pproulx@efficios.com>
@@
-26,6
+26,10
@@
* http://www.efficios.com/ctf
*/
* http://www.efficios.com/ctf
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
/* For bt_property_availability */
#include <stdint.h>
/* For bt_property_availability */
@@
-40,11
+44,6
@@
extern "C" {
#endif
extern "C" {
#endif
-typedef enum bt_packet_status {
- BT_PACKET_STATUS_OK = 0,
- BT_PACKET_STATUS_NOMEM = -12,
-} bt_packet_status;
-
extern const bt_stream *bt_packet_borrow_stream_const(
const bt_packet *packet);
extern const bt_stream *bt_packet_borrow_stream_const(
const bt_packet *packet);
@@
-73,4
+72,4
@@
extern void bt_packet_put_ref(const bt_packet *packet);
}
#endif
}
#endif
-#endif /* BABELTRACE_TRACE_IR_PACKET_CONST_H */
+#endif /* BABELTRACE
2
_TRACE_IR_PACKET_CONST_H */
This page took
0.024295 seconds
and
4
git commands to generate.