Commit 7f35da44 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(async_garb_ended): New function, only present when DEBUG_CALLS is defined.

parent 114c21e4
/*
* $Id: send-async.c,v 0.28 1999/05/24 09:34:38 ceder Exp $
* $Id: send-async.c,v 0.29 1999/05/30 09:26:44 ceder Exp $
* Copyright (C) 1991, 1993-1999 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -34,7 +34,7 @@
#endif
static const char *
rcsid = "$Id: send-async.c,v 0.28 1999/05/24 09:34:38 ceder Exp $";
rcsid = "$Id: send-async.c,v 0.29 1999/05/30 09:26:44 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -538,3 +538,36 @@ async_new_membership(struct connection *cptr,
break;
}
}
#ifdef DEBUG_CALLS
void
async_garb_ended(int no_deleted)
{
Connection *cptr;
Session_no i = 0;
if (!param.send_async_messages)
return;
while ((i = traverse_connections(i)) != 0)
{
cptr = get_conn_by_number(i);
switch(cptr->protocol)
{
case 0:
/* No protocol specified yet */
break;
case 'A':
/* Check that connection is logged on. */
if (cptr->username_valid == TRUE)
prot_a_async_garb_ended(cptr, no_deleted);
break;
default:
restart_kom("async_garb_ended(): bad protocol.\n");
break;
}
}
}
#endif
/*
* $Id: send-async.h,v 0.14 1999/05/24 09:38:29 ceder Exp $
* $Id: send-async.h,v 0.15 1999/05/30 09:26:45 ceder Exp $
* Copyright (C) 1991, 1994-1999 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -23,7 +23,7 @@
* Please mail bug reports to bug-lyskom@lysator.liu.se.
*/
/*
* $Id: send-async.h,v 0.14 1999/05/24 09:38:29 ceder Exp $
* $Id: send-async.h,v 0.15 1999/05/30 09:26:45 ceder Exp $
*
*/
extern void
......@@ -98,3 +98,8 @@ void
async_new_membership(struct connection *cptr,
Pers_no pers_no,
Conf_no conf_no);
#ifdef DEBUG_CALLS
void
async_garb_ended(int no_deleted);
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment