From fefaf689d180c0691de5fa3e84e45e3fc84d0c07 Mon Sep 17 00:00:00 2001
From: David Byers <byers@lysator.liu.se>
Date: Sat, 27 Jul 1996 11:11:57 +0000
Subject: [PATCH] (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.

---
 src/server/ram-output.c | 37 +++++++++++++++++++++++++++++++++++--
 src/server/ram-output.h | 12 ++++++++++--
 2 files changed, 45 insertions(+), 4 deletions(-)

diff --git a/src/server/ram-output.c b/src/server/ram-output.c
index 802ea7a63..accdd9e41 100644
--- a/src/server/ram-output.c
+++ b/src/server/ram-output.c
@@ -1,5 +1,5 @@
 /*
- * $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, 
diff --git a/src/server/ram-output.h b/src/server/ram-output.h
index 077cbed1c..18c87bd53 100644
--- a/src/server/ram-output.h
+++ b/src/server/ram-output.h
@@ -1,5 +1,5 @@
 /*
- * $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);
-- 
GitLab