Commit 0d44f694 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(prot_a_output_stats_description): New function.

parent ae175406
/*
* $Id: prot-a-output.c,v 0.61 2003/07/12 22:26:33 ceder Exp $
* $Id: prot-a-output.c,v 0.62 2003/07/24 08:37:53 ceder Exp $
* Copyright (C) 1991-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -1103,6 +1103,27 @@ prot_a_output_text_mapping(Connection *fp,
}
}
void
prot_a_output_stats_description(Connection *fp,
Stats_description *result)
{
int i;
prot_a_output_ul(fp, result->no_of_stats);
if (result->no_of_stats == 0)
isc_puts(" *", fp->isc_session);
else
{
isc_puts(" {", fp->isc_session);
for (i = 0; i < result->no_of_stats; i++)
prot_a_output_string(fp, result->stat_names[i]);
isc_puts(" }", fp->isc_session);
}
prot_a_output_num_list(fp, &result->intervals);
}
#ifdef DEBUG_CALLS
void
......
/*
* $Id: prot-a-output.h,v 0.29 2002/12/30 14:09:44 ceder Exp $
* $Id: prot-a-output.h,v 0.30 2003/07/24 08:37:50 ceder Exp $
* Copyright (C) 1991-1992, 1994-1999, 2002 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: prot-a-output.h,v 0.29 2002/12/30 14:09:44 ceder Exp $
* $Id: prot-a-output.h,v 0.30 2003/07/24 08:37:50 ceder Exp $
*
*/
extern void
......@@ -227,6 +227,10 @@ void
prot_a_output_text_mapping(Connection *fp,
Text_mapping *result);
void
prot_a_output_stats_description(Connection *fp,
Stats_description *result);
#ifdef DEBUG_CALLS
void
......
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