PS2SDK
PS2 Homebrew Libraries
|
#include <tamtypes.h>
Go to the source code of this file.
Data Structures | |
struct | packet_t |
Macros | |
#define | QWC_MAX 65535 |
#define | PACKET_NORMAL 0x00 |
#define | PACKET_UCAB 0x01 |
#define | PACKET_SPR 0x02 |
Functions | |
packet_t * | packet_init (int qwords, int type) |
void | packet_reset (packet_t *packet) |
void | packet_free (packet_t *packet) |
qword_t * | packet_increment_qwc (packet_t *packet, int num) |
static qword_t * | packet_get_qword (packet_t *packet) |
Packet library functions.
Definition in file packet.h.
#define QWC_MAX 65535 |
packet_t * packet_init | ( | int | qwords, |
int | type | ||
) |
Allocate a new packet for use, size in quadwords.
Definition at line 8 of file packet.c.
References packet_init().
Referenced by packet_init().
void packet_reset | ( | packet_t * | packet | ) |
Reset the packet quadword counter and zero out data.
Definition at line 89 of file packet.c.
References packet_reset().
Referenced by packet_reset().
void packet_free | ( | packet_t * | packet | ) |
Free the space allocated by packet.
Definition at line 63 of file packet.c.
References packet_free().
Referenced by packet_free().
qword_t * packet_increment_qwc | ( | packet_t * | packet, |
int | num | ||
) |
Advances the qwc and returns the current qword count.