enum bt_property_availability bt_packet_get_packet_counter_snapshot(
const struct bt_packet *packet, uint64_t *value);
+extern void bt_packet_get_ref(const struct bt_packet *packet);
+
+extern void bt_packet_put_ref(const struct bt_packet *packet);
+
+#define BT_PACKET_PUT_REF_AND_RESET(_var) \
+ do { \
+ bt_packet_put_ref(_var); \
+ (_var) = NULL; \
+ } while (0)
+
+#define BT_PACKET_MOVE_REF(_var_dst, _var_src) \
+ do { \
+ bt_packet_put_ref(_var_dst); \
+ (_var_dst) = (_var_src); \
+ (_var_src) = NULL; \
+ } while (0)
+
#ifdef __cplusplus
}
#endif