projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: assign values to all public enumerators
[babeltrace.git]
/
include
/
babeltrace2
/
trace-ir
/
packet.h
diff --git
a/include/babeltrace2/trace-ir/packet.h
b/include/babeltrace2/trace-ir/packet.h
index 17c4e3777addc740daaeaa3d197ad553938cdee6..fbe5ed049c3f720c0879c6a4516a1a1fb18f967b 100644
(file)
--- a/
include/babeltrace2/trace-ir/packet.h
+++ b/
include/babeltrace2/trace-ir/packet.h
@@
-1,8
+1,8
@@
-#ifndef BABELTRACE_TRACE_IR_PACKET_H
-#define BABELTRACE_TRACE_IR_PACKET_H
+#ifndef BABELTRACE
2
_TRACE_IR_PACKET_H
+#define BABELTRACE
2
_TRACE_IR_PACKET_H
/*
/*
- * Copyright
2016-2018 Philippe Proulx <pproulx@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
@@
-21,19
+21,16
@@
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
- *
- * The Common Trace Format (CTF) Specification is available at
- * http://www.efficios.com/ctf
*/
*/
-/* For bt_packet, bt_packet_context_field, bt_stream */
-#include <babeltrace2/types.h>
-
-/* For bt_packet_status */
-#include <babeltrace2/trace-ir/packet-const.h>
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
#include <stdint.h>
#include <stdint.h>
+#include <babeltrace2/types.h>
+
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
extern "C" {
#endif
@@
-45,12
+42,16
@@
extern bt_stream *bt_packet_borrow_stream(bt_packet *packet);
extern
bt_field *bt_packet_borrow_context_field(bt_packet *packet);
extern
bt_field *bt_packet_borrow_context_field(bt_packet *packet);
+typedef enum bt_packet_move_context_field_status {
+ BT_PACKET_MOVE_CONTEXT_FIELD_STATUS_OK = __BT_FUNC_STATUS_OK,
+} bt_packet_move_context_field_status;
+
extern
extern
-bt_packet_
status bt_packet_move_context_field(bt_packet *packet,
- bt_packet_context_field *context);
+bt_packet_
move_context_field_status bt_packet_move_context_field(
+ bt_packet
*packet, bt_packet
_context_field *context);
#ifdef __cplusplus
}
#endif
#ifdef __cplusplus
}
#endif
-#endif /* BABELTRACE_TRACE_IR_PACKET_H */
+#endif /* BABELTRACE
2
_TRACE_IR_PACKET_H */
This page took
0.027046 seconds
and
4
git commands to generate.