Commit d8319335 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(init_dynamic_session_info): New function.

(init_static_session_info): New function.
parent 499b8f54
/*
* $Id: kom-memory.h,v 1.3 1994/04/05 08:01:43 ceder Exp $
* $Id: kom-memory.h,v 1.4 1996/08/02 00:02:05 ceder Exp $
* Copyright (C) 1991, 1993, 1994 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: kom-memory.h,v 1.3 1994/04/05 08:01:43 ceder Exp $
* $Id: kom-memory.h,v 1.4 1996/08/02 00:02:05 ceder Exp $
*
* The time has come to get some order into this mess.
*
......@@ -53,6 +53,10 @@ extern void clear_conference (Conference *c);
extern Conference *copy_conference (Conference *c);
extern void init_conference (Conference *c);
/* Dynamic_session_info */
extern void init_dynamic_session_info (Dynamic_session_info *d);
/* Mark_list */
extern void init_mark_list (Mark_list *ml);
......@@ -84,6 +88,9 @@ extern void init_session_info (Session_info *s);
/* Session_info_ident */
extern void init_session_info_ident (Session_info_ident *s);
/* Static_session_info */
extern void init_static_session_info (Static_session_info *d);
/* Text_list */
extern void init_text_list (Text_list *tl);
......
/*
* $Id: memory.c,v 0.16 1994/04/05 08:02:29 ceder Exp $
* $Id: memory.c,v 0.17 1996/08/02 00:03:33 ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -28,7 +28,7 @@
* These functions should be used instead of smalloc/srealloc.
*/
static char *rcsid = "$Id: memory.c,v 0.16 1994/04/05 08:02:29 ceder Exp $";
static char *rcsid = "$Id: memory.c,v 0.17 1996/08/02 00:03:33 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -144,6 +144,19 @@ init_conference (Conference *c)
init_text_list(&c->texts);
}
/* Dynamic_session_info */
void
init_dynamic_session_info (Dynamic_session_info *d)
{
d->session = 0;
d->person = 0;
d->working_conference = 0;
d->idle_time = 0;
d->invisible = 0;
d->what_am_i_doing = EMPTY_STRING;
}
/* Mark_list */
......@@ -291,6 +304,17 @@ init_membership_list (Membership_list *m)
m->confs = NULL;
}
/* Static_session_info */
void
init_static_session_info (Static_session_info *d)
{
d->username = EMPTY_STRING;
d->hostname = EMPTY_STRING;
d->ident_user = EMPTY_STRING;
d->connection_time = NO_TIME;
}
/* Person */
Person *
alloc_person(void)
......
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