Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
d8319335
Commit
d8319335
authored
Aug 02, 1996
by
Per Cederqvist
Browse files
(init_dynamic_session_info): New function.
(init_static_session_info): New function.
parent
499b8f54
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/server/kom-memory.h
View file @
d8319335
/*
* $Id: kom-memory.h,v 1.
3
199
4
/0
4
/0
5
0
8
:0
1:43
ceder Exp $
* $Id: kom-memory.h,v 1.
4
199
6
/0
8
/0
2
0
0
:0
2: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
199
4
/0
4
/0
5
0
8
:0
1:43
ceder Exp $
* $Id: kom-memory.h,v 1.
4
199
6
/0
8
/0
2
0
0
:0
2: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
);
...
...
src/server/memory.c
View file @
d8319335
/*
* $Id: memory.c,v 0.1
6
199
4
/0
4
/0
5
0
8
:0
2:29
ceder Exp $
* $Id: memory.c,v 0.1
7
199
6
/0
8
/0
2
0
0
:0
3: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.1
6
199
4
/0
4
/0
5
0
8
:0
2:29
ceder Exp $"
;
static
char
*
rcsid
=
"$Id: memory.c,v 0.1
7
199
6
/0
8
/0
2
0
0
:0
3: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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment