Commit 4fda53db authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(prot_a_output_version_info, prot_a_output_conf_z_info_list): New functions.

parent 28b25313
/*
* $Id: prot-a-output.c,v 0.15 1994/04/05 08:03:03 ceder Exp $
* $Id: prot-a-output.c,v 0.16 1994/12/31 11:53:41 ceder Exp $
* Copyright (C) 1991, 1992, 1993 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -28,7 +28,7 @@
* Written by ceder 1990-07-13
*/
static char *rcsid = "$Id: prot-a-output.c,v 0.15 1994/04/05 08:03:03 ceder Exp $";
static char *rcsid = "$Id: prot-a-output.c,v 0.16 1994/12/31 11:53:41 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -598,3 +598,39 @@ prot_a_output_text_no(Connection *fp,
{
mux_printf(fp, " %lu", (unsigned long) text);
}
static void
prot_a_output_conf_z_info (Connection *fp,
Conf_z_info *conf_c)
{
prot_a_output_string(fp, conf_c->name);
prot_a_output_conf_type(fp, conf_c->type);
mux_printf (fp, " %lu", (unsigned long) conf_c -> conf_no);
}
extern void
prot_a_output_conf_z_info_list(Connection *fp,
Conf_z_info_list c_list)
{
int i;
mux_printf(fp, " %lu", (unsigned long)c_list.no_of_confs);
if ( c_list.confs != NULL && c_list.no_of_confs > 0 )
{
mux_printf(fp, " {");
for ( i = 0; i < c_list.no_of_confs; i++ )
prot_a_output_conf_z_info(fp, &c_list.confs[ i ]);
mux_printf(fp, " }");
}
else
mux_printf(fp, " *");
}
void
prot_a_output_version_info (Connection *fp,
Version_info *v_info)
{
mux_printf (fp, " %lu", (unsigned long) v_info->protocol_version);
prot_a_output_string(fp, v_info->server_name);
prot_a_output_string(fp, v_info->server_version);
}
/*
* $Id: prot-a-output.h,v 0.7 1994/04/05 08:03:11 ceder Exp $
* $Id: prot-a-output.h,v 0.8 1994/12/31 11:53:49 ceder Exp $
* Copyright (C) 1991, 1992 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.7 1994/04/05 08:03:11 ceder Exp $
* $Id: prot-a-output.h,v 0.8 1994/12/31 11:53:49 ceder Exp $
*
*/
extern void
......@@ -135,3 +135,11 @@ prot_a_output_session_no(Connection *fp,
void
prot_a_output_text_no(Connection *fp,
Text_no text);
void
prot_a_output_conf_z_info_list(Connection *fp,
Conf_z_info_list c_list);
void
prot_a_output_version_info (Connection *fp,
Version_info *v_info);
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