Files
magenta/debug/packet.c
T

21 lines
478 B
C
Raw Normal View History

2026-06-06 17:25:00 +01:00
#include <magenta/debug/packet.h>
#include <magenta/debug/util.h>
void mxdbg_packet_init(
struct mxdbg_packet *packet,
size_t size,
enum mxdbg_packet_type type,
enum mxdbg_packet_flags flags)
{
memset(packet, 0x0, sizeof *packet);
packet->pkt_magic = MXDBG_PACKET_MAGIC;
packet->pkt_length = size;
packet->pkt_type = type;
packet->pkt_flags = flags;
}
bool mxdbg_packet_validate(const struct mxdbg_packet *packet)
{
return packet->pkt_magic == MXDBG_PACKET_MAGIC;
}