-/*
- * aim_tx_printqueue()
- *
- * This is basically for debuging purposes only. It dumps all the
- * records in the tx queue and their current status. Very helpful
- * if the queue isn't working quite right.
- *
- */
-#if debug == 2
-faim_internal int aim_tx_printqueue(struct aim_session_t *sess)
-{
- struct command_tx_struct *cur;
-
- faimdprintf(2, "\ncurrent aim_queue_outgoing...\n");
- faimdprintf(2, "\ttype seqnum len lock sent\n");
-
- if (sess->queue_outgoing == NULL)
- faimdprintf(2, "aim_tx_flushqueue(): queue empty");
- else {
- for (cur = sess->queue_outgoing; cur; cur = cur->next) {
- faimdprintf(2, "\t %2x %2x %4x %4x %1d %1d\n",
- cur->hdrtype,
- (cur->hdrtype==AIM_FRAMETYPE_OFT)?cur->hdr.oft.type:cur->hdr.oscar.type,
- (cur->hdrtype==AIM_FRAMETYPE_OSCAR)?cur->hdr.oscar.seqnum:0,
- cur->commandlen, cur->lock,
- cur->sent);
- }
- }
-
- faimdprintf(2, "\n(done printing queue)\n");
-
- return 0;
-}
-#endif
-