Commit 28cf6816 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(prot_a_output_session_flags): New static function.

(prot_a_output_dynamic_session_info): Output all flags, not just the
invisible bit.
parent e0938c76
/*
* $Id: prot-a-output.c,v 0.23 1996/08/02 00:05:30 ceder Exp $
* $Id: prot-a-output.c,v 0.24 1996/08/02 20:01:59 ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994, 1995 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.23 1996/08/02 00:05:30 ceder Exp $";
static char *rcsid = "$Id: prot-a-output.c,v 0.24 1996/08/02 20:01:59 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -678,16 +678,30 @@ prot_a_output_num_list (Connection *fp,
}
}
static void
prot_a_output_session_flags(Connection *fp,
Session_flags flags)
{
mux_putc(' ', fp);
mux_putc(flags.invisible + '0', fp);
mux_putc(flags.user_active_used + '0', fp);
mux_putc(flags.user_absent + '0', fp);
mux_putc(flags.reserved3 + '0', fp);
mux_putc(flags.reserved4 + '0', fp);
mux_putc(flags.reserved5 + '0', fp);
mux_putc(flags.reserved6 + '0', fp);
mux_putc(flags.reserved7 + '0', fp);
}
static void
prot_a_output_dynamic_session_info (Connection *fp,
Dynamic_session_info *info)
{
mux_printf(fp, " %lu %lu %lu %lu %lu",
mux_printf(fp, " %lu %lu %lu %lu",
(unsigned long)info->session,
(unsigned long)info->person,
(unsigned long)info->working_conference,
(unsigned long)info->idle_time,
(unsigned long)info->invisible);
(unsigned long)info->idle_time);
prot_a_output_session_flags(fp, info->flags);
prot_a_output_string(fp, info->what_am_i_doing);
}
......
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