Commit 07137b68 authored by David Byers's avatar David Byers
Browse files

(prot_a_parse_info): New function.

parent 07dcb6c4
/*
* $Id: prot-a-parse.c,v 0.21 1995/10/31 11:23:12 byers Exp $
* $Id: prot-a-parse.c,v 0.22 1996/06/09 13:54:43 byers Exp $
* Copyright (C) 1991, 1992, 1993, 1994, 1995 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -28,7 +28,7 @@
* BUG: Not all functions are used, I think. /ceder
*/
static char *rcsid = "$Id: prot-a-parse.c,v 0.21 1995/10/31 11:23:12 byers Exp $";
static char *rcsid = "$Id: prot-a-parse.c,v 0.22 1996/06/09 13:54:43 byers Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -380,3 +380,37 @@ prot_a_parse_time_date(Connection *client,
}
}
void prot_a_parse_info(Connection *client,
Info *result)
{
switch( client->info_parse_pos )
{
case 0:
result->version = prot_a_parse_long(client);
client->info_parse_pos = 1;
/* Fall through */
case 1:
result->conf_pres_conf = prot_a_parse_long(client);
client->info_parse_pos = 2;
/* Fall through */
case 2:
result->pers_pres_conf = prot_a_parse_long(client);
client->info_parse_pos = 3;
/* Fall through */
case 3:
result->motd_conf = prot_a_parse_long(client);
client->info_parse_pos = 4;
/* Fall through */
case 4:
result->kom_news_conf = prot_a_parse_long(client);
client->info_parse_pos = 5;
/* Fall through */
case 5:
result->motd_of_lyskom = prot_a_parse_long(client);
/* Fall through */
default:
client->info_parse_pos = 0;
}
}
/*
* $Id: prot-a-parse.h,v 0.8 1995/01/01 20:17:25 ceder Exp $
* $Id: prot-a-parse.h,v 0.9 1996/06/09 13:54:45 byers Exp $
* Copyright (C) 1991, 1992, 1994, 1995 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-parse.h,v 0.8 1995/01/01 20:17:25 ceder Exp $
* $Id: prot-a-parse.h,v 0.9 1996/06/09 13:54:45 byers Exp $
*
*/
extern long
......@@ -50,3 +50,7 @@ prot_a_parse_misc_info(Connection *client,
extern void
prot_a_parse_time_date(Connection *client,
struct tm *result);
extern void
prot_a_parse_info(Connection *client,
Info *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