| 52 | } |
| 53 | |
| 54 | TMegaPkt *msg_get_next_packet() |
| 55 | { |
| 56 | TMegaPkt *result; |
| 57 | |
| 58 | sgpCurrPkt = (TMegaPkt *)DiabloAllocPtr(sizeof(TMegaPkt)); |
| 59 | sgpCurrPkt->pNext = NULL; |
| 60 | sgpCurrPkt->dwSpaceLeft = 32000; |
| 61 | |
| 62 | result = (TMegaPkt *)&sgpMegaPkt; |
| 63 | while (result->pNext) { |
| 64 | result = result->pNext; |
| 65 | } |
| 66 | result->pNext = sgpCurrPkt; |
| 67 | |
| 68 | return result; |
| 69 | } |
| 70 | |
| 71 | BOOL msg_wait_resync() |
| 72 | { |
no test coverage detected