Skip to content
Snippets Groups Projects
Commit fefaf689 authored by David Byers's avatar David Byers
Browse files

(foutput_conf_type_0): New function. Outputs an old four-bit

conf_type.
(foutput_conference_0): New function. Outputs conference
with a four_bit conf type.
parent 822101ca
No related branches found
No related tags found
No related merge requests found
/*
* $Id: ram-output.c,v 0.17 1996/07/23 08:36:57 byers Exp $
* $Id: ram-output.c,v 0.18 1996/07/27 11:11:54 byers Exp $
* Copyright (C) 1991, 1993, 1994, 1995 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -33,7 +33,7 @@
* (It worked - now saving is twice as fast.)
*/
static char *rcsid = "$Id: ram-output.c,v 0.17 1996/07/23 08:36:57 byers Exp $";
static char *rcsid = "$Id: ram-output.c,v 0.18 1996/07/27 11:11:54 byers Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -102,6 +102,28 @@ foutput_conference (FILE *fp,
(unsigned long) conf_c -> nice);
}
void
foutput_conference_0 (FILE *fp,
Conference *conf_c)
{
foutput_string(fp, conf_c->name);
foutput_member_list(fp, conf_c->members);
foutput_text_list(fp, conf_c->texts);
foutput_conf_type_0(fp, conf_c->type);
foutput_time(fp, conf_c -> creation_time );
foutput_time(fp, conf_c -> last_written );
fprintf (fp, " %lu %lu %lu %lu %lu %lu %lu",
(unsigned long) conf_c -> creator,
(unsigned long) conf_c -> presentation,
(unsigned long) conf_c -> supervisor,
(unsigned long) conf_c -> permitted_submitters,
(unsigned long) conf_c -> super_conf,
(unsigned long) conf_c -> msg_of_day,
(unsigned long) conf_c -> nice);
}
void
foutput_text_stat(FILE *fp,
......@@ -332,6 +354,17 @@ foutput_conf_type(FILE *fp,
putc(type.reserved3 + '0', fp);
}
extern void
foutput_conf_type_0(FILE *fp,
Conf_type type)
{
putc(' ', fp);
putc(type.rd_prot + '0', fp);
putc(type.original + '0', fp);
putc(type.secret + '0', fp);
putc(type.letter_box + '0', fp);
}
extern void
foutput_misc_info(FILE *fp,
......
/*
* $Id: ram-output.h,v 0.7 1995/01/01 20:17:26 ceder Exp $
* $Id: ram-output.h,v 0.8 1996/07/27 11:11:57 byers Exp $
* Copyright (C) 1991, 1993, 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: ram-output.h,v 0.7 1995/01/01 20:17:26 ceder Exp $
* $Id: ram-output.h,v 0.8 1996/07/27 11:11:57 byers Exp $
*
* ram-output.c - write objects to disk.
*
......@@ -42,6 +42,10 @@ void
foutput_conference (FILE *fp,
Conference *conf_c);
void
foutput_conference_0 (FILE *fp,
Conference *conf_c);
void
foutput_text_stat(FILE *fp,
Text_stat *t_stat);
......@@ -89,6 +93,10 @@ extern void
foutput_conf_type(FILE *fp,
Conf_type type);
extern void
foutput_conf_type_0(FILE *fp,
Conf_type type);
extern void
foutput_misc_info(FILE *fp,
Misc_info misc);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment