Packet API: use status
[babeltrace.git] / include / babeltrace / trace-ir / packet.h
index 2b1d9b06b0f2c9efef9dc093c7f546edcc806485..3de1edfead574f5366da38ae4e4442fc1aa525fb 100644 (file)
@@ -29,6 +29,9 @@
 /* For bt_packet, bt_packet_header_field, bt_packet_context_field, bt_stream */
 #include <babeltrace/types.h>
 
+/* For enum bt_packet_status */
+#include <babeltrace/trace-ir/packet-const.h>
+
 #include <stdint.h>
 
 #ifdef __cplusplus
@@ -43,14 +46,14 @@ extern
 bt_field *bt_packet_borrow_header_field(bt_packet *packet);
 
 extern
-int bt_packet_move_header_field(bt_packet *packet,
+enum bt_packet_status bt_packet_move_header_field(bt_packet *packet,
                bt_packet_header_field *header);
 
 extern
 bt_field *bt_packet_borrow_context_field(bt_packet *packet);
 
 extern
-int bt_packet_move_context_field(bt_packet *packet,
+enum bt_packet_status bt_packet_move_context_field(bt_packet *packet,
                bt_packet_context_field *context);
 
 extern
This page took 0.023312 seconds and 4 git commands to generate.