Commit 2b6cbc0c authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(prot_a_output_static_server_info): New function.

parent 140f0330
/* /*
* $Id: prot-a-output.c,v 0.64 2003/07/31 07:33:25 ceder Exp $ * $Id: prot-a-output.c,v 0.65 2003/08/11 22:17:16 ceder Exp $
* Copyright (C) 1991-2002 Lysator Academic Computer Association. * Copyright (C) 1991-2002 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -1165,6 +1165,20 @@ prot_a_output_stats_list(Connection *fp, ...@@ -1165,6 +1165,20 @@ prot_a_output_stats_list(Connection *fp,
} }
} }
void
prot_a_output_static_server_info(Connection *fp,
const Static_server_info *result)
{
prot_a_output_time(fp, result->boot_time);
prot_a_output_time(fp, result->save_time);
prot_a_output_string(fp, result->db_status);
prot_a_output_ul(fp, result->existing_texts);
prot_a_output_ul(fp, result->highest_text_no);
prot_a_output_ul(fp, result->existing_confs);
prot_a_output_ul(fp, result->existing_persons);
prot_a_output_ul(fp, result->highest_conf_no);
}
#ifdef DEBUG_CALLS #ifdef DEBUG_CALLS
void void
......
/* /*
* $Id: prot-a-output.h,v 0.31 2003/07/24 22:04:58 ceder Exp $ * $Id: prot-a-output.h,v 0.32 2003/08/11 22:17:04 ceder Exp $
* Copyright (C) 1991-1992, 1994-1999, 2002 Lysator Academic Computer Association. * Copyright (C) 1991-1992, 1994-1999, 2002 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
* Please mail bug reports to bug-lyskom@lysator.liu.se. * Please mail bug reports to bug-lyskom@lysator.liu.se.
*/ */
/* /*
* $Id: prot-a-output.h,v 0.31 2003/07/24 22:04:58 ceder Exp $ * $Id: prot-a-output.h,v 0.32 2003/08/11 22:17:04 ceder Exp $
* *
*/ */
extern void extern void
...@@ -235,6 +235,10 @@ void ...@@ -235,6 +235,10 @@ void
prot_a_output_stats_list(Connection *fp, prot_a_output_stats_list(Connection *fp,
const Stats_list *result); const Stats_list *result);
void
prot_a_output_static_server_info(Connection *fp,
const Static_server_info *result);
#ifdef DEBUG_CALLS #ifdef DEBUG_CALLS
void void
prot_a_output_memory_info(Connection *fp, prot_a_output_memory_info(Connection *fp,
......
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