lib: assign values to all public enumerators
[babeltrace.git] / include / babeltrace2 / trace-ir / packet.h
index 17c4e3777addc740daaeaa3d197ad553938cdee6..fbe5ed049c3f720c0879c6a4516a1a1fb18f967b 100644 (file)
@@ -1,8 +1,8 @@
-#ifndef BABELTRACE_TRACE_IR_PACKET_H
-#define BABELTRACE_TRACE_IR_PACKET_H
+#ifndef BABELTRACE2_TRACE_IR_PACKET_H
+#define BABELTRACE2_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
  * 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 <babeltrace2/types.h>
+
 #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);
 
+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
-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
 
-#endif /* BABELTRACE_TRACE_IR_PACKET_H */
+#endif /* BABELTRACE2_TRACE_IR_PACKET_H */
This page took 0.036843 seconds and 4 git commands to generate.